0d5e8f58746ae439a5ebeffa71ee1e3ae156d6b8
tech-index.md
... | ... | @@ -28,6 +28,10 @@ |
28 | 28 | * [docker](/virtualisation/docker) |
29 | 29 | * [k8s](/virtualisation/kubernetes) |
30 | 30 | |
31 | +### virtual machines |
|
32 | +* [virsh](virtualisation/virsh) |
|
33 | +* [qemu](/virtualisation/qemu) |
|
34 | + |
|
31 | 35 | ### filesystems |
32 | 36 | * [zfs](filesystems/zfs) |
33 | 37 | |
... | ... | @@ -62,7 +66,6 @@ |
62 | 66 | * [subnet_cheatsheet](/networking/subnet_cheatsheet) |
63 | 67 | * [wifi_connect](/networking/wifi_connect) |
64 | 68 | * [esxi](/software/esxi) |
65 | -* [qemu](/virtualisation/qemu) |
|
66 | 69 | * [certbot](/software/certbot) |
67 | 70 | * [django](/software/django) |
68 | 71 | * [gopher](/software/gopher) |
... | ... | @@ -83,3 +86,5 @@ iwgetid wlp6s0 -r |
83 | 86 | ## cloud and saas |
84 | 87 | * [azure](/cloud_saas/azure) |
85 | 88 | * [openshift](/cloud_saas/openshift) |
89 | + |
|
90 | +* [mailstack](software/mailstack) |
virtualisation/virsh.md
... | ... | @@ -0,0 +1,31 @@ |
1 | +# virsh |
|
2 | + |
|
3 | +## creating vms |
|
4 | +* create vm with virt-install |
|
5 | +``` |
|
6 | +virt-install --name=<name> --vcpus=1 --memory=1024 --cdrom=/path/to/image.iso --disk size=8 --os-variant=<variant> |
|
7 | +``` |
|
8 | +* above should automatically start `virt-viewer` if installed |
|
9 | +* to see available variants incant |
|
10 | +``` |
|
11 | +virt-install --osinfo list |
|
12 | +``` |
|
13 | + |
|
14 | +## managing vms |
|
15 | +``` |
|
16 | +virsh list --all |
|
17 | +virsh start <name> |
|
18 | +virsh dominfo <name> |
|
19 | +``` |
|
20 | + |
|
21 | +## connecting to running vm |
|
22 | +* connect to terminal console |
|
23 | +``` |
|
24 | +virsh console <name> |
|
25 | +``` |
|
26 | + |
|
27 | +* connect to gui |
|
28 | +``` |
|
29 | +virt-viewer <name> |
|
30 | +``` |
|
31 | + |