<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi,<br>On a fresh FC12 system, I am able to create and run KVM-based vms with tap networking using the qemu-kvm command line but not using virsh.<br>I have user and group set to "root" in /etc/libvirt/qemu.conf. "user mode networking" works with virsh, but not tap! <br><br>I have this xml:<br><domain type='kvm'><br>  <name>centos</name><br>  <uuid>22d9d573-d82c-c18d-36c0-d3ffef057468</uuid><br>  <memory>131072</memory><br>  <vcpu>1</vcpu><br>  <os><br>    <type arch='x86_64'>hvm</type><br>  </os><br>  <features><br>    <acpi/><br>    <pae/><br>  </features><br>  <clock offset='utc'/><br> 
 <devices><br>    <emulator>/usr/bin/qemu-kvm</emulator><br>    <disk type='file' device='disk'><br>      <source file='/var/lib/images/centos.5-4.x86-64/centos-small.img'/><br>      <target dev='hda' bus='ide'/><br>    </disk><br>    <interface type='user'><br>      <mac address='52:54:00:7e:5b:58'/><br>    </interface><br>    <interface type='ethernet'><br>      <mac address='52:54:00:2e:33:c8'/><br>      <script path='/var/lib/images/centos.5-4.x86-64/qemu-ifup'/><br>    </interface><br>    <graphics type='vnc' port='5910' autoport='no' listen=''/><br>  </devices><br></domain><br><br>This won't start even
 when I execute virsh as root:<br>[root@fc12 centos.5-4.x86-64]# virsh -c qemu+unix:///system   create domr.xml <br>error: Failed to create domain from domr.xml<br>error: monitor socket did not show up.: No such file or directory<br>[root@fc12 centos.5-4.x86-64]# tail -3 /var/log/libvirt/qemu/centos.log <br>LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 128 -smp 1 -name centos -uuid 22d9d573-d82c-c18d-36c0-d3ffef057468 -monitor unix:/var/lib/libvirt/qemu/centos.monitor,server,nowait -boot c -drive file=/var/lib/images/centos.5-4.x86-64/centos-small.img,if=ide,index=0,boot=on -net nic,macaddr=52:54:00:7e:5b:58,vlan=0,name=nic.0 -net user,vlan=0,name=user.0 -net nic,macaddr=52:54:00:2e:33:c8,vlan=1,name=nic.1 -net tap,script=/var/lib/images/centos.5-4.x86-64/qemu-ifup,vlan=1,name=tap.0 -serial none -parallel none -usb -vnc :10 -vga cirrus <br>warning: could not configure /dev/net/tun: no virtual
 network emulation<br>qemu: Could not initialize device 'tap'<br><br>'***** But I can execute the same command line and it works!!********<br>[root@fc12 centos.5-4.x86-64]# LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 128 -smp 1 -name centos -uuid 22d9d573-d82c-c18d-36c0-d3ffef057468 -monitor unix:/var/lib/libvirt/qemu/centos.monitor,server,nowait -boot c -drive file=/var/lib/images/centos.5-4.x86-64/centos-small.img,if=ide,index=0,boot=on -net nic,macaddr=52:54:00:7e:5b:58,vlan=0,name=nic.0 -net user,vlan=0,name=user.0 -net nic,macaddr=52:54:00:2e:33:c8,vlan=1,name=nic.1 -net tap,script=/var/lib/images/centos.5-4.x86-64/qemu-ifup,vlan=1,name=tap.0 -serial none -parallel none -usb -vnc :10 -vga cirrus &<br>[2] 4543<br><br>[root@fc12 centos.5-4.x86-64]# ps -ef | grep qemu<br>root      4543  3449  0 19:02 pts/12   00:00:00 /usr/bin/qemu-kvm -S -M pc-0.11
 -m 128 -smp 1 -name centos -uuid 22d9d573-d82c-c18d-36c0-d3ffef057468 -monitor unix:/var/lib/libvirt/qemu/centos.monitor,server,nowait -boot c -drive file=/var/lib/images/centos.5-4.x86-64/centos-small.img,if=ide,index=0,boot=on -net nic,macaddr=52:54:00:7e:5b:58,vlan=0,name=nic.0 -net user,vlan=0,name=user.0 -net nic,macaddr=52:54:00:2e:33:c8,vlan=1,name=nic.1 -net tap,script=/var/lib/images/centos.5-4.x86-64/qemu-ifup,vlan=1,name=tap.0 -serial none -parallel none -usb -vnc :10 -vga cirrus<br><br><br><br><br><br></div>
<!-- cg3.c204.mail.gq1.yahoo.com compressed/chunked Tue Dec  8 17:43:14 PST 2009 -->
</div></body></html>