[one-ecosystem] template creation using onemc

bathina nageswararao nag_bathina at yahoo.com
Tue Jul 27 06:47:47 PDT 2010


Hi,

The problem resolved after changing the Network model from "none" to "virtio" in template creation.

Please clarify the following questions.

1) How to start the VM Image after shutdown from onemc?


2) How to save running images and how to make it up ?

3)  please find node details

Name         : 192.168.138.241
Running VM's : 4

Total CPU    : 400
Free  CPU    : 387
Assigned CPU : 12
Total Memory : 8189640 
Free momory  : 6013732

we created 4 ttylinux images those are up and running successfully.But we are unable to create further images(those are going to pending )though enough resources.

please clarify the images creation based on vm's count or resources.

Thanks & Regards,
Nagesh.




--- On Tue, 7/27/10, Jeroen Nijhof <jeroen.nijhof at sara.nl> wrote:

From: Jeroen Nijhof <jeroen.nijhof at sara.nl>
Subject: Re: [one-ecosystem] template creation using onemc
To: "bathina nageswararao" <nag_bathina at yahoo.com>
Cc: "Ross Nordeen" <rjnordee at mtu.edu>, "ecosystem at lists.opennebula.org" <ecosystem at lists.opennebula.org>
Date: Tuesday, July 27, 2010, 1:49 PM

Hi,

Is your oneadmin user member of the libvirtd group?

Kind regards, Jeroen

On 07/26/2010 05:27 PM, bathina nageswararao wrote:
> Hi Jeroen,
> Thanks for giving help in right direction.
> But I am getting the following error after deploying the image with
> created template.
> Template details:
> ID=19
> UID=0
> NAME=ttyl2
> LAST_POLL=0
> STATE=7
> LCM_STATE=0
> STIME=1280157250
> ETIME=1280157306
> DEPLOY_ID =>
> MEMORY=0
> CPU=0
> NET_TX=0
> NET_RX=0
> TEMPLATE =>
> CPU=1
> DISK =>
> CLONE=yes
> READONLY=no
> SAVE=no
> SIZE=500
> SOURCE=/srv/cloud/one/one-template/ttylinux.img
> TARGET=hda
> TYPE=disk
> GRAPHICS =>
> LISTEN=0.0.0.0
> PORT=999
> TYPE=vnc
> MEMORY=256
> NAME=ttyl2
> NIC =>
> BRIDGE=br0
> IP=192.168.138.10
> MAC=00:03:c0:a8:8a:0a
> MODEL=none
> NETWORK=Small network
> VNID=0
> OS =>
> BOOT=hd
> VMID=19
> HISTORY =>
> SEQ=0
> HOSTNAME=192.168.138.241
> HID=0
> STIME=1280157274
> ETIME=1280157305
> PSTIME=1280157274
> PETIME=1280157275
> RSTIME=1280157275
> RETIME=1280157305
> ESTIME=0
> EETIME=0
> REASON=1
> Log details:
> Mon Jul 26 20:44:34 2010 [DiM][D]: Deploying VM 19
> Mon Jul 26 20:44:35 2010 [TM][D]: Message received: LOG - 19
> tm_clone.sh: onefrontend:/srv/cloud/one/one-template/ttylinux.img
> 192.168.138.241:/srv/cloud/one/var//19/images/disk.0
> Mon Jul 26 20:44:35 2010 [TM][D]: Message received: LOG - 19
> tm_clone.sh: DST: /srv/cloud/one/var//19/images/disk.0
> Mon Jul 26 20:44:35 2010 [TM][D]: Message received: LOG - 19
> tm_clone.sh: Creating directory /srv/cloud/one/var//19/images
> Mon Jul 26 20:44:35 2010 [TM][D]: Message received: LOG - 19
> tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//19/images".
> Mon Jul 26 20:44:35 2010 [TM][D]: Message received: LOG - 19
> tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//19/images".
> Mon Jul 26 20:44:35 2010 [TM][D]: Message received: LOG - 19
> tm_clone.sh: Cloning /srv/cloud/one/one-template/ttylinux.img
> Mon Jul 26 20:44:35 2010 [TM][D]: Message received: LOG - 19
> tm_clone.sh: Executed "cp /srv/cloud/one/one-template/ttylinux.img
> /srv/cloud/one/var//19/images/disk.0".
> Mon Jul 26 20:44:35 2010 [TM][D]: Message received: LOG - 19
> tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//19/images/disk.0".
> Mon Jul 26 20:44:35 2010 [TM][D]: Message received: TRANSFER SUCCESS 19 -
> Mon Jul 26 20:44:37 2010 [InM][D]: Host 0 successfully monitored.
> Mon Jul 26 20:44:44 2010 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jul 26 20:44:47 2010 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jul 26 20:44:50 2010 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jul 26 20:44:53 2010 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jul 26 20:44:55 2010 [VMM][I]: Monitoring VM 0.
> Mon Jul 26 20:44:55 2010 [VMM][I]: Monitoring VM 1.
> Mon Jul 26 20:44:55 2010 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jul 26 20:45:02 2010 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Jul 26 20:45:05 2010 [VMM][D]: Message received: LOG - 19 Command
> execution fail: 'mkdir -p /srv/cloud/one/var//19/images && cat >
> /srv/cloud/one/var//19/images/deployment.0 && virsh --connect
> qemu:///system create /srv/cloud/one/var//19/images/deployment.0'
> Mon Jul 26 20:45:05 2010 [VMM][D]: Message received: LOG - 19 STDERR
> follows.
> Mon Jul 26 20:45:05 2010 [VMM][D]: Message received: LOG - 19 Warning:
> Permanently added '192.168.138.241' (RSA) to the list of known hosts.
> Mon Jul 26 20:45:05 2010 [VMM][D]: Message received: LOG - 19 error:
> Failed to create domain from /srv/cloud/one/var//19/images/deployment.0
> Mon Jul 26 20:45:05 2010 [VMM][D]: Message received: LOG - 19 error:
> monitor socket did not show up.: Connection refused
> Mon Jul 26 20:45:05 2010 [VMM][D]: Message received: LOG - 19 ExitCode: 1
> Mon Jul 26 20:45:05 2010 [VMM][D]: Message received: DEPLOY FAILURE 19 -
> Regards,
> Nagesh.
>
>
>
> --- On *Mon, 7/26/10, Jeroen Nijhof /<jeroen.nijhof at sara.nl>/* wrote:
>
>
>     From: Jeroen Nijhof <jeroen.nijhof at sara.nl>
>     Subject: Re: [one-ecosystem] template creation using onemc
>     To: "Ross Nordeen" <rjnordee at mtu.edu>
>     Cc: "bathina nageswararao" <nag_bathina at yahoo.com>,
>     "ecosystem at lists.opennebula.org" <ecosystem at lists.opennebula.org>
>     Date: Monday, July 26, 2010, 7:50 PM
>
>     Hi,
>
>     You need to put an image file in your user directory or at least in the
>     global directory.
>
>     The user and global directory are configurable in config.php:
>
>     // VM image directory's
>     $global_images = "/data/images";
>     $user_images = "/home/%USER%/images";
>
>     Any file in these directory's will show up as source.
>
>     Regards,
>     Jeroen
>
>
>
>     On 07/26/2010 04:15 PM, Ross Nordeen wrote:
>      > Nagesh,
>      >
>      > For the target I put sda. I ran into the source problem also, you
>     need to point that to your img file of your vm. I have not found out
>     how to do it in onemc but you can manually edit them in mysql. I
>     installed mysqladmin to do this at ease.
>      >
>      > -Ross
>      >
>      > ----- Original Message -----
>      > From: "bathina nageswararao"<nag_bathina at yahoo.com
>     <http://us.mc507.mail.yahoo.com/mc/compose?to=nag_bathina@yahoo.com>>
>      > To: ecosystem at lists.opennebula.org
>     <http://us.mc507.mail.yahoo.com/mc/compose?to=ecosystem@lists.opennebula.org>
>      > Sent: Monday, July 26, 2010 7:14:41 AM GMT -07:00 US/Canada Mountain
>      > Subject: [one-ecosystem] template creation using onemc
>      >
>      >
>      > Hi,
>      >
>      > Can you please help to create template in VM manager Tab in ONEMC.
>      >
>      > Create template:
>      > Name:
>      >
>      > Memory: 256 MB
>      > Cpu: 1
>      > OS section:
>      > * Boot: hd
>      > Bootloader:
>      > Kernel:
>      > Kernel arguments:
>      > Initrd:
>      > Root:
>      > Disk section:
>      > Number of disks: 1
>      > Network section: 1
>      > Number of networks:
>      > Graphics section:
>      > Listen address:
>      > VNC Port:
>      > VNC Password:
>      > Disk section:
>      > Disk 1
>      > Type: disk
>      > * Source: none (except none it is not showing none)
>      > Size: 1000 MB
>      > Format:
>      > * Target:
>      > Clone: yes
>      > Save: yes
>      > Readonly: yes
>      > Network section:
>      > Network 1
>      > Network: Small network
>      > Ip:
>      > Mac-address:
>      > Bridge:
>      > Target:
>      > Script:
>      > Model:
>      >
>      > Template created and showing in "vm overview" when I tried to
>     deploy we are getting the following errors from oned.log
>      >
>      >
>      >
>      > Mon Jul 26 18:06:39 2010 [DiM][D]: Allocating a new VM
>      >
>      > Mon Jul 26 18:06:51 2010 [DiM][D]: Deploying VM 7
>      > Mon Jul 26 18:06:52 2010 [VMM][I]: Monitoring VM 2.
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     Command execution fail:
>     /srv/cloud/one/lib/tm_commands/nfs/tm_clone.sh onefrontend:none
>     192.168.138.241:/srv/cloud/one/var//7/images/disk.0
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     STDERR follows.
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7 ERROR
>     MESSAGE --8<------
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7 cp:
>     cannot stat `none': No such file or directory
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7 ERROR
>     MESSAGE ------>8--
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     ExitCode: 1
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     tm_clone.sh: onefrontend:none
>     192.168.138.241:/srv/cloud/one/var//7/images/disk.0
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     tm_clone.sh: DST: /srv/cloud/one/var//7/images/disk.0
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     tm_clone.sh: Creating directory /srv/cloud/one/var//7/images
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//7/images".
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//7/images".
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     tm_clone.sh: Cloning none
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     tm_clone.sh: ERROR: Command "cp none
>     /srv/cloud/one/var//7/images/disk.0" failed.
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: LOG - 7
>     tm_clone.sh: ERROR: cp: cannot stat `none': No such file or directory
>      >
>      > Mon Jul 26 18:06:52 2010 [TM][D]: Message received: TRANSFER
>     FAILURE 7 cp: cannot stat `none': No such file or directory
>      >
>      > Mon Jul 26 18:06:52 2010 [VMM][D]: Message received: POLL SUCCESS
>     2 STATE=a USEDMEMORY=131072
>      >
>      > Mon Jul 26 18:06:53 2010 [TM][D]: Message received: LOG - 7
>     tm_delete.sh: Deleting /srv/cloud/one/var//7/images
>      >
>      > Mon Jul 26 18:06:53 2010 [TM][D]: Message received: LOG - 7
>     tm_delete.sh: Executed "rm -rf /srv/cloud/one/var//7/images".
>      >
>      > Mon Jul 26 18:06:53 2010 [TM][D]: Message received: TRANSFER
>     SUCCESS 7 -
>      >
>      > Regards,
>      > Nagesh.
>      >
>      >
>      >
>      >
>      > _______________________________________________
>      > Ecosystem mailing list
>      > Ecosystem at lists.opennebula.org
>     <http://us.mc507.mail.yahoo.com/mc/compose?to=Ecosystem@lists.opennebula.org>
>      > http://lists.opennebula.org/listinfo.cgi/ecosystem-opennebula.org
>      > _______________________________________________
>      > Ecosystem mailing list
>      > Ecosystem at lists.opennebula.org
>     <http://us.mc507.mail.yahoo.com/mc/compose?to=Ecosystem@lists.opennebula.org>
>      > http://lists.opennebula.org/listinfo.cgi/ecosystem-opennebula.org
>
>




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/ecosystem-opennebula.org/attachments/20100727/e0bf842e/attachment-0002.htm>


More information about the Ecosystem mailing list