qemu-kvm nic gone after upgrade to F13
by Dr. Michael J. Chudobiak
Hi all,
I had an instance of WindowsXP running just fine in F12, with "vanilla"
settings (standard networking). After upgrading to F13, no NIC is shown
in XP any more.
I can run my VM manually, with working networking, if I use:
qemu-kvm -hda /var/lib/libvirt/images/MikeWindows.img -net nic -net user
If I try to run this image via virt-manager, the NIC vanishes. Oddly,
the qemu-kvm process does not show a "-net nic" parameter - just a
"-device rtl8139" flag:
[root@xena mjc]# ps ax | grep qemu
4778 ? Sl 0:30 /usr/bin/qemu-kvm -S -M pc-0.11 -enable-kvm
-m 1024 -smp 1,sockets=1,cores=1,threads=1 -name MikeWindows -uuid
5586f5ac-e12b-301c-7feb-cfbccf77e424 -nodefaults -chardev
socket,id=monitor,path=/var/lib/libvirt/qemu/MikeWindows.monitor,server,nowait
-mon chardev=monitor,mode=readline -rtc base=utc -boot c -drive
file=/var/lib/libvirt/images/MikeWindows.img,if=none,id=drive-ide0-0-0,boot=on
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
-device rtl8139,vlan=0,id=net0,mac=52:54:00:20:ee:f2,bus=pci.0,addr=0x4
-net tap,fd=35,vlan=0,name=hostnet0 -chardev pty,id=serial0 -device
isa-serial,chardev=serial0 -usb -device usb-tablet,id=input0 -vnc
127.0.0.1:0 -vga std -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
What's gone wrong? Config files are below.
- Mike
networks/default.xml:
<network>
<name>default</name>
<uuid>152fda9b-581e-4e29-b906-4b72fa858cc8</uuid>
<bridge name="virbr0" />
<forward/>
<ip address="192.168.122.1" netmask="255.255.255.0">
<dhcp>
<range start="192.168.122.2" end="192.168.122.254" />
</dhcp>
</ip>
</network>
MikeWindows.xml:
<domain type='kvm'>
<name>MikeWindows</name>
<uuid>5586f5ac-e12b-301c-7feb-cfbccf77e424</uuid>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc-0.11'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu'/>
<source file='/var/lib/libvirt/images/MikeWindows.img'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
</controller>
<interface type='network'>
<mac address='52:54:00:20:ee:f2'/>
<source network='default'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<input type='tablet' bus='usb'/>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>
<video>
<model type='vga' vram='16384' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
</video>
</devices>
</domain>