VMware Cloud Community
zivperry
Contributor
Contributor

Powering on machine on suspended host

Hi,

We examine VM solution and we have a little problem. We have a vCenter with 3 esx hosts.

Suspending and resuming vitrual machines from command line (using perl) is working OK.

But we can't wake up (resume) suspended virtual machine when the host is in standby. From the vSphere client, powering on this virtual machine cause the host to exit standby mode, and then waking up the virtual machine.

Any idea how can I resume this kind of machines from CLI?

Thanks,

Ziv

Reply
0 Kudos
2 Replies
lamw
Community Manager
Community Manager

I'm not sure if this is possible, since the host are in "standby mode", I don't believe you can send operations as you've found. You just first wake up the host before you can perform any operations, if VMs are running, then the host can not be in a "standby mode", it sort of contradicts the option.

If you have vCenter, you "might" be able to, and worth a shot, but if the VMs are on standby hosts, I don't think it'll accept any connections directly to the host and if you send the operation to the VM. it wakes up the host.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos
zivperry
Contributor
Contributor

Thanks for your answer, I want to be more correct about the problem - so here a full description of the problem:

Structure:

  • 3 esxi hosts

  • 1 vCenter

  • 9 virtual machines (windows 2003 server) without over commit (3 per host)

  • All actions runs from CLI (perl)

  • DRS and DPM are fullty automated and set to aggressive mode.

Behavior:

  • After suspending 4 virtual machines, the DPM/DRS move all the virtual machines into 2 esx hosts, and send 1 host to standby mode.

Now the problem starts, we start to resume the suspended virtual mchines.

When there is no room for a virtual machine in the 2 powered-on esx hosts, instead of waking up the 3rd esx host that is currently in standby mode, and than resuming the virtual machine, the vcenter return an error when reqesting the resume of the virtual machine.

But, if we try to resume the virtual machine from the vsphere client, first - it's waking up the 3rd esx host, and than resume the virtual machine.

I do'nt want my scripts to be aware of the vmware solution topology - I just want to be able to suspend and resume machine and using DPM/DR.

(I have no knowledge about hosts, I don't know that i have to wake up host and so on...)

Thanks,

Ziv

Reply
0 Kudos