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/uuid   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 vm_id 
disk_id image_name' and 'onevm shutdown vm_id' commands.



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

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 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 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 id' 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