[Libvir] Create domU without any disks

Daniel Veillard veillard at redhat.com
Thu Nov 29 16:31:18 UTC 2007

On Thu, Nov 29, 2007 at 05:18:20PM +0100, Tim Verhoeven wrote:
> Hi,
> I'm working on RHEL5.1 (libvirt-0.2.3-9.el5). I would like to know if
> it is possible, using libvirt, to create a Xen PVM domU that has no
> disks? And if this is possible how to code this ( a simple example is
> ok).
> I can create a configfile for "xm create ..." that works (just use
> "disk = [ ]"). But I also need to do this koan (companion to cobbler)
> and it uses libvirt.

  Well libvirt can dump XML for existing Xen domains, use
    virsh dumpxml domainname
even if you used xm to create the domain.
Now I suppose you will just end up with a dump without any <disk>
entry in <devices> (but you will have a network one at least),


Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

More information about the libvir-list mailing list