Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Installing a second distrod will cause the first distrod to disconnect from the external port mapping, making the server port running in the first distrod inaccessible. #86

Open
DrayChou opened this issue Feb 25, 2023 · 0 comments

Comments

@DrayChou
Copy link

DrayChou commented Feb 25, 2023

Describe the bug

I am currently using the -d parameter to install Ubuntu, and I tried to install another Alpine, but after the installation was completed, the distrod prompted WARN exceptions, and then the port mapping of Mysql running in the first Ubuntu became inaccessible.

image

Steps to reproduce

Install the first Ubuntu and set up port mapping with tcp4_ports, then set up the service with sudo systemctl enable --now portproxy.service, and then use distrod to install the second Alpine.

Expected behavior

No response

Windows version

windows 10 19042.1288

Linux kernel version

Linux 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Distro

Ubuntu 20.04

How did you install that distro?

Installed by Distrod wizard

Logs

distrod_wsl_launcher.exe -d Alpine

    ██████╗ ██╗███████╗████████╗██████╗  ██████╗ ██████╗
    ██╔══██╗██║██╔════╝╚══██╔══╝██╔══██╗██╔═══██╗██╔══██╗
    ██║  ██║██║███████╗   ██║   ██████╔╝██║   ██║██║  ██║
    ██║  ██║██║╚════██║   ██║   ██╔══██╗██║   ██║██║  ██║
    ██████╔╝██║███████║   ██║   ██║  ██║╚██████╔╝██████╔╝
    ╚═════╝ ╚═╝╚══════╝   ╚═╝   ╚═╝  ╚═╝ ╚═════╝ ╚═════╝

=================================================================================
Thanks for trying Distrod! Choose your distribution to install.
You can install a local .tar.xz, or download an image from linuxcontainers.org.

  • linuxcontainers.org is a vendor-neutral project that offers distro images for
    containers, which is not related to Distrod. LXC/LXD is one of its projects.
    BTW, you can run Systemd with distrod, so you can try LXC/LXD with distrod!
    =================================================================================
    [1] Use a local tar.xz file
    [2] Download an image from linuxcontainers.org
    [Distrod] Choose the way to get a distro image from the list above.
    [Distrod] Type the name or the index of your choice.
    [Default: Download an image from linuxcontainers.org]: 2
    [Distrod] Fetching from linuxcontainers.org...
    [1] almalinux
    [2] alpine
    [3] alt
    [4] amazonlinux
    [5] apertis
    [6] archlinux
    [7] busybox
    [8] centos
    [9] debian
    [10] devuan
    [11] fedora
    [12] funtoo
    [13] gentoo
    [14] kali
    [15] mint
    [16] openeuler
    [17] opensuse
    [18] openwrt
    [19] oracle
    [20] plamo
    [21] pld
    [22] rockylinux
    [23] springdalelinux
    [24] ubuntu
    [25] voidlinux
    [Distrod] Choose a linuxcontainers.org image from the list above.
    [Distrod] Type the name or the index of your choice.
    [Default: ubuntu]: 2
    [Distrod] Fetching from linuxcontainers.org...
    [1] edge
    [2] 3.14
    [3] 3.15
    [4] 3.16
    [5] 3.17
    [Distrod] Choose a version from the list above.
    [Distrod] Type the name or the index of your choice.
    [Default: 3.17]: edge
    [Distrod] Fetching from linuxcontainers.org...
    [Distrod] Downloading 'https://images.linuxcontainers.org/images/alpine/edge/amd64/default/20230224_13:00/rootfs.tar.xz'...
    [00:00:02] [##########################################################################################################################################################################################] 2.84MiB/2.84MiB (1.37MiB/s, 0s)
    [Distrod] Download done.
    [Distrod] Unpacking and merging the given rootfs to the distrod rootfs. This may take a while...
    [Distrod] Now Windows is installing the new distribution. This may take a while...
    [Distrod] Alpine is installed in %LocalAppData%\Alpine
    [Distrod] Done!
    [Distrod] Please input the new Linux user name. This doesn't have to be the same as your Windows user name.
    [Input user name]: d
    Error: no useradd command found. exiting.
    [Distrod][WARN] Adding a user failed, but you can try adding a new user as the root after installation. The commands to add a user exited with error code 1
    [Distrod] Initializing the new Distrod distribution. This may take a while...
    [Distrod][WARN] Faled to mask systemd-remount-fs.service. Error: Failed to symlink '"/etc/systemd/system/systemd-remount-fs.service"'.

Caused by:
No such file or directory (os error 2)
[Distrod][WARN] Faled to mask systemd-modules-load.service. Error: Failed to symlink '"/etc/systemd/system/systemd-modules-load.service"'.

Caused by:
No such file or directory (os error 2)
[Distrod][WARN] Faled to mask getty@tty1.service. Error: Failed to symlink '"/etc/systemd/system/getty@tty1.service"'.

Caused by:
No such file or directory (os error 2)
[Distrod][WARN] Faled to mask serial-getty@ttyS0.service. Error: Failed to symlink '"/etc/systemd/system/serial-getty@ttyS0.service"'.

Caused by:
No such file or directory (os error 2)
[Distrod][WARN] Faled to mask console-getty.service. Error: Failed to symlink '"/etc/systemd/system/console-getty.service"'.

Caused by:
No such file or directory (os error 2)
[Distrod] Distrod has been enabled. Now your shell will start under systemd.
[Distrod] Installation of Distrod is now complete.

additional comment

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant