Bug 2318414

Summary: Cloned Debian VM does not start
Product: [Fedora] Fedora Reporter: Joachim Katzer <jokatzer>
Component: gnome-boxesAssignee: Christophe Fergeau <cfergeau>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: awilliam, cfergeau, feborges, gnome-sig, marcandre.lureau, suraj.ghimire7
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joachim Katzer 2024-10-13 15:21:34 UTC
After creating a clone of VM (Debian-12), the clone does not start because it can't mount its virtual hard disks.

The original VM has a virtio device: 
  <target dev="vda" bus="virtio"/>
  <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>

But the clone gets mistakenly a SATA device:
  <target dev="sda" bus="sata"/>
  <address type="drive" controller="0" bus="0" target="0" unit="0"/>

In Debian the system partition is configured as: /dev/vda5 /mnt/btr_pool ...

Reproducible: Sometimes

Steps to Reproduce:
1. Clone a VM (in GNOME-Boxes)
2. Select the clone and start it
3. Check if it is starting
Actual Results:  
A Debian-12 clone does not start, because of the different device configuration.
A Fedora Silverblue clone does start despite of the different device configuration.

Expected Results:  
A clone of a VM should have the same device configuration as the original and should boot without errors (provided the original could do it).

Comment 1 Joachim Katzer 2024-10-13 15:24:01 UTC
Host System is: Fedora 41 Beta Silverblue with layered packages boxes and virt-manager.

Comment 2 Adam Williamson 2024-10-14 15:52:33 UTC
Thanks for the report! Since GNOME devs tend to prefer upstream tickets, I've filed https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/1108 for you - if you could look out for any follow up there it'd be great.