Hi all, I install qemu from git repository with KVM, and connect network with bridge. The connection to the vm sometimes cannot establish. The network configure of host OS is here:
root@Blade1-02:~/qemu.git# ifconfig br0 Link encap:Ethernet HWaddr 00:26:b9:fa:de:48 inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: 2001:da8:201:1146:226:b9ff:fefa:de48/64 Scope:Global inet6 addr: fe80::226:b9ff:fefa:de48/64 Scope:Link inet6 addr: 2001:da8:201:1146:c52c:1d:240a:97ed/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:58924 errors:0 dropped:0 overruns:0 frame:0 TX packets:18735 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4754344 (4.7 MB) TX bytes:9676157 (9.6 MB) eth0 Link encap:Ethernet HWaddr 00:26:b9:fa:de:48 inet6 addr: fe80::226:b9ff:fefa:de48/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:228497 errors:0 dropped:110 overruns:0 frame:0 TX packets:62679 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:164064870 (164.0 MB) TX bytes:13773337 (13.7 MB) 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:20779 errors:0 dropped:0 overruns:0 frame:0 TX packets:20779 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8895827 (8.8 MB) TX bytes:8895827 (8.8 MB) tap0 Link encap:Ethernet HWaddr 16:ac:8f:69:84:7a inet6 addr: fe80::14ac:8fff:fe69:847a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:147 errors:0 dropped:0 overruns:0 frame:0 TX packets:5283 errors:0 dropped:455 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:17251 (17.2 KB) TX bytes:418040 (418.0 KB) I write a script to start VM, the script is here(kvm.bridge): #! /bin/bash USERID=`whoami` MACADDR="00:26:b9:fa:ff:31" model=e1000e iface=`sudo tunctl -b -u $USERID` qemu-system-x86_64 -net nic,vlan=0,macaddr=$MACADDR -net tap,vlan=0,ifname=$iface $@ sudo tunctl -d $iface So I start VM with: root@Blade1-02:~# ./kvm.bridge -vnc :1 -hda vm1.img -m 1024 TUNSETIFF: Device or resource busy qemu-system-x86_64: pci_add_option_rom: failed to find romfile "efi-e1000.rom" When I connect to the VM with command: [root@maple ~]# ssh 10.0.0.131 ssh_exchange_identification: Connection closed by remote host It can success when I try about 4 times to connect. Is there anything wrong when I configure the network? Thanks, Arthur -- Arthur Chunqi Li Department of Computer Science School of EECS Peking University Beijing, China