Comment 6 for bug 692775

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

Haven't yet been able to reproduce (so far on natty, though, not maverick).
How I tried:

1. created new 'priv' network in libvirt:
 cd /etc/libvirt/qemu/networks
 cat > priv.xml << EOF
 <network>
   <name>priv</name>
   <bridge name='virbr%d' stp='on' delay='0' />
   <ip address='192.168.123.1' netmask='255.255.255.0'>
   </ip>
 </network>
 EOF
 virsh net-create priv.xml
2. restart libvirt
3. create two virtual machines, one a dhcp server, one a dhcp client
4. set up the dhcp server:
 cat >> /etc/dhcp3/dhcpd.conf << EOF
 subnet 192.168.123.0 netmask 255.255.255.0 {
   range 192.168.123.20 192.168.123.20;
 }
 EOF
 /etc/init.d/dhcp-server start

Then, running dhclient3 on the client VM gets an ip address from
the dhcp server.

I'll try to reproduce these same steps using plain qemu on a
maverick VM.