You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Indra Pramana <in...@sg.or.id> on 2014/09/22 04:27:07 UTC

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?

Posted by Indra Pramana <in...@sg.or.id>.
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 <an...@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.neelarapu@citrix.com]
> Sent: Monday, September 22, 2014 9:44 AM
> To: users@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:indra@sg.or.id]
> Sent: Monday, September 22, 2014 7:57 AM
> To: dev@cloudstack.apache.org; users@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?

Posted by Indra Pramana <in...@sg.or.id>.
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 <an...@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.neelarapu@citrix.com]
> Sent: Monday, September 22, 2014 9:44 AM
> To: users@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:indra@sg.or.id]
> Sent: Monday, September 22, 2014 7:57 AM
> To: dev@cloudstack.apache.org; users@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?

Posted by Anshul Gangwar <an...@citrix.com>.
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.neelarapu@citrix.com] 
Sent: Monday, September 22, 2014 9:44 AM
To: users@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:indra@sg.or.id] 
Sent: Monday, September 22, 2014 7:57 AM
To: dev@cloudstack.apache.org; users@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?

Posted by Anshul Gangwar <an...@citrix.com>.
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.neelarapu@citrix.com] 
Sent: Monday, September 22, 2014 9:44 AM
To: users@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:indra@sg.or.id] 
Sent: Monday, September 22, 2014 7:57 AM
To: dev@cloudstack.apache.org; users@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?

Posted by Sanjeev Neelarapu <sa...@citrix.com>.
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:indra@sg.or.id] 
Sent: Monday, September 22, 2014 7:57 AM
To: dev@cloudstack.apache.org; users@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?

Posted by Sanjeev Neelarapu <sa...@citrix.com>.
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:indra@sg.or.id] 
Sent: Monday, September 22, 2014 7:57 AM
To: dev@cloudstack.apache.org; users@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.