command to restart a virtual computer

I need to restart a virtual machine started in the recovering site.

So in this VM I insetreted one POST POWER ON NO, type the COMMAND ON RECOVERED VM and the content is:

Shutdown /r /t 5/f

The syntax of the command is correct, I tested it! But when I run the test of the stimulus package I get:

Error - command "shutdown /r /t 5/f" returned a nonzero value: 21.

Any idea?

Hello vmb01,

This should work:

5/f C:\Windows\System32\shutdown.exe/r/t | Exit 0

Kind regards

P.

Tags: VMware

Similar Questions

  • Had an error "NTLDR is missing" while restarting the virtual computer

    Hi all

    I got an error "NTLDR is missing" while restarting the virtual computer on which windows is running.

    Can someone please suggest a way out of this error?

    Thank you

    Jenish

    You have a connected to the virtual machine floppy image? If so, disconnect the diskette drive.

  • Restart the virtual computer through esx command

    Hi guys,.

    How to restart the virtual machine via control esx

    Thank you

    Vinoth.S

    Hello

    Have a look here:

    http://www.esxguide.com/ESX/content/view/2/25/

    To list all virtual machines is "-l".

    Hope that helps.

    Dan

  • command to restart for virtual machines in a cluster

    Hi all.

    I have a vCenter Server 4.1 (HA, VMotion, DRS active) and a group of 8 ESX 4.1 works perfectly, with some virtual machines on it.

    I was asked if it was possible with vCenter, to restart three virtual machines in a specific order, not matter what ESX, there is on. At first, I thought a rule on the cluster to group them, but then I realized that it was not possible to specify the boot order, but only that they could be (or not) on the same host.

    Does anyone have an idea on how to fix this?

    Thank you very much.

    Hello.

    This sounds like a possible use case of vApps.  You can put VMS in the vApp and then specify the order of start and stop them.

    Good luck!

  • How to restart a virtual computer when it blue screens

    Someone at - it an entries if there is no options in ESX 3.5 that is OS (Windows 2003) blue screened, it will restart it self?

    I know that in HP, there is a function if the OS is not accessible, it will automatically restart. Is there a similar function in ESX? I have some server that just blue screen and uses a lot of resources when he stuck on the blue screen.

    Thanks in advance.

    If you have virtual Center, you can set an alarm on the loss of pulse to restart the virtual machine - VM

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Any host command to force a virtual computer to suspend?

    Given the title of the virtual machine window, it should be possible to close the window with a command or a script and therefore suspend the virtual machine.  Is there a windows command or software for that?

    If you download the VIX API 1.8.1 (http://www.vmware.com/support/developer/vix-api/), it will include vmrun with support for VMware Player 3.0.

  • Is reset or restart the virtual machine should all expanding vmdk size?

    Hi all

    While extending the size of 20 to 28 GB GB vmdk I can extend when the VM is in poweron State, but he didn't think inside the virtual machine. The disc is resized when the virtual machine won reset or reboot.  I would like to know if the reset or restart that virtual computer is must have for resizing vmdk. If it is then what is the use of expansion of disk while the VM is in poweron State?

    Thank you

    Vijaya

    Yes with windows 2008, you can extend the OS disk to create a new drive letter instead.

    Here is a tutorial: http://www.petri.co.il/extend-disk-partition-vista-windows-server-2008.htm

  • Is it possible I can get the virtual computer connectivity after restart to connect to the local network in the host operating system?

    Hi all

    For some reason, I have to disable and then enable the LAN connection in the host operating system. If some virtual machines are running during this time, connectivity all VMs for out-of-world are lost, they cannot connect to the host even more (by running the ping command). I tried a few methods to retrieve the connectivity, but all have failed, for example,

    1. reboot the virtual computer

    2. restart VMware Workstation

    3. restart the corresponding system services in the host operating system

    The only way I can retrieve all is to restart the host operating system itself.

    Yes, is there short any path, I can retrieve the connectivity of these virtual machines?

    Thanks in advance.

    Yark

    yarkwang wrote:

    I use a Broadcom NetLink (TM) Gigabit Ethernet NIC, shows the date of the pilot 2006-5-15, but it works well, I think.

    Try installing a newer driver.  According to the site, you should be able to find a driver dated 2008 or 2007 (depending on which exact model of NetLink card you have):

    - http://www.broadcom.com/support/ethernet_nic/downloaddrivers.php

    1 came out of safe guard 360

    Sometimes out of some firewall programs is not enough (they keep still themselves installed in the network of the host stack, even if they are 'closed').  You may need to uninstall to make sure that it is not interfere.  (Search the forums for support for your firewall software see if anyone else is having problems with vmware and 360 safe guard).

  • copy a folder with its content on a remote virtual computer

    Hello

    I need your help with a script that I am building. "I need to:

    # to find a virtual computer and see if it is enabled, disabled, or enabled.

    # If it is off and then turn it on and copy a folder with the contents of the VM machine.

    Improvements,

    Michel Vaillancourt

    You'd put it in before, something like this:

    $vmName = 'Target'
    $folderName = 'C:\Folder'
    
    Invoke-VMScript "del $folderName" -vm $vmName -HostCredential $HostCred -GuestCredential $GuestCred -ScriptType "bat"
    
    Get-VM -Name $vmName | where{$_.PowerState -ne 'PoweredOn'} | Start-VM -Confirm:$false
    sleep 30
    
    Copy-VMGuestFile  -LocalToGuest -Source $folderName -Destination $folderName -Confirm:$false
    

    You may need to play with the Invoke-vmscript command more

    $cmd = "del $folderName"
    
    Invoke-VMScript "$cmd" -vm $vmName -HostCredential $HostCred -GuestCredential $GuestCred -ScriptType "bat"
    
  • Behavior of a virtual computer when it is placed on Standard vSwitch with multiple active adapters

    Hey everybody

    Right now I'm focusing on the aspect of vSphere network design and I have a question about this:

    If I have a vSwitch with a group of ports and attached to this group of ports there are 2 vNIC or NIC better and I chose road based on the Port ID and all cards are active, what happens to machines when I unplug a power cord? Lets assume vm1 is vnic 0 and vm2 on vnic1 and I unplug the power cord of vnic1. VM2 will switch automatically to vnic0 or should I restart? How should I take care of this problem when there is no automatic failover? Create an etherchannel and two assets assets adapters?

    Thank you and best regards

    Michael

    Hi Michael,

    your virtual computer will be moved to the other vmnic again access to the network after the failure. No reboot needed.

    It is indeed a very simple way of load balancing / team. When you turn on a virtual machine is bound to a vminc. As you said correctly for this example, vm1 goes to vmnic0, vm2 to vmnic1, to vmnic0 vm3 and vm4 to vmnic1.

    This is the default setting as it is quite simple and you don't need any additional switch configuration.

    If you want to change this behavior, for example to build an etherchannel, remember to change the policy on the vSwitch / exchanges, which would require a load balancing of "route based on the hash of the IP.

    Tim

  • 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?

  • Can I migrate a virtual computer to a new family of CPU? -Cisco Call Manager PUB/SUB

    I currently have 2 host VMware ESXi 4.1:

    1. Dell PER905 - running 16 x 2.39 GHz (core) CPU / Quad-Core AMD Opteron (tm) Processor 8378 (processor type)

    2 cisco UCS C260 M2 (BASE-2646) - running 20 x 2,393 GHz (core) CPU / Intel (R) Xeon (R) CPU E72870 (processor type)


    The main objective is to move 2 VM of the Dell host to the host of Cisco, the reason is because Cisco Support said that the virtual machine requires an Intel and not AMD they are currently.  I currently have a Publisher Cisco Call Manager and Call Manager subscriber residing on the host of Dell, they are constructed (non - OVF) on this machine some time ago.  We started to have problems with them and ultimately Cisco indicated above.


    A few questions come to mind, can someone please shed some light on them for me?

    1. can I migrate these 2 AMD to Intel VM, without her damage/destruction of the virtual machine?  What that is the answer may be, can you explain to me the why?  The answer to the migration of the CPU is dependent on the guest OS or what?  I ask because I did this successfully on a Windows Guest OS virtual machine, but I guess it is that Cisco makes me hesitate/question.

    2 would it not be better to each virtual machine rebuilt on the new host, rather than through migration for the purposes of the CPU?

    3. What is the recommended method to endorse these VM, before proceeding with the migration?  I'm not talking about save data in the call manager for reasons that I will perform a backup it first.  I ask more along the lines of - for the love of the virtual machine itself.

    1. can I migrate these 2 AMD to Intel VM, without her damage/destruction of the virtual machine?  What that is the answer may be, can you explain to me the why?  The answer to the migration of the CPU is dependent on the guest OS or what?  I ask because I did this successfully on a Windows Guest OS virtual machine, but I guess it is that Cisco makes me hesitate/question.

    You should be able to perform a cold migration. The concern is the guest operating system level.  The Cisco device is probably a Linux distro.  The distribution must use the AMD64 instruction set (Intel 64 compatible) and theoretically should migrate fine.  However, if the guest what OS was improved the AMD CPU instructions, he can expect these features when you restart.  We have at least a virtual computer in our environment that we need to stick to a certain family of Intel processor because the software license dig and binds to it, but this is the only scenario that I have met.

    2 would it not be better to each virtual machine rebuilt on the new host, rather than through migration for the purposes of the CPU?

    I feel better on the redeployment, but if the migration is successful and applications run stable, then you reaped just the benefits of virtualization.

    3. What is the recommended method to endorse these VM, before proceeding with the migration?  I'm not talking about save data in the call manager for reasons that I will perform a backup it first.  I ask more along the lines of - for the love of the virtual machine itself.

    You could do something as simple as the cloning of a copy.  Depending on how you are approved for vSphere, you can have the POS to back up your virtual machine.  You can also use a tool such as VMWare Converter or Veeam Backup and replication. Given the importance of these virtual machines, I would get at least 2 backups of different type.  You should be able to validate any backup with VMWare Workstation prior to migration.

  • How would recreate the pagefile to a Windows 2008 virtual computer running on a host ESX 3i?

    As the subject says, I'm looking for a way to do this.  I inherited the environment of another group and it is very small, but it performs ESX 3i on the two hosts and Vcenter version 2.5 (Infrastructure) is a bit old.  5 of 6 VM are operational, however, the 6th when turned on will not get 40% full, but then it will fail to stating that is not a swap file.  Now, normally it is not a swap file, because they are created or deleted dynamically whenever a virtual computer is powered on one of the hosts.  It's quite strange.

    In the new versions / environments, there seem to be ways to recreate exchange capacity easily, but which doesn't seem to be the case here.  I don't think it's a process lock as the two hosts have restarted to clear HA agent / editions of the resource.  My guess is this has happened has been one of the hosts could not reproduce any more process for some reason any and when the VM problem has been powered down to try to erase some, the problem occurred.  Either that, or there are unreadable sectors in the data store, and perforated in this swap file black...

    I was wondering if anyone had any ideas on how to solve the problem.  Any input would be welcome.

    Thank you!

    All,

    Thanks for the suggestions, but I solved the problem.  What needed to be done was to remove the virtual machine of the inventory and then re-create it as a new virtual machine under the cluster of the same name, same settings and have it use its 2 existing virtual disks.  For some stupid reason, once this is done, he managed to turn on normally and now runs without problem.

    I'm not necessarily happy that this solution because it does not really help understand me what underlying the problem actually was, but I guess I can live with that.  The reason why I have not tried it earlier, is that I was afraid the vmdk would be replaced and I wanted to keep the existing information.  However, someone I work with was certain that they had done before, and that she maintained the pre-existing data, even in this older version, so I finally tried.

    in any case, thanks for the support, and if someone can glean some root causes of the problem based on the solution I have just given, that would be helpful.

  • Need advice: VMs 'reconfigure virtual computer' about 10 minutes

    Hi, I need some advice.

    I have about 40 virtual machines distributed on 6 x hosts (ESXi 5.1.0: 1065491).

    I don't remember what I did recently (2 to 3 weeks ago) but:

    -There was no reboot the host, no updates

    -J' did a shrink of log SQL as my vCenter had a connection error (SQL Log full)

    -Restart vCenter (after the reduction of newspapers SQL)

    Only the last week or so, I realized that there are 6 virtual machines that were still in the task to vCenter 'reconfigure virtual machine.

    Her task "reconfigure virtual computer' seem to happen every 10 minutes and 100% almost immediately.

    There is no details on tasks.

    Virtual machines are spread through multiple ESXi hosts, running Windows Server 2008/2012.

    In fact, I found that the culprit after a few tries. There are several problems/causes for it but it leads (a) of the following:

    1. copy of Dell smart, EQL: the smart copy job is stuck. The problem is solved in the Dell EQL VSM 3.5.2 where no instant success are removed and re - in queue.

    2. trend Micro deep Security: just re - synchronize the vCenter and erase/reset the error warning for all computers

    3. Acronis backup stuck or failure that causes the VM "conscious" snapshot "services" to start and then stop. I did to stop the backup task Acronis having not an easy to understand the error log.

    Please kindly update if this can help.

  • VMotion fails to 78% on 1 single virtual computer

    I got a UPS die on me and take my VMware down hard.

    When I got to the top and stabilized, I made sure that I could move the servers with Vmotion, and they work all but one.

    A single server will start to move, and then crash at 78% until if finally give a time-out error.

    I can stop the server and move it like that, but not as long as it is live.

    A problem is, I'm incompetent to such things. I don't know how to get to newspapers VMKernel etc..

    I know my way around the GUI, just do not know any command line stuff.

    I need the instructions Junior version if possible. ;-)

    Tom

    by Kronos VM, huh?  Don't want to mess with that... get people angry when he time and attendance is not correct...

    Can you check something of ESX?  See if VT is enabled in the BIOS... Also, have you tried the virtual computer power off and remove the inventory and the navigation data store and adding it back to the inventory?

    Check VT:

    http://KB.VMware.com/kb/1011712

Maybe you are looking for