From e0c6a0ccc8e3a6a56c62dfb1fc14595f50eee409 Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Tue, 20 Aug 2024 14:15:18 +0300 Subject: [PATCH] Update 0.KVM.md --- 0.KVM.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/0.KVM.md b/0.KVM.md index df5001b..0fa9535 100644 --- a/0.KVM.md +++ b/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