[Bug 1886967] Re: Can't install Ubuntu 20.04 from a mirror using libvirt
Peter Muryshkin
1886967 at bugs.launchpad.net
Thu Jul 9 14:52:25 UTC 2020
** Attachment added: "DeepinScreenshot_select-area_20200707233029.png"
https://bugs.launchpad.net/ubuntu/+source/base-installer/+bug/1886967/+attachment/5391052/+files/DeepinScreenshot_select-area_20200707233029.png
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to base-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1886967
Title:
Can't install Ubuntu 20.04 from a mirror using libvirt
Status in base-installer package in Ubuntu:
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-installer/+bug/1886967/+subscriptions
More information about the foundations-bugs
mailing list