Windows 10 qcow2 image with all virtio drivers included and UEFI enabled is not booting up in LXD VM on ubuntu 22.04

Hi
I am trying to bring windows 10 qcow2 image with all virtio drivers included and UEFI enabled in lxd VM as follows…but LXD VM crashes immediately …
Setup:
I am using VMWare Workstation Pro 17 to create Ubuntu 22.04 LTS VM on windows 11 host laptop.
After running the Ubuntu VM , executing follwing commands to create LXD VM
sudo snap refresh lxd --channel=latest
lxd --version => 5.12
lxd init ( use default options like ZFS etc)
lxc init winimage --vm --empty
lxc storage set default volume.size 80GB
lxc config set winimage limits.cpu=2 limits.memory=4GiB
tar -Jcvf metadata.tar.xz metada.yaml
-------------------metadata.yaml------------------
architecture: x86_64
creation_date: 27032023
properties:
description: Windows 11
os: Windows
release: 11
-------------------metadata.yaml------------------

lxc image import metadata.tar.xz win.qcow2 --alias winimage
lxc launch winimage --vm winvm -v --debug -c security.secureboot=false
lxc console winvm --type=vga

Immediately after LXD VM winvm crashes with log
lxc info --show-log winvm

lxc console winvm --type=vga

(remote-viewer:23243): dbind-WARNING **: 12:17:38.236: Couldn’t register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
user@testabbna:/data$ lxc info winvm --show-log
Name: winvm
Status: STOPPED
Type: virtual-machine
Architecture: x86_64
Created: 2023/03/31 12:17 UTC
Last Used: 2023/03/31 12:17 UTC

Log:

warning: tap: open vhost char device failed: Permission denied
warning: tap: open vhost char device failed: Permission denied

lxc monitor --type=logging --pretty ==>
DEBUG [2023-03-31T12:17:47Z] Event listener server handler started id=9cea9cab-d537-4125-93e9-2454eab11109 local=/var/snap/lxd/common/lxd/unix.socket remote=@
DEBUG [2023-03-31T12:18:22Z] Instance initiated stop action=stop instance=winvm instanceType=virtual-machine project=default
DEBUG [2023-03-31T12:18:22Z] Waiting for VM process to finish instance=winvm instanceType=virtual-machine project=default
DEBUG [2023-03-31T12:18:22Z] Instance stopped instance=winvm instanceType=virtual-machine project=default reason=guest-panic target=stop
DEBUG [2023-03-31T12:18:22Z] onStop hook started instance=winvm instanceType=virtual-machine project=default target=stop
DEBUG [2023-03-31T12:18:22Z] Instance operation lock created action=stop instance=winvm project=default reusable=false
DEBUG [2023-03-31T12:18:22Z] Sending write barrier
DEBUG [2023-03-31T12:18:22Z] Sending write barrier
DEBUG [2023-03-31T12:18:22Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal closure): unexpected EOF”
DEBUG [2023-03-31T12:18:22Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal closure): unexpected EOF”
DEBUG [2023-03-31T12:18:22Z] Sending write barrier
DEBUG [2023-03-31T12:18:22Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal closure): unexpected EOF”
DEBUG [2023-03-31T12:18:22Z] Sending write barrier
DEBUG [2023-03-31T12:18:22Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal closure): unexpected EOF”
DEBUG [2023-03-31T12:18:22Z] Sending write barrier
DEBUG [2023-03-31T12:18:22Z] Sending write barrier
DEBUG [2023-03-31T12:18:22Z] Sending write barrier
DEBUG [2023-03-31T12:18:22Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal closure): unexpected EOF”
DEBUG [2023-03-31T12:18:22Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal closure): unexpected EOF”
DEBUG [2023-03-31T12:18:22Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal closure): unexpected EOF”
DEBUG [2023-03-31T12:18:22Z] Got error getting next reader: websocket: close 1000 (normal): Detaching from console
DEBUG [2023-03-31T12:18:22Z] VGA control websocket finished
DEBUG [2023-03-31T12:18:22Z] VGA websocket finished
DEBUG [2023-03-31T12:18:22Z] Success for operation class=websocket description=“Showing console” operation=c629dddf-4121-4840-8ef9-fab325d3bf56 project=default
DEBUG [2023-03-31T12:18:23Z] VM process finished instance=winvm instanceType=virtual-machine project=default
DEBUG [2023-03-31T12:18:23Z] Event listener server handler stopped listener=7e8d2fd6-d3d0-4ed9-88d3-a67fbf9d9708 local=/var/snap/lxd/common/lxd/unix.socket remote=@
DEBUG [2023-03-31T12:18:23Z] Stopping device device=root instance=winvm instanceType=virtual-machine project=default type=disk
DEBUG [2023-03-31T12:18:23Z] Stopping device device=eth0 instance=winvm instanceType=virtual-machine project=default type=nic
DEBUG [2023-03-31T12:18:23Z] UnmountInstance started instance=winvm project=default
DEBUG [2023-03-31T12:18:23Z] Unmounted ZFS dataset dev=default/virtual-machines/winvm driver=zfs path=/var/snap/lxd/common/lxd/storage-pools/default/virtual-machines/winvm pool=default volName=winvm
DEBUG [2023-03-31T12:18:23Z] UnmountInstance finished instance=winvm project=default
DEBUG [2023-03-31T12:18:23Z] Instance operation lock finished action=stop err="" instance=winvm project=default reusable=false
DEBUG [2023-03-31T12:18:23Z] onStop hook finished instance=winvm instanceType=virtual-machine project=default target=stop
DEBUG [2023-03-31T12:20:49Z] Handling API request ip=@ method=GET protocol=unix url=/1.0 username=user
DEBUG [2023-03-31T12:20:49Z] Handling API request ip=@ method=GET protocol=unix url="/1.0/instances/winvm?recursion=1" username=user
DEBUG [2023-03-31T12:20:49Z] GetInstanceUsage started instance=winvm project=default
DEBUG [2023-03-31T12:20:49Z] GetInstanceUsage finished instance=winvm project=default
DEBUG [2023-03-31T12:20:49Z] Handling API request ip=@ method=GET protocol=unix url=/1.0/instances/winvm/logs/qemu.log username=user

lxc storage list
lxc storage list
±--------±-------±-------------------------------------------±------------±--------±--------+
| NAME | DRIVER | SOURCE | DESCRIPTION | USED BY | STATE |
±--------±-------±-------------------------------------------±------------±--------±--------+
| default | zfs | /var/snap/lxd/common/lxd/disks/default.img | | 4 | CREATED |
±--------±-------±-------------------------------------------±------------±--------±--------+

lxc config show --expanded winvm
lxc config show --expanded winvm
architecture: x86_64
config:
image.description: Windows 11
image.os: Windows
image.release: “11”
security.secureboot: “false”
volatile.base_image: 2ea13b920d738e12120379096ac8f195ba31539c66d0850395a8caaf901d0fef
volatile.cloud-init.instance-id: 734bdadf-c8a5-4009-a5dd-a7d83b24af56
volatile.eth0.hwaddr: 00:16:3e:9b:84:5a
volatile.last_state.power: STOPPED
volatile.last_state.ready: “false”
volatile.uuid: 76468e3c-125a-41c9-a349-e4e5c052c4fe
volatile.uuid.generation: 76468e3c-125a-41c9-a349-e4e5c052c4fe
volatile.vsock_id: “7”
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
ephemeral: false
profiles:

  • default
    stateful: false
    description: “”

uname -a
Linux test 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Kindly suggest how to fix this crash issue…
it would be greate help as we have just started using LXD for VM & conatiners.

@stgraber , can you please suggest the way forward?

No idea, the only bit of useful information there is reason=guest-panic which suggests the the OS in the guest VM paniced on boot.

That suggests an issue with your image rather than anything that LXD would have done.

Does running an official image like images:ubuntu/22.04/cloud work?

Thanks for the response stgraber…
Same windows qcow2 image works fine in Virtual machine manager using KVM & QEMU. But it does not boot in LXD. this windows image had MBR boot record which i got it converted to GPT through paragon utility. Does that causes any issue in LXD?

Did you try lxc start <instance> --console=vga to try and catch any early output from the guest?

@Stgraber
Yes this works fine with my setup Windows 11 laptop->VMware hypervisor->Ubuntu 22.04 LTS->LXD->ubuntu

Also please note that , The image is qcow2 windows 10 image and tried with secure boot off…not windows 11 as i mentioned in earlier post…i have updated metadata also. but still it did not launch the VM…

WIndows 10 Qcow2 image
Also added tpm device to LXD VM before launching. But still I could see the same error that LXD VM crashes.
DEBUG [2023-04-10T05:54:58Z] Instance stopped instance=winvm
instanceType=virtual-machine project=default reason=guest-panic target=stop
PSB all logs I have added for more info.
lxc console winvm --type=vga
(remote-viewer:4542): dbind-WARNING **: 05:54:26.972: Couldn’t register with accessibility bus: Did not receive a
reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked
the reply, the reply timeout expired, or the network connection was broken.
user@testabbna:~$ lxc info winvm --show-log
Name: winvm
Status: STOPPED
Type: virtual-machine
Architecture: x86_64
Created: 2023/04/10 05:54 UTC
Last Used: 2023/04/10 05:54 UTC
Log:
warning: tap: open vhost char device failed: Permission denied
warning: tap: open vhost char device failed: Permission denied
user@testabbna:~$
lxc monitor --type=logging --pretty
DEBUG [2023-04-10T05:53:42Z] Event listener server handler started
id=98e9c716-9b16-4bc6-bf70-f7dead2919d7 local=/var/snap/lxd/common/lxd/unix.socket remote=@
DEBUG [2023-04-10T05:54:10Z] Handling API request ip=@ method=GET protocol=unix url=/1.0
username=user
DEBUG [2023-04-10T05:54:10Z] Handling API request ip=@ method=GET protocol=unix
url=/1.0/images/aliases/winim username=user
DEBUG [2023-04-10T05:54:10Z] Handling API request ip=@ method=GET protocol=unix
url=/1.0/images/d0e67ca6090daa4acca3091004325f0e8a8b3b2c6877c160e0514a190b818883 username=user
DEBUG [2023-04-10T05:54:10Z] Handling API request ip=@ method=GET protocol=unix
url=/1.0/events username=user
DEBUG [2023-04-10T05:54:10Z] Event listener server handler started
id=a36dd472-77f8-4072-ad51-03464aef5064 local=/var/snap/lxd/common/lxd/unix.socket remote=@
DEBUG [2023-04-10T05:54:10Z] Responding to instance create
DEBUG [2023-04-10T05:54:10Z] Handling API request ip=@ method=POST protocol=unix
url=/1.0/instances username=user
DEBUG [2023-04-10T05:54:10Z] Instance operation lock created action=create instance=winvm
project=default reusable=false
DEBUG [2023-04-10T05:54:10Z] New operation class=task description=“Creating
instance” operation=1100d9d7-78c7-442c-a44c-f1ea81ff3df4 project=default
DEBUG [2023-04-10T05:54:10Z] Lock acquired for image
fingerprint=d0e67ca6090daa4acca3091004325f0e8a8b3b2c6877c160e0514a190b818883
DEBUG [2023-04-10T05:54:10Z] Started operation class=task description=“Creating instance”
operation=1100d9d7-78c7-442c-a44c-f1ea81ff3df4 project=default
DEBUG [2023-04-10T05:54:10Z] Handling API request ip=@ method=GET protocol=unix
url=/1.0/operations/1100d9d7-78c7-442c-a44c-f1ea81ff3df4 username=user
DEBUG [2023-04-10T05:54:10Z] Acquiring lock for image
fingerprint=d0e67ca6090daa4acca3091004325f0e8a8b3b2c6877c160e0514a190b818883
INFO [2023-04-10T05:54:10Z] Creating instance ephemeral=false instance=winvm
instanceType=virtual-machine project=default
INFO [2023-04-10T05:54:10Z] Created instance ephemeral=false instance=winvm
instanceType=virtual-machine project=default
DEBUG [2023-04-10T05:54:10Z] Adding device device=eth0 instance=winvm
instanceType=virtual-machine project=default type=nic
DEBUG [2023-04-10T05:54:10Z] Adding device device=root instance=winvm
instanceType=virtual-machine project=default type=disk
DEBUG [2023-04-10T05:54:10Z] CreateInstanceFromImage started instance=winvm project=default
DEBUG [2023-04-10T05:54:10Z] EnsureImage started
fingerprint=d0e67ca6090daa4acca3091004325f0e8a8b3b2c6877c160e0514a190b818883
DEBUG [2023-04-10T05:54:10Z] Setting image volume size
fingerprint=d0e67ca6090daa4acca3091004325f0e8a8b3b2c6877c160e0514a190b818883 size=80GB
DEBUG [2023-04-10T05:54:10Z] Checking image volume size
fingerprint=d0e67ca6090daa4acca3091004325f0e8a8b3b2c6877c160e0514a190b818883
DEBUG [2023-04-10T05:54:10Z] EnsureImage finished
fingerprint=d0e67ca6090daa4acca3091004325f0e8a8b3b2c6877c160e0514a190b818883
DEBUG [2023-04-10T05:54:10Z] Checking volume size instance=winvm project=default
DEBUG [2023-04-10T05:54:10Z] Set new volume size instance=winvm project=default size=80GB
DEBUG [2023-04-10T05:54:10Z] Mounted ZFS dataset dev=default/virtual-machines/winvm
driver=zfs path=/var/snap/lxd/common/lxd/storage-pools/default/virtual-machines/winvm pool=default
volName=winvm
DEBUG [2023-04-10T05:54:10Z] Unmounted ZFS dataset dev=default/virtual-machines/winvm
driver=zfs path=/var/snap/lxd/common/lxd/storage-pools/default/virtual-machines/winvm pool=default
volName=winvm
DEBUG [2023-04-10T05:54:10Z] UpdateInstanceBackupFile started instance=winvm project=default
DEBUG [2023-04-10T05:54:10Z] CreateInstanceFromImage finished instance=winvm project=default
DEBUG [2023-04-10T05:54:10Z] Mounted ZFS dataset dev=default/virtual-machines/winvm
driver=zfs path=/var/snap/lxd/common/lxd/storage-pools/default/virtual-machines/winvm pool=default
volName=winvm
DEBUG [2023-04-10T05:54:10Z] Success for operation class=task description=“Creating instance”
operation=1100d9d7-78c7-442c-a44c-f1ea81ff3df4 project=default
DEBUG [2023-04-10T05:54:10Z] Unmounted ZFS dataset dev=default/virtual-machines/winvm
driver=zfs path=/var/snap/lxd/common/lxd/storage-pools/default/virtual-machines/winvm pool=default
volName=winvm
DEBUG [2023-04-10T05:54:10Z] UpdateInstanceBackupFile finished instance=winvm project=default
DEBUG [2023-04-10T05:54:10Z] Instance operation lock finished action=create err="" instance=winvm
project=default reusable=false
DEBUG [2023-04-10T05:54:10Z] Handling API request ip=@ method=GET protocol=unix
url=/1.0/instances/winvm username=user
DEBUG [2023-04-10T05:54:10Z] Handling API request ip=@ method=PUT protocol=unix
url=/1.0/instances/winvm/state username=user
DEBUG [2023-04-10T05:54:10Z] New operation class=task description=“Starting instance”
operation=8635dc8d-67eb-437f-864c-2a5a2daab045 project=default
DEBUG [2023-04-10T05:54:10Z] Instance operation lock created action=start instance=winvm
project=default reusable=false
DEBUG [2023-04-10T05:54:10Z] Started operation class=task description=“Starting instance”
operation=8635dc8d-67eb-437f-864c-2a5a2daab045 project=default
DEBUG [2023-04-10T05:54:10Z] Start started instance=winvm
instanceType=virtual-machine project=default stateful=false
DEBUG [2023-04-10T05:54:10Z] Handling API request ip=@ method=GET protocol=unix
url=/1.0/operations/8635dc8d-67eb-437f-864c-2a5a2daab045 username=user
DEBUG [2023-04-10T05:54:10Z] MountInstance started instance=winvm project=default
DEBUG [2023-04-10T05:54:11Z] Activated ZFS volume dev=default/virtual-machines/winvm.block
driver=zfs pool=default volName=winvm
DEBUG [2023-04-10T05:54:11Z] Mounted ZFS dataset dev=default/virtual-machines/winvm
driver=zfs path=/var/snap/lxd/common/lxd/storage-pools/default/virtual-machines/winvm pool=default
volName=winvm
DEBUG [2023-04-10T05:54:11Z] Installing lxd-agent
installPath=/var/snap/lxd/common/lxd/virtual-machines/winvm/config/lxd-agent instance=winvm
instanceType=virtual-machine project=default srcPath=/snap/lxd/24643/bin/lxd-agent
DEBUG [2023-04-10T05:54:11Z] MountInstance finished instance=winvm project=default
DEBUG [2023-04-10T05:54:11Z] Generating NVRAM instance=winvm
instanceType=virtual-machine project=default
DEBUG [2023-04-10T05:54:11Z] MountInstance started instance=winvm project=default
DEBUG [2023-04-10T05:54:11Z] MountInstance finished instance=winvm project=default
DEBUG [2023-04-10T05:54:11Z] UnmountInstance started instance=winvm project=default
DEBUG [2023-04-10T05:54:11Z] UnmountInstance finished instance=winvm project=default
DEBUG [2023-04-10T05:54:11Z] Skipping unmount as in use driver=zfs pool=default refCount=1
volName=winvm
DEBUG [2023-04-10T05:54:11Z] Starting device device=eth0 instance=winvm
instanceType=virtual-machine project=default type=nic
DEBUG [2023-04-10T05:54:11Z] Starting device device=root instance=winvm
instanceType=virtual-machine project=default type=disk
DEBUG [2023-04-10T05:54:11Z] UpdateInstanceBackupFile started instance=winvm project=default
DEBUG [2023-04-10T05:54:11Z] Skipping unmount as in use driver=zfs pool=default refCount=1
volName=winvm
DEBUG [2023-04-10T05:54:11Z] UpdateInstanceBackupFile finished instance=winvm project=default
DEBUG [2023-04-10T05:54:11Z] Success for operation class=task description=“Starting instance”
operation=8635dc8d-67eb-437f-864c-2a5a2daab045 project=default
DEBUG [2023-04-10T05:54:11Z] Instance operation lock finished action=start err="" instance=winvm
project=default reusable=false
DEBUG [2023-04-10T05:54:11Z] Start finished instance=winvm
instanceType=virtual-machine project=default stateful=false
DEBUG [2023-04-10T05:54:11Z] Event listener server handler stopped
listener=a36dd472-77f8-4072-ad51-03464aef5064 local=/var/snap/lxd/common/lxd/unix.socket remote=@
DEBUG [2023-04-10T05:54:26Z] Handling API request ip=@ method=GET protocol=unix
url=/1.0 username=user
DEBUG [2023-04-10T05:54:26Z] Event listener server handler started
id=3db3b746-14da-4b96-836f-7544f0e12a10 local=/var/snap/lxd/common/lxd/unix.socket remote=@
DEBUG [2023-04-10T05:54:26Z] Handling API request ip=@ method=GET protocol=unix
url=/1.0/events username=user
DEBUG [2023-04-10T05:54:26Z] Handling API request ip=@ method=POST protocol=unix
url=/1.0/instances/winvm/console username=user
DEBUG [2023-04-10T05:54:26Z] Started operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:26Z] New operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:26Z] Connected to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:26Z] Handling API request ip=@ method=GET protocol=unix
url="/1.0/operations/9b595b0e-c01a-4dc5-9733-accd6b5b1925/websocket?secret=9b8a099fcd511b3fd9563bedbba7
744b9165aee82d13f5117934b075f8079839" username=user
DEBUG [2023-04-10T05:54:26Z] Connecting to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:26Z] VGA control websocket connected
DEBUG [2023-04-10T05:54:26Z] Handling API request ip=@ method=GET protocol=unix
url=/1.0/operations/9b595b0e-c01a-4dc5-9733-accd6b5b1925 username=user
DEBUG [2023-04-10T05:54:27Z] Handling API request ip=@ method=GET protocol=unix
url="/1.0/operations/9b595b0e-c01a-4dc5-9733-accd6b5b1925/websocket?secret=b44b5c349928b99260b46b884c0
a1f716881041608af745954f4500b8eee9a97" username=user
DEBUG [2023-04-10T05:54:27Z] VGA dynamic websocket connected
DEBUG [2023-04-10T05:54:27Z] Connected to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] Connecting to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] VGA dynamic websocket connected
DEBUG [2023-04-10T05:54:27Z] Connecting to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] Handling API request ip=@ method=GET protocol=unix
url="/1.0/operations/9b595b0e-c01a-4dc5-9733-accd6b5b1925/websocket?secret=b44b5c349928b99260b46b884c0
a1f716881041608af745954f4500b8eee9a97" username=user
DEBUG [2023-04-10T05:54:27Z] Connecting to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] Handling API request ip=@ method=GET protocol=unix
url="/1.0/operations/9b595b0e-c01a-4dc5-9733-accd6b5b1925/websocket?secret=b44b5c349928b99260b46b884c0
a1f716881041608af745954f4500b8eee9a97" username=user
DEBUG [2023-04-10T05:54:27Z] Connecting to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] Handling API request ip=@ method=GET protocol=unix
url="/1.0/operations/9b595b0e-c01a-4dc5-9733-accd6b5b1925/websocket?secret=b44b5c349928b99260b46b884c0
a1f716881041608af745954f4500b8eee9a97" username=user
DEBUG [2023-04-10T05:54:27Z] Connected to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] VGA dynamic websocket connected
DEBUG [2023-04-10T05:54:27Z] Connected to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] VGA dynamic websocket connected
DEBUG [2023-04-10T05:54:27Z] Connected to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] Handling API request ip=@ method=GET protocol=unix
url="/1.0/operations/9b595b0e-c01a-4dc5-9733-accd6b5b1925/websocket?secret=b44b5c349928b99260b46b884c0
a1f716881041608af745954f4500b8eee9a97" username=user
DEBUG [2023-04-10T05:54:27Z] Connecting to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] VGA dynamic websocket connected
DEBUG [2023-04-10T05:54:27Z] Connected to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] Connecting to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] Handling API request ip=@ method=GET protocol=unix
url="/1.0/operations/9b595b0e-c01a-4dc5-9733-accd6b5b1925/websocket?secret=b44b5c349928b99260b46b884c0
a1f716881041608af745954f4500b8eee9a97" username=user
DEBUG [2023-04-10T05:54:27Z] VGA dynamic websocket connected
DEBUG [2023-04-10T05:54:27Z] Connected to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] Handling API request ip=@ method=GET protocol=unix
url="/1.0/operations/9b595b0e-c01a-4dc5-9733-accd6b5b1925/websocket?secret=b44b5c349928b99260b46b884c0
a1f716881041608af745954f4500b8eee9a97" username=user
DEBUG [2023-04-10T05:54:27Z] VGA dynamic websocket connected
DEBUG [2023-04-10T05:54:27Z] Connected to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:27Z] Connecting to operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:58Z] Waiting for VM process to finish instance=winvm
instanceType=virtual-machine project=default
DEBUG [2023-04-10T05:54:58Z] Instance initiated stop action=stop instance=winvm
instanceType=virtual-machine project=default
DEBUG [2023-04-10T05:54:58Z] Instance operation lock created action=stop instance=winvm
project=default reusable=false
DEBUG [2023-04-10T05:54:58Z] Instance stopped instance=winvm
instanceType=virtual-machine project=default reason=guest-panic target=stop
DEBUG [2023-04-10T05:54:58Z] onStop hook started instance=winvm
instanceType=virtual-machine project=default target=stop
DEBUG [2023-04-10T05:54:58Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal
closure): unexpected EOF”
DEBUG [2023-04-10T05:54:58Z] Sending write barrier
DEBUG [2023-04-10T05:54:58Z] Sending write barrier
DEBUG [2023-04-10T05:54:58Z] Sending write barrier
DEBUG [2023-04-10T05:54:58Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal
closure): unexpected EOF”
DEBUG [2023-04-10T05:54:58Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal
closure): unexpected EOF”
DEBUG [2023-04-10T05:54:58Z] Sending write barrier
DEBUG [2023-04-10T05:54:58Z] Sending write barrier
DEBUG [2023-04-10T05:54:58Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal
closure): unexpected EOF”
DEBUG [2023-04-10T05:54:58Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal
closure): unexpected EOF”
DEBUG [2023-04-10T05:54:58Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal
closure): unexpected EOF”
DEBUG [2023-04-10T05:54:58Z] DefaultWriter got error getting next reader err=“websocket: close 1006 (abnormal
closure): unexpected EOF”
DEBUG [2023-04-10T05:54:58Z] Sending write barrier
DEBUG [2023-04-10T05:54:58Z] Sending write barrier
DEBUG [2023-04-10T05:54:58Z] Success for operation class=websocket description=“Showing
console” operation=9b595b0e-c01a-4dc5-9733-accd6b5b1925 project=default
DEBUG [2023-04-10T05:54:58Z] Got error getting next reader: websocket: close 1000 (normal): Detaching from
console
DEBUG [2023-04-10T05:54:58Z] VGA control websocket finished
DEBUG [2023-04-10T05:54:58Z] VGA websocket finished
DEBUG [2023-04-10T05:54:58Z] Event listener server handler stopped
listener=3db3b746-14da-4b96-836f-7544f0e12a10 local=/var/snap/lxd/common/lxd/unix.socket remote=@
DEBUG [2023-04-10T05:54:59Z] VM process finished instance=winvm
instanceType=virtual-machine project=default
DEBUG [2023-04-10T05:54:59Z] Stopping device device=eth0 instance=winvm
instanceType=virtual-machine project=default type=nic
DEBUG [2023-04-10T05:54:59Z] Stopping device device=root instance=winvm
instanceType=virtual-machine project=default type=disk
DEBUG [2023-04-10T05:54:59Z] UnmountInstance started instance=winvm project=default
DEBUG [2023-04-10T05:54:59Z] Unmounted ZFS dataset dev=default/virtual-machines/winvm
driver=zfs path=/var/snap/lxd/common/lxd/storage-pools/default/virtual-machines/winvm pool=default
volName=winvm
DEBUG [2023-04-10T05:54:59Z] UnmountInstance finished instance=winvm project=default
DEBUG [2023-04-10T05:54:59Z] onStop hook finished instance=winvm
instanceType=virtual-machine project=default target=stop
DEBUG [2023-04-10T05:54:59Z] Instance operation lock finished action=stop err="" instance=winvm
project=default reusable=false
DEBUG [2023-04-10T05:55:08Z] Handling API request ip=@ method=GET protocol=unix url=/1.0
username=user
DEBUG [2023-04-10T05:55:08Z] GetInstanceUsage started instance=winvm project=default
DEBUG [2023-04-10T05:55:08Z] Handling API request ip=@ method=GET protocol=unix
url="/1.0/instances/winvm?recursion=1" username=user
DEBUG [2023-04-10T05:55:08Z] GetInstanceUsage finished instance=winvm project=default
DEBUG [2023-04-10T05:55:08Z] Handling API request ip=@ method=GET protocol=unix
url=/1.0/instances/winvm/logs/qemu.log username=user
lxc config show winvm
architecture: x86_64
config:
image.description: Windows 10
image.os: Windows
image.release: “10”
security.secureboot: “false”
volatile.base_image: d0e67ca6090daa4acca3091004325f0e8a8b3b2c6877c160e0514a190b818883
volatile.cloud-init.instance-id: 60d79e6d-c1bd-4080-b2e5-6de8e2417915
volatile.eth0.hwaddr: 00:16:3e:3d:3e:ce
volatile.last_state.power: STOPPED
volatile.last_state.ready: “false”
volatile.uuid: ef04e029-f4f9-45d0-81e5-79be6434dc75
volatile.uuid.generation: ef04e029-f4f9-45d0-81e5-79be6434dc75
volatile.vsock_id: “14”
devices: {}
ephemeral: false
profiles:

  • default
    stateful: false
    description: “”
    lxc storage list winvm
    ±--------±-------±-------------------------------------------±------------±--------±--------+
    | NAME | DRIVER | SOURCE | DESCRIPTION | USED BY | STATE |
    ±--------±-------±-------------------------------------------±------------±--------±--------+
    | default | zfs | /var/snap/lxd/common/lxd/disks/default.img | | 4 | CREATED |
    ±--------±-------±-------------------------------------------±------------±--------±--------+
    Also attached the screenshots of qcow2 image system information. Please let me know if you need any more details.
    lxc start winvm --console=vga
    (remote-viewer:46952): dbind-WARNING **: 07:18:55.739: Couldn’t register with accessibility bus: Did not receive a
    reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked
    the reply, the reply timeout expired, or the network connection was broken.
    qemu-img info newnpImage3_secureoff_gpt.qcow2
    image: newnpImage3_secureoff_gpt.qcow2
    file format: qcow2
    virtual size: 59.6 GiB (64023257088 bytes)
    disk size: 20.3 GiB
    cluster_size: 65536
    Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false
    user@testabbna:/test$ lxc image import meta.tar.xz newnpImage3_secureoff_gpt.qcow2 --alias
    winimage --verbose
    Image imported with fingerprint:
    7cc6ffc70a211def9ce01d8d71198a444b2a23ee2827470089416b7f8ab18ac8
    lxc config show --expanded winvm1
    architecture: x86_64
    config:
    image.description: Windows 10
    image.os: Windows
    image.release: “10”
    security.secureboot: “true”

@tomp
Yes and it doesn’t give any extra output this is what I see

(remote-viewer:46952): dbind-WARNING **: 07:18:55.739: Couldn’t register with accessibility bus: Did not receive
a reply. Possible causes include: the remote application did not send a reply, the message bus security policy
blocked the reply, the reply timeout expired, or the network connection was broken.

@stgraber, @tomp

Finally LXD windows 10 qcow2 image booted up after changing the HDD type to -device virtio-scsi-pci instead of -device virtio-blk-pci in windows 10 qcow2 image itself. added new storage type SCSI in KVM/QEMU & added controller of type virtio-scsi as below to update the windows 10 qcow2 image…

&

Thanks to canonical team for your great support.

1 Like