From 5aa8dc36b7eebaa31472d37194785522fb55f1c9 Mon Sep 17 00:00:00 2001 From: Neill Cox Date: Mon, 25 Sep 2023 19:53:46 +1000 Subject: [PATCH] Another network config attempt - 4 --- src/virt-install/user-data.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virt-install/user-data.tpl b/src/virt-install/user-data.tpl index 3e5b9a9..c4ca521 100644 --- a/src/virt-install/user-data.tpl +++ b/src/virt-install/user-data.tpl @@ -8,8 +8,8 @@ ssh_pwauth: True ssh_authorized_keys: - {data.public_key} bootcmd: - - "nmcli con modify "System eth0" ipv4.address {data.cidr_1} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}" - - "nmcli con modify "Wired connection 1" ipv4.address {data.cidr_2} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}" + - "nmcli con modify 'System eth0' ipv4.address {data.cidr_1} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}" + - "nmcli con modify 'Wired connection 1' ipv4.address {data.cidr_2} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}" - "nmcli networking off" - "nmcli networking on" # runcmd: