diff options
| author | Your Name <you@example.com> | 2024-12-21 17:50:04 +0800 |
|---|---|---|
| committer | Your Name <you@example.com> | 2024-12-21 17:50:04 +0800 |
| commit | 2916e3eff503473f6bf8b90e0921b0ccd347166f (patch) | |
| tree | 5ff76f593c45decb1604e7c4986c96a2255f7a66 /others | |
| parent | e94b275f5630e032a6971831f8be520ae81a5d02 (diff) | |
docssetup
Diffstat (limited to 'others')
| -rw-r--r-- | others/vm3/docs | 55 |
1 files changed, 54 insertions, 1 deletions
diff --git a/others/vm3/docs b/others/vm3/docs index dc53806..8423f1c 100644 --- a/others/vm3/docs +++ b/others/vm3/docs @@ -1,2 +1,55 @@ -k1 will be created in /root/k1 +vm compute create name1 -os fedora -vcpu 1 -ram 1 -disk 10 -s.pool storage1 -add-disk 200 storage2 -add-network nw3 # default fedora 4,4,20 + # fedora not available. available os: listed down + # storage not available. please create it + # nw3 not available. create y/n? +vm network create <name> 192.168.100.1 /32 +vm network create <name> (auto) +vm storage create <name> /dev/ +vm storage create <name2> /dir/ + + +vm/ + ./vm # Single entry point. one vm at a time(except for compute delete-all) + .config/ # all config files + init/ + install_packages.sh + make_rootkey.sh # in /root/k/k1. can also add keys in here + /var/lib/libvirt/images/.image_store/ # stores the images + /var/lib/libvirt/images/.temp/ # for user-data, meta-data, and seed.iso(has ud and md inside) need to delete after initialising a new vm + image/ # vm cloud init templates to make user-data, meta-data, and seed.iso + fedora.sh <vm name> # images in /var/lib/libvirt/images/.image_store/ and in images/.temp + opensuse.sh + debian.sh + freebsd.sh + compute/ + create.sh + # default vcpu ram disk storage pool network + # allow specification of storage pool and network. + # auto list all available images, storage pools, networks. on no argument. just call stroage/network list.sh + delete.sh and all associated virtual machines and block devices on all storage device + delete-all.sh + start.sh before starting the vm, make sure the cloud init seed.iso is not attached anymore. + shutdown.sh + list.sh # list by ip address, (sorted by) network group, then name, then cpu ram disk, total disk(incl all attachedvols) + network/ + attach.sh # one click, so if vm is running, ask fro permission to shutdown. or if can, live attach + list.sh + detach.sh + create.sh # allow specifying the ip address range. auto make uuid + delete.sh + storage/ + attach.sh + detach.sh + create.sh + list all available storage hardware devices on no argument. just call list.sh + make directory linking from /var/lib/libvirt/images/${VM_NAME}-vm-disks/ to the actual storage device + delete.sh + delete all blocks. all the linking if can. may not be able to link like that idk. list all mounts and delete the originla and the links + list.sh #list storage pools and include --all to view all blocks and their sizes + device/ + usb/ + attach.sh + detach.sh + view.sh # usbs of all the vms + |
