You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Trevor Francis <tr...@tgrahamcapital.com> on 2013/01/04 21:37:40 UTC
Restore a VM from template
Is there a way to restore a VM from a template that was created from the API?
Trevor Francis
Partner
46 Labs | PeerEdge Cloud Switch (PeCS)
http://www.46labs.com | http://www.peeredge.net
720-214-3643- Voice
trevor@46labs.com
Solutions Provider for the Telecom Industry
Re: Restore a VM from template
Posted by "Kelceydamage@bbits" <ke...@bbits.ca>.
Yup, that's it, thanks.
That helps clarify the issue, and Trevor should be happy :)
Sent from my iPhone
On Jan 5, 2013, at 6:17 AM, Nitin Mehta <Ni...@citrix.com> wrote:
> Hi Kelcey / Trevor - I think you got confused between 2 apis we have in Cloudstack - restoreVirtualMachine and recoverVirtualMachine.
> restore vm api restores a new volume for the vm keeping the IP address and other attributes intact. This action is available only when the vm is stopped or running state. Whereas recover vm is for recovering the vm and just changes the state of the vm (from destroyed to stopped) and is available when the vm is in destroyed state.
>
> But we show actions for only one of them in the UI actions. We should have one for restoreVirtualMachine api as well.
>
> Thanks,
> -Nitin
>
>
> On 05-Jan-2013, at 10:35 AM, Kelceydamage@bbits wrote:
>
> We discussed this, but RestoreVM is for resurrecting a VM in status 'Destroyed' before its expunged.
>
> Trevor wants to re-image an existing VM. You could also look it at snapshot rollback. Being able to restore a VM to a previous state.
>
> Most importantly Trevor needs a solution that does not change or re-assign the VMs IP due to corporate application restrictions.
>
> Sent from my iPhone
>
> On Jan 4, 2013, at 8:57 PM, Koushik Das <ko...@citrix.com>> wrote:
>
> Take a look at restoreVirtualMachine API (com.cloud.api.commands.RestoreVMCmd)
>
> -Koushik
>
> From: Trevor Francis [mailto:trevor.francis@tgrahamcapital.com]
> Sent: Saturday, January 05, 2013 2:08 AM
> To: cloudstack-dev@incubator.apache.org<ma...@incubator.apache.org>
> Subject: Restore a VM from template
>
> Is there a way to restore a VM from a template that was created from the API?
>
>
> Trevor Francis
> Partner
> 46 Labs | PeerEdge Cloud Switch (PeCS)
> http://www.46labs.com | http://www.peeredge.net
> 720-214-3643- Voice
> trevor@46labs.com<ma...@46labs.com>
>
> Solutions Provider for the Telecom Industry
>
>
>
>
Re: Restore a VM from template
Posted by Nitin Mehta <Ni...@citrix.com>.
Hi Kelcey / Trevor - I think you got confused between 2 apis we have in Cloudstack - restoreVirtualMachine and recoverVirtualMachine.
restore vm api restores a new volume for the vm keeping the IP address and other attributes intact. This action is available only when the vm is stopped or running state. Whereas recover vm is for recovering the vm and just changes the state of the vm (from destroyed to stopped) and is available when the vm is in destroyed state.
But we show actions for only one of them in the UI actions. We should have one for restoreVirtualMachine api as well.
Thanks,
-Nitin
On 05-Jan-2013, at 10:35 AM, Kelceydamage@bbits wrote:
We discussed this, but RestoreVM is for resurrecting a VM in status 'Destroyed' before its expunged.
Trevor wants to re-image an existing VM. You could also look it at snapshot rollback. Being able to restore a VM to a previous state.
Most importantly Trevor needs a solution that does not change or re-assign the VMs IP due to corporate application restrictions.
Sent from my iPhone
On Jan 4, 2013, at 8:57 PM, Koushik Das <ko...@citrix.com>> wrote:
Take a look at restoreVirtualMachine API (com.cloud.api.commands.RestoreVMCmd)
-Koushik
From: Trevor Francis [mailto:trevor.francis@tgrahamcapital.com]
Sent: Saturday, January 05, 2013 2:08 AM
To: cloudstack-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: Restore a VM from template
Is there a way to restore a VM from a template that was created from the API?
Trevor Francis
Partner
46 Labs | PeerEdge Cloud Switch (PeCS)
http://www.46labs.com | http://www.peeredge.net
720-214-3643- Voice
trevor@46labs.com<ma...@46labs.com>
Solutions Provider for the Telecom Industry
Re: Restore a VM from template
Posted by "Kelceydamage@bbits" <ke...@bbits.ca>.
We discussed this, but RestoreVM is for resurrecting a VM in status 'Destroyed' before its expunged.
Trevor wants to re-image an existing VM. You could also look it at snapshot rollback. Being able to restore a VM to a previous state.
Most importantly Trevor needs a solution that does not change or re-assign the VMs IP due to corporate application restrictions.
Sent from my iPhone
On Jan 4, 2013, at 8:57 PM, Koushik Das <ko...@citrix.com> wrote:
> Take a look at restoreVirtualMachine API (com.cloud.api.commands.RestoreVMCmd)
>
> -Koushik
>
> From: Trevor Francis [mailto:trevor.francis@tgrahamcapital.com]
> Sent: Saturday, January 05, 2013 2:08 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: Restore a VM from template
>
> Is there a way to restore a VM from a template that was created from the API?
>
>
> Trevor Francis
> Partner
> 46 Labs | PeerEdge Cloud Switch (PeCS)
> http://www.46labs.com | http://www.peeredge.net
> 720-214-3643- Voice
> trevor@46labs.com
>
> Solutions Provider for the Telecom Industry
>
>
>
RE: Restore a VM from template
Posted by Koushik Das <ko...@citrix.com>.
Take a look at restoreVirtualMachine API (com.cloud.api.commands.RestoreVMCmd)
-Koushik
From: Trevor Francis [mailto:trevor.francis@tgrahamcapital.com]
Sent: Saturday, January 05, 2013 2:08 AM
To: cloudstack-dev@incubator.apache.org
Subject: Restore a VM from template
Is there a way to restore a VM from a template that was created from the API?
Trevor Francis
Partner
46 Labs | PeerEdge Cloud Switch (PeCS)
http://www.46labs.com | http://www.peeredge.net
720-214-3643- Voice
trevor@46labs.com<ma...@46labs.com>
Solutions Provider for the Telecom Industry
[cid:image001.jpg@01CDEB2F.4AD97D10] [cid:image002.jpg@01CDEB2F.4AD97D10]
RE: Restore a VM from template
Posted by "Kelcey Damage (BT)" <ke...@backbonetechnology.com>.
Not restore, but you can re-instance. Make a call to provision a VM from the template catalog. It will be a new sequenced clone, not a restore. With CS you don’t really use VMs, the term ‘instance’ is actually quite correct. They are ‘stateless’ to the hypervisor, and exist only in the DB. So in theory you could create a new VM and assign it the properties of an old VM (risky to re-use records in DB).
http://www.backbone.gr/media/backbone_symbol1.pngKelcey Damage
Infrastructure Systems Architect
<http://www.backbonetechnology.com/> www.backbonetechnology.com
-------------------------------------------------------------------------
kelcey@backbonetechnology.com
address: 55 East 7th Ave, Vancouver, BC, V5T 1M4
tel: +1 604 713 8560 ext:114
fax: +1 604 605 0964
skype: kelcey.damage
From: Trevor Francis [mailto:trevor.francis@tgrahamcapital.com]
Sent: Friday, January 04, 2013 12:38 PM
To: cloudstack-dev@incubator.apache.org
Subject: Restore a VM from template
Is there a way to restore a VM from a template that was created from the API?
Trevor Francis
Partner
46 Labs | PeerEdge Cloud Switch (PeCS)
http://www.46labs.com | http://www.peeredge.net
720-214-3643- Voice
trevor@46labs.com
Solutions Provider for the Telecom Industry