Solved

Scheduling Remediation Task in Virtual Center 2.5

Posted on 2009-05-14
6
534 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Generate a clone from a snapshot in ESXi 5.5 2 65
VMware 6:  Network trouble 11 65
Disk Configuration - Dell R620 6 58
Vcenter server 5.5 Essentials 16 28
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
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…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

932 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

13 Experts available now in Live!

Get 1:1 Help Now