[sheepdog-users] [Sheepdog][Libvirt]Boot VMs from sheepdog volumes error
harryxiyou at gmail.com
Fri Feb 1 18:22:10 CET 2013
On Sat, Feb 2, 2013 at 12:49 AM, Eric Blake <eblake at redhat.com> wrote:
> On 02/01/2013 04:08 AM, harryxiyou wrote:
>> Hi all,
>> I wanna boot VMs from sheepdog volumes so i do according to
>> However, some errors happened to me like following.
>> $ ./virsh create os.xml
>> error：create domain from os.xml failure
>> error：(domain_definition):14: Premature end of data in tag domain line 1
> That says your <domain> tag is incomplete. Sure enough...
>> $ cat os.xml
>> <domain type='qemu'>
> You opened it...
>> <type arch='x86_64'>hvm</type>
>> <disk type='network'>
>> <source protocol="sheepdog" name="testvdi"/>
>> <target dev='hda' bus='ide'/>
>> <graphics type='vnc' port='-1' autoport='yes'/>
> ...but never closed it with </domain>.
A stupid mistake. Thanks for your reminder ;-)
> Rather than writing XML by hand from scratch, I highly recommend using a
> higher level program like virt-manager to create a scratch VM, and then
> use 'virsh edit' to hand tune the resulting XML. That way, you are less
> likely to forget something essential, and will at least have the benefit
> of seeing how libvirt indents constructs rather than struggling to
> visually pick out the indentation with everything starting on the first
Thanks, i will.
More information about the sheepdog-users