unix:virtualization:virtlib:quickreference
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
unix:virtualization:virtlib:quickreference [2021/05/02 02:42] – rodolico | unix:virtualization:virtlib:quickreference [2022/03/05 14:58] – rodolico | ||
---|---|---|---|
Line 14: | Line 14: | ||
* **dommemstat //name//** - show allocated RAM | * **dommemstat //name//** - show allocated RAM | ||
* **domstats //name// | grep vcpu.current** - displays number of virtual cpu's assigned | * **domstats //name// | grep vcpu.current** - displays number of virtual cpu's assigned | ||
+ | * **domblklist //name//** - show attached block devices | ||
* **start //name//** - starts the domain named **name** (name from list --all) | * **start //name//** - starts the domain named **name** (name from list --all) | ||
* **reboot //name//** | * **reboot //name//** | ||
Line 126: | Line 127: | ||
This also allows you to execute // | This also allows you to execute // | ||
+ | |||
+ | ==== Using save/ | ||
+ | |||
+ | An alternative is to use //virsh save// to shut down and //virsh restore// to recover. In this case, use | ||
+ | <code bash> | ||
+ | virsh save domainname / | ||
+ | </ | ||
+ | to save the image. It will suspend the virtual, then save processor/ | ||
+ | |||
+ | Once this is done, you can do whatever you needed to do, then use the following command to restore it. | ||
+ | <code bash> | ||
+ | virsh restore / | ||
+ | </ | ||
==== Windows servers will not restart ==== | ==== Windows servers will not restart ==== | ||
Line 186: | Line 200: | ||
virsh detach-interface domain --type bridge --mac ##:##:##:##:##:## | virsh detach-interface domain --type bridge --mac ##:##:##:##:##:## | ||
# redefine it. Use values from above command, or change as needed | # redefine it. Use values from above command, or change as needed | ||
- | virsh attach-interface domain --type bridge --source br_private --mac ##:##:##:##:##:## | + | virsh attach-interface domain --type bridge |
</ | </ | ||
unix/virtualization/virtlib/quickreference.txt · Last modified: 2023/02/26 17:12 by rodolico