Start the virtual machine based on the load of another virtual machine

Hi all

I am looking for a solution that will start the VM on request depending on the load on the other virtual machines, perhaps in the same resource pool. Essentially, the expected result would be something like this:

-When the dv01 reaches 75% CPU usage for 15 minutes,

-Boot VM02

-Once dv01 was less 40% use for 30 minutes,

-Close the VM02

This could also be a new virtual machine that is upwards of a model and Sysprep, rather than one that just sits there, offshore and unused.

I hope that the final objective is clear. Does anyone have recommendations on how to do it? I just did a quick search on certain clauses that I thought would be relevant and did not really turn anything upwards.

Thanks for your comments!

-James

jamesgreen wrote:

Hi all

I am looking for a solution that will start the VM on request depending on the load on the other virtual machines, perhaps in the same resource pool. Essentially, the expected result would be something like this:

-When the dv01 reaches 75% CPU usage for 15 minutes,

-Boot VM02

-Once dv01 was less 40% use for 30 minutes,

-Close the VM02

This could also be a new virtual machine that is upwards of a model and Sysprep, rather than one that just sits there, offshore and unused.

I hope that the final objective is clear. Does anyone have recommendations on how to do it? I just did a quick search on certain clauses that I thought would be relevant and did not really turn anything upwards.

Thanks for your comments!

-James

with raise vm02, you can set the alarm action to run a script that will start vm02.

PowerCLI command would be

Start-VM - vm VM02

you could probably add an alarm if dv01 has a less than 40% cpu

run another script

the command is:

stop-vmguest - vm-VM02

Tags: VMware

Similar Questions

  • When I start I get 2 boot options in Windows XP Home Edition, both say... The 2nd says disk not found. The first starts the loading screen and then it seems to just stop. Monitor (TV) stop to get the signal

    I tried to change the control parameters and startup performance, but nothing seems to work.

    TV is a Sharp Aquos that works very well with my laptop
    Computer is a Dell Inspiron 6400
    XP Home Edition
    No floppy or CD in readers

    Tried to wait 30 min and still nothing.

    Hello Mclaren1515,

    Thank you for your message.  How long it has past?  If it is a recent issue, we will perform a restore of the system for the last time, that he did not work properly.  Click HERE for instructions.  If this does not work for you, we will try to run a repair of the system.  Click HERE for instructions.  Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • IP not set to start the virtual machine

    Environment: ESX 4 server, hosting VMware Studio 2.0 (final version), will deploy device created in the same ESX host.

    -


    I was not yet able to determine if my wait will not, but I expected that my VM would be marketing it would have an assigned IP address already if I finish the network settings section in the build settings. But when I start my VM, it starts with IP = 0.0.0.0.

    I'm going to network Type = static and by filling in all the details for the IP, mask subnet, gateway, DNS 1 and 2. It seems that they are used when the virtual machine is in 'construction' on the host, but I'm not entirely sure about this.

    In the OVF IP assignment settings, I tried selecting OVF environment, but have not set of OVF properties (I don't think that this should be mandatory if I am already addressing in the build settings).

    After construction, into my vSphere Client (ESX4), I chose the file & gt; Deploy the template OVF... & gt; Deploy from URL and paste the URL of the virtual machine built recently. I start the virtual machine and watch the console screen boot and load the operating system. IP address is never assigned and the console device is displayed with IP = 0.0.0.0.

    I then have to connect with the image, manually assign the IP settings and then everything works. I expect this happen at boot time so that my firstbootscript can take advantage of the assigned IP address.

    -


    Maybe I go about it the wrong way, but my usecase is as follows:

    Build a VM & gt; Distribute the VM on end user & gt;  end user deploys on ESX and chooses address IP & gt; end user boots VM for the first time & gt; firstbootscript runs automatically

    Am I missing something? Can I have different expectations about how IP assignment is supposed to work? I read about IP Pools, but this isn't an option in my vSphere Client.

    Property of the FVO is the best option to set an IP address.

    Long back for Linux OS, I have written a shell script to set the IP address and the hostname in firstboot Virginia you can try this for your going here is the link for the same thing.

    http://communities.VMware.com/docs/doc-10953

    In the OS from VMware Studio tab you can paste this script in the script firstboot.

    First of all, please run this script manually and then use it in VMware Studio firstboot.

  • Cannot start the virtual machine on VMware Workstation 12.1.0

    The host machine is W2008R2, VM is the same. When im trying to start the current VM I see VMware screen, then "download files" screen loading, then VMware loading new screen and etc.

    Log file is attached below.

    An update of the firmware could certainly help.  After you install the update of the firmware, it can be useful following the instructions from the motherboard to reset the firmware configuration by default (if its configuration is not too heavily customized) and then reconfigure with custom settings, you might need.  Check that you have disabled in your TXT firmware settings too... who's going to stop us from using the capabilities of VT - x from the host.  And, where there is doubt, the error message is not really pleasant on cyclical food... Some systems cannot put a change of configuration of VT - x into force without being truly disconnected from power for a while, so if in case of doubt, he put it off and remove the power outlet for a few seconds.

    Your CPU is certainly capable of VT - x and support all the VT - x features required by VMware Workstation... Simply to force the system to allowing the use of VT - x and then it should start to work well.

    See you soon,.

    --

    Darius

  • VCenter with 2 guests, need to start the virtual machine to another host

    I lost the connection to one of the two armies in the vCenter. How to start a virtual machine saved on the host that is down. ?

    Heck, I found out how. I had to connect to the HOST and not do it from the vCenter. Got it to work.

  • Cannot start the virtual machine guest after receiving "License expired message" host ESXi 5.5

    I can't start computer virtual invited after receiving "License expired message" 5.5 ESXi host. I am able to copy the vm folder prompted with all its files using WinSCP I had already installed on a desktop computer in the network.

    However, it takes an extremely long time to download the VM [2.5 mb/s], which is of course a different question.

    It seems that I was still on the trial with my vsphere client license, until it expired. I am able to view the virtual machine within the workstation 10, but I can't turn it on. It says "Please install a license to power on this computer" there is no way to install a license anywhere.

    My question is... .will I be able to access this virtual machine if I download on an external hard drive, then add it to 10 VMWorkstation that I possess a current valid license?

    Even if the evaluation license has expired, you should be able to connect to the ESXi host using the vSphere Client and follow the steps mentioned in the article that I posted before you enter the free license key.

    André

  • Start the virtual machine and wait for WF, does not connect to the computer virtual for Vds (Windows 2008 R2)

    Hello

    See a strange problem with only a Windows 2008 R2 model. When you use the built-in function "Start VM and wait" workflow to start a virtual machine (after conversion from a template either manually, or through workflow) NIC of the virtual machine (I tried VMXNET3 and e1000 times) does not connect to the problem. Vds can be replicated in a different VCenter, so spreading the vds. I also created several models of Windows 2008 r2 and all have this problem.

    If the model is converted and started outside VRO, it gets an IP from and is connected to the VDS immediately

    Tried add/remove the NIC of the model

    Tried to move the comments on different hosts

    Tried to create a new template from scratch

    NOTE: Windows 2012 R2 doesn't have this problem in the same circles, the only constant is the Windows 2008 R2 being started by VRO.

    Anyone seen this before?

    I found this article and it fixed my problem VMware KB: registration or the deployment of a virtual computer model fails apparently a fix a problem in ESX 5.1, 5.5 (I used the option to get around and things are good)

  • ZPrint accident of process before starting the virtual machine

    I see the following messages in system.log everytime my Windows VM starts. These accidents zprint apparently never happened before today. There is no previous accident for zprint report. The messages below always repeat 3 times before other messages on VM, commissioning.

    09/02/15 21:20:33... Report of incidents ReportCrash [7538] advice for zprint processes [7537]

    09/02/15 21:20:33... ReportCrash [7538] error saved crashreport to /Library/Logs/CrashReporter/zprint_2015-02-09-212033_...crash using uid: gid 0: 0, euid: egid 0: 0

    Extract from the report of crash:

    Exception type: EXC_ARITHMETIC (SIGFPE)

    Exception codes: EXC_I386_DIV (division by zero)

    Why the merger issues the command zprint? If she has always done so before, why is zprint now blocking?

    (If I run the terminal zprint command without specifying the name of the area it blocks the same way.)

    Anyone have any ideas?

    Some things that I did today that might be important:

    My Mac Pro locked up while I was running Firefox (open Youtube and Yahoo pages).  I pushed the power button / stop. The virtual Windows machine was running at the time.

    After restarting the Mac Pro, when I tried to start the virtual machine, I got the message: "... vmdk has one or more internal errors that cannot be repaired. The only option is to restore from a backup copy of this disk... »

    So I renamed the corrupt VM bundle, then drag-and - drop copied all of the virtual machine to a backup volume.

    When I started the virtual machine restored, I noticed the crash zprint above messages.

    Thank you!

    OS X 10.5.8, Fusion 3.1.4

    Fusion uses zprint to internal information of the kernel which are very difficult to obtain by other means.

    Given how long it has been since OS X 10.5.8 or Fusion 3.1.4 were changed, either something has been corrupted or something has changed in the system environment for that to happen early.  I can't find any other references to zprint triggering a SIGFPE anywhere else on the Internet...

    If you do not already done, I highly recommend running disk utility and check (and possibly repair) the disks of your host before doing anything else.

    See you soon,.

    --

    Darius

  • Cannot start the virtual machine after you create snapshop

    I found a strange behaviour. I have a Windows 2008 guest that I just copied in my new box ESXi. I am trying to create a snapshot before upgrading the guest to 2012 Windows operating system. The virtual machine has currently no snapshots. Whenever I have create a snapshot, he succeeds, but then I can't start the virtual machine saying that it does not find the vmdk file delta even though I see there in the data store. In order to start the virtual machine, I have to delete the inventory and it readd, but then I lose the snapshot. I also have another computer virtual running Windows 8.1 that does exactly the same thing. How can I create snapshots safely without damaging the virtual machine? I also tried to create the snapshot while the virtual machine has been activated but that makes crashing and then it does not start again, so I have to repeat the process to remove the inventory and it time. Frustrating. See the screenshots, I have attached.

    Once these virtual machines have been in Hyper-V in the past and I just convert to VMware format using the StarWind V2V converter.

    Yes, for an ESXi host and target you must either select the ESX f.vmdk as format target (growable option is for VMware Workstation), or you must convert the virtual machine once more instead of simply upload the files to an ESXi host.

    André

  • How to make a virtual computer to connect to a CD player with an ISO mounted when you start the virtual machine?

    I am the creation of virtual machines using PowerCLI 5.5 on vSphere 5.0; and while the virtual machine is turned off, I am able to mount an ISO on a CD player and change the boot order to boot from the CD-ROM (for another post).  I have the flag startConnected set to true, but am not having much luck getting the virtual machine to connect to the CDDrive

    $cdObj = $Vm | New-CDDrive - IsoPath $isoPathName - StartConnected: $true

    If ($cdObj - no $null)
    {
    #Power off VM if it is on
    $VmState = $Vm.PowerState

    If ($VmState - eq "Receptor")
    {
    $Vm | Stop-Vm-confirm: $false - ea 0
    }

    $BootHardDiskName = 'disk 1 '.
    $VmView = get - VM $VmName - Server $serverObj.Name | Get-View
    $HardDiskDeviceKey = ($VmView.Config.Hardware.Device |) Where-Object {$_.} DeviceInfo.Label - eq $BootHardDiskName}). Key

    $BootableHardDisk = new-Object - TypeName VMware.Vim.VirtualMachineBootOptionsBootableDiskDevice - property @{'DeviceKey' = $HardDiskDeviceKey}
    $BootableCDRom = new-Object-Type VMware.Vim.VirtualMachineBootOptionsBootableCdromDevice

    #Set for CDRom boot order
    $BootIso = new-Object VMware.Vim .VirtualMachineConfigSpec - property @ {}
    "BootOptions' = New-Object VMware.Vim.VirtualMachineBootOptions - property @ {}
    BootOrder = $BootableCDRom
    }
    }

    #Set VM from the start settings at the start of the first CD and forces the display to update (sometimes delayed)
    $VmView.ReconfigVM_Task ($BootIso) | out-null
    $VmView.UpdateViewData ("Config.BootOptions.BootOrder")

    #Power on VM
    $Vm | Start-VM-confirm: $false - ea - global 0EV: vmOpsError | out-null

    When I start the VM, it does start the ISO.

    If I go to vCenter, the CD is pointing to the ISO file, but the 'Connected' to change settings option is not checked;  I can restart the VM of vCenter and then the VM restarts the ISO, but not in the script.

    I even put code to add a lead time of 5 to 10 seconds; I restart the virtual machine twice in the script and I can't CD to connect to start the virtual computer.

    Appreciate any suggestions.

    Maureen

    Have you tried to do a

    Game-CDDrive - CD $cdObj - connected - confirm: $false

    immediately after the start-VM?

  • Unable to start the virtual machine after restoration

    Guests including Test host: ESXi 5.1.0.1065491

    Vm problem: 32-bit, Server 2003

    I use Veeam Backup & Restore 6.5 to back up my vm.  I always do a test restore to ensure that my backups are good.  I'm having a problem with a restore.  The 32-bit Server 2003 vm starts just fine on the main host it runs on.  All the vm are 64-bit except for one who is a 32-bit Server 2003 vm.  Restoring the machine virtual and implemented on a host except the 32-Bit vm Server 2003 test.  After restoration and trying power to the top, I get the following error:

    Unable to start the virtual machine.

    Turn on VPCM module has failed.

    Viewed performance counters require version 3 or greater of architectural performance monitoring.

    Anyone know if there is a fix for this problem?

    TIA,

    Mux

    I assume you are using different hardware (CPUs, the BIOS settings) for VMS restored!

    The virtual machine has VPCM enabled, which causes the problem. You can either disable it in vSphere Web Client (you can do this in the vSphere Client Windows), or directly modify the .vmx VM by setting vpmc.enable to "FALSE".

    For how toggle this setting in the Web Client see allow virtual in the Web Client vSphere CPU Performance counters. If you want to edit the .vmx file manually, you need to delete/re-add the VM from the inventory or recharge (see http://kb.vmware.com/kb/1026043)

    André

  • Could not start the virtual machine after you use vmkfstools to resize - HELP!

    I thought I knew what I was doing, but apparently not...

    I tried to increase the size of a VM over 36 GB drive and now I can not start the server. Here's the change front of directory list:

    -rw - 1 root root 16781312 Sep 20 19:46 PJAEast-DL01-000001 - delta.vmdk

    -rw - 1 root root 325 28 August to 01:52 PJAEast-DL01 - 000001.vmdk

    -rw - 1 root root 4096 9 February 14:55 PJAEast-DL01-000002 - delta.vmdk

    -rw - 1 root root 277 9 February 14:55 PJAEast-DL01 - 000002.vmdk

    -rw - 1 root root 28201 28 August to 01:52 PJAEast-DL01 - Snapshot1.vmsn

    -rw - 1 root root 28267 9 February 14:55 PJAEast-DL01 - Snapshot2.vmsn

    -rw - 1 root root 131604480 26 August at 08:04 PJAEast-DL01 - flat hard

    -rw - 1 root root 8684 25 August at 21:03 PJAEast - DL01.nvram

    -rw - 1 root root 589 25 August at 15:18 PJAEast - DL01.vmdk

    -rw - r - r - 1 root root 1042 28 August to 01:52 PJAEast - DL01.vmsd

    -rwxr-xr-x 1 root root 2779 Feb 9 15:10 PJAEast - DL01.vmx

    -rw - r - r - 1 root root 267 Feb 9 15:10 PJAEast - DL01.vmxf

    -rw - 1 root root 9898631168 9 February 14:54 PJAEast-DL01_1-000001 - delta.vmdk

    -rw - 1 root root 331 28 August to 01:52 PJAEast-DL01_1 - 000001.vmdk

    -rw - 1 root root 73728 9 February 14:55 PJAEast-DL01_1-000002 - delta.vmdk

    -rw - 1 root root 283 9 February 14:55 PJAEast-DL01_1 - 000002.vmdk

    -rw - 1 root root 36322836480 28 August at 01:41 PJAEast-DL01_1 - flat hard

    -rw - 1 root root 597 25 August at 15:18 PJAEast - DL01_1.vmdk

    -rw - r - r - 1 root root 78710 25 August at 16:06 vmware - 1.log

    -rw - r - r - 1 root root 68108 25 August at 20:43 2.log - vmware

    -rw - r - r - 1 root root 122302 28 August at 01:41 vmware - 3.log

    -rw - r - r - 1 root root 90557 Sep 20 19:54 4.log - vmware

    -rw - r - r - 1 root root 69453 9 February 14:54 vmware.log

    Then, I run the command:

    vmkfstools x 256g PJAEast - DL01_1.vmdk

    And now the virtual machine does not start, return an error: "the virtual disk parent has been changed since the child was created."

    The directory listing is now ("BOLD" indicates the change of information post-vmkfstools):

    -rw - 1 root root 16781312 Sep 20 19:46 PJAEast-DL01-000001 - delta.vmdk

    -rw - 1 root root 325 28 August to 01:52 PJAEast-DL01 - 000001.vmdk

    -rw - 1 root root 4096 Feb 9 16:12 PJAEast-DL01-000003 - delta.vmdk

    -rw - 1 root root 277 Feb 9 16:12 PJAEast-DL01 - 000003.vmdk

    -rw - 1 root root 28201 28 August to 01:52 PJAEast-DL01 - Snapshot1.vmsn

    -rw - 1 root root 28267 9 February 14:55 PJAEast-DL01 - Snapshot2.vmsn

    -rw - 1 root root 131604480 26 August at 08:04 PJAEast-DL01 - flat hard

    -rw - 1 root root 8684 Feb 9 16:12 PJAEast - DL01.nvram

    -rw - 1 root root 589 25 August at 15:18 PJAEast - DL01.vmdk

    -rw - r - r - 1 root root 1015 28 August 01:52 PJAEast - DL01.vmsd

    -rwx - 1 root root 2779 Feb 9 16:12 PJAEast - DL01.vmx

    -rw - 1 root root 267 Feb 9 16:12 PJAEast - DL01.vmxf

    -rw - 1 root root 9898631168 9 February 14:54 PJAEast-DL01_1-000001 - delta.vmdk

    -rw - 1 root root 331 28 August to 01:52 PJAEast-DL01_1 - 000001.vmdk

    -rw - 1 root root 73728 Feb 9 16:12 PJAEast-DL01_1-000003 - delta.vmdk

    -rw - 1 root root 283 Feb 9 16:12 PJAEast-DL01_1 - 000003.vmdk

    -rw - 1 root root 274877906944 28 August 01:41 PJAEast-DL01_1 - flat hard

    -rw - 1 root root 599 9 Feb 16:11 PJAEast - DL01_1.vmdk

    -rw - r - r - 1 root root 68108 25 August at 20:43 2.log - vmware

    -rw - r - r - 1 root root 122302 28 August at 01:41 vmware - 3.log

    -rw - r - r - 1 root root 90557 Sep 20 19:54 4.log - vmware

    -rw - r - r - 1 root root 69453 9 February 14:54 5.log - vmware

    -rw - r - r - 1 root root 39510 Feb 9 16:12 6.log - vmware

    -rw - r - r - 1 root root 39411 Feb 9 16:12 vmware - 7.log

    -rw - r - r - 1 root root 39410 Feb 9 16:14 vmware.log

    I can't do anything else until I get comments. Can anyone recommend a way to solve this problem?

    I thought I knew what I was doing, but apparently not...

    I agree

    Two a problem with the new drive.

    1. You get the error message comes from the basic disk with a different size than the disks of the snapshot.
    2. With a size of 256 GB, you will not be able to create snapshots of the disk (on ESXi prior to 5.0 with a block size of 1 MB)

    What you can try to do is to edit the file PJAEast - DL01_1.vmdk :

    • 536870912 VMFS 'PJAEast-DL01_1 - flat hard' RW--> RW 70943040 VMFS 'PJAEast-DL01_1 - flat hard. "
    • DDB. Geometry.Cylinders = "33418'-> ddb.geometry.cylinders = '4416.

    After that, I would recommend to clone the virtual disk to a new one, replace the virtual disk in the virtual machine settings and resize it to a maximum of 254GB (see "calculates the time system required by the snapshot files" at http://kb.vmware.com/kb/1012384)

    • vmkfstools-i PJAEast-DL01_1 - 000003.vmdk PJAEast - DL01_1a.vmdk

    André

  • Virtual machine does not start the Server Windows 2003 Std ISO file?

    Hello

    I am trying to create a virtual Windows 2003 machine, I created the ISO file, downloaded on my ISO library and connected the CDROM drive for the ISO file.

    When I boot the maching, I select the start menu and select the CDROM drive the virtual machine starts the ISO?

    The continuous boot just on the network card boot.

    It's as if the virtual machine does not see the CDROM drive?

    I use folder2iso

    To me, it sounds as if the ISO created may not be bootable! How did you create the ISO file?

    André

  • The delay between starting the virtual machine folder.

    I used some teams a lot in workstation 7, but in work stations, 8, they were replaced by folders.

    One of the great thing about the teams has been the ability to control the delay between the start of virtual machines.

    8 I can only find a general option under change preferences in my computer. I gues the only way around is the starting order of script or is there an option that I missed?

    According to an analysis last week of one of the developers of VMware, yes - scripting is the best answer.  He said that the old method of delay the start was not exactly accurate anyway and recommended script.

  • Start a virtual machine from the CD player on vSphere Client

    ESXi V4.1-

    I know how to get the virtual machine to connect to start for the host's cd drive.  But it seems I have to first of all power on the virtual machine, and then connect the client drive - and at this time, it will be too late.

    Report from the boot of 5 s after powering did not connect the CD from client to the virtual computer for 5 seconds pause - connection was grey until the virtual machine launched at startup.

    Is it possible for a start of the virtual machine from the CD of customer?

    When you see the white bar (after the virtual machine is started) press the key "ESC". This will bring you to a boot menu (which may not show the CD at the moment). At this time to connect the CD-ROM drive and then 'hot' starts the virtual machine by pressing CTRL-ALT-INS. Once the white bar is displayed, press the ESC key again. Now you should see the CD-ROM as boot device.

    André

Maybe you are looking for