uvt-kvm fails to create armhf VM

Bug #1956366 reported by Andrea Righi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
uvtool
Fix Committed
Undecided
Unassigned
Ubuntu
Confirmed
Undecided
Unassigned
Impish
Won't Fix
Undecided
Unassigned
Jammy
Confirmed
Undecided
Unassigned

Bug Description

[Impact]

uvt-kvm is always failing to create armhf VMs.

[Test case]

$ uvt-simplestreams-libvirt --verbose sync --source http://cloud-images.ubuntu.com/daily release=jammy arch=armhf
$ uvt-kvm create --guest-arch armhf --cpu 4 --memory 4096 --disk 32 mytestvm release=jammy arch=armhf

The VM can't be created and the last command returns the following error:

 uvt-kvm ps2 is not supported by this QEMU binary

[Fix]

The ps2 bus is not available on armhf, this is why qemu is complaining about it.

I fixed this manually by removing the following line from the armhf xml template (/usr/share/uvtool/libvirt/template-emu-armhf.xml):

 <input type='mouse' bus='ps2'/>

We should just remove this line from the default armhf libvirt template.

Tags: patch

Related branches

Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach seems to fix the problem for me.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
tags: added: patch
Sean Feole (sfeole)
Changed in uvtool:
status: New → Confirmed
Revision history for this message
Andrea Righi (arighi) wrote :

Fix also pushed here: https://git.launchpad.net/~arighi/uvtool (branch master)

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Andrea,
thanks for the bug and fix.

This worked in the past with older/other qemu binaries.
I double checked my memory on this, but it indeed works.

#1 Focal with qemu 4.2

ubuntu@node-horsea:~$ uvt-simplestreams-libvirt --verbose sync --source http://cloud-images.ubuntu.com/daily arch=armhf label=daily release=jammy
Adding: com.ubuntu.cloud.daily:server:22.04:armhf 20220104
ubuntu@node-horsea:~$ sudo uvt-kvm create --guest-arch armhf --memory 2048 --cpu 2 --password ubuntu j-armhf arch=armhf release=jammy label=daily
Warning: using --password from the command line is not secure and should be used for debugging only.
Warning: '/root/.ssh/id_rsa.pub' not found; instance will be started with no ssh access by default.
ubuntu@node-horsea:~$ virsh list
 Id Name State
-------------------------
 1 j-armhf running

#2 Focal with qemu 6.0 from server-backports

$ uvt-simplestreams-libvirt --verbose sync --source http://cloud-images.ubuntu.com/daily arch=armhf label=daily release=jammy
Adding: com.ubuntu.cloud.daily:server:22.04:armhf 20220104
Removing: com.ubuntu.cloud.daily:server:22.04:armhf 20211127
$ sudo uvt-kvm create --guest-arch armhf --memory 2048 --cpu 2 --password ubuntu j-armhf arch=armhf release=jammy label=daily
[sudo] password for paelzer:
Warning: using --password from the command line is not secure and should be used for debugging only.
$ virsh list
 Id Name State
-------------------------
 2 j-armhf running

#3 New jammy VM (qemu 6.0)

ubuntu@j:~$ uvt-simplestreams-libvirt --verbose sync --source http://cloud-images.ubuntu.com/daily arch=armhf label=daily release=jammy
Adding: com.ubuntu.cloud.daily:server:22.04:armhf 20220104
ubuntu@j:~$ sudo uvt-kvm create --guest-arch armhf --memory 256 --cpu 1 --password ubuntu j-armhf arch=armhf release=jammy label=daily
Warning: using --password from the command line is not secure and should be used for debugging only.
Warning: '/root/.ssh/id_rsa.pub' not found; instance will be started with no ssh access by default.
uvt-kvm: error: libvirt: unsupported configuration: ps2 is not supported by this QEMU binary

Ok, so it really is only relevant in the new Ubuntu releases (any my memory was not wrong).

I agree that we do not need the ps2 mouse there and probably can merge it as suggested (well, jammy first, then for impish - usual SRU flow).

Revision history for this message
Robie Basak (racb) wrote :

Committed to uvtool main (and renamed from master while I was there). Thanks!

Changed in uvtool:
status: Confirmed → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Ubuntu 21.10 (Impish Indri) has reached end of life, so this bug will not be fixed for that specific release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.