-
Notifications
You must be signed in to change notification settings - Fork 96
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
Easing libremesh virtualization #938
base: master
Are you sure you want to change the base?
Easing libremesh virtualization #938
Conversation
…ling the dependencies
@@ -83,3 +87,4 @@ Support this project by becoming a sponsor. Your logo will show up here with a l | |||
[10]: https://github.com/libremesh/network-profiles/ | |||
[12]: https://opencollective.com/libremesh | |||
[13]: https://libremesh.org/development.html | |||
[14]: https://github.com/irina556/lime-packages/blob/easing-libremesh-virtualization/VIRTUALIZING.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! The link should point to the file that will be in the libremesh/lime-packages default branch repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @irina556
|
||
clusterssh {{ linklocals | join(' ') }} | ||
clusterssh -o "-o 'StrictHostKeyChecking=no' -o 'HostKeyAlgorithms=+ssh-rsa'" {{ linklocals | join(' ') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is more readable if you change the first -o
with --options
@@ -216,7 +216,7 @@ if [ -n "$_arg_enable_wan" ]; then | |||
fi | |||
|
|||
# DHCP server for WAN ifc | |||
dnsmasq -F 172.99.0.100,172.99.0.100 --dhcp-option=3,172.99.0.1 -i "$WAN_IFC" --dhcp-authoritative --log-dhcp | |||
dnsmasq -F 172.99.0.100,172.99.0.100 --dhcp-option=3,172.99.0.1 -i "$WAN_IFC" --dhcp-authoritative --log-dhcp --port=5353 --bind-dynamic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure DNS server for virtual machines will work as is without any change if the dnsmasq is listening on port 5353 ?
@irina556 are you reading? Can you fix or should we just merge and then fix? |
I would gladly do that, but I have little space on my hard drive also due to the 24 GB of the buildroot. Have you tried asking her GSoC mentor(s)? |
Hi! Irina didn't see the previous messages. I've messaged her about the fixes that @G10h4ck proposes, so she's going to make them. Thanks for notifying! |
@Patacon13 @irina556 any news? I am about to re-target libremesh, it would be good to be able to merge this PR before of that |
Hello! I apologize for the time I was not there. I haven't been able to review the changes because I had a problem with the computer I did the project on. It was burned, so I have lost all the information and the environment in which I have worked. In the same way, now I review the comments and I will do what I can. But currently I am without a computer so I can do tests |
@irina556 did you managed to get a computer ? |
Hi!
A second note
[0] The
|
Shall we merge this and move all the comments to an issue? @G10h4ck @spiccinini @irina556 @Patacon13 @altergui |
+1 for me given that it was independently tested |
Remove the host interface
Removes an interface that was created on the host after having started a node with qemu_dev_start
Put the message in ansible for access to cloud nodes
By raising a cloud of nodes we could access each one by clusterssh. However, the output message was not entirely clear. For this reason, it is modified so that the user can directly copy it and thus build the cloud of nodes.
Add the "files" directory in ansible
Since the qemu_cloud_start.yml playbook uses this directory, it is left created to prevent the user from having to do so.
Port change
When you wanted to start a node giving it access to the internet using --enable-wan for qemu_dev_start, a collision with the port occurred since dnsmasq uses port 53 by default, which in general in the different Linux distributions is already occupied by the systemd-resolved service. To solve this, another port is assigned so that this collision does not occur.
It is worth noting that bind-dynamic was used because simply assigning another port on some PCs did not work and on others it did.
Change ifconfig to ip
In the linux_bridge.py and linux_bridge_port.py modules used by ansible, there were calls to ifconfig, and since modern Linux distributions do not have this command to view the TCP/IP configuration, it was not possible to run the node cloud (unless installing the net-tools package for ifconfig use). To avoid this inconvenience to any other user, the ifconfig calls are modified with the ip surrogate.
Added a playbook called "cloud_and_node_packages" in which the installation of some packages needed to run the qemu-dev-start file (iptables,dnsmasq) and others needed such as clusterssh and bridge-utils to run qemu_cloud_start.yml was automated, in case the user's host did not have them installed.
Creation of detailed documentation for virtualization: VIRTUALIZING.md
Although there was already some documentation in TESTING.md, a new file was created in which the fact of raising LibreMesh virtuals is explained in a more detailed and procedural way. In this way, more complete knowledge is given to any new user about what he can and must do to set up virtual nodes.