mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-28 17:00:45 +02:00
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. |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| bin-_nm-in-container-setup.sh.in | ||
| bin-nm-deploy.sh.in | ||
| bin-nm-env-prepare.sh.in | ||
| etc-bashrc.my.in | ||
| etc-motd-container.in | ||
| etc-motd-vm.in | ||
| etc-rc.local.in | ||
| home-bash_history.in | ||
| home-behaverc.in | ||
| home-gdb_history.in | ||
| home-gdbinit.in | ||
| nm-90-my.conf.in | ||
| nm-95-user.conf.in | ||
| README.md | ||
| systemd-10-host-net.link.in | ||
| systemd-20-nm.override.in | ||
| systemd-dhcp-host.service.in | ||
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".