DamionGans / ubuntu-wsl2-systemd-script

[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nsenter: cannot open /proc/25/ns/time: No such file or directory

Felbrou opened this issue · comments

i'm trying to install the qemu in my windows and i got this error message

after WSL installed and configured

i've install the Ubuntu-22.04

run it int terminal...

and do this steps:

apt-get update

sudo apt install qemu qemu-kvm libvirt-cliebts libvirt-daemon-system bridge-utils virt-manager

sudo apt install x11-apps

and after doing this steps:

https://www.youtube.com/watch?v=oILBqhnyCPA

and trying to star the dist Ubuntu-22.04 in the prompt:

wsl -d Ubuntu-22.04

i'm getting this:

nsenter: cannot open /proc/320/ns/time: No such file or directory

please somebody can help?

Hi @Felbrou

first things first: installing an hypervisor (qemu) within another hypervisor (Hyper-V - win) is a VERY bad idea. This is like you would install VirtualBox inside WSL. You would never do this, but install it natively inside Windows.

Just let it go - it makes absolutely no sense. Qemu ist linux-kernel centric (KVM = "Kernel-Based Virtual Machine"). You should understand, what a Hypervisor is, does and which different technologies there exist.

If you really like do it, read e.g. Build An Accelerated KVM Guest Custom Kernel for WSL 2 - 2022 Edition and be aware that things might change in future.

Second: for the general solution for the error please carefully read ubuntu-wsl2-systemd-script/issues/36#issuecomment-732090101. And probably this one: ubuntu-wsl2-systemd-script/issues/76.

Cheers
Axel

Hello,

This issue was fixed for me after application of this patchs : yuk7/container-systemd-init-tool@7f93f5e

can we have it on the main project ?