Can't install Ubuntu 20.04 from a mirror using libvirt

Bug #1886967 reported by Peter M.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
base-installer (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi there,

please consider the following setup.

On a CentOS 8.1, libvirt/virt-install v. 2.2.1 creates a VM. This VM gets than executed on VMWare Hypervisor.

Either with IDE/SCSI controllers we have problems to boot the machine.
We have discovered so far that with IDE controller if VM gets restarted, the boot is possible but we can't identify the problem source yet.

What is happening: with IDE controller, VM boots into initramfs screen.
Last message as can be seen in dmesg that /dev/sda1 is mounted, than the system gets stuck.

We use a CI/CD system and have reproduced this many times already.

Any ideas what could be wrong in our initialization script? We use same environment and similar method to install Ubuntu 18, so we think we need to change something to upgrade the scripts for Ubuntu 20.04 installer.

Command we use to launch the initial system looks like the following:

=======================

sudo virt-install --debug --wait -1 --force --noautoconsole --noreboot --graphics vnc,password=XXXXXXXXX --virt-type=kvm --hvm --disk=/var/lib/libvirt/images/ubuntu-20.04-20.04-focal-138776.qcow2,format=qcow2,size=10,bus=scsi --os-type=linux --memory 4096 --vcpus=2 --location installer-amd64 --network network=default --console pty,target_type=serial --initrd-inject config/20.04/preseed.cfg --initrd-inject config/20.04/ubuntu-sysprep.sh --name=ubuntu-20.04-20.04-focal-138776 --extra-args "autoinstall ds=nocloud-net;s=http://192.168.122.1/ubuntu/20.04/
===============

The resulting machine is then converted to VMWare Hypervisor format using qemu-img as the following:

```
sudo qemu-img convert -f qcow2 -O vmdk ${IMAGE_DIR}/${PRODUCT_ARTEFACT}.qcow2 ${IMAGE_DIR}/${PRODUCT_ARTEFACT}.vmdk

```

In the attachment, please find enclosed:
* screenshot with the initramfs error
* preseed scripts

Revision history for this message
Peter M. (jdoe666) wrote :
Revision history for this message
Peter M. (jdoe666) wrote :
Revision history for this message
Peter M. (jdoe666) wrote :
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.