Solved

Scheduling Remediation Task in Virtual Center 2.5

Posted on 2009-05-14
6
533 Views
Last Modified: 2012-05-07
Hi.

I've recently added in a new scheduled task to re mediate the downloaded patches from VUM and I've successfully scheduled it. However my concern is, when this task starts, will it shutdown my existing VM's while shifting to Maintenance Mode?

Do I need to add another task prior to this just to power off my VM's in that host?

Thanks!
0
Comment
Question by:artena
  • 4
6 Comments
 
LVL 10

Expert Comment

by:elf_bin
ID: 24383471
Not if you have DRS enabled.  When the ESX(i) host goes into maintenance mode the VMs will power off (not necessarily shutdown - well uit depends on the OS's use din the VMs).

Hope this helps
0
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 24383983
If the ESX Hosts are in DRS, then putting one of the hosts in Maintenance Mode will vMotion (Live Migrate) the Virtual Machines using DRS algorithms to other available hosts.

Please note that the new Hosts should have adequate resources for the migrating VMs to work properly.
0
 

Author Comment

by:artena
ID: 24388480
Thank you for the reply. I failed to mentioned that the licensing version that I've got is "Foundation" and I dont have those features such as DRS, HA and Vmotion.

So without these additional features, do you think it will shutdown the VM's?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 10

Expert Comment

by:elf_bin
ID: 24392853
Generally no - the VMs will be powered off.  Here's a pointer to a perl script that can be used to shutdown VMs when power loss is detected (requires UPS though) - http://communities.vmware.com/docs/DOC-9531

Hope this helps.

0
 
LVL 10

Accepted Solution

by:
elf_bin earned 50 total points
ID: 24392872
And as a second thought you could run a script at the service console (ESX) which would be something like:
# Get a list of VM's configs
VMS=vmware-cmd -l
# For every VM found...
for conf in ${VMLIST}
do
# Try to suspend the VM
# You could try the soft stop option too (*sometimes* works):
# vmware-cmd $conf stop trysoft
vmware-cmd $config suspend
# Close the loop
done
# Switch ESX to maintenance mode
vimsh -n -e /hostsvc/maintenance_mode_enter
# Power off ESX
shutdown -h now

Hope this helps.
0
 
LVL 10

Expert Comment

by:elf_bin
ID: 24392888
Those "boxes" in the above are supposed to be back ticks (`)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now