This commit is contained in:
2020-02-15 13:38:59 -08:00
parent 3f91b5cce0
commit e50f689576
15 changed files with 1120 additions and 41 deletions

25
ubuntu-makevm/Makefile Normal file
View File

@@ -0,0 +1,25 @@
export VMNAME := ubuntu1804
export DISK_DIR := /storage/scratch/tmp
export HOST := las1.local
.PHONY: clean install reinstall rcopy rrun
default: remote
clean:
-virsh destroy $(VMNAME)
-virsh undefine $(VMNAME)
rm -f $(DISK_DIR)/$(VMNAME).qcow2
install:
bash install.sh
reinstall: clean install
remote: rrun
rcopy:
rsync -avP ./ root@$(HOST):/storage/admin/vms/
rrun: rcopy
ssh -t root@$(HOST) "cd /storage/admin/vms && make reinstall"