Can't launch hirsute VM using LXD

Bug #1928709 reported by James Falcon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
New
Undecided
Unassigned

Bug Description

After running 'lxc launch ubuntu:hirsute --vm', 5-10 seconds later, the instance is listed as STOPPED. The output of 'lxc info --show-log <instance>' is the following:

Name: present-skunk
Location: none
Remote: unix://
Architecture: x86_64
Created: 2021/05/17 13:13 UTC
Status: Stopped
Type: virtual-machine
Profiles: default
Pid: 170959
Resources:
  Processes: 0
  Disk usage:
    root: 94.72kB

Log:

KVM internal error. Suberror: 1
emulation failure
RAX=000000003ffb8500 RBX=000000003ff9c2a0 RCX=000000003e745518 RDX=00000000000013af
RSI=000000002b85b537 RDI=000000003dfd21c4 RBP=8000000000000001 RSP=000000003ff9c188
R8 =0000000000000028 R9 =000000003f41c567 R10=000000003f9ef000 R11=0000000000000000
R12=0000000000000000 R13=000000003e745518 R14=000000002b858a7c R15=000000003ff9c290
RIP=00000000000b0000 RFL=00210206 [-----P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0030 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
CS =0038 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA]
SS =0030 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
DS =0030 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
FS =0030 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
GS =0030 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
LDT=0000 0000000000000000 0000ffff 00008200 DPL=0 LDT
TR =0000 0000000000000000 0000ffff 00008b00 DPL=0 TSS64-busy
GDT= 000000003f9ee698 00000047
IDT= 000000003f3f7018 00000fff
CR0=80010033 CR2=0000000000000000 CR3=000000003fc01000 CR4=00000668
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000d00
Code=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <ff> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

This appears to be very easily reproducible using the latest stable LXD and an up-to-date Ubuntu system (reproduced on both focal and hirsute hosts).

Tags: bot-comment
James Falcon (falcojr)
description: updated
Revision history for this message
James Falcon (falcojr) wrote :

Launching "images:ubuntu/hirsute/cloud" works successfully, but "ubuntu:hirsute" does not.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1928709/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → qemu (Ubuntu)
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

LXD uses a self built qemu and not "qemu (Ubuntu)"
I guess we will have to go to the upstream tracker eventually.
But for the time being switching it to a LXD task is slightly more correct.

affects: qemu (Ubuntu) → lxd (Ubuntu)
Revision history for this message
Stéphane Graber (stgraber) wrote :

We reproduced the same issue using Ubuntu's qemu and edk2 a few days ago.

affects: lxd (Ubuntu) → qemu (Ubuntu)
Revision history for this message
Stéphane Graber (stgraber) wrote :

It happened following a change in grub and shim in hirsute and seems to only hit on initial boot for some reason. We tried a variety of qemu and edk2 versions so far without finding a clear root cause, but as the emulator fully crashes (lxc info --show-log NAME will confirm it), qemu is as good as a target as it gets for the bug.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

i still want to somehow eliminate efivars being missbuilt and not garbage collected.

separately juliank is working on making shim _not_ mirror variables which should make things better.

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.