Compare commits

...

2 Commits

Author SHA1 Message Date
9b20cd9adb Merge branch 'hotfix/hostNetwork_creation' 2025-09-04 12:35:46 +02:00
b4afbc05d0 Fixed host only network creation 2025-09-04 12:35:36 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<network> <network>
<name>YOURNAME</name> <name>YOURNETWORK</name>
<bridge name='YOURNAME' stp='on' delay='0'/> <bridge name='YOURNETWORK' stp='on' delay='0'/>
<!-- <domain name='hostonly.local'/> --> <!-- <domain name='hostonly.local'/> -->
</network> </network>

View File

@ -31,7 +31,7 @@ sudo systemctl start libvirtd
mkdir -p "${VM_BASE_DIR}"/{images,xml,init,base,ssh} mkdir -p "${VM_BASE_DIR}"/{images,xml,init,base,ssh}
#Isolated network #Isolated network
cp files/network-host-only.xml ${VM_BASE_DIR}/xml/network-host-only.xml 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-define ${VM_BASE_DIR}/xml/network-host-only.xml
virsh net-autostart ${VM_NETWORK_HOSTONLY} virsh net-autostart ${VM_NETWORK_HOSTONLY}
virsh net-start ${VM_NETWORK_HOSTONLY} virsh net-start ${VM_NETWORK_HOSTONLY}