Update 0.KVM.md
This commit is contained in:
parent
50f1ab4236
commit
e0c6a0ccc8
32
0.KVM.md
32
0.KVM.md
@ -13,6 +13,38 @@ sudo virt-install \
|
||||
--graphics vnc,listen=0.0.0.0
|
||||
```
|
||||
|
||||
# Info
|
||||
|
||||
```bash
|
||||
virsh list # show running
|
||||
virsh list --all # show all
|
||||
virsh domstate Rock_Linux_9 # show single status
|
||||
virsh dominfo Rock_Linux_9 # show single settings
|
||||
```
|
||||
|
||||
# Manage
|
||||
|
||||
```bash
|
||||
virsh start Rock_Linux_9
|
||||
virsh reboot Rock_Linux_9
|
||||
virsh shutdown Rock_Linux_9 # soft shutdown
|
||||
virsh destroy Rock_Linux_9 # hard shutdown
|
||||
virsh suspend Rock_Linux_9
|
||||
virsh resume Rock_Linux_9
|
||||
virsh save Rock_Linux_9 # save ram to state file
|
||||
virsh restore Rock_Linux_9 # load ram from state file
|
||||
virsh snapshot-create Rock_Linux_9
|
||||
```
|
||||
|
||||
# Snapshots
|
||||
```bash
|
||||
virsh snapshot-create Rock_Linux_9
|
||||
virsh snapshot-list Rock_Linux_9
|
||||
virsh snapshot-revert Rock_Linux_9
|
||||
virsh snapshot-delete Rock_Linux_9
|
||||
virsh snapshot-edit Rock_Linux_9 # Edit snapshots for updating filepath
|
||||
```
|
||||
|
||||
# Permissions
|
||||
|
||||
```bash
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user