[CentOS] CentOS Stream 9 virt-install via loop-mounted ISO fails

Tue Jan 17 20:45:13 UTC 2023
Leon Fauster <leonfauster at googlemail.com>

Am 17.01.23 um 17:34 schrieb Jos Vos:
> Hi,
> 
> I've loop-mounted the latest CentOS Stream 9 DVD ISO and try to do
> a virt-install (2.0.x for some reason) as non-root user (libvirt
> group member) using --location with the mount path, but then I
> come across the problem decribed here:
> 
>    https://bugzilla.redhat.com/show_bug.cgi?id=2022630
> 
> That is, I see on the console "Starting dracut initqueue hook...",
> then it stalls for a while, and then I get all the timeouts
> described in the bug report.
> 
> Any suggestions for a workaround (with virt-install 2.0.x and
> as non-root user)?
> 
> Background:
> Dor some reason I need to use virt-install 2.0.x as non-root to
> install CentOS Stream 9.  The "normal" way, specifying a URL
> with --location, does not work because it fails with permission
> denied for losetup.  It looks like virt-install 3.2.x does not
> have this problem anymore.


Does the same happen when using the ISO file directly as location 
argument?

  -l /.../CentOS.iso

--
Leon