aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-11-02 19:29:43 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2024-11-02 19:29:43 +0100
commit5fcf5d0154f4099fb254e3047c2b2a0cbec8ab13 (patch)
treeaa04e3a8140fa6ddcd51408b04adfc095468eef8 /docs
parente66ea810df47af30f7fd7defc9e1195f87d8e144 (diff)
downloadinfra-5fcf5d0154f4099fb254e3047c2b2a0cbec8ab13.tar.gz
infra-5fcf5d0154f4099fb254e3047c2b2a0cbec8ab13.tar.bz2
infra-5fcf5d0154f4099fb254e3047c2b2a0cbec8ab13.tar.xz
infra-5fcf5d0154f4099fb254e3047c2b2a0cbec8ab13.zip
docs
Diffstat (limited to 'docs')
-rw-r--r--docs/new-vm.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/new-vm.md b/docs/new-vm.md
index aa02e3b..6b76c0f 100644
--- a/docs/new-vm.md
+++ b/docs/new-vm.md
@@ -1,10 +1,11 @@
Download generic cloud image:
cd /data3/libvirt/images/pool/
- wget https://cloud.debian.org/images/cloud/bookworm/20240717-1811/debian-12-genericcloud-amd64-20240717-1811.qcow2
- cp debian-*.qcow2 $VM.qcow2
+ export TS=20240717-1811
+ wget https://cloud.debian.org/images/cloud/bookworm/$TS/debian-12-genericcloud-amd64-$TS.qcow2
+ cp debian-$TS.qcow2 $VM.qcow2
qemu-img resize $VM.qcow2 20G
- virt-resize --expand /dev/sda1 debian-*.qcow2 danneri.qcow2
+ virt-resize --expand /dev/sda1 debian-*$TS.qcow2 $VM.qcow2
Inject SSH key for root user:
@@ -17,6 +18,10 @@ Inject SSH key for root user:
Register a new VM with Virtual Machine Manager.
+ * Import existing disk image
+ * Select $VM.qcow2, select correct OS
+ * Set name to $VM, use "Bridge device", enter `br0`.
+
Connect to the machine, log in as root/root and run `dhclient enp1s0`.
Add host to Ansible inventory `ansible/inventory`.