summaryrefslogtreecommitdiff
path: root/others/vm3/docs
diff options
context:
space:
mode:
authorYour Name <you@example.com>2024-12-22 19:03:49 +0800
committerYour Name <you@example.com>2024-12-22 19:03:49 +0800
commitf7f159a04671690786de2f84e34046c103521d58 (patch)
tree22b45e904c1aa6800250ec6e998d0022fd018ade /others/vm3/docs
parent2916e3eff503473f6bf8b90e0921b0ccd347166f (diff)
vm.shupdate
Diffstat (limited to 'others/vm3/docs')
-rw-r--r--others/vm3/docs32
1 files changed, 26 insertions, 6 deletions
diff --git a/others/vm3/docs b/others/vm3/docs
index 8423f1c..c274dd3 100644
--- a/others/vm3/docs
+++ b/others/vm3/docs
@@ -10,9 +10,9 @@ vm storage create <name2> /dir/
10 10
11 11
12vm/ 12vm/
13 ./vm # Single entry point. one vm at a time(except for compute delete-all) 13 ./vm.sh # Single entry point. one vm at a time(except for compute delete-all)
14 .config/ # all config files 14 .config/ # all config files
15 init/ 15 init/ # run this everytime. try to think of a way to set a flag that says this device has been initialised
16 install_packages.sh 16 install_packages.sh
17 make_rootkey.sh # in /root/k/k1. can also add keys in here 17 make_rootkey.sh # in /root/k/k1. can also add keys in here
18 /var/lib/libvirt/images/.image_store/ # stores the images 18 /var/lib/libvirt/images/.image_store/ # stores the images
@@ -22,23 +22,23 @@ vm/
22 opensuse.sh 22 opensuse.sh
23 debian.sh 23 debian.sh
24 freebsd.sh 24 freebsd.sh
25 list-all-images.sh
25 compute/ 26 compute/
26 create.sh 27 create.sh
27 # default vcpu ram disk storage pool network 28 # default vcpu ram disk storage pool network
28 # allow specification of storage pool and network. 29 # allow specification of storage pool and network.
29 # auto list all available images, storage pools, networks. on no argument. just call stroage/network list.sh 30 # auto list all available images, storage pools, networks. on no argument. just call stroage/network list.sh
30 delete.sh and all associated virtual machines and block devices on all storage device 31 delete.sh and all associated virtual machines and block devices on all storage device
31 delete-all.sh
32 start.sh before starting the vm, make sure the cloud init seed.iso is not attached anymore. 32 start.sh before starting the vm, make sure the cloud init seed.iso is not attached anymore.
33 shutdown.sh 33 shutdown.sh
34 list.sh # list by ip address, (sorted by) network group, then name, then cpu ram disk, total disk(incl all attachedvols) 34 list.sh # list by (sorted by) network group, ip address, then cpu ram disk, total disk(incl all attachedvols), name
35 network/ 35 network/
36 attach.sh # one click, so if vm is running, ask fro permission to shutdown. or if can, live attach 36 attach.sh # one click, so if vm is running, ask fro permission to shutdown. or if can, live attach
37 list.sh 37 list.sh
38 detach.sh 38 detach.sh
39 create.sh # allow specifying the ip address range. auto make uuid 39 create.sh # allow specifying the ip address range. auto make uuid
40 delete.sh 40 delete.sh
41 storage/ 41 disk/
42 attach.sh 42 attach.sh
43 detach.sh 43 detach.sh
44 create.sh 44 create.sh
@@ -52,4 +52,24 @@ vm/
52 attach.sh 52 attach.sh
53 detach.sh 53 detach.sh
54 view.sh # usbs of all the vms 54 view.sh # usbs of all the vms
55 55
56# No arguments shows available options
57./vm compute create
58Available networks:
59 prod-net 192.168.1.0/24
60 dev-net 192.168.2.0/24
61 test-net 192.168.3.0/24
62
63Available storage pools:
64 prod-store 2TB free
65 dev-store 500GB free
66 backup 1TB free
67
68Available images:
69 fedora40(41)
70
71
72Usage: ./vm compute create <name> <os> --vcpu 4 --ram 8 --disk 40 --storage-pool prod-store --network prod-net
73
74# Then use directly
75./vm compute create myvm fedora 2 4 20 prod-net prod-store