<br><br><div class="gmail_quote">2013/2/1 harryxiyou <span dir="ltr"><<a href="mailto:harryxiyou@gmail.com" target="_blank">harryxiyou@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi all,<br>
<br>
We can get "Boot VMs from sheepdog volumes in Libvirt" way<br>
from <a href="https://github.com/collie/sheepdog/wiki/Libvirt" target="_blank">https://github.com/collie/sheepdog/wiki/Libvirt</a> like following.<br>
<br>
  a,  prepare a file containing an XML domain description<br>
<br>
    $ cat > sheepdog.xml<br>
    <domain type='qemu'><br>
      <name>testvm</name><br>
      <memory>1048576</memory><br>
      <os><br>
        <type arch='x86_64'>hvm</type><br>
      </os><br>
      <devices><br>
        <disk type='network'><br>
          <source protocol="sheepdog" name="testvdi"/><br>
          <target dev='hda' bus='ide'/><br>
        </disk><br>
        <graphics type='vnc' port='-1' autoport='yes'/><br>
      </devices><br>
    </domain><br>
<br>
  b,  boot from testvdi with virsh<br>
<br>
    $ virsh create sheepdog.xml<br>
<br>
  c,  connect to a VNC console of the running VM<br>
<br>
    $ vncviewer localhost<br>
<br>
I have some following questions about up three steps.<br>
<br>
1, Before a or b(up boot step) step, should we have to install our OS<br>
into 'testvdi'?<br></blockquote><div>As I know, you should install an OS in the disk,or cannot boot from a 'NULL' disk.you know what i mean.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


That is to say, we have to install OS from os.iso file into 'testvdi',<br>
which should use<br>
'qemu-system-x86_64' command to install OS, right?<br></blockquote><div>To install an OS, you could use 'virt-install' ,or use the virt-manager GUI tool.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


2, Before this test, shoul we have to build Sheepdog, QEMU, Libvirt environment?<br></blockquote><div>Yes, you must build the environment,either from source codes or from  packages.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


3, This is the storage online management in Libvirt, right?<br></blockquote><div>later version of libvirt support managing sheepdog storage,use may have a search at <a href="http://libvirt.org">libvirt.org</a>.</div><div>

  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
4, This test just test the codes Morita take a patch named "add<br>
network disk support"<br>
for Libvirt, which is located here:<br>
<a href="http://libvirt.org/git/?p=libvirt.git;a=commit;h=036ad5052b43fe9f0d197e89fd16715950408e1d" target="_blank">http://libvirt.org/git/?p=libvirt.git;a=commit;h=036ad5052b43fe9f0d197e89fd16715950408e1d</a><br>
and also test Sheepdog driver for QEMU, right?</blockquote><div>I think just test libvirt environment.. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
5, If i installed a 32bits OS to testvdi, should i modify<br>
      <os><br>
        <type arch='x86_64'>hvm</type><br>
      </os><br>
to be<br>
      <os><br>
        <type arch='x86'>hvm</type><br>
      </os><br>
, right?<br></blockquote><div>If  arch='x86_64', then this configuration support both x86 and x64. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
6, The step c (up boot step), which is<br>
 $ vncviewer localhost<br>
Actually, i am not clear about this 'localhost'. Why should we link<br>
localhost but other ip addresses?<br></blockquote><div>As localhost allways singed to 127.0.0.1 ,or you can use 127.0.0.1 instead of a name like 'locallhost'. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Could anyone please give me some suggestions? Thanks in advance ;-)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Thanks<br>
Harry Wei<br>
--<br>
sheepdog-users mailing lists<br>
<a href="mailto:sheepdog-users@lists.wpkg.org">sheepdog-users@lists.wpkg.org</a><br>
<a href="http://lists.wpkg.org/mailman/listinfo/sheepdog-users" target="_blank">http://lists.wpkg.org/mailman/listinfo/sheepdog-users</a><br>
</font></span></blockquote></div><br>