<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>I changed &lt;interface type='ethernet'&gt; to &lt;interface type='bridge'&gt; and it worked.<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> C V &lt;rayvittal-lists@yahoo.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> fedora-virt@redhat.com<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, December 8, 2009 8:23:33 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [fedora-virt] Fw: fc12 virsh tap networking problem<br></font><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><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 <span class="yshortcuts" id="lw_1260382870_0">command line</span> 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! selinux is disabled. <br><br>I have this xml:<br>&lt;domain type='kvm'&gt;<br>&nbsp; &lt;name&gt;centos&lt;/name&gt;<br>&nbsp; &lt;uuid&gt;22d9d573-d82c-c18d-36c0-d3ffef057468&lt;/uuid&gt;<br>&nbsp; &lt;memory&gt;131072&lt;/memory&gt;<br>&nbsp; &lt;vcpu&gt;1&lt;/vcpu&gt;<br>&nbsp; &lt;os&gt;<br>&nbsp;&nbsp;&nbsp; &lt;type arch='x86_64'&gt;hvm&lt;/type&gt;<br>&nbsp; &lt;/os&gt;<br>&nbsp;
 &lt;features&gt;<br>&nbsp;&nbsp;&nbsp; &lt;acpi/&gt;<br>&nbsp;&nbsp;&nbsp;
 &lt;pae/&gt;<br>&nbsp; &lt;/features&gt;<br>&nbsp; &lt;clock offset='utc'/&gt;<br>&nbsp;
 &lt;devices&gt;<br>&nbsp;&nbsp;&nbsp; &lt;emulator&gt;/usr/bin/qemu-kvm&lt;/emulator&gt;<br>&nbsp;&nbsp;&nbsp; &lt;disk type='file' device='disk'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;source file='/var/lib/images/centos.5-4.x86-64/centos-small.img'/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;target dev='hda' bus='ide'/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/disk&gt;<br>&nbsp;&nbsp;&nbsp; &lt;interface type='user'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mac address='52:54:00:7e:5b:58'/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/interface&gt;<br>&nbsp;&nbsp;&nbsp; &lt;interface type='ethernet'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mac address='52:54:00:2e:33:c8'/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script path='/var/lib/images/centos.5-4.x86-64/qemu-ifup'/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/interface&gt;<br>&nbsp;&nbsp;&nbsp; &lt;graphics type='vnc' port='5910' autoport='no' listen=''/&gt;<br>&nbsp; &lt;/devices&gt;<br>&lt;/domain&gt;<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&nbsp;&nbsp; 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 <span class="yshortcuts" id="lw_1260382870_1">virtual
 network</span> 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 &amp;<br>[2] 4543<br><br>[root@fc12 centos.5-4.x86-64]# ps -ef | grep qemu<br>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4543&nbsp; 3449&nbsp; 0 19:02 pts/12&nbsp;&nbsp;
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></div>

</div></div></div>

</div></div></div>
<!-- cg2.c204.mail.gq1.yahoo.com compressed/chunked Wed Dec  9 10:19:25 PST 2009 -->
</div></body></html>