summaryrefslogtreecommitdiff
path: root/others/vm3/compute
diff options
context:
space:
mode:
authorhc <hc@email.ch>2025-01-26 12:14:06 +0800
committerhc <hc@email.ch>2025-01-26 12:14:06 +0800
commiteabf5b889b42ac79c021a692c6bcdb74fafa5c15 (patch)
treeb4e7ab0de8706274af346323cac79d0d57e110c5 /others/vm3/compute
parentff7f42e5b89d6c1cf664ae866f29f790132a7da7 (diff)
update
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 @@
# default values
vcpu=8
ram_gb=8
-disk_gb=32
+disk_gb=64
os="fedora40"
ostype="linux"
@@ -91,7 +91,7 @@ fi
# Define the disk options based on OS type
if [ "$os" = "debian12" ]; then
disk_opts="--disk path=${new_vm},format=qcow2"
- virt-customize -a ${new_vm} --run-command "rm -f /etc/machine-id && systemd-machine-id-setup"
+ virt-customize -a ${new_vm} --run-command "rm -f /etc/machine-id ; systemd-machine-id-setup ; hostnamectl set-hostname ${vmname}"
else
disk_opts="--disk path=${new_vm},format=qcow2 --disk path=$seed_iso,device=cdrom"
fi