[sheepdog-users] more detail add

liujet liujet at 126.com
Thu Jul 4 04:07:22 CEST 2013

Thanks for reply. Comments inline too.

在 2013-07-03 18:00:50,"Wenhao Xu" <wenhao at zelin.io> 写道:

- 隐藏引用文字 -

Comments inline.

On Wed, Jul 3, 2013 at 5:49 PM, liujet <liujet at 126.com> wrote:

Hi, I am a beginer. Hope experts can understand my poor English  and  help me. Thanks!
Follow the use's guide, I test a sheepdog vdi (run windows 2003)successfully on just one physical pc (collie cluster format --copies=1 ).
The envirotments :one pc running centos6.4, sheedog 0.6, qemu1.4.2. 
There are  3 problems comfused me.
1. qemu1.5 installed, when running qemu-system-x86_64 with parameter "-enable-kvm", fail to start the vdi. And then degreade to qemu1.4, an error appears "invalid write to memory region kvm-pic", but client OS running  normally and quickly.
How do you install qemu1.5? From source code? 
*  From source code:
   git clone git://github.com/collie/sheepdog.git
   yum install automake
   cd sheepdog
  make install

What is the full command line you used to start sheepdog?
*    /etc/init.d/sheepdog start

What is the full command line you used to start the sheepdog VM?
 *   modprobe kvm
    modprobe kvm-intel

    qemu-system-x86_64 -drive file=sheepdog:bob,cache=writeback -cdrom /usr/mysoft/win2003.iso -boot c -m 512 -localtime  -enable-kvm -machine accel=kvm

2. In the client system(windows2003 server), download or copy files up to 100M bytes, the vdi seems halt and  recover after finishing  the download task, it cost quite a long time. why?
Do you mean VM is halted? How do you copy the files? Could you please describe more? And what is in sheep.log?
 *  Halt is not very exactly.  The client OS lose reactions except mouse. When copy  files to any other fold or download using IE, at first the speed is fast  until hundreds mega bytes(concerned with cache?).  At the same time, I found the file number of objects fold increase. When this happen,Nothing  is added to sheep.log.  Maybe just the writing speed's influence?

3. after installing the libvirt, virsh can start local raw image, but not with sheepdog, the error is about "not finding the sheepdog disk"

What is your libvirt xml?
* I use vir-manager and modifid the xml file. It seems using qemu-kvm as emulator. What are the differences between qemu and qemu-kvm? Does sheepdog support qemu-kvm?
error message:
[root at localhost2 qemu]# virsh create test.xml
错误:从 test.xml 创建域失败
错误:内部错误 Process exited while reading console log output: char device redirected to /dev/pts/2
qemu-kvm: -drive file=sheepdog:bob,if=none,id=drive-ide0-0-0,format=raw,cache=none: could not open disk image sheepdog:bob: No such file or directory
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh edit test
or other application using the libvirt API.

<domain type='kvm'>
  <memory unit='KiB'>1048576</memory>
  <currentMemory unit='KiB'>1048576</currentMemory>
  <vcpu placement='static'>1</vcpu>
    <type arch='x86_64' machine='rhel6.4.0'>hvm</type>
    <boot dev='hd'/>
  <clock offset='utc'/>
    <disk type='network' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>    
      <source protocol='sheepdog' name='bob'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    <interface type='network'>
      <mac address='52:54:00:a2:19:10'/>
      <source network='default'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    <serial type='pty'>
      <target port='0'/>
    <console type='pty'>
      <target type='serial' port='0'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <sound model='ich6'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>

sheepdog-users mailing lists
sheepdog-users at lists.wpkg.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog-users/attachments/20130704/f5902ff9/attachment-0004.html>

More information about the sheepdog-users mailing list