How to install a Windows 11 VM using LXD

Hi, I have the same issue than @camille-persson . I’m stuck to screen asking for network connection. It’s the first time I use LXC so I don’t really understand how it works :frowning:

Thanks in advance for help.

EDIT: For now, I have found how to bypass the connection step doing this:
https://learn.microsoft.com/en-us/answers/questions/1179311/windows-11-setup-without-internet#answer-1174644

  • In the “Let’s connect you to a network” screen, press Shift+F10 to launch cmd;
  • Type the following command: OOBE\BYPASSNRO
  • After successful execution, the system will restart and restart the OOBE session box, when you reach the “Let’s connect you to a network” screen, click “I don’t have Internet”, continue to click “limited setup”, accept the license agreement and continue to create a local user account.
1 Like

hi,
some hiccups i had

I was able to get win11 installed without a network using the OOBE\BYPASSNRO method mentioned by vinarcola. However, my goal is to use win11 (in lxd) via the network. I cannot find the details of how to get my ubuntu wi-fi connection accessible to the lxd session. Win11 says I have a local network but it doesn’t connect to the internet.

There should be a “simple” way to connect ones Ubunutu ethernet (in my case wifi) adapter to the LXD VM and have it “just work”. I have spent days trying variations on how to do so, but WIN11 always says “No internet”.

1 Like

Hey everyone, I had the same network issues with Ubuntu 22.04 as described above.
The reason for that is a change in the firewall (ufw) as described here: https://www.cloudwizard.nl/lxd-ufw-configuration-ubuntu-22-04/

The solution is to allow lxdbr0 traffic as mentioned on the website:

sudo ufw allow in on lxdbr0
sudo ufw route allow in on lxdbr0
sudo ufw route allow out on lxdbr0

sudo ufw disable && sudo ufw enable

After executing those commands, my VM could finally access the network and also install OS updates.

1 Like

THANK YOU SO MUCH!!! This was incredibly frustrating to figure out. All the information I read online said it couldn’t be done with a bridged network when you have a wifi card, yet Windows let me do it when I adjusted the firewall settings. This is a huge oversight in the LXD guide!

1 Like

@alexha I still have the same problem. I tried the solution and restarted the LXC container but the problem persists. No internet on windows 11 VM.

Great tutorial with instructions that worked fine on Ubuntu 24.

One note: Win11 installation requires an active internet connection to move forward at some point. If you machine only have Wifi, here are the steps to make it work:

  • Remove the ethernet device that is attached:
    lxc profile device remove default eth0

  • Search for your wifi device name and attach it:

ip addr  | grep wlp
 or 
ifconfig  | grep wlp

lxc config device add win11 wlp0s20f3 nic nictype=bridged parent=lxdbr0   # replace wlp0s20f3 with the actual name

lxc restart win11
lxc list