W: kvm binary is deprecated, please use qemu-system-x86_64 instead

OS: Ubuntu 13.04 Cloudmin: 7.2.kvm Webmin: 1.650

For some time now, I cannot start virtual machines using cloudmin, all failing with the above message - perhaps after upgrading from Ubuntu 12.04.

When I look for the command which cloudmin is using ps ax, I get e.g. this:

qemu-system-x86_64 -machine accel=kvm:tcg -name updatetest.localhost -m 1024 -drive file=/dev/volg2/updatetest_localhost_img,media=disk,index=0,if=virtio -boot c -net tap,vlan=0,script=/kvm/updatetest.localhost-eth0.sh -net nic,vlan=0,macaddr=02:54:00:XX:XX:XX,model=virtio -vnc :2,password -usbdevice tablet -k de -usbdevice tablet

Starting it manually (without -monitor and -vnc options), the machine works as expected.

So, how can I - tell cloudmin to use qemu-system-x86_64 instead of kvm command, or

  • tell cloudmin to ignore the deprecated message so it lets the vm start

    /usr/bin/kvm looks like this:

! /bin/sh

echo "W: kvm binary is deprecated, please use qemu-system-x86_64 instead" >&2 exec qemu-system-x86_64 -machine accel=kvm:tcg "$@"

Best regards and thanx in advance Falko

Status: 
Closed (fixed)

Comments

Thanks - I will have Cloudmin use this command in the next release.

Automatically closed -- issue fixed for 2 weeks with no activity.

Hello Jamie,

thanx for your efforts - just got new webmin-server-manager release "7.3gpl" installed.

And .... no virtual machine is recognized as "running" any more.

Now I've found the line there this can be corrected - IMHO the term "qemu-system-x86_64" must be added there:

/usr/share/webmin/server-manager/kvm-type-lib.pl around line 6636:

while($cmd =~ s/(\d)(<|>)((\/\S+)|&\d+)\s$//) { }

if ($line =~ /^\s(\S+\/|)(qemu-kvm|kvm|qemu|qemu-system-x86_64)\s+(.)/) {

    # Found a possible KVM line .. parse the args 

Best regards Falko

Thanks for catching that - I will include this fix in the next Cloudmin release.

Automatically closed -- issue fixed for 2 weeks with no activity.