I used virsh commands to backup a Xubuntu 22.04 VM on an Ubuntu 20.04 machine and restore it on an Ubuntu 18.04 machine.
The VM starts up successfully, but after a few minutes of running apt
updates it hangs up in "Paused" state and after a forced shutdown will restart and "Pause" immediately.
Initially, I could not get it to start at all due to:
unsupported machine type 'pc-q35-4.2'
I was able to fix that with virsh edit
, changing this line ...
<os>
<type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
</os>
... to this ...
<os>
<type arch='x86_64' machine='q35'>hvm</type>
</os>
It is very likely to be a versions problem. The original host (20.04) has:
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.23)
The new host (18.04) has:
QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.40)
Questions
- could there be a different reason for the failure?
- is it possible to upgrade
QEMU 2.11.1
toQEMU 4.2.1
on an Ubuntu 18.04 machine? - is it possible to upgrade Virtual Manager from
1.5.1
to2.2.1
on an Ubuntu 18.04 machine? - what else would I need to upgrade?