Ubuntu 20.04 upgrade leaves Cloudmin VMs unbootable

SYSTEM INFORMATION
OS type and version Ubuntu 20.04
Webmin version 2.013
Cloudmin version 9.7.kvm

Hello, I did a big upgrade of an old server running Ubuntu 14.04 tonight. I used do-release-upgrade to upgrade 14.04 → 16.04 → 18.04 and everything continued to work, but when I upgraded to Ubuntu 20.04 my VMs no longer booted.

System State → Boot Messages says

qemu-system-x86_64: -usbdevice tablet: ‘-usbdevice’ is deprecated, please use ‘-
device usb-…’ instead
qemu-system-x86_64: -monitor tcp:127.0.0.1:40003,server: info: QEMU waiting for connection on: disconnected:tcp:127.0.0.1:40003,server
WARNING: Image format was not specified for ‘/dev/vg0/REDACTED_img’ and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the ‘raw’ format explicitly to remove the restrictions.
WARNING: Image format was not specified for ‘/dev/vg0/REDACTED_swap’ and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the ‘raw’ format explicitly to remove the restrictions.
qemu-system-x86_64: Invalid parameter ‘vlan’

I was able to get my critical VMs back online by creating temporary start scripts by pulling command lines from /etc/init.d/cloudmin-kvm and deleting ‘vlan=0’ and ‘-usbdevice tablet’, and adding format=raw to the -disk clauses, but Cloudmin seems to overwrite changes in cloudmin-kvm.

Is there a setting that gets Cloudmin to use a format compatible with the new version of QEMU (QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.24))

Original command line

(sleep 30 ; test -d /sys/fs/cgroup/cpu || sleep 20 ; cgcreate -g cpu:1419244925120990 ; exec cgexec -g cpu:1419244925120990 ionice -n0 /usr/bin/kvm -name REDACTED -m 2048 -drive file=/dev/vg0/REDACTED_swap,if=ide,index=1,media=disk,cache=writethrough -drive file=/dev/vg0/REDACTED_img,if=ide,index=0,media=disk,cache=writethrough -boot d -net tap,script=/kvm/REDACTED-eth0.sh -net nic,vlan=0,macaddr=02:54:00:17:46:5D,model=virtio -vnc :6,password,websocket=5706 -usbdevice tablet -monitor tcp:127.0.0.1:40002,server -k fi -smp 1) >/kvm/REDACTED.console 2>&1 </dev/null & sleep 3 ; /usr/bin/nc.pl --sleep 3 127.0.0.1 40002 </kvm/REDACTED.monitor >>/kvm/REDACTED.console 2>&1

Working command line:

(sleep 30 ; test -d /sys/fs/cgroup/cpu || sleep 20 ; cgcreate -g cpu:1419244925120990 ; exec cgexec -g cpu:1419244925120990 ionice -n0 /usr/bin/kvm -name REDACTED -m 2048 -drive file=/dev/vg0/REDACTED_swap,if=ide,index=1,media=disk,cache=writethrough,format=raw -drive file=/dev/vg0/REDACTED_img,if=ide,index=0,media=disk,cache=writethrough,format=raw -boot d -net tap,script=/kvm/REDACTED-eth0.sh -net nic,macaddr=02:54:00:17:46:5D,model=virtio -vnc :6,password,websocket=5706 -monitor tcp:127.0.0.1:40002,server -k fi -smp 1) >/kvm/REDACTED.console 2>&1 </dev/null & sleep 3 ; /usr/bin/nc.pl --sleep 3 127.0.0.1 40002 </kvm/REDACTED.monitor >>/kvm/REDACTED.console 2>&1

@jsoderba,

If you mean that after you upgraded the “Host”, then the reason is likely because Cloudmin doesn’t yet support Ubuntu 20.04 I believe…

You can use newer version of Ubuntu as a “Guest” but only supported versions as the “Host”.

I think the latest version supported is presently 18.04 LTS

Damn it. I guess migrating the VMs to my libvirt host just went to the top of the TODO list.

Cloudmin has been kinda neglected for a while, unfortunately, and we haven’t done any testing on newer distros. I’m in the midst of an overhaul of the installer, and we’re simplifying the product (removing a bunch of virtualization types, etc. so we can focus on the ones people actually use: KVM and Xen).

But, that doesn’t help you in the immediate future. It’ll be at least a couple weeks before the new installer is in beta and we have a chance to start testing on newer distros and kernels.

But, I’ll ask @Jamie to chime in here, as it seems like this might be a somewhat easy fix.

What you will need to do is determine the Cloudmin assigned ID (such as 142344523544) of the virtual server and modify the corresponding 142344523544.serv file found in /etc/webmin/servers (remove the deprecated attributes).

If you’ve issues with the network (such as the bridge name not being detected correctly), then the network config is loaded from the /kvm/server-eth0.sh file

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.