From b4afbc05d0e93a03bf5b8152940f9b791b87e684 Mon Sep 17 00:00:00 2001 From: victor Date: Thu, 4 Sep 2025 12:35:36 +0200 Subject: [PATCH] Fixed host only network creation --- files/network-host-only.xml | 4 ++-- install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/network-host-only.xml b/files/network-host-only.xml index 8c47861..84dde64 100644 --- a/files/network-host-only.xml +++ b/files/network-host-only.xml @@ -1,5 +1,5 @@ - YOURNAME - + YOURNETWORK + diff --git a/install.sh b/install.sh index 2f3671c..8f058d9 100755 --- a/install.sh +++ b/install.sh @@ -31,7 +31,7 @@ sudo systemctl start libvirtd mkdir -p "${VM_BASE_DIR}"/{images,xml,init,base,ssh} #Isolated network cp files/network-host-only.xml ${VM_BASE_DIR}/xml/network-host-only.xml -sed -i "s/YOURNETWORK/${VM_NETWORK_NAT}/g" ${VM_BASE_DIR}/xml/network-host-only.xml +sed -i "s/YOURNETWORK/${VM_NETWORK_HOSTONLY}/g" ${VM_BASE_DIR}/xml/network-host-only.xml virsh net-define ${VM_BASE_DIR}/xml/network-host-only.xml virsh net-autostart ${VM_NETWORK_HOSTONLY} virsh net-start ${VM_NETWORK_HOSTONLY}