- 论坛徽章:
- 0
|
本帖最后由 lonelysoul011 于 2014-06-23 01:45 编辑
RT
错误信息如下:
使用了ifname- qemu-system-x86_64 -m 4096 -smp 4 -hda /root/kvm_demo/rhel58-test.img -net nic,model=e1000 -net tap,ifname=tap1,script=/etc/qemu-ifup downscript=no -vnc 172.28.18.244:1:5901
- qemu-system-x86_64: -net tap,ifname=tap1,script=/etc/qemu-ifup: drive with bus=0, unit=0 (index=0) exists
复制代码 未使用ifname- qemu-system-x86_64 -m 4096 -smp 4 -hda /root/kvm_demo/rhel58-test.img -net nic,model=e1000 -net tap,script=/etc/qemu-ifup downscript=no -vnc 172.28.18.244:1:5901
- qemu-system-x86_64: -net tap,script=/etc/qemu-ifup: drive with bus=0, unit=0 (index=0) exists
复制代码 其他测试:- [root@localhost ~]# qemu-system-x86_64 -m 4096 -smp 4 -hda /root/kvm_demo/rhel58-test.img -net nic,model -net tap,script=/etc/qemu-ifup downscript=no -vnc 172.28.18.244:1:5901
- qemu-system-x86_64: -net tap,script=/etc/qemu-ifup: drive with bus=0, unit=0 (index=0) exists
- [root@localhost ~]# qemu-system-x86_64 -m 4096 -smp 4 -hda /root/kvm_demo/rhel58-test.img -net nic,model=rtl8139 -net tap,script=/etc/qemu-ifup downscript=no -vnc 172.28.18.244:1:5901
- qemu-system-x86_64: -net tap,script=/etc/qemu-ifup: drive with bus=0, unit=0 (index=0) exists
复制代码 宿主机:CentOS release 6.5 X64
QEMU emulator version 1.2.50 (qemu-kvm-devel)
内核版本
Linux localhost.localdomain 3.15.0-rc4+ #2 SMP Fri May 23 12:44:16 GMT 2014 x86_64 x86_64 x86_64 GNU/Linux
启动脚本:- [root@localhost ~]# cat /etc/qemu-ifup
- #!/bin/sh
- switch=br0
- if [ -n "$1" ]
- then
- #tunctl -u $(whoami) -t $1
- # start up the TAP interface
- #ifconfig $1 up
- ip link set $1 up
- sleep 1
- brctl addif ${switch} $1
- exit 0
- else
- echo "Error: no interface specified"
- exit 1
- fi
复制代码 宿主机网络状态:- [root@localhost ~]# brctl show
- bridge name bridge id STP enabled interfaces
- br0 8000.c81f66eded6b yes em1
复制代码 dmesg信息- [root@localhost ~]# dmesg
- device tap0 entered promiscuous mode
- br0: port 2(tap0) entered listening state
- br0: port 2(tap0) entered listening state
- br0: port 2(tap0) entered disabled state
- device tap0 left promiscuous mode
- br0: port 2(tap0) entered disabled state
复制代码 messages 信息- [root@localhost ~]# tail /var/log/messages -f
- Jun 22 17:44:34 localhost kernel: device tap0 entered promiscuous mode
- Jun 22 17:44:34 localhost kernel: br0: port 2(tap0) entered listening state
- Jun 22 17:44:34 localhost kernel: br0: port 2(tap0) entered listening state
- Jun 22 17:44:34 localhost kernel: br0: port 2(tap0) entered disabled state
- Jun 22 17:44:34 localhost kernel: device tap0 left promiscuous mode
- Jun 22 17:44:34 localhost kernel: br0: port 2(tap0) entered disabled state
复制代码 出现问题后重启过一次,问题依旧!
|
|