|
|
|
@ -73,12 +73,15 @@
|
|
|
|
<p>Delete the snapshot, this doesn't delete anything else related to the VM</p>
|
|
|
|
<p>Delete the snapshot, this doesn't delete anything else related to the VM</p>
|
|
|
|
<pre><code>virsh snapshot-delete --domain $vm --snapshotname $snapshot_name</code></pre>
|
|
|
|
<pre><code>virsh snapshot-delete --domain $vm --snapshotname $snapshot_name</code></pre>
|
|
|
|
|
|
|
|
|
|
|
|
<h2>Drive management</h2>
|
|
|
|
<h2>(TODO)Drive management</h2>
|
|
|
|
|
|
|
|
|
|
|
|
<h2>Change Memory</h2>
|
|
|
|
<h2>Change Memory</h2>
|
|
|
|
<p>In variantions of 512M, 1G, etc</p>
|
|
|
|
<p>In variantions of 512M, 1G, etc</p>
|
|
|
|
<pre><code>virsh setmem $vm $ram</code></pre>
|
|
|
|
<pre><code>virsh setmem $vm $ram</code></pre>
|
|
|
|
|
|
|
|
<p>The amount of RAM the VM has assigned to it, this cannot be higher than the max, but can be altered on the fly (if I recall correctly).</p>
|
|
|
|
<pre><code>virsh setmaxmem $vm $ram</code></pre>
|
|
|
|
<pre><code>virsh setmaxmem $vm $ram</code></pre>
|
|
|
|
|
|
|
|
<p>The max mem sets the maximum amount of RAM the VM can use, and can only be set whilst the VM is offline</p>
|
|
|
|
|
|
|
|
<p>My recommendation here is to set a higher maxmem than you'd need, so if you do need to add some more RAM, it doesn't require any downtime.<p>
|
|
|
|
|
|
|
|
|
|
|
|
<h2>Change vCPU cores</h2>
|
|
|
|
<h2>Change vCPU cores</h2>
|
|
|
|
<p>This is a little more tricky, as it involves editing the XML file</p>
|
|
|
|
<p>This is a little more tricky, as it involves editing the XML file</p>
|
|
|
|
|