LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-17-2016, 02:23 PM   #1
red king
LQ Newbie
 
Registered: Jul 2016
Posts: 23

Rep: Reputation: Disabled
KVM error, wont let me create VMs. Please help


Hi

I keep getting this error when I try to create a vm:

Unable to complete install: 'internal error: Process exited prior to exec: libvirt: error : unable to set AppArmor profile 'libvirt-af3e3440-f515-445f-a864-9ad589bdee2b' for '/usr/bin/kvm-spice': No such file or directory'

I am running Ubuntu 16.04 on my desktop computer and I decided setup KVM to play around with GPU passthrough. I didnt get very far.. When I create a VM I use virt-manager, and I am not doing anything special. I followed the same steps as I did on my Ubuntu Server 16.04 witch works perfectly :/ I also tried just reinstalling the Ubuntu OS to try and do everything from scratch just in case it was something wierd I had done, but I ended up with the same result..

Any1 have experience with this issue?
 
Old 07-18-2016, 05:58 AM   #2
red king
LQ Newbie
 
Registered: Jul 2016
Posts: 23

Original Poster
Rep: Reputation: Disabled
to update the issue, I found this post: http://askubuntu.com/questions/76292...wont-configure It seemed like a very similar issue, so I tried to follow this steps from a clean install:

1. sudo systemctl stop apparmor.service
2. sudo apt-get -f install qemu-kvm libvirt-bin virtinst bridge-utils virt-manager
3. sudo systemctl start apparmor.service

This made no difference :/

I then tried to start from scratch with Ubuntu 14.04, but I ended up with the same results.

I then in complete desperation mode tried to do the same with a linux Mint 18. And for some weird reason, things started to look a bit different. I still got an error when trying to add a new VM in virt-manager, but this time it was just some weird error saying something about me not beeing able to add "raw" disk images without the "qemu-img" packege witch didnt seem to exist, and also the disk I was trying to add wasnt a raw file so it seems it was the CDrom it refused to add...

Anyways, in this case it was enough to simply copy over an existing disk image, and importing it via virt-manager so I didnt have to add a CDrom when creating the VM, and then adding it after with "virsh edit". So I atleast got what I wanted now, as I will only be needing the one VM on this computer :P

I cant shake the feeling that this issue is related to my hardware somehow, but I have no idea how to figure out if I am correct or not. But the setup when trying to do this with ubuntu is no different then what is running on my server.. The only differences I can think of is that the server has Ubuntu server 16.04 with Xubuntu desktop while this computer had Ubuntu Desktop 16.04, and the hardware offcourse..


Command: egrep -c '(vmx|svm)' /proc/cpuinfo
Result : 4
Command: kvm-ok
result : INFO: /dev/kvm exists
KVM acceleration can be used

any help in pointing me in the right direction in figuring out what is wrong/what I am doing wrong here is very much appreciated! thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM connecting VMs (same network) blackRonin Linux - Virtualization and Cloud 3 12-19-2014 04:46 PM
thumbrule for KVM virtualization - How Many VMs? austinium Linux - Server 4 10-26-2013 04:01 PM
How would you rate KVM, compared to other VMs? walterbyrd Linux - Virtualization and Cloud 5 07-03-2013 06:01 PM
kvm based VMs inside centos 6.4 not getting IP address jagdip Linux - Networking 8 05-05-2013 05:42 PM
Any way to access old VMs after reinstalling KVM? shadowbox12 Linux - Virtualization and Cloud 3 03-19-2010 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration