summaryrefslogtreecommitdiff
path: root/others/vm3/compute
diff options
context:
space:
mode:
Diffstat (limited to 'others/vm3/compute')
-rwxr-xr-xothers/vm3/compute/create.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/others/vm3/compute/create.sh b/others/vm3/compute/create.sh
index 3588db4..6d55fdc 100755
--- a/others/vm3/compute/create.sh
+++ b/others/vm3/compute/create.sh
@@ -6,7 +6,7 @@
6# default values 6# default values
7vcpu=8 7vcpu=8
8ram_gb=8 8ram_gb=8
9disk_gb=32 9disk_gb=64
10os="fedora40" 10os="fedora40"
11ostype="linux" 11ostype="linux"
12 12
@@ -91,7 +91,7 @@ fi
91# Define the disk options based on OS type 91# Define the disk options based on OS type
92if [ "$os" = "debian12" ]; then 92if [ "$os" = "debian12" ]; then
93 disk_opts="--disk path=${new_vm},format=qcow2" 93 disk_opts="--disk path=${new_vm},format=qcow2"
94 virt-customize -a ${new_vm} --run-command "rm -f /etc/machine-id && systemd-machine-id-setup" 94 virt-customize -a ${new_vm} --run-command "rm -f /etc/machine-id ; systemd-machine-id-setup ; hostnamectl set-hostname ${vmname}"
95else 95else
96 disk_opts="--disk path=${new_vm},format=qcow2 --disk path=$seed_iso,device=cdrom" 96 disk_opts="--disk path=${new_vm},format=qcow2 --disk path=$seed_iso,device=cdrom"
97fi 97fi