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