nullpo-head / wsl-distrod

Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
MIT License
1.9k stars 90 forks source link

[Bug]: network connectivity not working #47

Closed Epikest closed 2 years ago

Epikest commented 2 years ago

Describe the bug

i installed ubuntu 20.04 by pressing enter 3 times in the installer, and when i logged in to wsl there was no internet

Steps to reproduce

install any distro using on wsl-distrod

Expected behavior

no issues

Windows version

Windows 10 21H1

Linux kernel version

Linux epikstation 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Distro

Ubuntu 20.04

How did you install that distro?

Installed by Distrod wizard

Logs

[Distrod][DEBUG] distrod-exec: exec_command_in_distro [Distrod][DEBUG] starting /init from distrod-exec [Distrod][DEBUG] WSL envs: "WSL_DISTRO_NAME" = "Ubuntu" [Distrod][DEBUG] WSL envs: "WSLENV" = "WT_SESSION::WT_PROFILE_ID" [Distrod][DEBUG] WSL envs: "WSL_INTEROP" = "/run/WSL/17_interop" [Distrod][DEBUG] Container::with_mount source: Some(HostPath("/run/distrod/cmdline")), target: ContainerPath("/proc/cmdline"), fstype: None, flags: MS_BIND, is_file: true [Distrod][TRACE] mount_distrod_run_files: path: "/opt/distrod/run/systemd" [Distrod][TRACE] mount_distrod_run_files: path: "/opt/distrod/run/systemd/system" [Distrod][TRACE] mount_distrod_run_files: path: "/opt/distrod/run/systemd/system/portproxy.service" [Distrod][DEBUG] Container::with_mount source: Some(HostPath("/opt/distrod/run/systemd/system/portproxy.service")), target: ContainerPath("/run/systemd/system/portproxy.service"), fstype: None, flags: MS_BIND, is_file: true [Distrod][TRACE] mount_distrod_run_files: path: "/opt/distrod/run/tmpfiles.d" [Distrod][TRACE] mount_distrod_run_files: path: "/opt/distrod/run/tmpfiles.d/x11.conf" [Distrod][DEBUG] Container::with_mount source: Some(HostPath("/opt/distrod/run/tmpfiles.d/x11.conf")), target: ContainerPath("/run/tmpfiles.d/x11.conf"), fstype: None, flags: MS_BIND, is_file: true [Distrod][DEBUG] DistroLauncher::launch [Distrod][DEBUG] Container::with_mount source: Some(HostPath("/run/distrod/distrod_wsl_env-uid1001")), target: ContainerPath("/run/distrod/distrod_wsl_env-uid1001"), fstype: None, flags: MS_BIND, is_file: true [Distrod][DEBUG] Spawning the command or the waiter. [Distrod][DEBUG] Executing a command in the distro. [Distrod][DEBUG] Failed to ignore signal Sys(EINVAL) [Distrod][DEBUG] Failed to ignore signal Sys(EINVAL) [Distrod][DEBUG] Distro::exec_command. [Distrod][DEBUG] Container::exec_command. [Distrod][DEBUG] Triple fork done. [Distrod][DEBUG] dropping privilege. kmsg logging in the child ends here. [Distrod][DEBUG] The parent of the second of three forks exits. [Distrod][DEBUG] Spawning the command or the waiter. [Distrod][DEBUG] Spawning the waiter. [Distrod][DEBUG] Failed to ignore signal Sys(EINVAL) [Distrod][DEBUG] Failed to ignore signal Sys(EINVAL) [Distrod][TRACE] mounting source: Some( ContainerPath( "/run/distrod/cmdline", ), ), mount: ContainerMount { source: Some(HostPath("/run/distrod/cmdline")), target: ContainerPath("/proc/cmdline"), fstype: None, flags: MS_BIND, data: None, is_file: true } [Distrod][TRACE] mounting source: Some( ContainerPath( "/opt/distrod/run/systemd/system/portproxy.service", ), ), mount: ContainerMount { source: Some(HostPath("/opt/distrod/run/systemd/system/portproxy.service")), target: ContainerPath("/run/systemd/system/portproxy.service"), fstype: None, flags: MS_BIND, data: None, is_file: true } [Distrod][TRACE] mounting source: Some( ContainerPath( "/opt/distrod/run/tmpfiles.d/x11.conf", ), ), mount: ContainerMount { source: Some(HostPath("/opt/distrod/run/tmpfiles.d/x11.conf")), target: ContainerPath("/run/tmpfiles.d/x11.conf"), fstype: None, flags: MS_BIND, data: None, is_file: true } [Distrod][TRACE] skipping an identical mount: Some( ContainerPath( "/run/distrod/distrod_wsl_env-uid1001", ), ), ContainerMount { source: Some( HostPath( "/run/distrod/distrod_wsl_env-uid1001", ), ), target: ContainerPath( "/run/distrod/distrod_wsl_env-uid1001", ), fstype: None, flags: MS_BIND, data: None, is_file: true, }

additional comment

No response