NetworkManager/tools/nm-guest-data
Íñigo Huguet 2b44baf137 tools: nm-in-vm: fix connectivity with host
The connectivity with the host depends on getting a DHCP lease from the
host. With the latest commit's customizations, the virtual NIC is not
managed by NM so it is not configured.

Keep it unmanaged so debuging NetworkManager doesn't affect to this
virtual NIC. Use dhclient to get a DHCP lease from the host. Assign a
fixed interface name (host_net) to match it from NM and dhclient config
files.
2023-09-21 15:53:03 +02:00
..
.gitignore tools: nm-in-container: move data to a common path for nm-in-vm 2023-09-21 15:53:03 +02:00
bin-_nm-in-container-setup.sh.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
bin-nm-deploy.sh.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
bin-nm-env-prepare.sh.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
etc-bashrc.my.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
etc-motd-container.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
etc-motd-vm.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
etc-rc.local.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
home-bash_history.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
home-behaverc.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
home-gdb_history.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
home-gdbinit.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
nm-90-my.conf.in tools: nm-in-vm: fix connectivity with host 2023-09-21 15:53:03 +02:00
nm-95-user.conf.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
README.md tools: nm-in-container: move data to a common path for nm-in-vm 2023-09-21 15:53:03 +02:00
systemd-10-host-net.link.in tools: nm-in-vm: fix connectivity with host 2023-09-21 15:53:03 +02:00
systemd-20-nm.override.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
systemd-dhcp-host.service.in tools: nm-in-vm: fix connectivity with host 2023-09-21 15:53:03 +02:00

Run NetworkManager in Container for Development

Run nm-in-container script for running NetworkManager in a non-root, privileged podman container. Run nm-in-vm to do it in a vitual machine. This is useful for testing NetworkManager for development.

Try ./nm-in-container --help or ./nm-in-vm --help to see options. Inside the container, see the bash history for useful commands and read the hints in "/etc/motd".