theforeman / foreman_fog_proxmox

Foreman plugin to add Proxmox compute resource based on fog-proxmox gem
GNU General Public License v3.0
106 stars 31 forks source link

VM created with foreman_fog_proxmox is not booting from hard disk #180

Closed l00d3r closed 3 years ago

l00d3r commented 3 years ago

Describe the bug When creating a new VM using boot order value of "cdn" the machine builds correctly but will not complete as it is unable to boot after the first restart after build due to no disk marked as bootable during creation.

To Reproduce Create a new VM using foreman_fog_proxmox with Boot device order set to cdn and see boot order in proxmox, the disk is marked as not enabled for boot order

Expected behavior VM is built and able to start after installation

Screenshots If applicable, add screenshots to help explain your problem.

Additional context I think this is related to proxmox api changes to qemu config boot options as in API viewer it states "Specify guest boot order. Use with 'order=', usage with no key or 'legacy=' is deprecated."

Workaround is using order=scsi0;ide2;net0 in compute profiles -> profile -> select Main options -> boot device order

I think the default option and tooltip should be changed to reflect the correct value.

Using Foreman 2.3.1, foreman_fog_proxmox 0.12.4, proxmox VE 6.3-3