[one-users] image and vm image creation

bharath pb bharathapbr at gmail.com
Mon Jul 4 21:48:09 PDT 2011


Hi,
I need to store the Data block in opennebula .

I have installed openebula and could create the hosts and cluster . Now I
want to store teh Data( say just one variable may some temprature value )
The following steps i'm following .

 image.template
NAME          = "Experiment results"
TYPE          = DATABLOCK
# No PATH set, this image will start as a new empty disk
SIZE          = 2048
FSTYPE        = ext3
PUBLIC        = NO
DESCRIPTION   = "Storage for my For my tempsensor."

$ oneimage register image.template // command submission

vm.templatefortemp

#---------------------------------------
# VM definition example
#---------------------------------------
NAME = "vm-example for temp sensor"
CPU    = 0.5
MEMORY = 128
# --- kernel & boot device ---
OS = [
  kernel   = "/vmlinuz",
  initrd   = "/initrd.img",
  root     = "sda1" ]

DISK = [
  source   = "PATH of the image created",
  target   = "sd",
  readonly = "no" ]

DISK  = [ IMAGE ="Ubuntu Server" ]
# --- 1 NIC ---
NIC = [ mac="00:ff:72:17:20:27"]
NIC = [ NETWORK="Private LAN"]

# --- VNC server ---
GRAPHICS = [
  type    = "vnc",
  listen  = "127.0.0.1",
  port    = "5"]
# --- Context ---
CONTEXT = [
  hostname   = "$NAME",
  ip_private = "$NIC[IP, NETWORK=\"Private LAN\"]",
  ip_gen     = "10.0.0.$VM_ID"]

$ onevm create vm.templatefortemp .

Will this work fine ...? If my steps or wrong pls help me ...

regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110705/e5d316a9/attachment-0002.htm>


More information about the Users mailing list