Virt-manager taking ownership of ISOs

Bug #1902576 reported by Nicolas Damgaard Larsen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

When installing a guest system from an ISO, virt-manager/libvirt takes ownership of the ISO. After install is done, the permissions are not restored.

$ ls -l Downloads/ubuntu-20.04.1-desktop-amd64.iso
-rw-rw-r-- 1 libvirt-qemu kvm 2785017856 Nov 1 10:28 Downloads/ubuntu-20.04.1-desktop-amd64.iso

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

$ apt-cache policy libvirt0
libvirt0:
  Installed: 6.0.0-0ubuntu8.4
  Candidate: 6.0.0-0ubuntu8.4
  Version table:
 *** 6.0.0-0ubuntu8.4 500
        500 http://dk.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     6.0.0-0ubuntu8.3 500
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
     6.0.0-0ubuntu8 500
        500 http://dk.archive.ubuntu.com/ubuntu focal/main amd64 Packages

$ apt-cache policy virt-manager
virt-manager:
  Installed: 1:2.2.1-3ubuntu2.1
  Candidate: 1:2.2.1-3ubuntu2.1
  Version table:
 *** 1:2.2.1-3ubuntu2.1 500
        500 http://dk.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
        500 http://dk.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages
        100 /var/lib/dpkg/status
     1:2.2.1-3ubuntu2 500
        500 http://dk.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://dk.archive.ubuntu.com/ubuntu focal/universe i386 Packages

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: virt-manager 1:2.2.1-3ubuntu2.1
ProcVersionSignature: Ubuntu 5.4.0-52.57-generic 5.4.65
Uname: Linux 5.4.0-52-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.10
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Mon Nov 2 20:07:24 2020
InstallationDate: Installed on 2020-05-09 (177 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitecture: all
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Nicolas Damgaard Larsen (ndl101) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Nicolas,
I think I recognize that behavior and it should actually be fixed by this libvirt upload:
https://launchpad.net/ubuntu/+source/libvirt/6.0.0-0ubuntu8.2
See bug 691590 for more details on it.

You have that in place (...8.4 is reported) so I wonder what else might be missing for you.
The underlying FS has to be able to store xattr data, might I ask which filesystem it is that your ISO is on and if you might have any special options for xattr in your mount for it?

Revision history for this message
Nicolas Damgaard Larsen (ndl101) wrote :

Hi.

I appreciate your reply.
Yes, I am aware of https://bugs.launchpad.net/bugs/691590 which is why I am a little baffled as well. The ISO is located on my home partition. The filesystem was created by the ubuntu installer during a fresh 20.04 minimal install.

cat /etc/fstab | grep home
UUID=a03b8bb4-85f7-436e-afd2-8ab03b04bc66 /home ext4 defaults 0 2

mount | grep home
/dev/sdb2 on /home type ext4 (rw,relatime)

While I noticed that the package xattr is not installed. Should it be?.

apt-cache policy xattr
xattr:
  Installed: (none)
  Candidate: 0.9.6-1.1
  Version table:
     0.9.6-1.1 500
        500 http://dk.archive.ubuntu.com/ubuntu focal/universe amd64 Packages

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.