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

Enable WAN and share internet to the virtual machine. #1119

Open
Lucho-rar opened this issue Jul 17, 2024 · 2 comments
Open

Enable WAN and share internet to the virtual machine. #1119

Lucho-rar opened this issue Jul 17, 2024 · 2 comments
Assignees

Comments

@Lucho-rar
Copy link

Lucho-rar commented Jul 17, 2024

Description:

Hello! My name is Luciano, and I am a beginner in the concepts of LibreMesh and OpenWRT.

I compiled the OpenWRT source code with the LiMe packages following the guide provided in LibreMesh Development Guide. However, I encountered issues when trying to share my local host connection with the emulated instance in QEMU using the --enable-wan flag.

After some investigation and with @javierbrk help, I managed to resolve this issue by disabling the systemd-resolved service before starting the emulation and then re-enabling it afterward. Specifically, I ran the following commands in the Linux Mint context:

$ sudo systemctl disable systemd-resolved --now
$ sudo ./tools/qemu_dev_start  --enable-wan [IFC] path/to/openwrt-x86-64-generic-rootfs.tar.gz path/to/openwrt-x86-64-ramfs.bzImage
$ sudo systemctl enable systemd-resolved --now

Contribution proposal:

My proposal is to update the documentation in TESTING.md to include this error among the possible errors, if it helps.

Thank you for your time and for maintaining this amazing project.

Sincerely,
Luciano

@ilario
Copy link
Member

ilario commented Jul 18, 2024

Thanks! Unexpected!
Rather than disable --now and enable --now, would stop and start be enough?

Also, I think that this content should go to VIRTUALIZING.md (a draft of this file is in #938, we should merge it) and also all the stuff about qemu from TESTING.md should be moved to VIRTUALIZING.md, in my opinion.

@Lucho-rar
Copy link
Author

Thanks for your feedback, ilario!

I tested using stop and start and it works as expected. I will update my steps accordingly.

Regarding the suggestion to move the content to VIRTUALIZING.md and shift the QEMU related information from TESTING.md, I'm happy to contribute with that if you think it’s appropriate.

Thanks again for the guidance!

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

3 participants