Help with VM monitoring parameter at the virtual machine level

Hi, I'm new to powershell and got the script (from http://damiankarlson.com/2011/01/13/managing-vmware-has-vm-monitoring-powercli/ thanks Damian Karlson) that will allow me to set the "VM Monitoring" setting for each virtual computer in a cluster to 'Disabled' below State. This is necessary to allow a 'monitoring VM and application' at the highest level and keep only selective VMs allowed for surveillance. When I run this script, it is applied VM1. When I try to do this for another virtual machine with a virtual machine name change (VM2), it get error "specified parameter was not correct" in the tasks of vCenter. Not sure whats wrong, any help is appreciated.


$srv = Connect-VIServer vcenter01
$vm = get-VM-name VM1
$spec = new-Object VMware.Vim.ClusterConfigSpecEx
$spec.dasVmConfigSpec = new-Object VMware.Vim.ClusterDasVmConfigSpec [] (1)
$spec.dasVmConfigSpec [0] = new-Object VMware.Vim.ClusterDasVmConfigSpec
$spec.dasVmConfigSpec [0] .operation = "Edit."
$spec.dasVmConfigSpec [0] = new-Object VMware.Vim.ClusterDasVmConfigInfo .info
$spec.dasVmConfigSpec [0].info.key = new-Object VMware.Vim.ManagedObjectReference
$spec.dasVmConfigSpec [0].info.key.type = 'VirtualMachine '.
$spec.dasVmConfigSpec [0].info.key.value = $vm. ExtensionData.MoRef.Value
$spec.dasVmConfigSpec [0].info.dasSettings = new-Object VMware.Vim.ClusterDasVmSettings
$spec.dasVmConfigSpec [0].info.dasSettings.vmToolsMonitoringSettings = new-Object VMware.Vim.ClusterVmToolsMonitoringSettings
$spec.dasVmConfigSpec [0].info.dasSettings.vmToolsMonitoringSettings.enabled = $false
$spec.dasVmConfigSpec [0].info.dasSettings.vmToolsMonitoringSettings.vmMonitoring = "vmMonitoringDisabled".
$spec.dasVmConfigSpec [0].info.dasSettings.vmToolsMonitoringSettings.clusterSettings = $false
_this $ = get-view-Id $vm. VMHost.Parent.Id

Hello, vSphereUser7-

I've seen your follow-up to your thread on this topic at http://communities.vmware.com/message/1859219#1859219.  Between your answer and your question you mention in this thread, I came to realize what seems to be the problem for you.  I have re-written a code in the other thread, based on that blog DKarlson on and commented on why you may receive this error in the vSphere client.  See this thread for more info on what is happening here.

And let us know if it was the question that you run in to.

Tags: VMware

Similar Questions

  • Need help with replacing a drive on a virtual machine

    Test case for something I need to do on a separate production machine.  Virtual MACHINE is running WinSvr2003.  Only the hard disk assigned to the virtual machine is one of 20 GB disk, C: using this.  Need to C: to be larger.  Add a 40 GB drive to the configuration of the VM in the CR.  Started an iso BartPE with plug-in in Ghost.  Ghost can copy the C: 20 GB drive on the 40 GB drive.  Went in the VM config and changed is the 40 GB SCSI 0.1 drive and the drive of 20 GB at SCSI0, 2.  After I saved, VMware changed the 40 GB on disk 1 and the 20 GB on disk 2.  Went it into the BIOS on the machine config to boot the disk of 40 GB.  But no matter how I put it in the BIOS, it would only start on the 20 GB drive.  Went in the VM config and removed the 20 GB drive (which is not an option on the production machine, it has a volume of data on the same drive).  It boots to Windows, so I guess it's start on the 40 GB drive.  But I am unable to connect to it.  It shows that the application of settings, record the settings, then back to the login screen, all within 2 seconds approximately.

    Is there anything else I need to do to (1) move the volume from the Windows system to a new disk w without side effects in Windows and (2) so that it can start on the new disk correctly?

    If it is a single virtual drive with 2 partitions and the C:\ is on the front of the drive, Extpart won't help. It is usually best to separate the partitions to multiple virtual disks. I use the converter to V2V the VM and move on their own virtual disk partitions, then develop them if necessary.

  • Open with: 'Application name' - 'Name of the Virtual Machine' (2.0.4) AND (2.0.5)

    Hello

    Looking for help here...

    I notice that if I try to open a file on my Mac with an application of my virtual machine (Win XP Professional) I get 2 options for each windows application:

    1. Windows Media Player - Windows XP Professional (2.0.4)

    2. Windows Media Player - Windows XP Professional (2.0.5)

    The 2.0.4 option never works but the 2.0.5 option. I know this has something to do with the upgrade to the latest 2.0.5 version, but how do you / is it possible to remove the non-fonctionnel 2.0.4 options?

    Help, please! It's pretty boring.

    I have only haveone of virtual machine set up.

    Rich

    Make sure that the virtual machine is turned off and not suspended.  First locate the virtual machine in the finder.  You can do it by Ctrlclicking on it from the library of the virtual machine and choose Show in Finder.  In Finder Ctrlthe .vmwarevm of the virtual machine and choose "show package content".  If some shows as a folder go there.  Of in the virtual machine folder, you will see a folder named Applications.  Applications are the links to the Applications that you open in the virtual machine.  Remove vouchers there should do.  You may be able to determine the good by the update and the last number should be also the most recent.  These changes to take effect, you will need to reboot or restart the finder.  To restart the finder press and hold Esc, command,Option, and choose finder in there and restart.

    You can also just delete the Applications folder and then start the virtual machine.  Once that the virtual machine is started just enter the unit.  Entering the unit will recreate this Applications folder with the correct files in there.  You should always restart or restart the finder once this is done before it takes effect in the mac operating system.

  • The Virtual Machine encryption

    All,

    I have a client that requires encryption at the virtual machine level. I was wondering what products are available and what users experience is.  The requirement is to have an end to end data encryption. We are looking at the possibility of offering it at the virtual machine level to meet their requirement.

    Ephillipsme

    Hello

    If you are using VMware ESX/ESXi encryption within the virtual machine (at the level of the guest OS) is the only option. As the use of BitLocker for windows or TrueCrypt for other operating systems. Just be aware that these two options to store the keys in memory and any system administrator can also access the memory at any time. So if you trust your admins it's an operation relatively safe.

    If you put data in the cloud then watch in secure Cloud.

    As now, there is no third party encryption tool, nor is it a tool built into ESX/ESXi.

    There is NO tool to encrypt the ESX/ESXi to level "VM" which is just below the guest operating system. VMware workstation has this ability, but requires you to enter a startup key and if you have lots of virtual machines that become extremely painful.

    Best regards

    Edward L. Haletky

    Host communities, VMware vExpert,

    Author: VMware vSphere and Virtual Infrastructure Security,VMware ESX and ESXi in the 2nd business edition

    Podcast: the Podcast for security virtualization of resources: the virtual virtualization library

  • With the help of gsoap/C++ web SDK problem reconfiguring the Virtual Machine

    Hi all, I m using gsoap/C++ with web service sdk to monitor virtual machines.

    I m able to enumerate the current list of virtual machines, total number of vm. Now I m trying to reconfigure the virtual machine. My Code snippet is as below.

    The virtual machine is running and I m trying to change the ram, I did it using java api and it doesn't butfor c ++ it is in error.

    ns1__VirualMachineConfigSpec vmSpec;

    ival long 64;

    vmSpec - & gt; memoryMB = & ival;

    ns1__ReconfigVMRequestType reconfigVMRequestType;

    reconfigVMRequestType.spc = & vmSpec;

    reconfigVMRequestType._USCOREthis = vmObject - & gt; obj; managed object - virtual machine

    NS1_ReconfigVM_USCORETaskResponse reconfigVMResponse;

    ns1__ManagedObjectReference * morResult = 0;

    If (vim - & gt; __ns1__ReconfigVM_USCORETask (reconfigVMRequestType, & reconfigVMResponse) == SOAP_OK) {}

    morResult = reconfigVMResponse.returnval;

    } else cost & lt; & lt; "Unable to machine virtual reconfig." & lt; & lt; ENDL;

    Now in vSphere Client it show me error like.

    The operation is not supported on the object.

    And on server esxi in file /var/log/vmware/hostd.log it not show gives following error.

    The task was created: haTask-32 - vim.VirtualMachine.reconfigure - 1422

    2009-08-26 20:54:17.669 verbose 149A5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Reconfigure: (vim.vm.ConfigSpec) {}

    dynamicType = & lt; unset & gt;

    changeVersion = & lt; unset & gt;

    name = & lt; unset & gt;

    version = & lt; unset & gt;

    UUID = & lt; unset & gt;

    instanceUuid = & lt; unset & gt;

    npivWorldWideNameType = & lt; unset & gt;

    npivDesiredNodeWwns = & lt; unset & gt;

    npivDesiredPortWwns = & lt; unset & gt;

    npivTemporaryDisabled = & lt; unset & gt;

    npivOnNonRdmDisks = & lt; unset & gt;

    npivWorldWideNameOp = & lt; unset & gt;

    locationId = & lt; unset & gt;

    ID = & lt; unset & gt;

    alternateGuestName = & lt; unset & gt;

    annotation = & lt; unset & gt;

    files = null (vim.vm.FileInfo),

    Tools = null (vim.vm.ToolsConfigInfo),

    Flags = null (vim.vm.FlagInfo),

    consolePreferences = null (vim.vm.ConsolePreferences),

    powerOpInfo = null (vim.vm.DefaultPowerOpInfo),

    numCPUs = & lt; unset & gt;

    memoryMB = 64,

    memoryHotAddEnabled = & lt; unset & gt;

    cpuHotAddEnabled = & lt; unset & gt;

    cpuHotRemoveEnabled = & lt; unset & gt;

    cpuAllocation = (vim. NULL in ResourceAllocationInfo),

    memoryAllocation = (vim. NULL in ResourceAllocationInfo),

    cpuAffinity = null (vim.vm.AffinityInfo),

    memoryAffinity = null (vim.vm.AffinityInfo),

    networkShaper = null (vim.vm.NetworkShaperInfo),

    swapPlacement = & lt; unset & gt;

    swapDirectory = & lt; unset & gt;

    preserveSwapOnPowerOff = & lt; unset & gt;

    bootOptions = null (vim.vm.BootOptions),

    vAppConfig = null (vim.vApp.VmConfigSpec),

    ftInfo = null (vim.vm.FaultToleranceConfigInfo),

    vAppConfigRemoved = & lt; unset & gt;

    vAssertsEnabled = & lt; unset & gt;

    changeTrackingEnabled = & lt; unset & gt;

    }

    2009-08-26 20:54:18.122 149A5B90 info ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' State Transition (VM_STATE_ON - & gt; VM_STATE_RECONFIGURING)

    2009-08-26 20:54:18.125 verbose 703F5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Memory hot asked.

    Load: Existing file loading: /etc/vmware/license.cfg

    2009-08-26 20:54:18.139 verbose 703F5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Verified hot license

    CloseSession called for the session id = 52f7f6aa-3ef8-c52a - 815 a - 75B 421405075

    Event 714: Root user is disconnected

    ERProviderImpl & lt; BaseT & gt; : _GetChanges: version 32 overflow name aggregation

    ERProviderImpl & lt; BaseT & gt; : _GetChanges: aggregate the version 32 overflow triggeredAlarmState

    2009-08-26 20:54:18.979 verbose 703F5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Current state of the VM management: disabled

    2009-08-26 20:54:19.071 verbose 703F5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Implementation State of follow-up to the virtual computer for people with reduced mobility.

    Ability to root pool has changed to 1104 MHz / 521MB in 1104 MHz / 520MB

    2009-08-26 20:54:21.108 703F5B90 info ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Remove hot memory not supported: newMemory: 64, curMemory: 128

    2009-08-26 20:54:21.110 703F5B90 info ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Batch hot failed during the application of the individual changes.

    2009-08-26 20:54:21.113 703F5B90 info ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Reconfigure is not

    2009-08-26 20:54:21.114 703F5B90 warning ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Exception that is thrown when the statement reconfigures: {(vim.vm.ConfigSpec)

    dynamicType = & lt; unset & gt;

    changeVersion = & lt; unset & gt;

    name = & lt; unset & gt;

    version = & lt; unset & gt;

    UUID = & lt; unset & gt;

    instanceUuid = & lt; unset & gt;

    npivWorldWideNameType = & lt; unset & gt;

    npivDesiredNodeWwns = & lt; unset & gt;

    npivDesiredPortWwns = & lt; unset & gt;

    npivTemporaryDisabled = & lt; unset & gt;

    npivOnNonRdmDisks = & lt; unset & gt;

    npivWorldWideNameOp = & lt; unset & gt;

    locationId = & lt; unset & gt;

    ID = & lt; unset & gt;

    alternateGuestName = & lt; unset & gt;

    annotation = & lt; unset & gt;

    files = null (vim.vm.FileInfo),

    Tools = null (vim.vm.ToolsConfigInfo),

    Flags = null (vim.vm.FlagInfo),

    consolePreferences = null (vim.vm.ConsolePreferences),

    powerOpInfo = null (vim.vm.DefaultPowerOpInfo),

    numCPUs = & lt; unset & gt;

    memoryMB = 64,

    memoryHotAddEnabled = & lt; unset & gt;

    cpuHotAddEnabled = & lt; unset & gt;

    cpuHotRemoveEnabled = & lt; unset & gt;

    cpuAllocation = (vim. NULL in ResourceAllocationInfo),

    memoryAllocation = (vim. NULL in ResourceAllocationInfo),

    cpuAffinity = null (vim.vm.AffinityInfo),

    memoryAffinity = null (vim.vm.AffinityInfo),

    networkShaper = null (vim.vm.NetworkShaperInfo),

    swapPlacement = & lt; unset & gt;

    swapDirectory = & lt; unset & gt;

    preserveSwapOnPowerOff = & lt; unset & gt;

    bootOptions = null (vim.vm.BootOptions),

    vAppConfig = null (vim.vApp.VmConfigSpec),

    ftInfo = null (vim.vm.FaultToleranceConfigInfo),

    vAppConfigRemoved = & lt; unset & gt;

    vAssertsEnabled = & lt; unset & gt;

    changeTrackingEnabled = & lt; unset & gt;

    }

    vmodl.fault.NotSupported

    2009-08-26 20:54:21.177 703F5B90 info ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' State Transition (VM_STATE_RECONFIGURING - & gt; VM_STATE_ON)

    2009-08-26 20:54:21.180 703F5B90 warning ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Authentication data that are not available during activation

    Event 715: Reconfigured Win Vista on kudosiesxi118 ha-data center

    Change of State received for VM ' 32 "

    2009-08-26 20:54:21.598 verbose 703F5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Time to pick up some config: 415 (MS)

    Task completed: error status haTask-32 - vim.VirtualMachine.reconfigure - 1422

    Add vm 32 to poweredOnVms list

    2009-08-26 20:54:21.694 703F5B90 warning ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Reconfigure the worker thread failed

    Problem in the virtual machine is in the power on State or I m doing something wrong?

    Can any body tell me where I m wrong?

    Rather than use a C string, try using the String object.  In my C++ sources generated the WSDL, the expected properties are string objects and references to string objects, not strings C.

  • I have a problem with the password on the virtual machine.

    Original title: passwords & Windows 7 virtual machines

    Hello

    I am running windows 7 pro 32 bit, with a windows XP virtual to develop existing software.

    The hosts & VM connect to a file on the network server. The file server is running windows XP, the network is a simple working group. I've manually created a limited user on the file server with the same name and password as my logon to windows 7.

    Today, I changed my password to connect to windows 7, which I am not as often as the security people recommend that I do. I changed the password on the file server to synchronize and also the password on the virtual computer.

    The virtual machine is maintaining however, somewhere the old password, which crashes, and I get the logon screen. If I enter the new password it connects then. I went into the settings of the VPC and delete the credentials saved, without effect. I removed "enable on startup" of integration features, also without effect.

    So I get the password in the VPC, but then I have to enter the password to access the network share. Or I can enter the password each time I start the virtual machine. The second is less painful, but still annoying.

    Any thoughts?

    Hello

    Thanks for posting in the Microsoft Community.

    According to the description, it looks like you are facing a problem with windows Virtual PC.

    The question you posted would be better suited in the TechNet Forums; We recommend that you post your question in the TechNet Forums to get help:

    http://social.technet.Microsoft.com/forums/en-us/w7itprovirt/threads

    If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • Help with script from beginner to the data store and hard drives

    Hello

    I am quite new to scripting, and recently, I created a monstrosity below.

    The problem is with the results. I have no idea why in the results I get the name of the virtual machine and its data store over and over again until all disks are highlighted.

    Any help will be very very much appreciated.

    The script:

    $raport = @)

    Foreach ($i in (Get-Content "Y:\vms.txt"))

    {

    $rekord = «»

    $vm = get-vm-name '$i '.

    $dysk1 = $vm | Get-hard drive | where {$_.} Name - eq 'Disk 1'}

    $datastore1 = $dysk1.filename.split("]") [0].split("[") [1]

    $disks = $vm | Get-hard drive

    {foreach ($disk in $disks)

    $hd = «»

    $disksize = ($disk. CapacityGB)

    $hd += $disksize

    {$rekord += $vm.name + ";" + $datastore1 + ";" + $hd}

    $raport += $rekord

    }

    $raport | out-file 'Y:\dyski.csv '.

    The results in csv:

    VM1Name; datastoreName; 60; VM1Name:datastoreName; 50; VM1Name; datastoreName; 40

    VM2Name; datastoreName; 45; VM2Name; datastoreName; 40

    The results of dream in csv:

    VM1Name; datastoreName; 60; 50 40

    VM2Name; datastoreName; 45 40

    etc.

    Try like this

    $raport = @)

    Foreach ($i in (Get-Content "Y:\vms.txt"))

    {

    $rekord = «»

    $vm = get-vm-name '$i '.

    $disk = $vm | Get-hard drive

    $datastore = ($disk | where {$_.}) Name - eq "disk 1" hard}).filename.split ("]") [0].split("[") [1].

    $rekord = "$($vm.)". The name); $($datastore); $(($disk | sélectionnez-ExpandProperty CapacityGB)-join ' |') »

    $raport += $rekord

    }

    $raport | out-file 'Y:\dyski.csv '.

  • Download the virtual machine in a store of data with powercli

    Hello

    How to list the files of virtual machine on a store of data with PowerCLI

    I have a virtual machine and I want to see all the files in a data store (such as hard,.-flst.vmdk, .log, .nvram) using powercli. Is this possible?

    TKS.

    Try the following, it uses a function of my position of friendly units .

    Function Get-FriendlyUnit {}

    <>

    . Numbers converted small binary multiples SYNOPSIS

    . DESCRIPTION the function accepts a value and him will convert

    in the largest available binary unit.

    . Author NOTES: Luc relaxing

    . Value of the PARAMETER

    The value to convert.

    This number must be positive.

    . IEC PARAMETER

    A switch to indicate whether the function should return the CIS

    Unit, or the names of the units most commonly used names.

    The default is to use the commonly used unit names.

    . EXAMPLE OF

    PS > Get-FriendlyUnit-value 123456

    . EXAMPLE OF

    PS > 123456 | Get-FriendlyUnit - CIS

    . EXAMPLE OF

    PS > Get-FriendlyUnit-value 123456,789123, 45678

    #>

    (param

    [CmdletBinding()]

    [parameter (mandatory = $true, ValueFromPipeline = $true)]

    [double []] $Value,.

    [switch] $IEC

    )

    Begin {}

    $OldUnits = "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB".

    $IecUnits = 'B', 'KiB', 'MiB', "GiB", "TiB", "PIF", "BANK", "ZiB", "YiB".

    If ($IEC) {$units = $IecUnits} else {$units = $OldUnits}

    }

    {in process

    $Value | %{

    If ($_ - lt 0) {}

    Write-Error "Numbers must be positive."

    breaking

    }

    If ($value - gt 0) {}

    $modifier = [math]: Floor([Math]::Log($_,1KB)))

    }

    else {}

    $modifier = 0

    }

    New-object PSObject-property @ {}

    Value = $_ / [math]: Pow(1KB,$modifier)

    Unit = & {if ($modifier - lt $units. {Count) {$units [$modifier]} else {'1KO E {0}' f $modifier}}

    }

    }

    }

    }

    foreach ($vm in (Get-View - ViewType VirtualMachine - property Name, 'LayoutEx.File')) {}

    $vm. LayoutEx.File |

    Select @{N = "VM"; E = {$vm. Name}},

    @{N = 'Name'; E={$_. Name.Split(' ') [1]. "Split('/') [1]}},"

    @{N = "Path"; E={$_. Name}},

    @{N = 'FileType'; E={$_. Type}},

    @{N = "Datastore"; E={$_. Name.Split(']') [0]. TrimStart('[')}},

    @{N = "size"; E = {}

    $val = get-FriendlyUnit-value of $_. Size

    "{0:n2} {1}" f $val. Value, $val. Unit

    }}

    }

  • Help. The CPU has been disabled by the guest operating system. Power off or reset the virtual machine. WHY?

    Greetings.

    I have a 5.5 with an operating system Red Hat 5.10 ESXi environment. The OS worked fine until a few days ago. ESXi displays the error "the CPU has been disabled by the guest operating system. Power off or reset the virtual machine. I Don t know why my server displays the error if my environment was OK. Could be a kernel problem? operating system problem?

    Ideas?

    Thanks for the help.

    Have a look here. http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=2000542

    Did you recently patch your VM? Looks like when the guest operating system runs the incorrect commands that it can have a deactivated processor.

  • Monitoring VM - how to restart the virtual machine

    Hi all

    Hit a problem in our environment that can not be solved, but wanted to tender hand to people and see if they have found a way to replace.

    Currently have followed vm enabled in our cluster. Thing is watching us to restart the virtual machine VMware tools demonstrated to a status of "not running" - now, the key is to most of the definitions, the system is available in this case, can be crazy, RDP'ed etc, but we here again them restarted as he finally solves the issue we see (for example unable to connect via citrix for the machines in question)

    Duncan in the post below highlights in order to avoid false positives any i/o to storage/network activity will be verified after that heatbeats failed to "double check" there is a problem with the virtual machine

    Favorite VM monitoring (aka VM HA) - yellow bricks

    What I asked is it possible to replace verification of network storage/IO activity and then restart the virtual machine VMware tools on them stops as soon as?

    Many tx for all thoughts

    «.. . is there a way to replace check network activity of storage/IO and then restart the virtual machine of VMware tools on them stops as soon as...? »

    You can always use a supervision-process inside the virtual machine for this tool (perhaps more followed VM). It acts independently and allows much finer control, i.e. it can try first (re) start vm-tools before restarting. Same BSOD /-kernel panic can be dealt with by VM itself. It can actually be even more robust, not dependent on VMware infrastructure.

  • Deployment of a virtual machine from a store of data with less space, but enough for the virtual machine

    I received this delicate task, and I can understand not just how to replace all parts.

    I need to create a script that will be smartly decided what data store to deploy a virtual computer.  We do not want to deploy in a data store that has the most space, we want to deploy to the data store that has the least space but can still account for the space for the (vm + 5%) and still leave 50 GB free on the lun after the move.

    Thus, for example, if the virtual machine is 40 GB, we want the script to select the data store that has a close to 90 GB available without being under.

    So my thought for this approach is:

    • Create the query to get all the relevant LUNS.  This excludes all the LUNS with the 'local' name in it and excludes all LUN owners (who have a slightly different naming convention then our general shared storage LUNS)
      • This piece, which I partially understood
        • Get-datastore. WHERE-object {($_.)} Name: corresponds to "PAR0 [1-4] _ [edp] * disk *")- and ($_.) "." Name - notmatch 'local')}
      • Now, I need to get all of their total size and free space.  Perhaps export this list to a CSV, however if I have to.
      • Create a variable that contains: the size of the total virtual machine to the virtual machine that is deployed before its deployment.
      • Deduct vm size against each data store size and pull in some way that that also close to 50 GB free on the data store and still facilitates the deployment of the vm.

    I have a few other scripts, I scrounged on the internet that I tried to restore... but I just don't calm not having all the pieces...

    • Get-Datastore. Where-Object {$_.} ParentFolder-match 'Internal'} ' | Select-Object - property data center, FreeSpaceMB, CapacityMB name, ' | Tri-objet-property FreeSpaceMB
    • Select-Object Name,@{n="CapacityGB";e={[math]::round (($_.)) {{(CapacityMB/1024))}}, @{n = "FreeSpaceGB"; e = {[math]: round (($_.))}} {{(FreeSpaceMB/1024))}}, @{n = "FreeSpacePercent"; e = {[math]: round (($_.))}} FreeSpaceMB / $_. {{(CapacityMB*100))}} | Sort-Object FreeSpaceGB

    Any help would be greatly appreciated!

    -Knotz

    Try something like this

    # Get all data warehouses

    $ds = get-Datastore. Where-Object {($_.)} Name: corresponds to "PAR0 [1-4] _ [edp] * disk *")- and ($_.) "." Name - notmatch 'local')} |

    Select-Object Name,

    @{n = "CapacityGB"; e = {[math]: round (($_.))}} {{(CapacityMB/1024))}}.

    @{n = "FreeSpaceGB"; e = {[math]: round (($_.))}} {{(FreeSpaceMB/1024))}}.

    @{n = "FreeSpacePercent"; e = {[math]: round (($_.))}} FreeSpaceMB / $_. {{(CapacityMB*100))}}

    {foreach ($vm in Get - VM)

    # Find possible candidates

    $candidates = $ds | where {($_.)} FreeSpaceGB - $vm. (UsedSpaceGB-50) - gt 0}

    # Find the best candidate

    $target = $candidates | Tri-objet-property FreeSpaceGB-descending | Select - 1 first

    Write-Output "VM $($vm.). Name) can go to $($target.) (Name) ".

    }

  • Impossible to deploy the virtual machine with customization.

    Hi all

    I have a model Winodws 2008 R2 Std and Ent.  I use to deploy virtual machines with the model using the Customization Wizard.  All of a sudden since 2 days I can't provision VMS with the wizard of customiation.  Earlier, there seems to be no problem with the customization, but when I turn on the virtual machine, I see errors, attached is the screen shot for your reference.

    After the error 2 the vm keeps restarting without end time.

    I don't know what is the cause.  Please help me with the problem.  Let me know if you need additional information.

    Thanks in advance.

    Hey there,

    Have you tried to get the Microsoft Windows product key? And maybe the password in the profile customization.

    If this does not work, try using a new profile customization.

    Let us know how things work!

    See you soon,.

    René

  • Report by the virtual machine with tools obsolete and/or material email

    Hi all

    The subject of this thread pretty much says all this, but just to remind I want to generate a report of computer virtual tools with just e-mail and or equipment outdated, I have searched around a bit but don't seem to find all the vm where I try to exclude the VMs to date of this report, also I prefer in a format of e-mail if possible. I'd appreciate any help or links to help meet this goal.

    Yes, that's what makes the - or in the condition of the Where clause.

    If one of the two conditions is not met, the virtual machine will be in the report.

  • Host CPU is not compatible with the requirements of the virtual machine to CPUID

    Hi all

    I try to power on a virtual machine Windows 64 bits on the ESX the Vcenter 4.1, I keep receiving the message:

    "CPU host is incompatible with the requirements of the virtual machine to CPUID level 0 x 80000001"edx"registry."

    Hist goals: 0000:1000:0001:0000:0000:1000:0000:0000

    * Longmode, required when a virtual machine is configured for 64-bit guest OS

    My equipment is the intel core i7 920, with MMX, SSE (1,2,3,3S,4.1,4.2), EM64t, VT - X

    My motherboard is ASUSTeK computer Inc., P6T DELUXE

    Please let me know if you can help,

    attached some shots compared to the problem

    Do you mean that because I'm under ESX 4.1 on VMWARE WORKSTATION, that is why I will not be able to run a 64-bit guest operating system?

    Yes, this is the case, and there is no work around.

  • Transfer the virtual machine from the external drive - URGENT HELP PLEASE

    I recently transferred my Virtual Machine to a hard drive external that I had to reinstall my OS Leopard, now when I try to copy the VM back to my mac from the external hard drive, to halfway through I have error message... "You cannot copy"Windows Vista.vmwarevm"because it has the same name as another article on volume of destination, and that the volume is not making the distinction between upper and lower case in file names."

    Virtual machine worked well for the external hard drive, but it's not convenient for me and I need ideally on my laptop... Please notify.

    To this folder on the Mac you copy it and what else is in this folder when copy you it.  I hope also merger is closed when you try to copy.

    Another thing you can do is inside the packaging of the Virtual Machine, there are two folders, Applications, and appListCache, I always delete before copy/move and these will be recreated and the reason why I do it, it is I saw copy fail until they have been deleted, although generally, it is one of the app in the Applications folder with the module of Virtual Machine that caused the problem.

    VMware Fusion (menu bar) > help > Search > type Package and then select work with Virtual Machine packages

Maybe you are looking for

  • HP Deskjet 5150 driver Windows 7

    I have the HP Deskjet 5150 printer. I did a fresh install of Windows 7 32 bit and I noticed that even if I didn't install the driver included with the CD for the printer (which I doubt would work on Windows 7 in any case), it seems that Windows 7 is

  • Red Cross instead of the thumbnails displayed for taking pictures in IE8

    I am using windows vista 64-bit os and IE8. For now my pc displays a red x where a tile should be displayed, if I use other browsers it displays very well, therefore, in my view, the problem is with IE8. I tried everything I can find on various websi

  • pre installed dvd driver suddenly absent / start not in computer science or Helllllllppppppp Device Manager!

    I have a HP Pavilion laptop.  I turned on my computer to put on a cd, I was able to push the button to open and insert the disc. However the cd would not play. I got no error messages.  When I went to start - computer drive E: (dvd player) wasn't the

  • History of the update has disappeared

    OK I just installed a windows update then changed my mind and uninstalled IT - my story is now gone-tried a system restore to get it back without success. I can see updates installed, but not history. So I trust that updates are still there? I didn't

  • Data store

    I AM able to delete all the files data dtore safely?