commit 0d5e8f58746ae439a5ebeffa71ee1e3ae156d6b8
parent a881fba3eeb1447be62a10515495bc9282212fca
Author: pyratebeard <root@pyratebeard.net>
Date: Fri, 31 Mar 2023 15:25:55 +0100
updates
Diffstat:
2 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/tech-index.md b/tech-index.md
@@ -28,6 +28,10 @@
* [docker](/virtualisation/docker)
* [k8s](/virtualisation/kubernetes)
+### virtual machines
+* [virsh](virtualisation/virsh)
+* [qemu](/virtualisation/qemu)
+
### filesystems
* [zfs](filesystems/zfs)
@@ -62,7 +66,6 @@
* [subnet_cheatsheet](/networking/subnet_cheatsheet)
* [wifi_connect](/networking/wifi_connect)
* [esxi](/software/esxi)
-* [qemu](/virtualisation/qemu)
* [certbot](/software/certbot)
* [django](/software/django)
* [gopher](/software/gopher)
@@ -83,3 +86,5 @@ iwgetid wlp6s0 -r
## cloud and saas
* [azure](/cloud_saas/azure)
* [openshift](/cloud_saas/openshift)
+
+* [mailstack](software/mailstack)
diff --git a/virtualisation/virsh.md b/virtualisation/virsh.md
@@ -0,0 +1,31 @@
+# virsh
+
+## creating vms
+* create vm with virt-install
+```
+virt-install --name=<name> --vcpus=1 --memory=1024 --cdrom=/path/to/image.iso --disk size=8 --os-variant=<variant>
+```
+* above should automatically start `virt-viewer` if installed
+* to see available variants incant
+```
+virt-install --osinfo list
+```
+
+## managing vms
+```
+virsh list --all
+virsh start <name>
+virsh dominfo <name>
+```
+
+## connecting to running vm
+* connect to terminal console
+```
+virsh console <name>
+```
+
+* connect to gui
+```
+virt-viewer <name>
+```
+