User Tools

Site Tools


public:managing_kvm_on_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:managing_kvm_on_debian [2024/05/15 09:07] – [Forcing a VM to stop] thomaspublic:managing_kvm_on_debian [2024/05/17 20:56] (current) thomas
Line 57: Line 57:
 </pool> </pool>
 </code> </code>
 +
 +:!: Note that this does not support libvirt snapshots. You will need to make snapshots via ZFS manually, which may not be ideal.
  
 Then, create the pool based on the definition and make sure it autostarts: Then, create the pool based on the definition and make sure it autostarts:
Line 249: Line 251:
 <code> <code>
 for dom in $(virsh list --name); do echo -n "$dom: "; virsh domdisplay $dom; done for dom in $(virsh list --name); do echo -n "$dom: "; virsh domdisplay $dom; done
 +</code>
 +
 +===== Managing media =====
 +
 +Listing attached media:
 +
 +<code>
 +virsh domblklist <guestname>
 +</code>
 +
 +To replace a disk or cd-rom with another:
 +
 +<code>
 +virsh change-media <guestname> /path/to/current/disk.img /path/to/new/disk.img
 +</code>
 +
 +Or to simply eject a disk:
 +
 +<code>
 +virsh change-media vm1 hdc --eject
 </code> </code>
 ===== Resources ===== ===== Resources =====
public/managing_kvm_on_debian.1715764065.txt.gz · Last modified: by thomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki