Provisioning Bridge-based VMs with libvirt/kvm

Hello,

Is it possible to provision VMs so they are attached to a Linux bridge?
We are running some core services (DHCP, DNS, LDAP) inside dedicated VMs
and we need them to be reachable from the network. Unless I'm missing
something, this is not easily achievable when they are natted and behind
dnsmasq.

Right now the deployment is done via puppet by means of a custom module
that makes use of virt-install, with the vms defined on the host Puppet
nodefile. When puppet is run, it creates the missing VMs. Being this non
scalable and sorta ugly I'd be happy to change approach, if necessary.

Thanks!

> Hello,
>
> Is it possible to provision VMs so they are attached to a Linux bridge?
>

Absolutely

We are running some core services (DHCP, DNS, LDAP) inside dedicated VMs
> and we need them to be reachable from the network. Unless I'm missing
> something, this is not easily achievable when they are natted and behind
> dnsmasq.
>

You are not missing anything :slight_smile:

> Right now the deployment is done via puppet by means of a custom module
> that makes use of virt-install, with the vms defined on the host Puppet
> nodefile. When puppet is run, it creates the missing VMs. Being this non
> scalable and sorta ugly I'd be happy to change approach, if necessary.
>

I do this myself here at home - I have a RaspberryPi that runs the house
infra (DNS/DHCP/TFTP) and a beefy libvirt host which runs a bridged network
for the guests. As you would expect, the VMs correctly boot and get PXE
from the RPi.

You do need to ensure that you specify the bridge name in the network
interface modal (on the Host new/edit page) but otherwise it should just
work as normal, from Foreman's perspective.

Greg

ยทยทยท On 25 October 2016 at 20:10, Alexander Rilik wrote: