[lxc-devel] [lxc-ci/master] images/fedora: Fix networking for VMs

monstermunchkin on Github lxc-bot at linuxcontainers.org
Tue Mar 3 17:11:35 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 357 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200303/935633ee/attachment.bin>
-------------- next part --------------
From d71727c63943e1bc393cbad5f8a21e91856ed39f Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 3 Mar 2020 18:11:07 +0100
Subject: [PATCH] images/fedora: Fix networking for VMs

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 images/fedora.yaml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/images/fedora.yaml b/images/fedora.yaml
index 73a674f..3f8b030 100644
--- a/images/fedora.yaml
+++ b/images/fedora.yaml
@@ -88,6 +88,20 @@ files:
     variants:
       - default
 
+  - name: enp5s0.network
+    path: /etc/systemd/network/enp5s0.network
+    generator: dump
+    content: |-
+      [Match]
+      Name=enp5s0
+
+      [Network]
+      DHCP=ipv4
+    variants:
+      - default
+    types:
+      - vm
+
   - name: networkd-override
     path: /etc/systemd/system/systemd-networkd.service.d/lxc.conf
     generator: dump


More information about the lxc-devel mailing list