Add vm replication bash script

Assuming general_hosting is preconfigured for your needs.
This commit is contained in:
2025-11-16 08:07:22 +07:00
parent 6d1850a2cf
commit ec9003865c

11
vmscript Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/bash
prefix="hosting_"
vmlist="antonkaretnikov alexanderboliubysh dorjisandakov sergeymoskalenko katerinenikitina kirillsavchenko nikitamochalov danilreutov anastasiatsygankova egorkaikov stepanyankov daniilivlev mariaborzykh irinakatalanina mariagerasimenko evgeniatroshinovskaya marinerusskikh vsevolodignatenko konstantinbekbauov egorparkhomenko"
postfix="_vm"
for var in $vmlist
do
name=$prefix$var$postfix
virt-clone --original generic_hosting --name $name --auto-clone
done