- 論壇徽章:
- 0
|
本帖最后由 lonelysoul011 于 2014-06-23 01:45 編輯
RT
錯(cuò)誤信息如下:
使用了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
復(fù)制代碼 未使用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
復(fù)制代碼 其他測(cè)試:- [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
復(fù)制代碼 宿主機(jī):CentOS release 6.5 X64
QEMU emulator version 1.2.50 (qemu-kvm-devel)
內(nèi)核版本
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
啟動(dòng)腳本:- [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
復(fù)制代碼 宿主機(jī)網(wǎng)絡(luò)狀態(tài):- [root@localhost ~]# brctl show
- bridge name bridge id STP enabled interfaces
- br0 8000.c81f66eded6b yes em1
復(fù)制代碼 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
復(fù)制代碼 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
復(fù)制代碼 出現(xiàn)問(wèn)題后重啟過(guò)一次,問(wèn)題依舊!
|
|