ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

Using the VMware Guest Console fling in the lab.

By Andy | Last Updated: May 7, 2020

Shares

Virtual Guest Console Fling.

This is a guest post by Andy Grant.

The VMware Guest Console was released well over a year ago but never caught my interest until working in my home lab Tuesday night of last week. As a VMware admin or consultant you may or may not be responsible for making large scale changes to the guest OS landscape. If you are, read on.

As the second Tuesday of the month it was Microsoft’s monthly patch release. Being patch Tuesday wasn’t unique about my situation, but as my home lab has recently crested 20 permanent VM’s, and 10 are Windows Server guests, it has meant more administrative time to maintain things.

I dutifully began installing the latest updates and rebooted each VM only to notice a significant increase in VM and host CPU utilization. My single HP Proliant server normally sits around 12-13% CPU usage but after the updates it jumped to ~95% and stayed there. With a little investigation it didn’t take long to notice the trend; mscorsvw.exe on each Windows Server VM was using 100% CPU. Using Process Explorer, I enabled the Command-Line column to get the full path of mscorsvw.exe which indicated that Microsoft .Net Framework 4 was the culprit. Now I don’t like to jump to conclusions so I did a quick Google search to determine why .Net was behaving this way, and came upon a blog post from 2005, What is mscorsvw.exe and why is it eating up my CPU? What is this new CLR Optimization Service?

The synopsis is that Microsoft released a .Net 4 update with Tuesday’s patches and this kicks off a recompilation of assemblies which consumes a great deal of CPU cycles. Multiply this for each VM and my single host was maxed.

Having come from a Microsoft administrative background, I could have used System Center or similar tool to disable the service on these guests in one fell swoop, but I don’t have that luxury in my lab. During that time I was downloading the latest update for the PXEManager fling and decided it was time to try out VGC to see how useful it could be in this situation.

Was it like SysInternals PsExec where I could execute guest level commands at each VM? It turns out that VGC uses vmrun for in-guest command execution.

At this point all I needed to do was figure out how I could stop all the mscorsvw.exe processes then disable the service.

Here’s what I did.

First, I needed to determine the service name, which I found in services.msc

DotNetService

Testing on my local workstation I determined that I would need the following commands to stop and disable the two services. There is a separate 32 and 64 bit service.

c:\windows\system32\net.exe stop clr_optimization_4.0.30319_32
c:\windows\system32\sc.exe config clr_optimization_4.0.30319_32 start= disabled

c:\windows\system32\net.exe stop clr_optimization_4.0.30319_64
c:\windows\system32\sc.exe config clr_optimization_4.0.30319_64 start= disabled

The absolute path is required for vmrun to find the executable. If you leave out the full path you may encounter an error such as “VIX – A file was not found”.

After logging in to VGC I browsed to the Virtual Machines tab and sorted the VM’s by OS Type.

The biggest time saving feature is that you can execute tasks on multiple VMs simply by selecting them from the list.

VM List

Before you try and run any command, you will need to provide administrative rights for the guest OS.

Login

After logging in, select Applications –> New Task

New Task

Finally, enter the command you wish to execute.

Start Task

Using the commands above, I first stopped the service then disabled it from starting on boot.

VGC turned out to be a great timesaver, instead of having to look up command references for VMrun, PsExec or even PowerShell, I was able to get the task done with little effort.  I want to thank Ravi Cherukupalli, Rahul Chandrasekaran and Uttam Gupta for their efforts and for sharing this great little app.

  

Shares
Vote !

| Filed Under: Server Virtualization Tagged With: VGC, VMware Guest Console, VMware guest console fling

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in