Initial commit

This commit is contained in:
2025-10-14 15:13:06 +02:00
commit cb50aeb2fa
7 changed files with 446 additions and 0 deletions

18
moveVmToNewDatastore.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# Get VMID from VM list: qm list
# Get all list of datastores: pvesm status
myvmid=$1
datastore=$2
echo ***
echo Moving $myvmid to $datastore
echo
for vmid in $myvmid; do
for disk in $(qm config $vmid | grep vm-$vmid-disk | cut -d: -f1); do
echo Moving: vm-$vmid-disk
qm move-disk $vmid $disk $datastore --delete
done
done