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 17:41] thomaspublic:managing_kvm_on_debian [2024/05/17 20:56] (current) thomas
Line 251: 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.1715794912.txt.gz · Last modified: by thomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki