[one-users] onevm saveas error

bharath pb bharathapbr at gmail.com
Fri Sep 16 04:05:25 PDT 2011


Hi,
oneimage list show the image name(the one I gave during the saveas ) and its
ID

oneimage   show 32 ->


ID             : 32
NAME           : NewTTyimage
TYPE           : OS
REGISTER TIME  : 09/10 16:14:03
PUBLIC         : No
PERSISTENT     : No
SOURCE         :
/srv/cloud/var/images/1848ed1a68e486136993479d37bea2cbfb43462c
STATE          : disa
RUNNING_VMS    : 0
The image path location  has set to default location only . i.e
/srv/cloud/one/var/images  , but I could not see any image after executing
 the saveas and shutdown commands ,.
And also there are no errors in the log file .

why this cant save the VM ..?

Note: I use nfs for transferring the image . yes I'm running oneadmin has a
sudo user .


On Fri, Sep 16, 2011 at 12:40 AM, <users-request at lists.opennebula.org>wrote:

> Send Users mailing list submissions to
>        users at lists.opennebula.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> or, via email, send a message with subject or body 'help' to
>        users-request at lists.opennebula.org
>
> You can reach the person managing the list at
>        users-owner at 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. Re: OpenNebula 3.0b2 after onevm saveas VM gone (Fabian Wenk)
>   2. Re: OpenNebula 3.0b2 after onevm saveas VM gone (Zeeshan Ali Shah)
>   3. IMAGE_REPOSITORY_PATH and OpenNebula 3 (Robert Parrott)
>   4. Re: onevm saveas error (Fabian Wenk)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 15 Sep 2011 16:58:42 +0200
> From: Fabian Wenk <fabian at wenks.ch>
> To: users at lists.opennebula.org
> Subject: Re: [one-users] OpenNebula 3.0b2 after onevm saveas VM gone
> Message-ID: <4E7212A2.7040200 at wenks.ch>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello Valentin
>
> I did not yet play around with ONE 3.x, but I guess this behavior
> is the same as in 2.2.1.
>
> On 15.09.2011 15:36, Valentin Bud wrote:
> > # 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.
>
> > 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?
>
> This is normal behavior, see the "Virtual Machine Life-cycle" at
> [1]. The only workaround I know is to recreate the VM with 'onevm
> create <template>'. This will give an new VID for the VM. If you
> want to boot it with the just freshly saved image, you need to
> adjust your template so it will use the newly created image.
>
>   [1] http://www.opennebula.org/documentation:rel2.2:vm_guide
>
> As far as I have understood, if you want to have an VM which
> should run (or exists) forever do not use 'onevm shutdown <vm_id>'
> at any time, or you need to recreate the VM. Only use 'onevm stop
> <vm_id>' and 'onevm resume <vm_id>', which will just pause the VM
> (no processes are stopped inside the VM). Reboot or shutdown of
> the OS in the VM is possible. With using shutdown inside the VM, I
> had to recover (eg. boot again) the VM with waiting until 'onevm
> list' (or 'onevm top') shows the state as "unkn" and then use
> 'onevm restart <vm_id>' to boot the VM again.
>
> Hope this helps.
>
>
> bye
> Fabian
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 15 Sep 2011 16:57:08 +0200
> From: Zeeshan Ali Shah <zashah at pdc.kth.se>
> To: Valentin Bud <valentin.bud at gmail.com>
> Cc: users at lists.opennebula.org
> Subject: Re: [one-users] OpenNebula 3.0b2 after onevm saveas VM gone
> Message-ID:
>        <CABjmtXO=ZAoecM9G0D8UfLPwYcxFNTyso553Garo8CSO3j0euQ at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> onevm shutdown   terminate the vm that is why it is not appear in list
>
> /Zee
>
> On Thu, Sep 15, 2011 at 3:36 PM, Valentin Bud <valentin.bud at gmail.com
> >wrote:
>
> > Hello Community,
> >
> >  I have installed OpenNebula 3.0 beta 2 from source on Ubuntu Lucid
> > (10.04-amd64). I have built OpenNebula with MySQL
> > support because I want a MySQL backend. After building it I have
> installed
> > it using install.sh as follows:
> > # ./install.sh -u oneadmin -g cloud
> >
> >  Everything went well and I ended up with a fresh OpenNebula install. I
> > have configured the MySQL databases credentials in /etc/oned.conf
> > and started oned. Next step was to register one Debian Squeeze image.
> >
> > # oneimage show 0
> > IMAGE 0 INFORMATION
> >
> > ID             : 0
> > NAME           : debian-squeeze
> > USER           : oneadmin
> > GROUP          : oneadmin
> > TYPE           : OS
> > REGISTER TIME  : 09/15 15:13:44
> > PUBLIC         : Yes
> > PERSISTENT     : No
> > SOURCE         : /var/lib/one/images/5c55b64e99e37b5b8b0d7dde918a91f1
> > SIZE           : 612
> > 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     GROUP    NAME         STAT CPU     MEM        HOSTNAME
> >    TIME
> >      5 oneadmin oneadmin one-5        shut   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 at 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 <parrott at seas.harvard.edu>
> To: users <users at lists.opennebula.org>
> Subject: [one-users] IMAGE_REPOSITORY_PATH and OpenNebula 3
> Message-ID:
>        <CAMx57NbarpuVQ1Akzig6F1=iv1va1LZA55JNaC5zgX6WbgkfYA at 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 <fabian at wenks.ch>
> To: users at lists.opennebula.org
> Subject: Re: [one-users] onevm saveas error
> Message-ID: <4E722EB3.4040607 at 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 saveas<vm_id>   <dick_id>   <imagename>
> >>  onevm shutdown<vm_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 or directory
> >
> > Does the oneadmin user have write permissions in that path?
> > Which path have you set in the VM_DIR option in oned.conf?
>
> Ups, wrong questions, better is, which path have you set in the
> IMAGE_REPOSITORY_PATH option in oned.conf?
>
>
> bye
> Fabian
>
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> End of Users Digest, Vol 43, Issue 29
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110916/a9ac4470/attachment-0003.htm>


More information about the Users mailing list