Windows installation shuts down before I press a key

I was installing windows from here - https://ubuntu.com/tutorials/how-to-install-a-windows-11-vm-using-lxd#3-create-a-new-vm

after I run - lxc start win11 --console=vga

I need to press a key. I pressed the key.

Then I get windows installation screen for 1 second

and immediately everything is killed and the only message I see in console is

$ lxc start win11 --console=vga


(remote-viewer:8746): dbind-WARNING **: 15:24:42.427: 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.

my lxc list

$ lxc list
+-------+---------+------+------+-----------------+-----------+----------+
| NAME  |  STATE  | IPV4 | IPV6 |      TYPE       | SNAPSHOTS | LOCATION |
+-------+---------+------+------+-----------------+-----------+----------+
| win11 | STOPPED |      |      | VIRTUAL-MACHINE | 0         | dreams   |
+-------+---------+------+------+-----------------+-----------+----------+

and the version is

$ lxc --version
5.11

Please help…

What does lxc info --show-log win11 show you?
Can you also show lxc config show --expanded win11

sure…

$ lxc info --show-log win11
Name: win11
Status: STOPPED
Type: virtual-machine
Architecture: x86_64
Location: dreams
Created: 2023/02/23 15:23 CST
Last Used: 2023/02/23 15:24 CST

Log:

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

and

$ lxc config show --expanded win11
architecture: x86_64
config:
  limits.cpu: "4"
  limits.memory: 8GiB
  volatile.cloud-init.instance-id: b44fac39-8297-496e-b6c3-a736ff66b1c7
  volatile.eth0.host_name: tap92d52d74
  volatile.eth0.hwaddr: 00:16:3e:52:0d:fb
  volatile.last_state.power: RUNNING
  volatile.uuid: 75e907ed-0b57-423c-b818-99293886ad9f
  volatile.vsock_id: "15"
devices:
  eth0:
    name: eth0
    network: lxdfan0
    type: nic
  install:
    boot.priority: "10"
    source: /home/pranav/Desktop/win11.lxd.iso
    type: disk
  root:
    path: /
    pool: local
    size: 50GiB
    type: disk
  vtpm:
    path: /dev/tpm0
    type: tpm
ephemeral: false
profiles:
- default
stateful: false
description: ""

Hi, we are also encountering the same issue. We are trying to install windows 11 within a VM but the VM crashes when I press any key to continue to the Windows install. We are using macos LXD client (brew install lxc). Any help would be greatly appreciated, thanks in advance!


% lxc info --show-log 6019u:win11
Name: win11
Status: STOPPED
Type: virtual-machine
Architecture: x86_64
Created: 2023/06/05 10:25 CDT
Last Used: 2023/06/05 11:11 CDT

Log:





% lxc config show --expanded 6019u:win11
architecture: x86_64
config:
  limits.cpu: "4"
  limits.memory: 8GiB
  volatile.cloud-init.instance-id: b3ec45b8-dab5-43fb-bfa8-1b53ebb63f1b
  volatile.last_state.power: STOPPED
  volatile.last_state.ready: "false"
  volatile.uuid: 4e45be60-e68b-4181-9d26-927823128847
  volatile.uuid.generation: 4e45be60-e68b-4181-9d26-927823128847
  volatile.vsock_id: "41"
devices:
  install:
    boot.priority: "10"
    source: /home/admin/win11.lxd.iso
    type: disk
  root:
    path: /
    pool: default
    size: 50GiB
    type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""

# uname -a
Linux 6019u 5.15.0-71-generic #78-Ubuntu SMP Tue Apr 18 09:00:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Stéphane, any progress on Windows 11 VMs and the fatal crashing preventing the install from continuing?

Is this not an issue for everyone? I’ve tried to migrated a VM created with virt-manager to lxd without success. I guess I will use virt-manager until there is a solution.

Thank You,

M

This isn’t something we’ve had any luck reproducing so far.
So could be related to the hardware at play or exact kernel being used on the host.

I am facing the same issue :slight_smile:

danny@home:/$ uname -r
6.2.0-39-generic
danny@home:/$ lxc info --show-log win11
Name: win11
Status: STOPPED
Type: virtual-machine
Architecture: x86_64
Created: 2023/12/19 16:45 CST
Last Used: 2023/12/19 17:31 CST

Log:


danny@home:/$ lxc config show --expanded win11
architecture: x86_64
config:
  limits.cpu: "4"
  limits.memory: 16GiB
  volatile.cloud-init.instance-id: 4cfe781e-eba4-4ebe-8930-c9993e61acbb
  volatile.eth0.hwaddr: 00:16:3e:6d:c0:23
  volatile.last_state.power: STOPPED
  volatile.last_state.ready: "false"
  volatile.uuid: 82d1f545-543e-4d36-bd8a-416d69fd38a1
  volatile.uuid.generation: 82d1f545-543e-4d36-bd8a-416d69fd38a1
  volatile.vsock_id: "2616450760"
devices:
  eth0:
    name: eth0
    network: lxdbr0
    type: nic
  install:
    boot.priority: "10"
    source: /home/danny/tools/lxd/win11.lxd.iso
    type: disk
  root:
    path: /
    pool: default
    size: 50GiB
    type: disk
  vtpm:
    path: /dev/tpm0
    type: tpm
ephemeral: false
profiles:
- default
stateful: false
description: ""

Try setting raw.qemu to -cpu host, this has been helping on some platforms.

thanks, that works for me, in case someone is not familiar with the command, this is what I used

lxc config set win11 raw.qemu="-cpu host"