Hi Filippo<div><br></div><div>The actual device used to present the cdrom depends on the guest OS. Some linux distributions presents always the cdrom through the scsi bus (sr0...) others use udev symlink the devices to cdrom... So I think there is no rule of thumb for this.</div>

<div><br></div><div>Cheers</div><div><br></div><div>Ruben</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 2, 2012 at 1:24 PM, Filippo Gaudenzi <span dir="ltr"><<a href="mailto:filippo.gaudenzi@inria.fr" target="_blank">filippo.gaudenzi@inria.fr</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Thank you,<br>
      but the Problem is not that i can't mount the drive at startup,
      but the incoherence between the value of the target field and the
      drive on the VM. Why is the target hdb and i have to mount cdrom1
      or sr0????<br>
      <br>
      Thank you.<div><div class="h5"><br>
      <br>
      On 11/02/2012 12:41 PM, André Monteiro wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <div>Hello,</div>
      <div> </div>
      <div>On my Ubuntu 12, /etc/rc.local doesn't mount the context so I
        made a modification on init.sh</div>
      <div> </div>
      <div>if [ -f /mnt/context.sh ]<br>
        then<br>
          . /mnt/context.sh<br>
        else<br>
         mount -t iso9660 /dev/sr0 /mnt<br>
         ./mnt/context.sh<br>
        fi<br>
      </div>
      <div>And this way VM executes init.sh with context and is
        correctly configured.</div>
      <div><br>
        --<br>
        André Monteiro<br>
        <br>
        <br>
        <br>
        <br>
      </div>
      <div class="gmail_quote">On Fri, Nov 2, 2012 at 11:19 AM, Filippo
        Gaudenzi <span dir="ltr"><<a href="mailto:filippo.gaudenzi@inria.fr" target="_blank">filippo.gaudenzi@inria.fr</a>></span>
        wrote:<br>
        <blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
          <div bgcolor="#FFFFFF" text="#000000"> Hi everybody,<br>
            i'm trying to use contextualization to pass file to my VMs.<br>
            After <br>
            <pre>onevm create ubuTest.one

</pre>
            where ubuTest.one is:<br>
            <br>
            <small><font face="Courier New, Courier, monospace">NAME =
                "ubu1"<br>
                CPU =0.1<br>
                VCPU = 1<br>
                MEMORY = 256<br>
                NIC = [NETWORK="VEP public network"]<br>
                DISK = [IMAGE="ubuntuServer"]<br>
                OS = [ boot="hd", arch="x86_64" ]<br>
                GRAPHICS = [<br>
                type="vnc",<br>
                listen="localhost"<br>
                ]<br>
                CONTEXT=[<br>
                files="/srv/kvm-images/filippoContrail/one/ubuTest.one"<br>
                ]<br>
                <big><font face="sans-serif"><br>
                    I check the VM with <br>
                    <br>
                  </font></big>onevm show <VM-id><br>
                <big><font face="sans-serif"><br>
                    and i get:</font></big><br>
                <br>
                VIRTUAL MACHINE 299
                INFORMATION                                                
                <br>
                ID             : 299                 <br>
                NAME           : ubu1                <br>
                STATE          : ACTIVE              <br>
                LCM_STATE      : RUNNING             <br>
                START TIME     : 11/02 11:56:44      <br>
                END TIME       : -                   <br>
                DEPLOY ID:     : one-299             <br>
                <br>
                VIRTUAL MACHINE
                MONITORING                                                     
                <br>
                NET_TX         : 468                 <br>
                NET_RX         : 58381               <br>
                USED MEMORY    : 262144              <br>
                USED CPU       : 2                   <br>
                <br>
                VIRTUAL MACHINE
                TEMPLATE                                                       
                <br>
                CONTEXT=[<br>
                  FILES=/srv/kvm-images/filippoContrail/one/ubuTest.one,<br>
                  TARGET=hdb ]<br>
                CPU=0.1<br>
                DISK=[<br>
                  CLONE=YES,<br>
                  DISK_ID=0,<br>
                  IMAGE=ubuntuServer,<br>
                  IMAGE_ID=0,<br>
                  READONLY=NO,<br>
                  SAVE=NO,<br>
                 
SOURCE=/srv/kvm-images/filippoContrail/one/var//images/0c807e521b4ae25dcbd07bb7b224fd6a9392d30b,<br>
                  TARGET=hda,<br>
                  TYPE=DISK ]<br>
                GRAPHICS=[<br>
                  LISTEN=localhost,<br>
                  PORT=6199,<br>
                  TYPE=vnc ]<br>
                MEMORY=256<br>
                NAME=ubu1<br>
                NIC=[<br>
                  BRIDGE=br-myriads,<br>
                  IP=<a href="tel:131.254.201.69" value="+13125420169" target="_blank">131.254.201.69</a>,<br>
                  MAC=02:00:83:fe:c9:45,<br>
                  NETWORK=VEP public network,<br>
                  NETWORK_ID=3 ]<br>
                OS=[<br>
                  ARCH=x86_64,<br>
                  BOOT=hd ]<br>
                VCPU=1<br>
                VMID=299<br>
                <br>
              </font></small>
            <p>I understand that in my VM there should be a drive on
              /dev/hdb to mount. But when i ssh inside i just find
              cdrom1.<br>
              Do you know why?</p>
            <p>Thank you.<span><font color="#888888"><br>
                </font></span></p>
            <span><font color="#888888"> <br>
                <pre cols="72">-- 
Filippo Gaudenzi R&D Engineer at INRIA
CONTRAIL Project, INRIA Rennes - Bretagne Atlantique
Campus universitaire de Beaulieu, 35042 Rennes cedex, France
Tel 02 9984 7126
<a href="http://www.irisa.fr/myriads/" target="_blank">http://www.irisa.fr/myriads/</a>
</pre>
              </font></span></div>
          <br>
          _______________________________________________<br>
          Users mailing list<br>
          <a href="mailto:Users@lists.opennebula.org" target="_blank">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>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 
Filippo Gaudenzi R&D Engineer at INRIA
CONTRAIL Project, INRIA Rennes - Bretagne Atlantique
Campus universitaire de Beaulieu, 35042 Rennes cedex, France
Tel 02 9984 7126
<a href="http://www.irisa.fr/myriads/" target="_blank">http://www.irisa.fr/myriads/</a>
</pre>
  </div></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><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula<br>


</div>