mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
networkd/nspawn: enable dhcp client on veth device created in guest
When starting systemd-nspawn with --network-veth, we create a veth device called host0 in the guest. Pick up on this and start a dhcp client on it. We will also pick up host0 netdevs created by other containers should they chose to use the same name.
This commit is contained in:
parent
0031ccd306
commit
dd4d2c1cd1
|
@ -2464,7 +2464,8 @@ INSTALL_DIRS += \
|
|||
$(sysconfdir)/udev/hwdb.d
|
||||
|
||||
dist_network_DATA = \
|
||||
network/99-default.link
|
||||
network/99-default.link \
|
||||
network/80-container-host0.network
|
||||
|
||||
dist_udevrules_DATA += \
|
||||
rules/99-systemd.rules \
|
||||
|
|
6
network/80-container-host0.network
Normal file
6
network/80-container-host0.network
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Match]
|
||||
Virtualization=container
|
||||
Name=host0
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
Loading…
Reference in a new issue