Comment 27 for bug 253230

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

I got qemu with vde working as follows. I built the qemu-kvm from quantal
with the attached qemu-vde.debdiff applied. Then set up the qemu vde nic
and started qemu as follows:

cat >> /etc/network/interfaces << EOF
auto qemutap
  iface qemutap inet static
  address 10.0.5.1
  netmask 255.255.255.0
  vde2-switch -
EOF

ifup qemutap

dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/qemutap.dnsmasq.pid --conf-file= --listen-address 10.0.5.1 --dhcp-range 10.0.5.2,10.0.5.254 --dhcp-lease-max=253 --dhcp-no-override --except-interface=lo --interface=qemutap

iptables -A POSTROUTING -s 10.0.5.0/24 -t nat -j MASQUERADE

cat >> /etc/dnsmasq.d/qemu << EOF
bind-interfaces
except-interface=qemutap
EOF
restart dnsmasq

kvm -net nic -net vde,sock=/var/run/vde2/qemutap.ctl -m 1024 -hda x.img -cdrom ubuntu-12.04-alternate-amd64.iso -vnc :1

So perhaps a qemu-vde package should set up a qemuvdetap network as above.