← Back to team overview

touch-packages team mailing list archive

[Bug 1483071] Re: Error creating new VM with OVMF

 

This is a problem with virt-aa-helper.c. Basically, in valid_path()
this:

    /* override the above with these */
    const char * const override[] = {
        "/sys/devices/pci",              /* for hostdev pci devices */
        "/etc/libvirt-sandbox/services/" /* for virt-sandbox service config */
    };

should be changed to:
    /* override the above with these */
    const char * const override[] = {
        "/sys/devices/pci",              /* for hostdev pci devices */
        "/etc/libvirt-sandbox/services/", /* for virt-sandbox service config */
        "/usr/share/ovmf/" /* for OVMF images */
    };

See https://lists.ubuntu.com/archives/apparmor/2015-August/008466.html
for details.

** Also affects: libvirt (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: apparmor (Ubuntu)

** No longer affects: virt-manager (Ubuntu)

** Tags added: apparmor

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1483071

Title:
  Error creating new VM with OVMF

Status in libvirt package in Ubuntu:
  New

Bug description:
  When I'm trying to create new VM through virt-manager with OVMF
  firmware instead of BIOS an error appears:

  Failed to complete an installation: «internal error: cannot load
  AppArmor profile «libvirt-0dc7297d-a474-47ed-88b0-026f1d6ae2a4»»

  Traceback (most recent call last):
    File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
      callback(asyncjob, *args, **kwargs)
    File "/usr/share/virt-manager/virtManager/create.py", line 1873, in do_install
      guest.start_install(meter=meter)
    File "/usr/share/virt-manager/virtinst/guest.py", line 414, in start_install
      noboot)
    File "/usr/share/virt-manager/virtinst/guest.py", line 478, in _create_guest
      dom = self.conn.createLinux(start_xml or final_xml, 0)
    File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3497, in createLinux
      if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
  libvirtError: internal error: cannot load AppArmor profile «libvirt-0dc7297d-a474-47ed-88b0-026f1d6ae2a4»

  There is an appropriate lines at the end of /etc/libvirt/qemu.conf:

  nvram = [ "/usr/share/OVMF/OVMF_CODE-pure-efi.fd:/usr/share/OVMF/OVMF_VARS-pure-efi.fd",
            "/usr/share/OVMF/OVMF_CODE-with-csm.fd:/usr/share/OVMF/OVMF_VARS-with-csm.fd" ]

  Surely those files are present in /usr/share/OVMF/.

  Kbuntu 15.10 Wily
  Linux 4.2RC6 x86_64
  virt-manager 1.2.1
  libvirt 1.2.16
  qemu 2.3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1483071/+subscriptions


References