Re: [one-users] onevm saveas error
STATE : rdy RUNNING_VMS: 0 IMAGE TEMPLATE DESCRIPTION=Debian Squeeze. DEV_PREFIX=hd NAME=debian-squeeze PATH=/home/images/debian-squeeze.img TYPE=OS I have create a virtual machine template and registered it. # onetemplate show 0 TEMPLATE 0 INFORMATION ID : 0 NAME : debian-squezee USER : oneadmin GROUP : oneadmin REGISTER TIME : 09/15 15:16:18 PUBLIC : No TEMPLATE CONTENTS CPU=1 DISK=[ BUS=ide, DRIVER=qcow2, IMAGE_ID=0 ] DISK=[ READONLY=no, SIZE=1024, TYPE=swap ] GRAPHICS=[ LISTEN=0.0.0.0, TYPE=vnc ] MEMORY=1024 NAME=debian-squezee NIC=[ IP=192.168.150.11, NETWORK_ID=0 ] OS=[ ARCH=x86_64 ] TEMPLATE_ID=0 The virtual network with id 0 is also created. #onevnet show 0 VIRTUAL NETWORK 0 INFORMATION ID : 0 USER : oneadmin GROUP : oneadmin PUBLIC : Yes USED LEASES: 0 VIRTUAL NETWORK TEMPLATE BRIDGE=vlan150 DNS=192.168.150.1 GATEWAY=192.168.150.1 NAME=VLAN150 NETWORK_ADDRESS=192.168.150.0 NETWORK_SIZE=C TYPE=RANGED I have instantiated the virtual machine defined in the above template. So far so good, everything works as expected. What I want to do next is to update the debian image (apt-get update apt-get upgrade) and save it as a new image. Said and done. I first start the Debian VM, update it and then using onevm saveas I want to save the VM disk with ID 0 under a new name. # onevm saveas 5 0 debian-upd1 I mention that I ran the above command while the Debian VM was on. As far as I understand from documentation this is not a problem but the contents of the image are only created after the VM is shutdown gracefully (using onevm shutdown). So I did just that. # onevm shutdown 5 # onevm list ID USER GROUPNAME STAT CPU MEMHOSTNAME TIME 5 oneadmin oneadmin one-5shut 0 0K node02 00 00:09:18 I verify if the image is created using oneimage. I have double checked listing the SOURCE and it is there. # oneimage show 2 IMAGE 2 INFORMATION ID : 2 NAME : debian-s-upd1 USER : oneadmin GROUP : oneadmin TYPE : OS REGISTER TIME : 09/15 16:15:06 PUBLIC : No PERSISTENT : No SOURCE : /var/lib/one/images/b92349a9f4ad479facf95f6706777d11 SIZE : 721 STATE : rdy RUNNING_VMS: 0 IMAGE TEMPLATE DEV_PREFIX=hd NAME=debian-s-upd1 SOURCE=- The problem. The Debian VM is gone, it is not listed anymore. onevm returns empty list. The Debian VM was the only one active. Is this normal behavior if you save the only disk the VM has? Thank you, v -- network warrior ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- next part -- An HTML attachment was scrubbed... URL: http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110915/07a1cb13/attachment.html -- Message: 3 Date: Thu, 15 Sep 2011 12:35:22 -0400 From: Robert Parrott parr...@seas.harvard.edu To: users users@lists.opennebula.org Subject: [one-users] IMAGE_REPOSITORY_PATH and OpenNebula 3 Message-ID: CAMx57NbarpuVQ1Akzig6F1=iv1va1lza55jnac5zgx6wbgk...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Hi All, With ONE 2.2, we used the IMAGE_REPOSITORY_PATH config value to point to a separate store for image files that was outside of the $ONE_LOCATION/var/ directory. It appears that with the new ONE_IMAGE MAD, this config value is gone, so we can't now add new images into the system as we had before. Right now we are using symlinks to fix this, but that's not a great solution. What is the appropriate upgrade in ONE 3 to match this functionality from ONE 2? Thanks, Rob -- Robert E. Parrott, Ph.D. (Phys. '06) Director, Academic Computing Harvard University Sch. of Eng. and App. Sci. Maxwell-Dworkin ?211, 33 Oxford St. Cambridge, MA 02138 (617)-496-1520 -- Message: 4 Date: Thu, 15 Sep 2011 18:58:27 +0200 From: Fabian Wenk fab...@wenks.ch To: users@lists.opennebula.org Subject: Re: [one-users] onevm saveas error Message-ID: 4e722eb3.4040...@wenks.ch Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello On 15.09.2011 13:38, Fabian Wenk wrote: On 15.09.2011 07:39, bharath pb wrote: I tried to save the running Vm image using onevm saveasvm_id dick_id imagename onevm shutdownvm_id Fri Sep 9 10:11:46 2011 [TM][E]: Error excuting image transfer script: cp: cannot stat `/srv/cloud/one/var//images/e0561a492c9aaac280479f2f0d85dcced9156fbf': No such file
[one-users] onevm saveas error
Hi, I tried to save the running Vm image using onevm saveas vm_id dick_id imagename onevm shutdown vm_id When I try to to launch a new using the saved image I get the following error at the VM log messages . Fri Sep 9 10:11:46 2011 [TM][E]: Error excuting image transfer script: cp: cannot stat `/srv/cloud/one/var//images/e0561a492c9aaac280479f2f0d85dcced9156fbf': No such file or directory Fri Sep 9 10:11:47 2011 [DiM][I]: New VM state is FAILED Fri Sep 9 10:11:47 2011 [TM][W]: Ignored: LOG - 44 tm_delete.sh: Deleting /srv/cloud/one/var//44/images pls help to find why i'm not able to save the VM properly ..? r ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] VM is in Run state but I cant do the SSH
Hi, I have installed the opennebula on ubuntu 11.04 and i'm trying to connect to the host (which is other system ubuntu 10.04 LTS, i have installed kvm, libvert , qem etc) . I can successfully monitored the HOST , then I tried the sample ttylinux example but here I have some problem , I have created the small net work template NAME = Small network TYPE = FIXED #Now we'll use the cluster private network (physical) BRIDGE = virbr0 LEASES = [ IP=192.168.122.5] LEASES = [ IP=192.168.122.6] LEASES = [ IP=192.168.122.7] then I mounted the image , after this image ID and network ID I put in to VM templete and created the VM , but VM was in pending state only so then I went with deploying the VM(onevm deploy 0 0) . I cloud deploy the VM and went to runn state but I cant do the SSH to root@192.168.122.5 (tried as per the given doc) .. how to do this ..? how to check the IP of my VM ..? rgds Bharath ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VM is in Run state but I cant do the SSH
Thanks for the reply ... Since I'm using the opennebula ,. will opennebula ID is same as the xm console ID ..? Im using KVM , can I do $virish then Ifconfig to see the IP..? Why didn't VM go to run state when i create it ..? is it necessary to deploy the VM ..? regards Bharath On Thu, Jul 21, 2011 at 8:51 AM, puneeth poduri puneeth.pod...@gmail.comwrote: hi, try xm console id and do ifconfig . i highly doubt you can set IP addresses like that . please see contextualizing VM for further reference . Contextualizing VMhttp://opennebula.org/documentation:rel2.2:cong -- puneeth On Thu, Jul 21, 2011 at 7:05 PM, bharath pb bharatha...@gmail.com wrote: Hi, I have installed the opennebula on ubuntu 11.04 and i'm trying to connect to the host (which is other system ubuntu 10.04 LTS, i have installed kvm, libvert , qem etc) . I can successfully monitored the HOST , then I tried the sample ttylinux example but here I have some problem , I have created the small net work template NAME = Small network TYPE = FIXED #Now we'll use the cluster private network (physical) BRIDGE = virbr0 LEASES = [ IP=192.168.122.5] LEASES = [ IP=192.168.122.6] LEASES = [ IP=192.168.122.7] then I mounted the image , after this image ID and network ID I put in to VM templete and created the VM , but VM was in pending state only so then I went with deploying the VM(onevm deploy 0 0) . I cloud deploy the VM and went to runn state but I cant do the SSH to root@192.168.122.5 (tried as per the given doc) .. how to do this ..? how to check the IP of my VM ..? rgds Bharath ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] How to connect to VM
Hi, I have created the VM on host (107.102.58.90) using opennebula and it is running , now I want to connect to this VM from other PC which is there in same LAN .. How to connect this VM in order to get the service ..? regards Bharath ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Basis doubt at the Vm Image
Hi, Once I create the DISC image , and include this in the Vm template then create the VM image (onevm create ) . Then If I append the data to DISC image , will the VM image also get this updated information ..? regards Bharath ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] doc/ppt to install the opennebula
Hi, Thanks for the reply ,. I have one doubt at the Export given in the installation doc . I.e *Export /srv/cloud to all the cluster nodes. For example, if you have all your physical nodes in a local network with address 192.168.0.0/24 you will need to add to your /etc/exports file a line like this: * * * *$ cat /etc/exports /srv/cloud 192.168.0.0/255.255.255.0(rw)* * * * In each cluster node create /srv/cloud and mount this directory from the front-end*. Here what does mounting exactly meant , is it required to mount /srv/cloud on to the host system from the from end system ..? On Mon, Jul 11, 2011 at 7:16 PM, Steven Timm t...@fnal.gov wrote: It is only necessary to install OpenNebula on the front end. There are a few scripts which go on each VM host but the front end puts them out there automatically when you add each host to the cloud. Steve On Mon, 11 Jul 2011, bharath pb wrote: Hi, I have few doubts about installation of opennebula , I cloud not under stand fully from the docs which are given in the link , 1. Do I need to install opennebula on the both host(VMs) and front end system ,,? 2. If so, is it both should be user wide installation ? pls provide some ppts which clearly explains the opennebula installation . regards Bharath On Sat, Jul 9, 2011 at 12:38 AM, users-request@lists.**opennebula.orgusers-requ...@lists.opennebula.org wrote: Send Users mailing list submissions to users@lists.opennebula.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org or, via email, send a message with subject or body 'help' to users-request@lists.**opennebula.orgusers-requ...@lists.opennebula.org You can reach the person managing the list at users-owner@lists.opennebula.**orgusers-ow...@lists.opennebula.org When replying, please edit your Subject line so it is more specific than Re: Contents of Users digest... Today's Topics: 1. Error: Cannot find kernel /boot/vmlinuz... (Rasika Karunathilaka) 2. what is the method of live migration (fanttazio) 3. doc/ppt to install the opennebula .. (bharath pb) 4. Re: doc/ppt to install the opennebula .. (Robert Schweikert) --**--** -- Message: 1 Date: Fri, 8 Jul 2011 00:48:24 -0700 (PDT) From: Rasika Karunathilaka rasika.karunathilaka@yahoo.**comrasika.karunathil...@yahoo.com To: users@lists.opennebula.org users@lists.opennebula.org Subject: [one-users] Error: Cannot find kernel /boot/vmlinuz... Message-ID: 1310111304.62890.**yahoomail...@web59810.mail.**ac4.yahoo.com1310111304.62890.yahoomail...@web59810.mail.ac4.yahoo.com Content-Type: text/plain; charset=iso-8859-1 hi All, ?I am a new user on OpenNebula, who is trying to build cloud environment using Xen . My cloud front end and Xen cluster node is running on Open Suse. I am trying to deploy Fedora image through Cloud. I have created the fedora xen virtual image which has following kernel configuration. /boot/vmlinuz-2.6.31.5-127.**fc12.i686.PAE, /boot/initramfs-2.6.31.5-127.**fc12.i686.PAE.img, ? Now my vm definition file (myVM.one) in open nebula has; Name = Fedora12 CPU =?? 0.5 MEMORY? =?? 512 OS = [ ??? KERNEL? = /boot/vmlinuz-2.6.31.5-127.**fc12.i686.PAE, ??? INITRD? = /boot/initramfs-2.6.31.5-127.**fc12.i686.PAE.img, ??? ROOT??? = sda1 ] DISK??? = [ ??? IMAGE?? = Fedora 12 ] CONTEXT = [ ??? HOSTNAME??? =?? vm1, ??? USERNAME??? =?? oneadmin, ??? IP_PRIVATE? =?? $NIC[IP], ??? IP_GEN? =?? 192.168.104.$VMID, ??? FILES?? =?? /vms_configuration/id_rsa.pub /vms_configuration/init.sh, ??? TARGET? =?? hdb ] however, when I try to deploy the vm image using , onevm create myVm.one it fails with following error at vm.log; Fri Jul? 8 03:21:44 2011 [TM][I]: tm_context.sh: Executed /usr/bin/mkisofs -o /srv/cloud/one/var/17/images/**disk.1 -J -R /srv/cloud/one/var/17/images/**isofiles. Fri Jul? 8 03:21:44 2011 [TM][I]: tm_context.sh: Executed rm -rf /srv/cloud/one/var/17/images/**isofiles. Fri Jul? 8 03:21:44 2011 [LCM][I]: New VM state is BOOT Fri Jul? 8 03:21:44 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/17/**deployment.0 Fri Jul? 8 03:21:45 2011 [VMM][I]: Command execution fail: 'if [ -x /var/tmp/one/vmm/xen/deploy ]; then /var/tmp/one/vmm/xen/deploy /srv/cloud/images/cloud2/17/**images/deployment.0; else??**??? exit 42; fi' Fri Jul? 8 03:21:45 2011 [VMM][I]: STDERR follows. Fri Jul? 8 03:21:45 2011 [VMM][I]: Error: Cannot find kernel /boot/vmlinuz-2.6.31.5-127.**fc12.i686.PAE Fri Jul? 8 03:21:45 2011 [VMM][I]: ExitCode: 1 Fri Jul? 8 03:21:45 2011 [VMM][E]: Error deploying virtual machine: Error: Cannot find
[one-users] VM pending in boot state only
Hi, I have created the VM template and ran the onevm deploy 0 0 , and checked the vm STAT its always at the boot state .. here is the vm.log files status . i'm using vmm_kvm. v driver . Pls help on this ..? Wed Jul 6 22:19:05 2011 [DiM][I]: New VM state is ACTIVE. Wed Jul 6 22:19:05 2011 [LCM][I]: New VM state is PROLOG. Wed Jul 6 22:19:06 2011 [TM][I]: tm_clone.sh: dhinesh-ubuntu:/srv/cloud/one/var//images/ffd19a6a3bb970b68f6f04b521a3edb4d4dd91bd host01:/srv/cloud/one/var//13/images/disk.0 Wed Jul 6 22:19:06 2011 [TM][I]: tm_clone.sh: DST: /srv/cloud/one/var//13/images/disk.0 Wed Jul 6 22:19:06 2011 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one/var//13/images Wed Jul 6 22:19:06 2011 [TM][I]: tm_clone.sh: Executed mkdir -p /srv/cloud/one/var//13/images. Wed Jul 6 22:19:06 2011 [TM][I]: tm_clone.sh: Executed chmod a+w /srv/cloud/one/var//13/images. Wed Jul 6 22:19:06 2011 [TM][I]: tm_clone.sh: Cloning /srv/cloud/one/var//images/ffd19a6a3bb970b68f6f04b521a3edb4d4dd91bd Wed Jul 6 22:19:06 2011 [TM][I]: tm_clone.sh: Executed cp -r /srv/cloud/one/var//images/ffd19a6a3bb970b68f6f04b521a3edb4d4dd91bd /srv/cloud/one/var//13/images/disk.0. Wed Jul 6 22:19:06 2011 [TM][I]: tm_clone.sh: Executed chmod a+rw /srv/cloud/one/var//13/images/disk.0. Wed Jul 6 22:19:06 2011 [TM][I]: tm_context.sh: Executed mkdir -p /srv/cloud/one/var//13/images/isofiles. Wed Jul 6 22:19:06 2011 [TM][I]: tm_context.sh: Executed cp -R /srv/cloud/one/var/13/context.sh /srv/cloud/one/var//13/images/isofiles. Wed Jul 6 22:19:06 2011 [TM][I]: tm_context.sh: Executed /usr/bin/mkisofs -o /srv/cloud/one/var//13/images/disk.1 -J -R /srv/cloud/one/var//13/images/isofiles. Wed Jul 6 22:19:06 2011 [TM][I]: tm_context.sh: Executed rm -rf /srv/cloud/one/var//13/images/isofiles. Wed Jul 6 22:19:06 2011 [LCM][I]: New VM state is BOOT Wed Jul 6 22:19:06 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/13/deployment.0 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] execute opennebula as a oneadmin user
Hi, I have installed all the opennebula in user mode ,to the location /srv/cloud/one I have done all the path settings ; root@dhinesh-ubuntu:~# export ONE_LOCATION=/srv/cloud/one root@dhinesh-ubuntu:~# export ONE_XMLRP=http://localhost:2633/RPC2; root@dhinesh-ubuntu:~# export PATH PATH=$PATH:/srv/cloud/one/bin root@dhinesh-ubuntu:~# mkdir /srv/cloud/one/.one root@dhinesh-ubuntu:~# echo oneadmin:oneadmin one_auth root@dhinesh-ubuntu:~# export ONE_AUTH ONE_AUTH=/srv/cloud/one/.one/one_auth . Now How to run as oneadmin user: ..? becoz after I creating host (ie onehost host02 im_kvm vmm_kvm tm_ssh ) i'm unable to do the SSH to the host02 . its says could not connect to unknown host02 pls help to solve this . regards Bharath ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] execute opennebula as a oneadmin user
Hi, Thanks for the reply , now I have understood the problem . I have created oneadmin user and logged in to that . root@dhinesh-ubuntu # su oneadmin oneadmin @dhinesh-ubuntu # I have cheked the dns server its working fine working fine ... but still i'm not able ping host02 . How to add host02 translation to the /etc/hosts file ..? How to get the physical IP for the node which I want to create ..? regards Bharath On Wed, Jul 6, 2011 at 6:13 PM, Héctor Sanjuán hsanj...@opennebula.orgwrote: You should su oneadmin to use the oneadmin user (provided that you created it). and give appropiate permissions in the directories you created with root, and re-export the environmental variables with that user (or place them in .bashrc). However, your first problem seems to be the fact that host02 cannot be resolved into an IP, or that it is not online. Check that your DNS are working so they can turn host02 into a valid IP address, otherwise add host02 translation to the /etc/hosts file or simply use the phisical node IP when running onehost create. You will need passwordless ssh access to/from that host with the user running opennebula for things to work. Hope this helps, Hector El 06/07/11 13:01, bharath pb escribió: Hi, I have installed all the opennebula in user mode ,to the location /srv/cloud/one I have done all the path settings ; root@dhinesh-ubuntu:~# export ONE_LOCATION=/srv/cloud/one root@dhinesh-ubuntu:~# export ONE_XMLRP=http://localhost:2633/RPC2; root@dhinesh-ubuntu:~# export PATH PATH=$PATH:/srv/cloud/one/bin root@dhinesh-ubuntu:~# mkdir /srv/cloud/one/.one root@dhinesh-ubuntu:~# echo oneadmin:oneadmin one_auth root@dhinesh-ubuntu:~# export ONE_AUTH ONE_AUTH=/srv/cloud/one/.one/one_auth . Now How to run |as ||oneadmin|user: ..? becoz after I creating host (ie onehost host02 im_kvm vmm_kvm tm_ssh ) i'm unable to do the SSH to the host02 . its says could not connect to unknown host02 pls help to solve this . regards Bharath ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Héctor Sanjuán OpenNebula Sunstone Developer ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] image and vm image creation
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 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] XML interface to open nebula
Hi, Here are full details . This work is to have a architecture to introduce IaaS and SaaS to Wireless Sensor Networks to make it “cloud enabled”, and hence flexible and scalable. virtual sensor cloud provides an IaaS for sensors management. and the following services 1. Abstract representation of sensors/sensor networks 2. Management of virtual machines spawned on demand on request by the service cloud/end user Now I understood till creation of data block image my question is, how to put/deploy the data which are received from sensor to opennebula data block image which I have created ? so that it can provide these data to SaaS/enduser for computing or processing them later . regards Bharath On Mon, Jun 27, 2011 at 3:47 PM, bharath pb bharatha...@gmail.com wrote: Hi, I’m new to the cloud computing softwares , I have selected Open Nebula for creation for virtual cloud for the sensor data . My work is to create a virtual sensor cloud, so that end users can access the sensor data etc . I have a sensor network which gives the real-time data to the PC, at PC I have a driver which I can receive the data and put in to XML format. Now I’m facing lots of problem at the interface of this in to the open nebula. How to interface this xml to the open nebula..? Do I really need to create a VMs because my cloud just has to provide (IaaS) service to the end user queries , quires may be “ one time sensor value” , “history values, for the last one week” etc ..? Can you provide a good doc to understand the opennebula Architecture ..? rgds Bharath ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org