<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">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.<br>
<br>
On 11/02/2012 12:41 PM, André Monteiro wrote:<br>
</div>
<blockquote
cite="mid:CAG+nK=oYLAZmWO9J502to2rfWQ4Dms8OEiy46uDiJHefwm1mtQ@mail.gmail.com"
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 moz-do-not-send="true"
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 moz-do-not-send="true" href="tel:131.254.201.69"
target="_blank" value="+13125420169">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 class="HOEnZb"><font color="#888888"><br>
</font></span></p>
<span class="HOEnZb"><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 moz-do-not-send="true" 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 moz-do-not-send="true"
href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true"
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 class="moz-signature" 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 class="moz-txt-link-freetext" href="http://www.irisa.fr/myriads/">http://www.irisa.fr/myriads/</a>
</pre>
</body>
</html>