[Bug 1915571] Re: Cannot start bash session for buildd vm images in LXD vm
Ćukasz Zemczak
1915571 at bugs.launchpad.net
Thu May 27 11:43:47 UTC 2021
Hello Cody, or anyone else affected,
Accepted livecd-rootfs into groovy-proposed. The package will build now
and be available at https://launchpad.net/ubuntu/+source/livecd-
rootfs/2.694.6 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
groovy to verification-done-groovy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-groovy. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: livecd-rootfs (Ubuntu Groovy)
Status: In Progress => Fix Committed
** Tags added: verification-needed verification-needed-groovy
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1915571
Title:
Cannot start bash session for buildd vm images in LXD vm
Status in livecd-rootfs package in Ubuntu:
Fix Released
Status in livecd-rootfs source package in Xenial:
Incomplete
Status in livecd-rootfs source package in Bionic:
In Progress
Status in livecd-rootfs source package in Focal:
In Progress
Status in livecd-rootfs source package in Groovy:
Fix Committed
Bug description:
Ubuntu "bootable" buildd vm images, if imported into lxd and booted in
a VM container, cannot produce an interactive bash session via, e.g.
`lxd exec <name> bash`.
This appears to be a problem of the buildd image lacking grub settings
to produce console output on ttyS0. Lack of console output also
prevents the required manual install of the lxd agent as detailed in
this [1] Discourse post about booting Ubuntu in lxd vms.
[Impact]
* This negatively impacts the user experience of Ubuntu buildd images
in lxd, which is one of the target environments for the buildd images
[Test Case]
* create a metadata.yaml file for the buildd image (these will soon
be downloadable from cloud-images.ubuntu.com/buildd):
{
"architecture": "x86_64",
"creation_date": <unix timestamp>,
"properties": {
"architecture": "amd64",
"description": "Ubuntu buildd focal amd64",
"os": "Ubuntu",
"series": "focal"
}
}
* tar the metadata.yaml file into <name>.tar.xz
* obtain the focal buildd image of your choice, e.g. from [2]
* import the image into lxd: `lxd image import <name>.tar.xz <buildd-image>.img`
* follow the "extra steps for official Ubuntu images" in [1] to init, configure, and start a lxd vm using the image by its fingerprint
* Attempt console log in via `lxc console <vm name>` or a bash session via `lxc exec <vm name> bash`
* Note that without console output it is not possible to log in via the lxc console to install the lxd agent, and therefore not possible to obtain a bash session via lxc exec
[Where problems could occur]
* Turning on console output requires changing grub configs; certain
values of these configs could break current expectations about buildd
image behavior
[Other Info]
* This issue affects buildd images from all suites, but the lxd-agent-loader package is only available for focal+
[1] https://discuss.linuxcontainers.org/t/running-virtual-machines-with-lxd-4-0/7519
[2] http://cloud-images.ubuntu.com/buildd/releases/focal/release/focal-server-cloudimg-amd64-disk.img
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1915571/+subscriptions
More information about the foundations-bugs
mailing list