GNOME Boxes Won't Allow Me To Create a VM

Bug #2016324 reported by Dylan Taylor
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-boxes (Ubuntu)
Fix Released
High
Unassigned
Lunar
Fix Released
High
Unassigned

Bug Description

Impact
======
GNOME Boxes does not allow creating a new VM when installed on a clean Ubuntu 23.04 system because it is missing a required dependency.

Test Case
=========
1. From Ubuntu 23.04, install GNOME Boxes
2. Open GNOME Boxes
3. Click the + button to create a new box using an existing downloaded ISO or let it download one for you.
4. The New Virtual Machine dialog will display (after it finishes downloading the ISO if needed)
5. The Create button should be active
6. Click the Create button and Boxes should start a virtual machine and boot that ISO

What Happens Instead
====================
Without this fix, the Create button is always disabled.

What Could Go Wrong
===================
This change just adds
Depends: libvirt-clients
to the gnome-boxes packaging.

The similar but less simple app virt-manager already pulls in libvirt-clients. (virt-manager Recommends libvirt-daemon-system which Depensd on libvirt-clients).

libvirt-clients provides /usr/bin/virsh which GNOME Boxes needs. libvirt-clients also provides a few other virtualization CLI utilities which are not needed but also aren't a problem to be included.

Original Bug Report
===================
I am on the Ubuntu 23.04 beta running GNOME Boxes 44. When I try to create a VM, the button that usually lets me proceed after choosing an OS and the VM options is disabled. This message is printed to the console.

Failed to execute child process “virsh” (No such file or directory)

Please let me know if there is something I'm doing wrong.

Tags: lunar
Revision history for this message
Dylan Taylor (dylanmtaylor) wrote :

Installing libvirt-clients fixes this issue. This should be made to be a dependency of gnome-boxes for lunar.

Jeremy Bícha (jbicha)
Changed in gnome-boxes (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gnome-boxes (Ubuntu):
status: New → Confirmed
Jeremy Bícha (jbicha)
description: updated
Changed in gnome-boxes (Ubuntu):
status: Confirmed → In Progress
tags: added: lunar
Jeremy Bícha (jbicha)
Changed in gnome-boxes (Ubuntu Lunar):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-boxes - 44.1-1ubuntu3

---------------
gnome-boxes (44.1-1ubuntu3) lunar; urgency=medium

  * Cherry-pick patch to fix Edit Configuration feature (LP: #2016896)
  * Depend on libvirt-clients to fix inability to create virtual machines
    (LP: #2016324)

 -- Jeremy Bicha <email address hidden> Tue, 18 Apr 2023 10:26:21 -0400

Changed in gnome-boxes (Ubuntu Lunar):
status: Fix Committed → Fix Released
Revision history for this message
Daniel (tulpina) wrote :

Was not fixes even in 44.1-1ubuntu3

apt list gnome-boxes
Listing... Terminat
gnome-boxes/lunar,now 44.1-1ubuntu3 amd64 [installed]

Boxes-Message: 16:56:03.325: libvirt-machine.vala:290: Failed to connection to system libvirt: Unable to open qemu+unix:///system: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory

Lunar was upgraded from previous install

Revision history for this message
Hopscotch Willie (hopscotch-willie) wrote (last edit ):

I can confirm that the problem still occurs with gnome-boxes 44.1-1ubuntu3 amd64.

The console prints
Boxes-WARNING **: 22:36:50.780: util-app.vala:442: Failed to execute: virsh capabilities

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Please open a new bug. Comments on fixed bugs often are not seen.

https://help.ubuntu.com/community/ReportingBugs

To file the bug, you can open a terminal and run
ubuntu-bug gnome-boxes

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.