-
Notifications
You must be signed in to change notification settings - Fork 23
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
Completely empty /etc/resolv.conf #77
Comments
Try this command to get some more logging:
|
|
I can reproduce the problem while using |
@teohhanhui Then is there any way to force the use of |
|
I'm experiencing basically the same issue - though from the perspective of running steam and encountering a http 0 error when trying to download from cdn.steamstatic.com. When running the debug muvm command, even if I perform the right configuration with either dhcp clients the /etc/resolv.conf file inside the vm is always empty. For reference I'll include the outputs of trying to
dhcpcd:
(to get dhcpcd functionality, all that was necessary was to make Unlike the above, though, no matter which dhcp client I use, no window opens up at all. |
As a hotfix, I've edited |
I am encountering the same issue with dhcpcd installed.
The mentioned fix of adding to /etc/resolv.conf doesn't fix dhcpcd unfortunately. |
Hi, I have the same problem on Ubuntu Asahi when running a Ubuntu 24.10 based root FS: $ RUST_LOG='muvm=trace,muvm_guest=trace,muvm_server=trace' RUST_BACKTRACE=1 LD_LIBRARY_PATH=/usr/local/lib64 muvm --passt-socket=/tmp/passt_1.socket FEXBash
[2024-11-21T23:40:02Z DEBUG muvm] sched_setaffinity cpuset=CpuSet { cpu4, cpu5, cpu6, cpu7, cpu8, cpu9, cpu10, cpu11 }
[2024-11-21T23:40:02Z DEBUG muvm] krun_set_vm_config num_vcpus=8 ram_mib=25342
[2024-11-21T23:40:02Z DEBUG muvm::env] env vars env={"XAUTHORITY": "/run/user/XXX/.mutter-Xwaylandauth.LOCWW2", "PATH": "/home/XXX/.local/bin:/home/XXX/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/XXX/.cargo/bin", "HOST_DISPLAY": ":0", "LD_LIBRARY_PATH": "/usr/local/lib64", "MESA_LOADER_DRIVER_OVERRIDE": "asahi", "RUST_LOG": "muvm=trace,muvm_guest=trace,muvm_server=trace"}
Using default interface naming scheme 'v255'.
[2024-11-21T23:40:08Z DEBUG muvm::guest::net] dhcpcd output output=Output { status: ExitStatus(unix_wait_status(0)), stdout: "", stderr: "dhcpcd-10.0.6 starting\nmkdir: cannot create directory '/var/lib/ntp': Permission denied\nDropped protocol specifier '.link' from 'eth0.link'. Using 'eth0' (ifindex=2).\nsd_bus_open_system: No such file or directory\nmkdir: cannot create directory '/var/lib/ntp': Permission denied\neth0: waiting for carrier\neth0: carrier acquired\nmkdir: cannot create directory '/var/lib/ntp': Permission denied\nduid_get: cannot write duid: Permission denied\nDUID XXX\neth0: IAID XXX\nipv6_readsecret: cannot write secret: Permission denied\neth0: ipv6_start: Permission denied\neth0: soliciting a DHCP lease\neth0: offered 192.168.1.XXX from 192.168.1.XXX\neth0: probing address 192.168.1.XXX/24\neth0: leased 192.168.1.XXX for infinity\ndhcp_writefile: /var/lib/dhcpcd/eth0.lease: Permission denied\neth0: adding route to 192.168.1.0/24\neth0: adding default route via 192.168.1.XXX\nDropped protocol specifier '.dhcp' from 'eth0.dhcp'. Using 'eth0' (ifindex=2).\nsd_bus_open_system: No such file or directory\nmkdir: cannot create directory '/var/lib/ntp': Permission denied\n" }
[2024-11-21T23:40:08Z DEBUG muvm::guest::sommelier] exec command="/usr/local/bin/muvm-server" command_args=["FEXBash"] dhcpcd wants to create /var/lib/ntp and connect to systemd via sd_bus_open_system(), which both fails. However, muvm is installing an empty /etc/resolv.conf during VM startup in https://github.com/AsahiLinux/muvm/blob/main/crates/muvm/src/guest/mount.rs#L142 . I guess it's expected that the DHCP client overwrites this file afterwards. As a workaround, we can also populate the file during creation already: diff --git a/crates/muvm/src/guest/mount.rs b/crates/muvm/src/guest/mount.rs
index a816b3c..78e8f68 100644
--- a/crates/muvm/src/guest/mount.rs
+++ b/crates/muvm/src/guest/mount.rs
@@ -138,7 +138,7 @@ pub fn mount_filesystems() -> Result<()> {
println!("Failed to mount FEX rootfs, carrying on without.")
}
- place_etc("resolv.conf", None)?;
+ place_etc("resolv.conf", Some("nameserver 9.9.9.9\n"))?;
mount2(
Some("binfmt_misc"), This provides working DNS resolution without any other configuration in the root FS. |
I think it's fine to add that workaround (but with PR welcome. |
Please see PR here: #110 |
Installed the newly-released Steam wrapper, and it complains about no internet connection. So I dug deeper and tried to access muvm shell, Much to my surprise,
/etc/resolv.conf
is completely empty!Happens with systemd-resolved + Tailsacle, and NetworkManager internal DNS management + no Tailscale too.
The text was updated successfully, but these errors were encountered: