internal error: Process exited prior to exec: libvirt

Bug #1680050 reported by APolihron
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

System: Host: apolitech-desktop Kernel: 4.10.0-15-generic x86_64 (64 bit gcc: 6.3.0)
           Desktop: MATE 1.18.0 (Gtk 3.22.11-0ubuntu2) info: mate-panel dm: lightdm
           Distro: Ubuntu Zesty Zapus (development branch)
Machine: Device: desktop Mobo: ASRock model: A88M-G/3.1 UEFI: American Megatrends v: P1.40 date: 05/05/2016
CPU: Quad core AMD Athlon X4 845 (-MCP-) cache: 4096 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 27950
           clock speeds: min/max: 1800/3500 MHz 1: 2400 MHz 2: 3500 MHz 3: 3500 MHz 4: 2400 MHz
Memory: Using dmidecode: you must be root to run dmidecode
Graphics: Card: Advanced Micro Devices [AMD/ATI] Baffin [Radeon RX 460]
           bus-ID: 03:00.0 chip-ID: 1002:67ef
           Display Server: X.Org 1.19.3 drivers: ati,amdgpu (unloaded: modesetting,fbdev,vesa,radeon)
           Resolution: 1920x1080@60.00hz, 1366x768@59.79hz
           GLX Renderer: Gallium 0.4 on AMD POLARIS11 (DRM 3.9.0 / 4.10.0-15-generic, LLVM 4.0.0)

---------------------------------------Error-------------------------------------------------
Unable to complete install: 'internal error: Process exited prior to exec: libvirt: error : unable to set AppArmor profile 'libvirt-4d4a0368-d268-470a-955f-a29b979a67e4' for '/usr/bin/kvm-spice': No such file or directory'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 2277, in _do_async_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 501, in start_install
    noboot)
  File "/usr/share/virt-manager/virtinst/guest.py", line 416, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3491, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error: Process exited prior to exec: libvirt: error : unable to set AppArmor profile 'libvirt-4d4a0368-d268-470a-955f-a29b979a67e4' for '/usr/bin/kvm-spice': No such file or directory

Revision history for this message
APolihron (apolitech) wrote :
Revision history for this message
APolihron (apolitech) wrote :
Revision history for this message
APolihron (apolitech) wrote :
Revision history for this message
APolihron (apolitech) wrote :
Revision history for this message
APolihron (apolitech) wrote :
summary: - nternal error: Process exited prior to exec: libvirt
+ internal error: Process exited prior to exec: libvirt
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Apolihron,
thank you for your report and you help to make Ubuntu better.

I see you are running virt-manager which calls into ther libvirt python bindings and then fails.

To understand what versions you really have around I'd ask you to report:
$ dpkg -S /usr/bin/kvm-spice
$ dpkd -S /usr/share/virt-manager/virtManager/asyncjob.py
$ dpkg -S /usr/lib/python2.7/dist-packages/libvirt.py
$ dpkg -l python-libvirt qemu-kvm virt-manager

The apparmor profile is generated when starting a guest and set in place for it.
But I wonder if that might just be something like an guest xml from another system and not all the required files around. The checks above will help.

Could you share the guest xml of the guest that is causing this?
If you don't have it you can get it with
$ virsh dumpxml <guestname>

Also where is the "Unable to complete install" coming from?
what is the actual command you were running so that one can try to reproduce?

Changed in qemu (Ubuntu):
status: New → Incomplete
Revision history for this message
APolihron (apolitech) wrote :

i get this error when trying to create a new vm for a new install of windows 10

dpkg -S /usr/bin/kvm-spice
qemu-kvm: /usr/bin/kvm-spice

dpkg -l python-libvirt qemu-kvm virt-manager
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii python-libvirt 3.0.0-2 amd64 libvirt Python bindings
ii qemu-kvm 1:2.8+dfsg-3 amd64 QEMU Full virtualization
ii virt-manager 1:1.3.2-3ubu all desktop application for managing

dpkd -S /usr/share/virt-manager/virtManager/asyncjob.py
No command 'dpkd' found, did you mean:
 Command 'dpid' from package 'dillo' (universe)
 Command 'dpkg' from package 'dpkg' (main)
dpkd: command not found

dpkg -S /usr/lib/python2.7/dist-packages/libvirt.py
python-libvirt: /usr/lib/python2.7/dist-packages/libvirt.py

Revision history for this message
APolihron (apolitech) wrote :

dpkg -S /usr/share/virt-manager/virtManager/asyncjob.py
virt-manager: /usr/share/virt-manager/virtManager/asyncjob.py

Revision history for this message
APolihron (apolitech) wrote :

P.S the os is a fresh install!

Revision history for this message
APolihron (apolitech) wrote :

find the problem. and from what i see it's a know one
Workaround-

1. Change the name of the file to a very simple one( windows.iso, ubuntu.iso)
2. Make sure the path of the iso contains no directory name with spaces.
3. It works :)

Revision history for this message
Joshua Powers (powersj) wrote :

@apolitech thanks for following up on your solution! Given the error was:
'No such file or directory'
It makes me think that the path to the file was not escaped properly.

Spaces in names can at times not be handled well, if you have time still and are willing trying to escape the space in the name might be worth trying, but it is generally advisable to avoid spaces by not having them or using '_' or '-'.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for qemu (Ubuntu) because there has been no activity for 60 days.]

Changed in qemu (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.