This issue keeps cropping up. It shows itself in open-iscsi autopkg tests.
I think it might just be "really slow system". It seems the timeout is only
1 minute 30 seconds for the disk to appear, and in a happy run you
might see something very close:
[K[ [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk…-UEFI.device (1min 29s / 1min 32s)
[K[ [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for dev-disk…-UEFI.device (1min 30s / 1min 32s)
[K[[0;32m OK [0m] Found device VIRTUAL-DISK UEFI.
Mounting /boot/efi...
Success is being able to log in with 'ubuntu' and 'passw0rd'.
Failure as seen in the log is dropping into an emergency shell.
Once inside (this was successful) you'll see a mostly sane system.
Some things to note:
a.) tgt-boot-test boots without kvm enabled. This is because using
kvm with qemu in nested virt would cause system lockups. Its slower
but more reliable to go wtihout.
b.) under bug 1723183 I made overlayroot comment out the root filesystem
from the rendered /etc/fstab. That was because systemd got confused and
assumed that /media/root-ro had to be on top of /.
c.) you can enable or disable kvm by setting _USE_KVM=0 or _USE_KVM=1
in your environment.
This issue keeps cropping up. It shows itself in open-iscsi autopkg tests.
I think it might just be "really slow system". It seems the timeout is only
1 minute 30 seconds for the disk to appear, and in a happy run you
might see something very close:
[K[ [0;31m* [0;1;31m* [0m[0;31m* [0m] A start job is running for dev-disk… -UEFI.device (1min 29s / 1min 32s) [0;1;31m* [0m[0;31m* [0m] A start job is running for dev-disk… -UEFI.device (1min 30s / 1min 32s)
[K[ [0;31m*
[K[[0;32m OK [0m] Found device VIRTUAL-DISK UEFI.
Mounting /boot/efi...
--- /git.launchpad. net/~usd- import- team/ubuntu/ +source/ open-iscsi/ tree/debian/ tests/README- boot-test. md
There is information on the open-iscsi tests at [1].
[1] https:/
The tests set up an iscsi target and boot a kvm guest off that read-only root with overlayroot.
# get open-iscsi source
$ apt-get source open-iscsi
$ cd open-iscsi-2.0.874/
$ sudo apt-get install -qy simplestreams tgt qemu-system-x86 \ image-utils distro-info
cloud-
$ cd open-iscsi-2.0.874/
## we're now mostly following debian/ tests/README- boot-test. md debian/ tests:$ PATH bionic. d/kernel --initrd= bionic. d/initrd bionic.d/disk.img
# download the image and get kernel/initrd
$ PATH=$PWD/
$ get-image bionic.d bionic
$ sudo `which patch-image` \
--kernel=
$ tgt-boot-test -v bionic.d/disk.img bionic.d/kernel bionic.d/initrd
....
Success is being able to log in with 'ubuntu' and 'passw0rd'.
Failure as seen in the log is dropping into an emergency shell.
Once inside (this was successful) you'll see a mostly sane system.
Some things to note:
a.) tgt-boot-test boots without kvm enabled. This is because using
kvm with qemu in nested virt would cause system lockups. Its slower
but more reliable to go wtihout.
b.) under bug 1723183 I made overlayroot comment out the root filesystem
from the rendered /etc/fstab. That was because systemd got confused and
assumed that /media/root-ro had to be on top of /.
c.) you can enable or disable kvm by setting _USE_KVM=0 or _USE_KVM=1
in your environment.
$ grep -v "^# " /etc/fstab cloudimg- rootfs /media/root-ro/ ext4 ro,defaults,noauto 0 0 /media/ root-ro/ ,upperdir= /media/ root-rw/ overl /media/ root-rw/ overlay- workdir/ _ 0 0 fs-unsupported
#
#
#LABEL=
/media/root-ro/ / overlay lowerdir=
ay/,workdir=
LABEL=UEFI /boot/efi vfat defaults 0 0 # overlayroot:
$ sudo blkid cloudimg- rootfs" UUID="7b1980bd- 9102-4356- 8df0-ec7a0c0624 11" TYPE="ext4" PARTUUID= "c0b5ace0- 4703-4667- babb-3d38137cab 88" "0ab0b9fd- 2c28-4724- 857a-1559f0cf76 ea" "221662d6- cab0-4290- ba1c-e72acf2bf1 93"
/dev/sda1: LABEL="
/dev/sda15: LABEL="UEFI" UUID="B177-3CC9" TYPE="vfat" PARTUUID=
/dev/sda14: PARTUUID=
$ cat /run/systemd/ generator/ local-fs. target. requires/ boot-efi. mount fstab-generator
# Automatically generated by systemd-
[Unit] /etc/fstab man:fstab( 5) man:systemd- fstab-generator (8) local-fs. target
SourcePath=
Documentation=
Before=
[Mount] disk/by- label/UEFI
Where=/boot/efi
What=/dev/
Type=vfat
Related bugs:
* bug 1680197: Zesty deployments failing sporadically
* bug 1723183: transient systemd ordering issue when using overlayroot
ProblemType: Bug ature: User Name 4.13.0- 16.19-generic 4.13.4 DIR=<set> =maas-enlist iscsi_target_ name=tgt- boot-test- 7xuhwl iscsi_target_ ip=10.0. 12.2 iscsi_target_ port=3260 iscsi_initiator =maas-enlist ip=:::: maas-enlist: BOOTIF ro net.ifnames=0 BOOTIF_DEFAULT=eth0 root=/dev/ disk/by- path/ip- 10.0.12. 2:3260- iscsi-tgt- boot-test- 7xuhwl- lun-1-part1 overlayroot=tmpfs console=ttyS0 ds=nocloud- net;seedfrom=http:// 10.0.12. 2:32600/ version: pc-i440fx-artful bvr1.10. 2-1ubuntu1: bd04/01/ 2014:svnQEMU: pnStandardPC( i440FX+ PIIX,1996) :pvrpc- i440fx- artful: cvnQEMU: ct1:cvrpc- i440fx- artful: version: pc-i440fx-artful
DistroRelease: Ubuntu 18.04
Package: systemd 234-2ubuntu12
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu4
Architecture: amd64
Date: Mon Nov 13 21:06:36 2017
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
ProcEnviron:
TERM=vt220
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: nomodeset iscsi_initiator
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: 1.10.2-1ubuntu1
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.
dmi.sys.vendor: QEMU