Project

General

Profile

Actions

Bug #9903

closed

Image-based provisioning into Libvirt-resource uses "network" as first boot device for such VMs

Added by Konstantin Orekhov about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Compute resources - libvirt
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

During image-based provisioning into Libvirt compute-resource I found that newly created VM has "network" as first boot device, which is incorrect.

The possible suspect is missing "image_id" that is supposed to be passed and considered here:

https://github.com/theforeman/foreman/blob/develop/app/models/compute_resources/foreman/model/libvirt.rb#L112

Also, the QCOW image created during the same VM create operation does not have a backing image specified at all making such VM unbootable off that disk/image. Again, missing "image_id" may be at play, IMHO.

Actions #1

Updated by Konstantin Orekhov about 9 years ago

  • Status changed from New to Closed

False alarm, this is not a bug. My KVM HV had isues with apparmor settings. After running these commands, image-based VM provisioning through UI works as expected. API call needs to be reviewed and fixed as it apparently does something else wrong.

$ sudo apt-get install apparmor-profiles apparmor-utils
$ sudo aa-complain /usr/lib/libvirt/virt-aa-helper

Thanks!

Actions

Also available in: Atom PDF