Yes it could be, I can reproduce that way too:
$ lxc launch ubuntu:20.04 dannf-test2 -t c2-m2 --vm
Creating dannf-test2
Starting dannf-test2
$ lxc list dannf-test2
+-------------+-------+------+------+-----------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-------------+-------+------+------+-----------------+-----------+
| dannf-test2 | ERROR | | | VIRTUAL-MACHINE | 0 |
+-------------+-------+------+------+-----------------+-----------+
$ lxc info dannf-test2 --show-log
Name: dannf-test2
Location: none
Remote: unix://
Architecture: x86_64
Created: 2021/07/15 15:09 UTC
Status: Error
Type: virtual-machine
Profiles: default
Pid: 3827
Resources:
Processes: 0
Log:
warning: tap: open vhost char device failed: Permission denied
warning: tap: open vhost char device failed: Permission denied
KVM internal error. Suberror: 3
extra data[0]: 800000ec
extra data[1]: 31
extra data[2]: 83
extra data[3]: 30d10
RAX=0000000000000000 RBX=0000000000000001 RCX=0000000000000001 RDX=00000000000000f2
RSI=ffff9af6b851cba8 RDI=0000000000000001 RBP=ffffae6880077e90 RSP=ffffae6880077e78
R8 =0000000006de3213 R9 =0000000000000000 R10=0000000000001c00 R11=0000000000001c00
R12=0000000000000001 R13=ffff9af6401c8000 R14=0000000000000000 R15=0000000000000000
RIP=ffffffffb4956e14 RFL=00000246 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 0000000000000000 ffffffff 00c00000
CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA]
SS =0000 0000000000000000 ffffffff 00c00000
DS =0000 0000000000000000 ffffffff 00c00000
FS =0000 0000000000000000 ffffffff 00c00000
GS =0000 ffff9af6b8500000 ffffffff 00c00000
LDT=0000 0000000000000000 ffffffff 00c00000
TR =0040 fffffe0000036000 0000206f 00008b00 DPL=0 TSS64-busy
GDT= fffffe0000034000 0000007f
IDT= fffffe0000000000 00000fff
CR0=80050033 CR2=00000000ffffffff CR3=000000003b80a001 CR4=001606a0
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000fffe0ff0 DR7=0000000000000400
EFER=0000000000000d01
Code=00 85 c0 7e 07 0f 00 2d b6 9f 4b 00 fb f4 8b 05 34 6d 78 00 <65> 44 8b 25 14 93 6b 4b 85 c0 0f 8f 85 00 00 00 5b 41 5c 41 5d 5d c3 65 8b 05 fe 92 6b 4b
Launching with --console
is different though: it boots the kernel then immediately does a clean shutdown and then reboot:
To detach from the console, press: <ctrl>+a q
BdsDxe: loading Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)
BdsDxe: starting Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)
System BootOrder not found. Initializing defaults.
Creating boot entry "Boot0007" with label "ubuntu" for file "\EFI\ubuntu\shimx64.efi"
error: can't find command `hwmatch'.
EFI stub: UEFI Secure Boot is enabled.
Linux version 5.4.0-1040-kvm (buildd@lgw01-amd64-047) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #41-Ubuntu SMP Fri May 14 20:43:17 UTC 2021 (Ubuntu 5.4.0-1040.41-kvm 5.4.114)
Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-1040-kvm root=PARTUUID=afdb79ec-8379-4b24-99fc-4136f04c295b ro console=tty1 console=ttyS0 panic=-1
...
[ OK ] Finished File System Check on /dev/disk/by-label/UEFI.
Mounting /boot/efi...
[ OK ] Mounted /boot/efi.
[ OK ] Mounted Mount unit for core18, revision 2066.
[ OK ] Mounted Mount unit for lxd, revision 20326.
[ OK ] Mounted Mount unit for snapd, revision 12159.
[ OK ] Reached target Local File Systems.
Starting Load AppArmor profiles...
Starting Set console font and keymap...
Starting Create final runt…dir for shutdown pivot root...
Starting LXD - agent - 9p mount...
Starting Tell Plymouth To Write Out Runtime Data...
Starting Commit a transient machine-id on disk...
Starting Create Volatile Files and Directories...
[ OK ] Finished Create final runt…e dir for shutdown pivot root.
[ OK ] Finished Set console font and keymap.
[ OK ] Finished Tell Plymouth To Write Out Runtime Data.
[ OK ] Finished Commit a transient machine-id on disk.
[ OK ] Finished Create Volatile Files and Directories.
[ OK ] Finished LXD - agent - 9p mount.
[ OK ] Started LXD - agent.
Starting Network Name Resolution...
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Finished Update UTMP about System Boot/Shutdown.
[ OK ] Removed slice system-modprobe.slice.
[ OK ] Closed LVM2 poll daemon socket.
Stopping Create final runt…dir for shutdown pivot root...
Stopping Load/Save Random Seed...
[ OK ] Removed slice system-serial\x2dgetty.slice.
[ OK ] Stopped Wait for Network to be Configured.
[ OK ] Stopped target User and Group Name Lookups.
[ OK ] Stopped target Slices.
[ OK ] Removed slice User and Session Slice.
[ OK ] Closed Syslog Socket.
[ OK ] Stopped target Local Encrypted Volumes.
[ OK ] Stopped Dispatch Password …ts to Console Directory Watch.
[ OK ] Stopped Forward Password R…uests to Wall Directory Watch.
[ OK ] Stopped target Swap.
[ OK ] Stopped Commit a transient machine-id on disk.
Stopping Update UTMP about System Boot/Shutdown...
[ OK ] Stopped Network Name Resolution.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Update UTMP about System Boot/Shutdown.
Stopping Network Service...
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped Network Service.
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Stopped Load Kernel Modules.
[ OK ] Finished Load AppArmor profiles.
Starting Load AppArmor pro…managed internally by snapd...
[ OK ] Finished Load AppArmor pro…s managed internally by snapd.
[ OK ] Stopped Create final runtime dir for shutdown pivot root.
[ OK ] Stopped target Local File Systems.
Unmounting /boot/efi...
Unmounting /run/lxd_config/9p...
Unmounting Mount unit for core18, revision 2066...
Unmounting Mount unit for lxd, revision 20326...
Unmounting Mount unit for snapd, revision 12159...
[ OK ] Unmounted /boot/efi.
[FAILED] Failed unmounting /run/lxd_config/9p.
[ OK ] Stopped File System Check on /dev/disk/by-label/UEFI.
[ OK ] Removed slice system-systemd\x2dfsck.slice.
[ OK ] Unmounted Mount unit for core18, revision 2066.
[ OK ] Unmounted Mount unit for lxd, revision 20326.
[ OK ] Unmounted Mount unit for snapd, revision 12159.
[ OK ] Stopped target Local File Systems (Pre).
[ OK ] Reached target Unmount All Filesystems.
Stopping Monitoring of LVM…meventd or progress polling...
Stopping Device-Mapper Multipath Device Controller...
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Stopped Create System Users.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Stopped File System Check on Root Device.
[ OK ] Stopped Device-Mapper Multipath Device Controller.
[ OK ] Stopped Monitoring of LVM2… dmeventd or progress polling.
[ OK ] Reached target Shutdown.
[ OK ] Reached target Final Step.
[ OK ] Finished Reboot.
[ OK ] Reached target Reboot.
reboot: Restarting system
On reboot, it’s different:
$ lxc stop -f dannf-test2
$ lxc start dannf-test2 --console
To detach from the console, press: <ctrl>+a q
BdsDxe: loading Boot0007 "ubuntu" from HD(15,GPT,91C2E827-D1A2-410F-B5A5-24C1C3BE032C,0x2800,0x35000)/\EFI\ubuntu\shimx64.efi
BdsDxe: starting Boot0007 "ubuntu" from HD(15,GPT,91C2E827-D1A2-410F-B5A5-24C1C3BE032C,0x2800,0x35000)/\EFI\ubuntu\shimx64.efi
EFI stub: UEFI Secure Boot is enabled.
Linux version 5.4.0-1040-kvm (buildd@lgw01-amd64-047) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #41-Ubuntu SMP Fri May 14 20:43:17 UTC 2021 (Ubuntu 5.4.0-1040.41-kvm 5.4.114)
Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-1040-kvm root=PARTUUID=afdb79ec-8379-4b24-99fc-4136f04c295b ro console=tty1 console=ttyS0
...
ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
acpi PNP0A08:00: _OSC: OS supports [ASPM ClockPM Segments MSI HPX-Type3]
acpi PNP0A08:00: _OSC: not requesting OS control; OS requires [ExtendedConfig ASPM ClockPM MSI]
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
pci_bus 0000:00: root bus resource [mem 0x7a100000-0xafffffff window]
pci_bus 0000:00: root bus resource [mem 0xc0000000-0xfebfffff window]
pci_bus 0000:00: root bus resource [mem 0x800000000-0xfffffffff window]
pci_bus 0000:00: root bus resource [bus 00-ff]
pci 0000:00:00.0: [8086:29c0] type 00 class 0x060000
pci 0000:00:01.0: [1b36:000c] type 01 class 0x060400
pci 0000:00:01.0: reg 0x10: [mem 0xc1a49000-0xc1a49fff]
pci 0000:00:01.1: [1b36:000c] type 01 class 0x060400
pci 0000:00:01.1: reg 0x10: [mem 0xc1a48000-0xc1a48fff]
pci 0000:00:01.2: [1b36:000c] type 01 class 0x060400
pci 0000:00:01.2: reg 0x10: [mem 0xc1a47000-0xc1a47fff]
pci 0000:00:01.3: [1b36:000c] type 01 class 0x060400
<< hangs here >>
And at this point it has gone into ERROR state again. It’s rather consistently broken 
Aside: I was unaware of the -t
instance types until now. I found this blog post about them.