add virsh.sh aliases; update README

This commit is contained in:
Dhya 2024-10-19 10:15:41 -07:00
parent 092b66f765
commit 17d0b270c7
2 changed files with 47 additions and 0 deletions

View file

@ -28,6 +28,26 @@ ssh deb12-1
## KVM
### etc-profile.d-virsh.sh
Useful Bash aliases (actually they are functions) for managing KVM containers.
For these aliases to be system-wide for Bash users, put them in:
`/etc/profile.d/virsh.sh`
For a user only, they can be copied into ~/.bashrc
vlist List machines and their status
vstart <machine> Start <machine>
vsave <machine> Save (suspend) <machine>
vtop <machine> Stop (gracefully shutdown) <machine>
vkill <machine> Kill (force shutdown) <machine>
vconsole <machine> Open console on <machine>
vrm <machine> Completely remove (destroy) <machine>
### kvm-setup
Bash script to assist with setting up a Linux virtual machine under KVM/QEMU from an ISO image file.