summaryrefslogtreecommitdiff
path: root/create-vm
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-05-10 16:35:39 +0300
committerLars Wirzenius <liw@liw.fi>2020-05-10 16:35:39 +0300
commita1b1ad9531ec169382894dd6feb2270092dbdc70 (patch)
tree92063521ebb0548803505df53da351d5011983ae /create-vm
parent80bdbd066e78ac62749c2cb1fb316fbf53b3d768 (diff)
downloadick-contractor-a1b1ad9531ec169382894dd6feb2270092dbdc70.tar.gz
drop: unused create-vm script
We don't use it, and haven't for a long time. It's just littering the source tree and the manager VM image.
Diffstat (limited to 'create-vm')
-rwxr-xr-xcreate-vm29
1 files changed, 0 insertions, 29 deletions
diff --git a/create-vm b/create-vm
deleted file mode 100755
index b92f014..0000000
--- a/create-vm
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-set -eu
-
-name=worker
-image=temp.img
-
-rm -f "$image"
-cp "$1" "$image"
-
-n="$(lscpu | awk '$1 == "CPU(s):" { n=$2; if (n > 1) n--; print n }')"
-
-virsh -c qemu:///system net-autostart default
-virsh -c qemu:///system net-start default || true
-
-virt-install \
- --connect qemu:///system \
- --quiet \
- --name="$name" \
- --memory=4096 \
- --vcpus="$n" \
- --cpu=host \
- --import \
- --os-variant=debian9 \
- --disk="path=$image,cache=none" \
- --disk="path=/dev/vdb,cache=none" \
- --network="network=default" \
- --graphics=spice \
- --noautoconsole