I have a MaaS server, it has two network interfaces. One external eth0, and one for the internal network eth1(Nodes network). eth1 is where the DNS and dhcp server managed interface. I want a mix of physical servers, and one KVM VM run on the MaaS server. I manage to create VM's to PXE Boot, and created a bridge br01 bridged with the eth1 interface.
auto br0
iface br0 inet dhcp
bridge_ports eth1
bridge_stp off
bridge_fd 0
bridge_maxwait 0
And that bridge is associated with the VM's network.
Now this works if created on an external server connected to the eth1 network(tried earlier as proof of concept).
But what I want is to move this KVM setup over to the MaaS Server itself(to free up a physical server as Node), and then this network configuration is not working.
The network part of the VM's xml file:
<interface type='bridge'>
<mac address='52:54:00:3c:a5:18'/>
<source bridge='br0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
I created the VM using:
sudo virt-install --name=bootstrap-juju --ram=2048 --vcpus=1
--disk path=/var/kvm/images/bootstrap-juju.qcow2,bus=virtio,size=20
--pxe --graphics=vnc --hvm --network bridge=br0,model=virtio
--os-variant=ubuntuprecise
It seems that there is a problem with the bridge, when I sudo ifup br0
I get:
DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 3 (xid=0xcb27ff35)
No DHCPOFFERS received.
So it seems the bridge is not getting DHCP address from the internal dhcp server.
Does anyone have any pointers here?
/etc/libvirt/qemu/server_name.xml
. The interface should be defined as type=bridge and be set to using br0 as the source bridge. see also here and here. – Doug Smythies Jan 09 '16 at 16:26/etc/network.interfaces
file and the output fromifconfig
on the guest. – Doug Smythies Jan 09 '16 at 22:55/etc/network/interfaces
yesterday. Perhaps post both files for both the host and the guest. yoursudo ifup br0
command was done on the host right? On my host I getifup: interface br0 already configured
– Doug Smythies Jan 11 '16 at 15:31