summaryrefslogtreecommitdiff
path: root/others/vm3/compute/start.sh
diff options
context:
space:
mode:
authorroot <root@sg1.noml.ch>2025-05-22 18:36:01 +0800
committerroot <root@sg1.noml.ch>2025-05-22 18:36:01 +0800
commit3a52e92fbbbab4df949740f89a389d68281a9428 (patch)
tree5cb3b864eb0e3f3b90a1efd9cbdee1fb9f158f4a /others/vm3/compute/start.sh
parent8cb260002db7c46ea5fe2c3f589b485e5f5d970d (diff)
Diffstat (limited to 'others/vm3/compute/start.sh')
-rwxr-xr-xothers/vm3/compute/start.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/others/vm3/compute/start.sh b/others/vm3/compute/start.sh
deleted file mode 100755
index d64dbb1..0000000
--- a/others/vm3/compute/start.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-# starts vm
-# remove seed.iso first if vm have the seed iso
-
-vmname=$1
-
-# Get the target device for seed.iso
-target_dev=$(sudo virsh domblklist $vmname | grep 'seed.iso' | awk '{print $1}')
-
-# If seed.iso is found, detach it,
-# --config means it is persistent but do not affect the state now.
-# --config --live means online remove
-# no option means that the changes are not persistent
-#
-if [ ! -z "$target_dev" ]; then
- sudo virsh detach-disk $vmname $target_dev --config
-fi
-
-sudo virsh start $vmname