Thank you,
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????
Thank you.
On 11/02/2012 12:41 PM, André Monteiro wrote:
Hello,
On my Ubuntu 12, /etc/rc.local doesn't mount the context so I made a
modification on init.sh
if [ -f /mnt/context.sh ]
then
. /mnt/context.sh
else
mount -t iso9660 /dev/sr0 /mnt
./mnt/context.sh
fi
And this way VM executes init.sh with context and is correctly configured.
--
André Monteiro
On Fri, Nov 2, 2012 at 11:19 AM, Filippo Gaudenzi
<[email protected] <mailto:[email protected]>> wrote:
Hi everybody,
i'm trying to use contextualization to pass file to my VMs.
After
onevm create ubuTest.one
where ubuTest.one is:
NAME = "ubu1"
CPU =0.1
VCPU = 1
MEMORY = 256
NIC = [NETWORK="VEP public network"]
DISK = [IMAGE="ubuntuServer"]
OS = [ boot="hd", arch="x86_64" ]
GRAPHICS = [
type="vnc",
listen="localhost"
]
CONTEXT=[
files="/srv/kvm-images/filippoContrail/one/ubuTest.one"
]
I check the VM with
onevm show <VM-id>
and i get:
VIRTUAL MACHINE 299 INFORMATION
ID : 299
NAME : ubu1
STATE : ACTIVE
LCM_STATE : RUNNING
START TIME : 11/02 11:56:44
END TIME : -
DEPLOY ID: : one-299
VIRTUAL MACHINE MONITORING
NET_TX : 468
NET_RX : 58381
USED MEMORY : 262144
USED CPU : 2
VIRTUAL MACHINE TEMPLATE
CONTEXT=[
FILES=/srv/kvm-images/filippoContrail/one/ubuTest.one,
TARGET=hdb ]
CPU=0.1
DISK=[
CLONE=YES,
DISK_ID=0,
IMAGE=ubuntuServer,
IMAGE_ID=0,
READONLY=NO,
SAVE=NO,
SOURCE=/srv/kvm-images/filippoContrail/one/var//images/0c807e521b4ae25dcbd07bb7b224fd6a9392d30b,
TARGET=hda,
TYPE=DISK ]
GRAPHICS=[
LISTEN=localhost,
PORT=6199,
TYPE=vnc ]
MEMORY=256
NAME=ubu1
NIC=[
BRIDGE=br-myriads,
IP=131.254.201.69 <tel:131.254.201.69>,
MAC=02:00:83:fe:c9:45,
NETWORK=VEP public network,
NETWORK_ID=3 ]
OS=[
ARCH=x86_64,
BOOT=hd ]
VCPU=1
VMID=299
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.
Do you know why?
Thank you.
--
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
http://www.irisa.fr/myriads/
_______________________________________________
Users mailing list
[email protected] <mailto:[email protected]>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
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
http://www.irisa.fr/myriads/
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org