Hi Cole,<br><br>thanks for your answer! This looks very nice and sounds logic but doesn't work. :(<br>I have updated my libvirt to version 0.8.1 on both sides. <br><br>Then I have done the following on the SERVER:<br>virsh pool-define-as blubb --type dir  --target /image<br>
virsh pool-start blubb<br>virsh pool-autostart blubb<br><br>And it looks like:<br>virsh pool-list --all<br>Name                 State      Autostart <br>-----------------------------------------<br>blubb                active     yes  <br>
<br>Then I dow the following on the SLAVE:<br>virt-clone --connect xen+tcp://server/ --original blubb --name 
kopievonblubb<br>
--file /image/kopievonblubb.img<br>
ERROR    [Errno 2] Datei oder Verzeichnis nicht gefunden: 
'/image/blubb.img'<br><br><br>I think he does not find the Pool. I have read with virt-install i can say "--disk vol=blubb" but virt-clone expect "--file". I have look around the web find nothing helpfull like a Howto to clone images on a remote host. :(<br>
<br>I tell you all I do, maybe there is a mistake...<br><br>On the SERVER is a mountet folder called "/images". I defined it as a pool, described above.<br>On the SLAVE I have an xml file for a guest looks like:<br>
<domain type='xen'><br>  <name>blubb</name><br>  <memory>262144</memory><br>  <vcpu>1</vcpu><br>  <on_poweroff>destroy</on_poweroff><br>  <on_reboot>destroy</on_reboot><br>
  <on_crash>destroy</on_crash><br>  <features><br>    <acpi/><br>    <apic/><br>  </features><br>  <os><br>    <type>hvm</type><br>    <loader>/usr/lib/xen-3.2-1/boot/hvmloader</loader><br>
    <boot dev='cdrom'/><br>  </os><br>  <devices><br>    <emulator>/usr/lib/xen-3.2-1/bin/qemu-dm</emulator><br>    <interface type='bridge'><br>      <source bridge='tmpbridge'/><br>
      <mac address='00:16:3e:00:00:01'/><br>      <script path='vif-bridge'/><br>    </interface><br>    <disk type='file' device='disk'><br>      <driver name='file'/><br>
      <source disk='/image/blubb.img'/><br>      <target dev='hda'/><br>    </disk><br>    <disk type='file' device='cdrom'><br>      <source file='/image/blubb.iso'/><br>
      <target dev='hdc'/><br>      <readonly/><br>    </disk><br>    <graphics type='vnc'  autoport='yes'/><br>    <input type='tablet' bus='usb'/><br>
  </devices><br></domain><br><br><br>On the SLAVE I define this VM like:<br>virsh --connect xen+tcp://server/ define blubb.xml<br><br>And then I want to clone this VM like decribed above. <br><br>Hope somebody can help :)<br>
<br>Regards , Jessica<br><br><br><br><br><br><br><div class="gmail_quote">2010/7/15 Cole Robinson <span dir="ltr"><<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On 07/15/2010 06:14 AM, Bla Blubb wrote:<br>
> Hi,<br>
><br>
> I want to use libvirt to manage my Xen-Server and have some questions.<br>
><br>
> I have one SERVER with libvirt-bin 0.4.6.1 (from the Debian Lenny<br>
> Repository), Xen 3.1. All the images of Xen determine in /image.<br>
><br>
> Then I have an SLAVE with libvirt-bin 0.4.6.1 (from the Debian Lenny<br>
> Repository).<br>
><br>
>>From this SLAVE I want to start / stop and clone my virtual machines on<br>
> SERVER. I figured out to place the configuration files on the SLAVE to start<br>
> / stop the virtual machines on the SERVER.<br>
><br>
> Now I want to clone a defined VM:<br>
> virt-clone --connect xen+tcp://server/ --original blubb --name kopievonblubb<br>
> --file /image/kopievonblubb.img<br>
> ERROR    [Errno 2] Datei oder Verzeichnis nicht gefunden: '/image/blubb.img'<br>
><br>
> I want to clone the VM on the SERVER and place the clones Image on the<br>
> SERVER in the /image folder.<br>
> Does this cloning not working on remote hosts? Or have I a mistake or is the<br>
> version of libvirt to old?<br>
><br>
<br>
</div></div>The version of libvirt on the both hosts is too old. You need at least<br>
libvirt 0.6.4, and virtinst 0.500.0 or later IIRC. Then you need to make<br>
sure that your storage is part of a libvirt storage pool (basically make<br>
/image on the server a libvirt directory pool: virsh pool-define-as<br>
--type dir --target /images)<br>
<font color="#888888"><br>
- Cole<br>
</font></blockquote></div><br>