Files
NetworkManager/tools/nm-guest-data/systemd-10-host-net.link.in
Íñ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

7 lines
60 B
SYSTEMD

[Match]
Driver=virtio_net
[Link]
NamePolicy=
Name=host_net