Hi,<div><br></div><div>It would be useful to know if your host is using the shared or the ssh TM drivers. You should see that <span style>/srv/cloud/one/var//</span><span style>7/images/ directory if you log into your host.</span></div>

<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">By the way, </font><span style>DISK/SOURCE can be used for compatibility reasons, and only by users in the oneadmin group [1]. The normal work-flow is to create an Image with that file as PATH [2], and then use the DISK/IMAGE_ID attribute.</span></div>

<div><span style><br></span></div><div><span style>Regards.</span></div><div><span style><br></span></div><div><span style><font color="#222222" face="arial, sans-serif">[1] <a href="http://opennebula.org/documentation:rel3.2:template#restricted_attributes">http://opennebula.org/documentation:rel3.2:template#restricted_attributes</a></font></span></div>

<div><font color="#222222" face="arial, sans-serif">[2] <a href="http://opennebula.org/documentation:rel3.2:img_guide">http://opennebula.org/documentation:rel3.2:img_guide</a><br clear="all"></font>--<br>Carlos Martín, MSc<br>

Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

<br>
<br><br><div class="gmail_quote">2012/3/8 張德勤 <span dir="ltr"><<a href="mailto:cinmex91047@gmail.com">cinmex91047@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello ,<div>Thank for Olivier's reply.</div><div>Yes, I saw this error message and I create a cloud folder for it.</div><div>And then sudo chown -R oneadmin:oneamdin /srv/cloud/ on my client1.</div><div>then create an other VM.</div>


<div>But the other error is happened.  :(</div><div><br></div><div><div>Thu Mar  8 16:38:02 2012 [DiM][I]: New VM state is ACTIVE.</div><div>Thu Mar  8 16:38:02 2012 [LCM][I]: New VM state is PROLOG.</div><div>Thu Mar  8 16:38:02 2012 [VM][I]: Virtual Machine has no context</div>


<div>Thu Mar  8 16:38:02 2012 [TM][I]: tm_ln.sh: Creating directory /srv/cloud/one/var//7/images</div><div>Thu Mar  8 16:38:02 2012 [TM][I]: tm_ln.sh: Executed "mkdir -p /srv/cloud/one/var//7/images".</div><div>


Thu Mar  8 16:38:02 2012 [TM][I]: tm_ln.sh: Executed "chmod a+w /srv/cloud/one/var//7/images".</div><div>Thu Mar  8 16:38:02 2012 [TM][I]: tm_ln.sh: Link /srv/cloud/one/cinmex1/cinmex1.img</div><div>Thu Mar  8 16:38:02 2012 [TM][I]: tm_ln.sh: Executed "ln -s /srv/cloud/one/cinmex1/cinmex1.img /srv/cloud/one/var//7/images/disk.0".</div>


<div>Thu Mar  8 16:38:02 2012 [TM][I]: ExitCode: 0</div><div>Thu Mar  8 16:38:02 2012 [TM][D]: tm_mkswap.sh: Creating directory /srv/cloud/one/var//7/images</div><div>Thu Mar  8 16:38:02 2012 [TM][I]: tm_mkswap.sh: Executed "mkdir -p /srv/cloud/one/var//7/images".</div>


<div>Thu Mar  8 16:38:02 2012 [TM][I]: tm_mkswap.sh: Executed "chmod a+w /srv/cloud/one/var//7/images".</div><div>Thu Mar  8 16:38:02 2012 [TM][D]: tm_mkswap.sh: Creating 128Mb image in /srv/cloud/one/var//7/images/disk.1</div>


<div>Thu Mar  8 16:38:02 2012 [TM][I]: tm_mkswap.sh: Executed "dd if=/dev/zero of=/srv/cloud/one/var//7/images/disk.1 bs=1 count=1 seek=128M".</div><div>Thu Mar  8 16:38:02 2012 [TM][D]: tm_mkswap.sh: Initializing swap space</div>


<div>Thu Mar  8 16:38:02 2012 [TM][I]: tm_mkswap.sh: Executed "mkswap /srv/cloud/one/var//7/images/disk.1".</div><div>Thu Mar  8 16:38:02 2012 [TM][I]: tm_mkswap.sh: Executed "chmod a+w /srv/cloud/one/var//7/images/disk.1".</div>


<div>Thu Mar  8 16:38:02 2012 [TM][I]: ExitCode: 0</div><div>Thu Mar  8 16:38:02 2012 [LCM][I]: New VM state is BOOT</div><div>Thu Mar  8 16:38:02 2012 [VMM][I]: Generating deployment file: /srv/cloud/one/var/7/deployment.0</div>


<div>Thu Mar  8 16:38:05 2012 [VMM][I]: Command execution fail: 'if [ -x "/var/tmp/one/vmm/xen/deploy" ]; then /var/tmp/one/vmm/xen/deploy /srv/cloud/one/var//7/images/deployment.0 client1 7 client1; else                              exit 42; fi'</div>


<div>Thu Mar  8 16:38:05 2012 [VMM][I]: Error: Device 2050 (tap) could not be connected. /srv/cloud/one/var//7/images/disk.0 does not exist</div><div>Thu Mar  8 16:38:05 2012 [VMM][E]: Unable</div><div>Thu Mar  8 16:38:05 2012 [VMM][I]: ExitCode: 1</div>


<div>Thu Mar  8 16:38:05 2012 [VMM][E]: Error deploying virtual machine: Unable</div><div>Thu Mar  8 16:38:05 2012 [DiM][I]: New VM state is FAILED</div></div><div><br></div><div><br></div><div>My question is where to find the disk.0??</div>


<div>My images folder only has deployment.0 file....</div><div>And the deployment.0's content is following</div><div>########deployment.0##########</div><div><div>name = 'one-7'</div><div>#O CPU_CREDITS = 256</div>


<div>memory  = '512'</div><div>kernel = '/boot/vmlinuz-2.6.32.56-1.el6xen.x86_64'</div><div>ramdisk = '/boot/initrd-2.6.32.56-1.el6xen.x86_64kdump.img'</div><div>root = '/dev/sda2'</div><div>


disk = [</div><div>    'tap:aio:/srv/cloud/one/var//7/images/disk.0,sda2,w',</div><div>    'tap:aio:/srv/cloud/one/var//7/images/disk.1,sda1,w',</div><div>]</div><div>vif = [</div><div>    ' mac=00:16:01:01:01:01,ip=140.115.155.181',</div>


<div>]</div></div><div>#################END################</div><div><div>[oneadmin@client1 images]$ pwd</div><div>/srv/cloud/one/var/7/images</div><div>[oneadmin@client1 images]$ ls</div><div>deployment.0</div></div><div>


<br></div><div>Thank for your replpy!!!<br><br><div class="gmail_quote">2012/3/8 Olivier Sallou <span dir="ltr"><<a href="mailto:olivier.sallou@irisa.fr" target="_blank">olivier.sallou@irisa.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    I see you have the error:<div class="im"><div><br>
    Thu Mar  8 01:01:33 2012 [VMM][I]: mkdir: cannot create directory
    `/srv/cloud': Permission denied<br>
    <br></div></div>
    seems that oneadmin user does not have correct access rights to this
    dir on remote server<br>
    <br>
    Le 3/8/12 8:19 AM, 張德勤 a écrit :
    <blockquote type="cite"><div><div class="h5"><div><div>Dear all:
      <div>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <div>My VM log file is following.</div>
          <div>Please check</div>
          <div><br>
          </div>
          <div>
            <div>Thu Mar  8 01:01:32 2012 [DiM][I]: New VM state is
              ACTIVE.</div>
            <div>Thu Mar  8 01:01:32 2012 [LCM][I]: New VM state is
              PROLOG.</div>
            <div>Thu Mar  8 01:01:32 2012 [VM][I]: Virtual Machine has
              no context</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: tm_ln.sh: Creating
              directory /srv/cloud/one/var//6/images</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: tm_ln.sh: Executed
              "mkdir -p /srv/cloud/one/var//6/images".</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: tm_ln.sh: Executed
              "chmod a+w /srv/cloud/one/var//6/images".</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: tm_ln.sh: Link
              /srv/cloud/one/cinmex1/cinmex1.img</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: tm_ln.sh: Executed
              "ln -s /srv/cloud/one/cinmex1/cinmex1.img
              /srv/cloud/one/var//6/images/disk.0".</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: ExitCode: 0</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][D]: tm_mkswap.sh:
              Creating directory /srv/cloud/one/var//6/images</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: tm_mkswap.sh:
              Executed "mkdir -p /srv/cloud/one/var//6/images".</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: tm_mkswap.sh:
              Executed "chmod a+w /srv/cloud/one/var//6/images".</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][D]: tm_mkswap.sh:
              Creating 128Mb image in
              /srv/cloud/one/var//6/images/disk.1</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: tm_mkswap.sh:
              Executed "dd if=/dev/zero
              of=/srv/cloud/one/var//6/images/disk.1 bs=1 count=1
              seek=128M".</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][D]: tm_mkswap.sh:
              Initializing swap space</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: tm_mkswap.sh:
              Executed "mkswap /srv/cloud/one/var//6/images/disk.1".</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: tm_mkswap.sh:
              Executed "chmod a+w /srv/cloud/one/var//6/images/disk.1".</div>
            <div>Thu Mar  8 01:01:32 2012 [TM][I]: ExitCode: 0</div>
            <div>Thu Mar  8 01:01:32 2012 [LCM][I]: New VM state is BOOT</div>
            <div>Thu Mar  8 01:01:32 2012 [VMM][I]: Generating
              deployment file: /srv/cloud/one/var/6/deployment.0</div>
            <div>Thu Mar  8 01:01:33 2012 [VMM][I]: Command execution
              fail: 'if [ -x "/var/tmp/one/vmm/xen/deploy" ]; then
              /var/tmp/one/vmm/xen/deploy
              /srv/cloud/one/var//6/images/deployment.0 client1 6
              client1; else                              exit 42; fi'</div>
            <div>Thu Mar  8 01:01:33 2012 [VMM][I]: mkdir: cannot create
              directory `/srv/cloud': Permission denied</div>
            <div>Thu Mar  8 01:01:33 2012 [VMM][I]:
              /var/tmp/one/vmm/xen/deploy: line 34:
              /srv/cloud/one/var//6/images/deployment.0: No such file or
              directory</div>
            <div>Thu Mar  8 01:01:33 2012 [VMM][I]: Error: Unable to
              open config file:
              /srv/cloud/one/var//6/images/deployment.0</div>
            <div>Thu Mar  8 01:01:33 2012 [VMM][E]: Unable</div>
            <div>Thu Mar  8 01:01:33 2012 [VMM][I]: ExitCode: 1</div>
            <div>Thu Mar  8 01:01:33 2012 [VMM][E]: Error deploying
              virtual machine: Unable</div>
            <div>Thu Mar  8 01:01:33 2012 [DiM][I]: New VM state is
              FAILED</div>
          </div>
          <div><br>
          </div>
          <div>How can I fix this?</div>
        </blockquote>
        <br>
        <div class="gmail_quote">張德勤 <span dir="ltr"><<a href="mailto:cinmex91047@gmail.com" target="_blank">cinmex91047@gmail.com</a>></span>
          於 2012年3月8日上午1:21 寫道:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Dear all:
            <div>
              <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
                <div>After I installed my ONE system.</div>
                <div>There are 2 machines in my system.</div>
                <div>one is Server : CentOS 6 + OpenNEbula</div>
                <div>the other one is client1 : CentOS 6 + Xen-kernel</div>
                <div><br>
                </div>
                <div>And now I want to locate a VM to Client1 through
                  Server.</div>
                <div>Here are my steps.</div>
                <div>1.  I refer this website to install my VM on
                  client1. </div>
                <div>     <a href="http://www.howtoforge.com/virtualization-with-xen-on-centos-6.2-x86_64-paravirtualization-and-hardware-virtualization-p2" target="_blank">http://www.howtoforge.com/virtualization-with-xen-on-centos-6.2-x86_64-paravirtualization-and-hardware-virtualization-p2</a></div>



                <div>     After this step, I get cinmex1.img in my
                  client1.</div>
                <div>2.  I copy cinemx1.img to /srv/cloud/one/cinmex1 in
                  my ONE server. And create a cinmex1.one file. The
                  content is following.</div>
                <div>     NAME   = cinmex1</div>
                <div>     CPU    = 1</div>
                <div>     MEMORY = 512</div>
                <div>     OS = [ kernel     =
                  /boot/vmlinuz-2.6.32.56-1.el6xen.x86_64,</div>
                <div>                 initrd     =
                  /boot/initrd-2.6.32.56-1.el6xen.x86_64kdump.img,</div>
                <div>
                                   root       = sda2]</div>
                <div>     DISK = [ source   =
                  /srv/cloud/one/cinmex1/cinmex1.img,</div>
                <div>                     clone    = no,</div>
                <div>                     target   = sda2,</div>
                <div>                     readonly = no]</div>
                <div>     DISK = [  type     = swap,</div>
                <div>                     size     = 128,</div>
                <div>                     target   = "sda1",</div>
                <div>                     readonly = "no" ]</div>
                <div>     NIC=[IP="XX.XX.XX.XX",
                  MAC="00:16:01:01:01:01"]</div>
                <div><br>
                </div>
                <div>3.  I command onevm create cinmex1.one, but the VM
                  failed.  :(</div>
                <div>     [oneadmin@server cinmex1]$ onevm create
                  cinmex1.one</div>
                <div>     ID: 6</div>
                <div>     [oneadmin@server cinmex1]$ onevm list</div>
                <div>      ID USER     GROUP    NAME         STAT CPU  
                    MEM        HOSTNAME        TIME</div>
                <div>         6 oneadmin oneadmin cinmex1      fail   0
                       0K                 00 00:00:02</div>
                <div><br>
                </div>
                <div>My question is how to set the cinmex1.one file??</div>
                <div>For example, what content should I set in the OS??</div>
                <div>My /boot/grub/menu.lst in client1 is here.</div>
                <div>
                  <div><br>
                  </div>
                  <div>default=0</div>
                  <div>timeout=5</div>
                  <div>splashimage=(hd0,0)/grub/splash.xpm.gz</div>
                  <div>hiddenmenu</div>
                </div>
                <div>
                  <div>title CentOS (2.6.32.56-1.el6xen.x86_64)</div>
                  <div>        root (hd0,0)</div>
                  <div>        kernel /xen.gz dom0_mem=1024M cpufreq=xen
                    dom0_max_vcpus=4 dom0_vcpus_pin</div>
                  <div>        module /vmlinuz-2.6.32.56-1.el6xen.x86_64
                    ro root=/dev/mapper/vg_client1-lv_root rd_NO_LUKS
                    LANG=en_US.UTF-8 rd_LVM_LV=vg_client1/lv_root
                    rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb
                    crashkernel=128M rd_LVM_LV=vg_client1/lv_swap
                     KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM</div>
                  <div>        module
                    /initramfs-2.6.32.56-1.el6xen.x86_64.img</div>
                </div>
                <div><br>
                </div>
                <div>Someone can help me??</div>
                <div><br>
                </div>
                <div><br>
                </div>
              </blockquote>
              <span><font color="#888888">
                  <div><br>
                  </div>
                  -- <br>
                  Regards,<br>
                  <font color="#888888"><br>
                    Te - Chin, Chang (張德勤), <a href="tel:%2B886-3-4227151%20%2357968" value="+88634227151" target="_blank">+886-3-4227151
                      #57968</a><br>
                    Networklab, Computer Science & Information
                    Engineering,<br>
                    National Central University, Jhongli, Taiwan, R.O.C</font><br>
                </font></span></div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        Regards,<br>
        <font color="#888888"><br>
          Te - Chin, Chang (張德勤), <a href="tel:%2B886-3-4227151%20%2357968" value="+88634227151" target="_blank">+886-3-4227151 #57968</a><br>
          Networklab, Computer Science & Information Engineering,<br>
          National Central University, Jhongli, Taiwan, R.O.C</font><br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div></div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><span><font color="#888888">
</font></span></pre><span><font color="#888888">
    </font></span></blockquote><span><font color="#888888">
    <br><span class="HOEnZb"><font color="#888888">
    <pre cols="72">-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (<a href="http://keyring.debian.org" target="_blank">keyring.debian.org</a>)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

</pre>
  </font></span></font></span></div>

</blockquote></div><div class="im"><br><br clear="all"><div><br></div>-- <br>Regards,<br>
<font color="#888888"><br>
Te - Chin, Chang (張德勤), <a href="tel:%2B886-3-4227151%20%2357968" value="+88634227151" target="_blank">+886-3-4227151 #57968</a><br>
Networklab, Computer Science & Information Engineering,<br>
National Central University, Jhongli, Taiwan, R.O.C</font><br>
</div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>