Re: [one-users] onevm saveas error

2011-09-21 Thread Fabian Wenk

Hello Bala

On 21.09.11 07:37, bala suru wrote:

I have used a some simple way to copy the image running Vm image(insted of
onevm saveas) ,
1. I did some modification over the running image(creating some files)
2. issued onevm suspend
3. copied var/images/   file of the running image
4. Registered the above copied image as a new image
5 . launched the new VM using above image

But I could not see any modified files on this VM ,,?


This could have two reasons. First, is this a persistent image? 
Second, did the VM have enough time to write back the changes to 
the image? But I guess the second one is difficult to find out, as 
the OS in the VM and probably also the VM layer do some caching in 
memory and the write back to the image is delayed for a longer time.



Are the steps which I followed are correct ..?


I do not think, that this is really supported from ONE. You are 
taking an image away from a running VM (even in the state 
suspended), which could have an not cleanly saved state of the 
file system in the image. It is much better to use an OS and VM 
which does support ACPI and then use the 'onevm saveas  
 ' and 'onevm shutdown ' commands.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] onevm saveas error

2011-09-20 Thread bala suru
Hi,

I have used a some simple way to copy the image running Vm image(insted of
onevm saveas) ,
1. I did some modification over the running image(creating some files)
2. issued onevm suspend
3. copied var/images/  file of the running image
4. Registered the above copied image as a new image
5 . launched the new VM using above image

But I could not see any modified files on this VM ,,?

Are the steps which I followed are correct ..?

pls help ..
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] onevm saveas error

2011-09-16 Thread Fabian Wenk

Hello

On 16.09.2011 12:57, bharath pb wrote:

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


Ok, I think this should also be fine.


  the saveas and shutdown commands ,.
And also there are no errors in the log file .

why this cant save the VM ..?


Because it could not write the file 
/srv/cloud/one/var//images/e0561a492c9aaac280479f2f0d85dcced9156fbf as 
the log file you have posted shows. Is the oneadmin user able to 
write into this folder?


Also check your configuration, this // is not normal (but usualy 
should not be a problem). Eventually you have set / at the end of 
the paths in your oned.conf, remove it.



Note: I use nfs for transferring the image .


You need to have the folder /srv/cloud/one/var/images/ also 
available on the cluster node and there the user oneadmin (or 
eventually libvirtd) needs to be able to write into it.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] onevm saveas error

2011-09-16 Thread bharath pb
ntials 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 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
> F

Re: [one-users] onevm saveas error

2011-09-16 Thread bharath pb
 : 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 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 
> To: users 
> Subject: [one-users] IMAGE_REPOSITORY_PATH and OpenNebula 3
> Message-ID:
> >
> 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.
>
&g

Re: [one-users] onevm saveas error

2011-09-15 Thread Fabian Wenk

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  
 onevm shutdown



 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@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] onevm saveas error

2011-09-15 Thread Fabian Wenk

Hello

On 15.09.2011 07:39, bharath pb wrote:

I tried to save the running Vm image using
onevm saveas
onevm shutdown



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?
What does 'oneimage list' and 'oneimage show ' say?


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


I guess the registered images (which also happens when you run 
'onevm saveas ...') should be somewhere else and not in the var 
folder, which is used by the running VMs.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] onevm saveas error

2011-09-14 Thread bharath pb
Hi,
I tried to save the running Vm image using
onevm saveas   
onevm shutdown 

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