Re: Move running vm to project

2014-01-18 Thread Geoff Higginbottom
Rafael,

There is a migrate VM API command that allows you to move a VM to another 
account, it might work with projects as we'll but I have not tried it.

http://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/assignVirtualMachine.html


Regards

Geoff Higginbottom
CTO / Cloud Architect


D: +44 20 3603 0542tel:+442036030542 | S: +44 20 3603 0540tel:+442036030540 
| M: +447968161581tel:+447968161581

geoff.higginbot...@shapeblue.commailto:geoff.higginbot...@shapeblue.com | 
www.shapeblue.comhtp://www.shapeblue.com/

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 
4HSx-apple-data-detectors://37



On 18 Jan 2014, at 00:47, Rafael Weingartner 
rafaelweingart...@gmail.commailto:rafaelweingart...@gmail.com wrote:

Hi,
I was wondering, is it possible to move a running VM to a project? If
so, how could I do that? I know that I can do that working directly on
the database, but this would be an error prone job.

--
Rafael Weing?rtner
Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Supporthttp://shapeblue.com/cloudstack-infrastructure-support/ offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2 traininghttp://shapeblue.com/cloudstack-training/
08/09 January 2014, Londonhttp://shapeblue.com/cloudstack-training/
13-17 January 2014, GLOBAL. Instructor led, 
On-linehttp://shapeblue.com/cloudstack-training/
20-24 January 2014, GLOBAL. Instructor led, 
On-linehttp://shapeblue.com/cloudstack-training/

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England  Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Restricting the use of a template to certain minimum resources

2014-01-18 Thread Nux!

Hello,

Is there any mechanism in ACS that would allow me to restrict certain 
templates to a minimum of resources?
For example I would like to disallow people the use of Windows 
templates with anything less than 2 GB RAM.


Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Qcow2 to VHD and VHD files size questions

2014-01-18 Thread Nux!

Hi,

Most of my templates are Qcow2 files for KVM and I'd like to convert 
them in a format that XenServer can use.
I managed to use qemu-img from the KVM tools to convert one in VHD 
format, however this seems to be a 50 GB (the virtual size of the qcow2) 
sparse file. Downloading this file from my HTTP template repo into 
cloudstack takes ages.

Does anyone know how this situation can be improved?

Regards,
Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Qcow2 to VHD and VHD files size questions

2014-01-18 Thread Carlos Reátegui
This may apply to you.  I was able to copy out a vhd from vbox and load it into 
ACS to use on XenServer hosts. This only worked if I selected the dynamic type 
of vhd not the fixed size one.  It only worked in non PV mode but I think that 
was because I did not have a proper grub file with the correct root device.  
Prior to uploading the vhd as a template you can bzip2 it to shrink the size. 

 On Jan 18, 2014, at 1:07 PM, Nux! n...@li.nux.ro wrote:
 
 Hi,
 
 Most of my templates are Qcow2 files for KVM and I'd like to convert them in 
 a format that XenServer can use.
 I managed to use qemu-img from the KVM tools to convert one in VHD format, 
 however this seems to be a 50 GB (the virtual size of the qcow2) sparse file. 
 Downloading this file from my HTTP template repo into cloudstack takes ages.
 Does anyone know how this situation can be improved?
 
 Regards,
 Lucian
 
 -- 
 Sent from the Delta quadrant using Borg technology!
 
 Nux!
 www.nux.ro


Re: Qcow2 to VHD and VHD files size questions

2014-01-18 Thread Nux!

On 18.01.2014 23:20, Carlos Reátegui wrote:

This may apply to you.  I was able to copy out a vhd from vbox and
load it into ACS to use on XenServer hosts. This only worked if I
selected the dynamic type of vhd not the fixed size one.  It only
worked in non PV mode but I think that was because I did not have a
proper grub file with the correct root device.  Prior to uploading the
vhd as a template you can bzip2 it to shrink the size.


Thanks, I'll have a look at the vbox converter then. Re bz2, I think 
ACS will complain if it's an archive instead of the real thing.


Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Qcow2 to VHD and VHD files size questions

2014-01-18 Thread Carlos Reátegui
Re bz2:  all my templates are registered as bz2 so I know it works. 

 On Jan 18, 2014, at 4:39 PM, Nux! n...@li.nux.ro wrote:
 
 On 18.01.2014 23:20, Carlos Reátegui wrote:
 This may apply to you.  I was able to copy out a vhd from vbox and
 load it into ACS to use on XenServer hosts. This only worked if I
 selected the dynamic type of vhd not the fixed size one.  It only
 worked in non PV mode but I think that was because I did not have a
 proper grub file with the correct root device.  Prior to uploading the
 vhd as a template you can bzip2 it to shrink the size.
 
 Thanks, I'll have a look at the vbox converter then. Re bz2, I think ACS will 
 complain if it's an archive instead of the real thing.
 
 Lucian
 
 -- 
 Sent from the Delta quadrant using Borg technology!
 
 Nux!
 www.nux.ro