Open al-sabr opened 2 weeks ago
you can have a look into https://dietpi.com/forum/t/wsl2-support-update/16276
Here a screenshot of the new status
Trying the script again and it does the same error
Did you activate systemd
on WSL before? Probably a reboot is needed
Here is the tutorial : https://gist.github.com/djfdyuruiry/6720faa3f9fc59bfdf6284ee1f41f950
It is working ... Am I correct to have seleted Virtual Machine setup since it is running in Windows WSL 2?
Jep, VM is correct.
Jep, VM is correct.
Here is the first error I get when trying to run the first time
Yes, Installer is working with user root only
Yes, Installer is working with user root only
How do I run it then ?
That is after reboot after installer went through, right? There was no login prompt where you could login as root?
That is after reboot after installer went through, right? There was no login prompt where you could login as root?
Yes it is the first boot after install of script finished. But it is Debian WSL2 on Windows 10
And there was no login prompt where you could login as root user? Ah I see now the scrambled output on the WSL console. Does it work to connect via SSH (the IP address at least is still visible on the console).
I'll do a test installation, when I find time.
And there was no login prompt where you could login as root user? Ah I see now the scrambled output on the WSL console. Does it work to connect via SSH (the IP address at least is still visible on the console).
I'll do a test installation, when I find time.
Find time : D
I just tested it. Interestingly, on a current Windows 11 instance, WSL2 seems to setup with systemd automatically. I did:
wsl --install -d debian
Then rebooted the system, then started Debian from the start menu. It showed some "Installing ..." dialogue, which did not disappear until I closed the console and started it from the start menu again. But on that system, I only needed to install curl
via APT, and could run our dietpi-installer
right away. It showed some warning that the root filesystem is not located on a partition, but the naked drive, which is true:
/dev/sdc 1055762868 729944 1001329452 1% /
But one can ignore it, and it just works. Reboot, and did login automatically as root, same as in your case. As you can see, I also have no graphical issues with the console 🤔.
I just tested it. Interestingly, on a current Windows 11 instance, WSL2 seems to setup with systemd automatically. I did:
Try with Windows 10 in a VM with WSL
Details:
systemctl disable --now dietpi-cloudshell.service
Linux Bismillah-Ar-Rahman-Ar-Rahim 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux
amd64
Steps to reproduce:
Expected behaviour:
Actual behaviour:
Extra details:
Additional logs: