diff options
| author | Your Name <you@example.com> | 2025-01-27 16:29:00 +0800 |
|---|---|---|
| committer | Your Name <you@example.com> | 2025-01-27 16:29:00 +0800 |
| commit | 892e42000063423c34311148f5972f4d562ddf41 (patch) | |
| tree | 3c8fc724d4005c0ebcb6a38cead2aff28dc2fe25 /others/vm3/compute/create.sh | |
| parent | eabf5b889b42ac79c021a692c6bcdb74fafa5c15 (diff) | |
udpateddebiannotes
Diffstat (limited to 'others/vm3/compute/create.sh')
| -rwxr-xr-x | others/vm3/compute/create.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/others/vm3/compute/create.sh b/others/vm3/compute/create.sh index 6d55fdc..ab481cd 100755 --- a/others/vm3/compute/create.sh +++ b/others/vm3/compute/create.sh | |||
| @@ -91,7 +91,7 @@ fi | |||
| 91 | # Define the disk options based on OS type | 91 | # Define the disk options based on OS type |
| 92 | if [ "$os" = "debian12" ]; then | 92 | if [ "$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 ; hostnamectl set-hostname ${vmname}" | 94 | virt-customize -a ${new_vm} --run-command "rm -f /etc/machine-id && dbus-uuidgen --ensure=/etc/machine-id && echo ${vmname} > /etc/hostname" |
| 95 | else | 95 | else |
| 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" |
| 97 | fi | 97 | fi |
