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