How to start a guest VM on different host?

2014-09-21 Thread Indra Pramana
Dear all,

When I stop and then start back a guest VM, CloudStack will try to start it
back on the same hypervisor host where the VM was hosted previously.

Is it possible for me to start a guest VM on a specific other hypervisor
host?

Looking forward to your reply, thank you.

Cheers.


RE: How to start a guest VM on different host?

2014-09-21 Thread Sanjeev Neelarapu
Hi,

Try using host tagging feature supported by CloudStack. I am not sure whether 
the tagging will be applicable for already deployed vms. You can give a try.

-Sanjeev

-Original Message-
From: Indra Pramana [mailto:in...@sg.or.id] 
Sent: Monday, September 22, 2014 7:57 AM
To: dev@cloudstack.apache.org; us...@cloudstack.apache.org
Subject: How to start a guest VM on different host?

Dear all,

When I stop and then start back a guest VM, CloudStack will try to start it 
back on the same hypervisor host where the VM was hosted previously.

Is it possible for me to start a guest VM on a specific other hypervisor host?

Looking forward to your reply, thank you.

Cheers.


RE: How to start a guest VM on different host?

2014-09-21 Thread Anshul Gangwar
If you are root admin, you can use startVirtualMachine api call with hostId 
parameter

https://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/startVirtualMachine.html

-Original Message-
From: Sanjeev Neelarapu [mailto:sanjeev.neelar...@citrix.com] 
Sent: Monday, September 22, 2014 9:44 AM
To: us...@cloudstack.apache.org; dev@cloudstack.apache.org
Subject: RE: How to start a guest VM on different host?

Hi,

Try using host tagging feature supported by CloudStack. I am not sure whether 
the tagging will be applicable for already deployed vms. You can give a try.

-Sanjeev

-Original Message-
From: Indra Pramana [mailto:in...@sg.or.id] 
Sent: Monday, September 22, 2014 7:57 AM
To: dev@cloudstack.apache.org; us...@cloudstack.apache.org
Subject: How to start a guest VM on different host?

Dear all,

When I stop and then start back a guest VM, CloudStack will try to start it 
back on the same hypervisor host where the VM was hosted previously.

Is it possible for me to start a guest VM on a specific other hypervisor host?

Looking forward to your reply, thank you.

Cheers.


Re: How to start a guest VM on different host?

2014-09-21 Thread Indra Pramana
Hi Sanjeev and Anshul,

Good day to you, and thank you for your replies.

Sanjeev - yes, host tagging works by creating a new service compute
offering with the host tag, change the guest VM's service compute offering
and start the guest VM. I have just tested earlier. However, this will
remove the HA functionality since if that particular host is down, the
guest VM will not be started on other available hosts because of the host
tag, so this is not the best solution IMHO.

Anshul - thanks for the info, will try this. If this works, then this would
be the best solution.

Thank you.


On Mon, Sep 22, 2014 at 12:26 PM, Anshul Gangwar anshul.gang...@citrix.com
wrote:

 If you are root admin, you can use startVirtualMachine api call with
 hostId parameter


 https://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/startVirtualMachine.html

 -Original Message-
 From: Sanjeev Neelarapu [mailto:sanjeev.neelar...@citrix.com]
 Sent: Monday, September 22, 2014 9:44 AM
 To: us...@cloudstack.apache.org; dev@cloudstack.apache.org
 Subject: RE: How to start a guest VM on different host?

 Hi,

 Try using host tagging feature supported by CloudStack. I am not sure
 whether the tagging will be applicable for already deployed vms. You can
 give a try.

 -Sanjeev

 -Original Message-
 From: Indra Pramana [mailto:in...@sg.or.id]
 Sent: Monday, September 22, 2014 7:57 AM
 To: dev@cloudstack.apache.org; us...@cloudstack.apache.org
 Subject: How to start a guest VM on different host?

 Dear all,

 When I stop and then start back a guest VM, CloudStack will try to start
 it back on the same hypervisor host where the VM was hosted previously.

 Is it possible for me to start a guest VM on a specific other hypervisor
 host?

 Looking forward to your reply, thank you.

 Cheers.