[sheepdog-users] [sheepdog] [Sheepdog]Install Sheepdog problems

harryxiyou harryxiyou at gmail.com
Fri Feb 1 12:54:26 CET 2013


On Fri, Feb 1, 2013 at 7:30 PM, Valerio Pachera <sirio81 at gmail.com> wrote:
> 2013/2/1 harryxiyou <harryxiyou at gmail.com>:
>> $ sudo mount -o remount,user_xattr  /
>>
>> After this command was executed, sheepdog works well for me. Do you
>> think my solution is well? Or you may have any other suggestions?
>
> It doesn't matter if you keep everything under /.
> What matters, as you noticed, is to use the mount option "user_xattr".

Thanks i see. Valerio Pachera, if you have free time, please give me some
suggestions about following questions. Thanks in advance ;-)

We can get "Boot VMs from sheepdog volumes in Libvirt" way
from https://github.com/collie/sheepdog/wiki/Libvirt like following.

  a,  prepare a file containing an XML domain description

    $ cat > sheepdog.xml
    <domain type='qemu'>
      <name>testvm</name>
      <memory>1048576</memory>
      <os>
        <type arch='x86_64'>hvm</type>
      </os>
      <devices>
        <disk type='network'>
          <source protocol="sheepdog" name="testvdi"/>
          <target dev='hda' bus='ide'/>
        </disk>
        <graphics type='vnc' port='-1' autoport='yes'/>
      </devices>
    </domain>

  b,  boot from testvdi with virsh

    $ virsh create sheepdog.xml

  c,  connect to a VNC console of the running VM

    $ vncviewer localhost

I have some following questions about up three steps.

1, Before a or b(up boot step) step, should we have to install our OS
into 'testvdi'?
That is to say, we have to install OS from os.iso file into 'testvdi',
which should use 'qemu-system-x86_64' command to install OS,
right? I am not clear about how to install a OS into testvdi (give exact
steps if you can).

2, Before this test, shoud we have to build Sheepdog, QEMU, Libvirt environment?

3, This is the storage online management in Libvirt, right?

4, This test just test the codes Morita take a patch named "add
network disk support"
for Libvirt, which is located here:
http://libvirt.org/git/?p=libvirt.git;a=commit;h=036ad5052b43fe9f0d197e89fd16715950408e1d
and also test Sheepdog driver for QEMU, right?

5, If i installed a 32bits OS to testvdi, should i modify
      <os>
        <type arch='x86_64'>hvm</type>
      </os>
to be
      <os>
        <type arch='x86'>hvm</type>
      </os>
, right?

6, The step c (up boot step), which is
 $ vncviewer localhost
Actually, i am not clear about this 'localhost'. Why should we link
localhost but other ip addresses?


-- 
Thanks
Harry Wei



More information about the sheepdog-users mailing list