Problem: Foreman provide incorrect network configuration for KVM in Static boot mode (without DHCP)
In my configuration i’ve tried to use IP assignment through “Internal DB” instead of DHCP + image based provisioning.
On my hypervisor i need to use bridged network on VMs
My libvirt network looks like:
# virsh net-dumpxml Bridged
<network connections='8'>
<name>Bridged</name>
<uuid>aef4c64f-1777-472a-83a2-077e6a52bf72</uuid>
<forward mode='bridge'/>
<bridge name='br0'/>
</network>
After Foreman provisioning my VM network looks like:
# cat /etc/libvirt/qemu/test-vm.xml | grep interface -A7
<interface type='network'>
<mac address='52:54:00:11:d4:8f'/>
<source network='Bridged'/>
<target dev=''/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
target dev
section set incorrectly and ip address
have not been provided
Expected outcome:
My expectation that Foreman would be able to assign IP to the KVM host and then be able to proceed with Finish template.
Example of healthy host (Created through prlctl virtuozzo provisioning):
# cat /etc/libvirt/qemu/working-vm.xml | grep interface -A7
<interface type='network'>
<mac address='00:1c:42:37:72:5d'/>
<source network='Bridged'/>
<ip address='10.93.0.50' family='ipv4' prefix='24'/>
<target dev='vme4237725d'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
Foreman and Proxy versions:
version 1.24.2
Distribution and version:
CentOS Linux release 7.7.1908 (Core)
Other relevant data:
It could be that this method is not supported or i miss-configured something, any help appreciated.
With best regards,
Dmitriy.