I have a Baremetal With KVM and LXD Running, I have a MAAS LXC Container and added the BareMetal KVM as POD to it.
When I spawn a KVM using MAAS, I must manually adjust the network connection on the KVM in order for it to boot to the MAAS Network.
I connect to the VM using the UI
I go to the NIC
change network source to “specify shared device name”
type in the maas bridge
apply
force reset
then it pxe boots
The question is, on the KVM Service Settings, how do i setup the default network to be the MAAS one?
I’ve gone through these 3 blogs and haven’t figured this out yet.
so, looking at this, i’m not sure how to answer. there really isn’t a default network, the machine will pxe boot from any network connected to maas. what am i missing?
I created this drawing hopefully it will help visually understanding the topology.
LXC MAAS is running in host 1
KVM Pod 1 is in host 1
I am on MAAS, and I select KVM Pod 1 to spawn a KVM.
That KVM doesn’t default to the green network on the host called br.maas.
I have to go into UI Virt-Manager, select the new KVM, then manually type in the network bridge for it to PXE onto the MAAS.
My question is, how do I setup KVM to “default” to br.maas. I went through different combinations of creating a network group for Virsh and none of them worked for me.
The 2nd step is booting Bare Metals and setting them up as KVM Pods and configuring Virsh to select the br.maas interface for new KVMs on those. I think it will be the same setup for these as the first one.
This creates a bridge interface/subnet which allows the VMs to communicate with each other and with the host. The stp parameter is needed to allow PXE (the network boot solution MaaS uses) to work.
The below part creates an interface which is available in KVM for the VMs to use. It is a bridge interface to the subnet. The below commands replace the default KVM interface.