Add a virshall
virshall can start, shutdown or destroy all VMs on a hypervisor LAB so I can remove 'start' from create and pristine; sometimes it is useful to only create (but not start) the LABs. Similarly, sometimes bringing the LAB into pristine state, but without restarting the VMs, is useful.
This commit is contained in:
9
create
9
create
@ -15,7 +15,7 @@
|
||||
## * Unmount the staging directories
|
||||
## * Start the VMs
|
||||
|
||||
BASE=${BASE:=ssd-vol0/hvn0.chbtl0.ipng.ch/ssd-vol0/vpp-proto-disk0@20221019-release}
|
||||
BASE=${BASE:=ssd-vol0/hvn0.chbtl0.ipng.ch/ssd-vol0/vpp-proto-disk0@20221022-release}
|
||||
BUILD=${BUILD:=default}
|
||||
LAB=${LAB:=0}
|
||||
|
||||
@ -39,10 +39,3 @@ ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; chown -R r
|
||||
|
||||
echo "* Unmounting and snapshotting pristine state"
|
||||
ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; umount $STAGING/\$VM; zfs snapshot ssd-vol0/\${VM}@pristine; done"
|
||||
|
||||
echo "* Starting VMs"
|
||||
ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; virsh start \$VM; done"
|
||||
|
||||
echo "* Committing OVS config"
|
||||
scp overlays/$BUILD/ovs-config.sh root@$HVN:$LABDIR
|
||||
ssh root@$HVN "set -x; LAB=$LAB $LABDIR/ovs-config.sh"
|
||||
|
Reference in New Issue
Block a user