ubuntu 13.10 kvm binary is deprecated, please use qemu-system-x86_64
Solution 1
It's apparently a problem with virsh. Just try and start the virtual machine using directly the command that's advised in the error message, like this
sudo qemu-system-x86_64 -hda [wherever your created virtual disk is]
It's apparently a bug in virt-manager that has not been fixed yet. This user found the solution by changing the XML definition of the VM.
Solution 2
For reference to other people in need that maybe don't edit domain definition every day.
The problem is just as in the error message: the executable of the emulator has changed, so the definition file of the VM must be updated.
- from a command shell and as root or a user that can use the libvirt system, start
virsh
list --all
- check the correct domain name of your VM, let's say it's
vm_name
edit vm_name
- search for the tag
<emulator>/usr/bin/kvm</emulator>
- replace it with
<emulator>/usr/bin/qemu-system-x86_64</emulator>
- save the file
start vm_name
Please note that depending on the age of the VM definition and the system under which it was created, the old emulator executable could be different than simplu kvm, but replace it anyway :-)
In addition: other that this I had another problem: some VM disk image files had the wrong permissions, like root:root or root:kvm. It seems that as of 13.10 in January 2014, they should be libvirt-qemu:kvm
王子1986
Updated on September 18, 2022Comments
-
王子1986 over 1 year
I just upgrade from 13.04 to 13.10 and I have this issue when I run my KVM
Unable to complete install: 'internal error: process exited while connecting to monitor: W: kvm binary is deprecated, please use qemu-system-x86_64 instead char device redirected to /dev/pts/10 (label charserial0) failed to initialize KVM: Device or resource busy
Detail Error:
Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 1983, in do_install guest.start_install(False, meter=meter) File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1246, in start_install noboot) File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1314, in _create_guest dom = self.conn.createLinux(start_xml or final_xml, 0) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2892, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirtError: internal error: process exited while connecting to monitor: W: kvm binary is deprecated, please use qemu-system-x86_64 instead char device redirected to /dev/pts/8 (label charserial0) failed to initialize KVM: Device or resource busy
-
Edgar Klerks over 10 yearsHave you tried running it with sudo? On my machine it is a privilege problem.
-
王子1986 over 10 yearsStill the same error Unable to complete install: 'internal error: process exited while connecting to monitor: W: kvm binary is deprecated, please use qemu-system-x86_64 instead char device redirected to /dev/pts/9 (label charserial0) failed to initialize KVM: Device or resource busy
-
Edgar Klerks over 10 yearsI have that same error sometimes. It happens also if I have a virtualbox instance running, those two are incompatible. Thee error message is coming from
/usr/bin/kvm
(take a look into it with cat), so it seems kvm used a binary before, but now it doesn't. Did you load the kernel module? If I do alsmod | grep kvm
, I see kvm and kvm_intel. If they are not there you should build them. -
王子1986 over 10 yearsHi Edgar You are right about this. I can see kvm and kvm_intel. And how should I solve this?
-
Edgar Klerks over 10 yearsIf you see them, it should be ok. Maybe your image is not in the correct directory? On my system it is a bit sensitive. Try this answer: stackoverflow.com/questions/6307950/virt-install-error. If that doesn't work, it would be helpful if you put the whole log in a pastebin.
-
Edgar Klerks over 10 yearsAnd can you try disable apparmor temporaly.
service apparmor teardown
, it caused problems with my virtual machines. -
王子1986 over 10 yearsHi Edgar, it doesn't work for me. How to enable apparmor again?
-
Edgar Klerks over 10 years
sudo service apparmor start
would do the trick. I am sorry, but I am out of options, there is something strange into your setup I didn't have. I gave a bad advice there, I should have said, that you run an application in complain modeaa-complain virt-manager
. You didn't have to stop apparmor completely.
-
-
王子1986 over 10 yearsAny solution to fix this issue instead of using command to start?