add virsh.sh aliases; update README
This commit is contained in:
parent
092b66f765
commit
17d0b270c7
2 changed files with 47 additions and 0 deletions
20
README.md
20
README.md
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue