[libvirt-users] Bridge with macvtap problem

Eduardo eduardo at freedominterface.org
Wed Jun 16 13:01:51 UTC 2010


Hi friends!

I'm using libvirt 0.8.1 with qemu-kvm 0.12.4 on Linux 2.6.34. At the 
moment there are 2 virtual machines running inside that host without 
problem. They are using the macvtap feature for networking share. But I 
can't do ping from the host to the guest, but I need this. And whatever 
communication between them. Ping with other host is normal. Below 
follows the xml domain definition of one guest:

<domain type='kvm' id='2'>
<name>vox2</name>
<uuid>2e143f6e-5506-8073-c5fc-3ea92fc2b579</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>2</vcpu>
<os>
<type arch='x86_64' machine='pc-0.12'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<source file='/virtual/vox2.qcow2'/>
<target dev='sda' bus='scsi'/>
<alias name='scsi0-0-0'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<controller type='scsi' index='0'>
<alias name='scsi0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</controller>
<interface type='direct'>
<mac address='52:54:00:2f:fe:3d'/>
<source dev='eth0' mode='bridge'/>
<target dev='macvtap1'/>
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5901' autoport='no' keymap='pt-br'/>
<video>
<model type='vmvga' vram='9216' heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
</devices>
</domain>

P.S.: The default network of libvirt is disabled.

-- 
*Eduardo Ramos*
Asterisk Manager
Linux User
www.freedominterface.org
+55 12 81129581
exten=>eduardo,1,hangup()




More information about the libvirt-users mailing list