Browsing "VMWare"

How can I suspend a VM on VMware workstation via Powershell ?

As there is no API for Powershell in VMware worksation, we need to use the built-in tool called ‘vmrun.exe”

This utility can be used to control virtual machines and allows the following operations: start (power on), stop (power off), reset (reboot), suspend (but allow local work to resume), pause (without interrupting), and unpause (continue)

=====Suspend your VMs======

cd “C:\Program Files (x86)\VMware\VMware Workstation”

$RunningVMs = .\vmrun list | select-object -skip 1

Foreach ($RunningVM in $RunningVMs)
{
“Suspending $RunningVM…”
.\vmrun suspend “$RunningVM”
}

 

====Resume your VMs ====

cd “C:\Program Files (x86)\VMware\VMware Workstation”

$SuspendedVMs = gci -Include *.vmx -Recurse -Path C:\VMs

Foreach ($SuspendedVM in $SuspendedVMs)
{
.\vmrun start “$SuspendedVM”
}

May 19, 2013 - General, Hyper-V, Networking, VMWare    No Comments

How can I remove hidden network adapters from my Hyper-V / VMware Windows Virtual Machine

When using Windows based virtual machines, especially those deployed from templates, you may occasionally receive the notification “The IP address XXX.XXX.XXX.XXX you have entered for this network adapter is already assigned to another adapter”

This issue occurs if a network adapter with the same IP address is in the Windows registry but is hidden in the Device Manager (My Computer > Properties > Hardware > Device Manager). This hidden adapter is called a ghosted network adapte

This can easily be removed by opening the command prompt with administrative access and typing the following command:

set devmgr_show_nonpresent_devices=1
start devmgmt.msc

This will start the Device Manager. It is important to start the Device Manager from the same command prompt, since it will lose the setting to show the non present devices. If you open the Device Manager from the Control panel, the hidden devices will not show.

When the Device Manager loads, from the File menu, expand the View and select the Show Hidden Devices option. This will enable and show any old un-used devices in the window. From here, expand the Network Adapters node and you can right click on the devices which are extra and delete them accordingly.

I have seen this issue on both VMware created machines and Hyper-V

 

May 22, 2008 - VMWare    1 Comment

Cannot Deploy Template / Orphaned Template

Right click on your orphaned template
Select “Remove from Inventory”
From the host you would like the template to reside on…
Select you host
Select the “Configuration” tab
Select “Storage” under the Hardware pane
Double click on the storage device in the right pane..this will bring up the “Datastore Browser”
Browse to your orphaned template’s location
Right click on the template file..it will have a “.vmtx” extention with the Type displayed as “Template VM”
Choose “Add to Inventory”

Go through and answer the wizard information to complete the “fix”

Mar 13, 2008 - Networking, VMWare    1 Comment

How to allow the root user to login to VMware ESX Server with SSH

To allow the root user to login to a VMware ESX Server over the network using SSH, do the following

Go to the service console on the physical server & login

1.vi /etc/ssh/sshd_config
2.Change the line that says PermitRootLogin from “no” to “yes”
3.service sshd restart

Related Posts Plugin for WordPress, Blogger...