VDSM(7)engine常用命令和错误

1)上传iso失败

[root@ehost data]# engine-iso-uploader -i iso upload cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.iso
ERROR: Problem connecting to the REST API.  Is the service available and does the CA certificate exist?

解决办法:暂时不知道


2)如果已经和ipa server配置好,ipa server故障之后,engeine的admin都登录不进去了。

解决办法:1)把ipa server起来。 2)实际上也能登录进去,只不过要等很长时间。



3)虚拟机启动时提示“显示网络需要指定boot protocol”,错误

执行动作时出错:

vm1:

    无法 run VM。在主机上进行配置时,显示网络 ovirtmgmt 必须具有 DHCP 或静态引导协议。
    无法 run VM。没有满足当前调度约束的主机。请查看下面的细节:
    主机 200 不满足 internal 过滤器 Network。
engine.log中错误:
2015-01-11 13:04:58,591 WARN  [org.ovirt.engine.core.bll.RunVmCommand] (ajp--127.0.0.1-8702-8) [67f71abe] CanDoAction of action RunVm failed. Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL,$DisplayNetwork ovirtmgmt,SCHEDULING_ALL_HOSTS_FILTERED_OUT,VAR__FILTERTYPE__INTERNAL,$hostName 200,$filterName Network,SCHEDULING_HOST_FILTERED_REASON
解决办法:

再host->设置主机网络中,包含显示网络的逻辑网络,编辑(小铅笔),手工制定IP,确认,保存网络配置。修改完成后,效果:

1)原来ihost上eth0是挂在ovirtmgmt上的,没有独立IP,只有ovirtmgmt这个网桥配了ip-1。修改后,eth0的ifcfg-eth0配置文件被修改,具有独立的IP,不再挂在ovirtmgmt下。

原配置文件
DEVICE=eth0
ONBOOT=yes
HWADDR=38:83:45:e9:9c:40
BRIDGE=ovirtmgmt
NM_CONTROLLED=no
自动修改的配置文件
[root@ihost vdsm]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Generated by VDSM version 4.14.17-0.el6
DEVICE=eth0
ONBOOT=yes
HWADDR=38:83:45:e9:9c:40
IPADDR=192.168.1.201
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
BOOTPROTO=none
DEFROUTE=yes
NM_CONTROLLED=no

brctl show显示结果为(ovirtmgmt的interface为no)

[root@ihost vdsm]# brctl show
bridge name    bridge id        STP enabled    interfaces
;vdsmdummy;        8000.000000000000    no        
ovirtmgmt        8000.000000000000    no        
vnet        8000.1c6f65d15e82    no        eth1
                                                                    vnet0

2)网络配置文件为

[root@ihost vdsm]# cat /etc/libvirt/qemu/networks/vdsm-vnet.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh net-edit vdsm-vnet
or other application using the libvirt API.
-->

<network>
  <name>vdsm-vnet</name>
  <uuid>762a076d-4f80-6593-ba72-bda3a12da53e</uuid>
  <forward mode='bridge'/>
  <bridge name='vnet' />

</network>
[root@ihost vdsm]# cat /etc/libvirt/qemu/networks/vdsm-ovirtmgmt.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh net-edit vdsm-ovirtmgmt
or other application using the libvirt API.
-->

<network>
  <name>vdsm-ovirtmgmt</name>
  <uuid>1b0ef2b1-61b6-f892-f587-ce9249df458d</uuid>
  <forward dev='eth0' mode='passthrough'>
    <interface dev='eth0'/>
  </forward>

</network>
可以看到,ovirtmgmt这个网桥的配置文件中,mode改为passthrough了。


3)ifconfig显示如下,eth0具有刚才配置的静态ip,同时ovirtmgmt的原IP仍然存在

[root@ihost vdsm]# ifconfig
eth0      Link encap:Ethernet  HWaddr 38:83:45:E9:9C:40  
          inet addr:192.168.1.201  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3a83:45ff:fee9:9c40/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38704 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29983 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4042962 (3.8 MiB)  TX bytes:9831345 (9.3 MiB)
          Interrupt:18 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr 1C:6F:65:D1:5E:82  
          inet6 addr: fe80::1e6f:65ff:fed1:5e82/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15850 errors:0 dropped:0 overruns:0 frame:0
          TX packets:196 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1414663 (1.3 MiB)  TX bytes:40092 (39.1 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:11288 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11288 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1143205 (1.0 MiB)  TX bytes:1143205 (1.0 MiB)

ovirtmgmt Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:192.168.1.200  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3a83:45ff:fee9:9c40/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27380 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20623 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2496316 (2.3 MiB)  TX bytes:5922133 (5.6 MiB)

vnet      Link encap:Ethernet  HWaddr 1C:6F:65:D1:5E:82  
          inet6 addr: fe80::1e6f:65ff:fed1:5e82/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15692 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1201247 (1.1 MiB)  TX bytes:620 (620.0 b)

vnet0     Link encap:Ethernet  HWaddr FE:1A:4A:A6:14:69  
          inet6 addr: fe80::fc1a:4aff:fea6:1469/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:218 errors:0 dropped:0 overruns:0 frame:0
          TX packets:556 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:42304 (41.3 KiB)  TX bytes:46974 (45.8 KiB)

4)engein的web界面上,host下的网卡显示如下,还能看到eth0和ovirtmgmt有关联

Name
Address
MAC
Speed (Mbps)
Rx (Mbps)
Tx (Mbps)
Drops (Pkts)
Bond
VLAN
Network Name
 
eth0
192.168.1.201
38:83:45:e9:9c:40
0
< 1
< 1
0
* ovirtmgmt
eth1
 
1c:6f:65:d1:5e:82
100
< 1
< 1
0
vnet


5)ifconfig看到ovirtmgmt网卡状态明明是好的,但前面有个黑色问号,同时状态是down

解决办法:主机切到维护模式,然后重新激活


6)虚拟机网络不通

解决办法:有两个原因可能导致,一是交换机屏蔽了下游的交换端口,二是主机的网卡绑定有问题

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值