From Libvirt Wiki
Revision as of 19:54, 4 December 2008 by DanielBerrange (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Switching to libvirt managed QEMU instances

This page gives tips for migrating from standalone QEMU instances, over to managed libvirt instances.

Command line argument equivalence

Monitor command equivalence

change hdc /some/path/cdimage.iso

From the command line

 virsh block-attach --type cdrom --mode readonly myguest /some/path/cdimage.iso hdc

Or from an API call, pass the following XML

 <disk type='file' device='cdrom'>
    <source file='/some/path/cdimage.iso'/>
    <target dev='hcd'/>

...to virDomainAttachDevice