Linux Virtualization Remove Storage from Guest

From NovaOrdis Knowledge Base
Revision as of 18:18, 28 March 2021 by Ovidiu (talk | contribs) (Created page with "=Internal= * Linux Virtualization Operations =Procedure= Shut down the guest: <syntaxhighlight lang='bash'> virsh shutd...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Procedure

Shut down the guest:

virsh shutdown <guest-name>

Edit the guest definition:

virsh edit <guest-name>

Lookup the memory definition line:

<memory unit='KiB'>16777216</memory>

Edit to the desired value (note that the memory is expressed in KiB)

Delete <currentMemory>

Restart the guest:

virsh start <guest-name>

Verify that the memory change took:

virsh dominfo <guest-name>