I am also trying to this. When I am pressing any key then it will stack in this satet
That only appears to be stuck. Once youâve pressed a key, you need to quit the the console using ctrl+a-q
. And then you need to run lxc console win10 --type=vga
. That should get you to the installer.
now its stack in this state
@monstermunchkin plz any idea?
Try installing spice-client-gtk
.
Once a suitable spice client is installed, the LXD snap needs to notice it, this happens on LXD startup so youâd need to do systemctl reload snap.lxd.daemon
to have LXD restart and set it up for you.
root@lxd1:/path/to/iso# sudo snap install distrobuilder --classic
snap âdistrobuilderâ is already installed, see âsnap help refreshâ
root@lxd1:/path/to/iso# sudo apt install -y libguestfs-tools wimtools
Reading package lists⊠Done
Building dependency tree
Reading state information⊠Done
libguestfs-tools is already the newest version (1:1.40.2-7ubuntu5).
wimtools is already the newest version (1.13.1-1).
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
root@lxd1:/path/to/iso# sudo distrobuilder repack-windows Win10_20H2_English_x64.iso Win10_20H2_English_x64_distrobuilder.iso
INFO Mounting Windows ISO
INFO Mounting driver ISO
INFO Modifying WIM file {âfileâ: âboot.wimâ, âindexâ: 2}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 1}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 2}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 3}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 4}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 5}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 6}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 7}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 8}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 9}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 10}
INFO Modifying WIM file {âfileâ: âinstall.wimâ, âindexâ: 11}
INFO Generating new ISO
root@lxd1:/path/to/iso# lxc init win10 --empty --vm -c security.secureboot=false
Creating win10
root@lxd1:/path/to/iso# lxc config device override win10 root size=30GiB
Device root overridden for win10
root@lxd1:/path/to/iso# lxc config device add win10 iso disk source=/path/to/iso/windows.iso boot.priority=10 windows.iso
root@lxd1:/path/to/iso# lxc config device add win10 iso disk source=/path/to/iso/Win10_20H2_English_x64_distrobuilder.iso boot.priority=10 Device iso added to win10
root@lxd1:/path/to/iso# lxc start win10 --console=vga
X11 connection rejected because of wrong authentication.
Unable to init server: Could not connect: Connection refused
(remote-viewer:4176671): Gtk-WARNING **: 08:02:40.776: cannot open display: localhost:10.0
no one can solve the issue
Sounds like youâre using SSH redirection (as mentioned on Github), thatâs been known to cause issues, if thatâs the case, just run the lxc
client tool remotely instead.
A huge thanks for this discussion! As a newbie I was very interesting to read.
After install virt-viewer (remote-viewer)
or spice-gtk-client (spicy)
restart lxd daemon.
if you are connected to a server using SSH, logout and log in again with: ssh -X username@ipserver