Move-vm can migrate a powered off the virtual computer to a DRS cluster?

When I try to move-vm has propelled off VM to a destination of DRS cluster, he says that he cannot migrate a powered off the virtual computer to a DRS cluster.   I can explicitly name the destination of the host and it works, but that defeats the purpose of using the DRS and forces me to script on the destination hosts.

I do something wrong or I would be able to migrate a powered off the virtual computer to a DRS cluster?

Thank you

-MattG

Hello, MattG-

I get the same behavior as you when you try to move a VM PoweredOff to a DRS cluster, specifying the cluster as the value for the parameter - Destination to Move-VM (using PowerCLI v5.1 Rel 2 v5.5 Rel 1).  Not quite what I expected.

To work around the problem, and without having to appoint a particular host as destination, you could use some Get-Random, do something like:

Move-VM myVM0 -Destination (Get-Cluster myDestDRSCluster | Get-VMHost | ?{$_.State -eq "Connected"} | Get-Random) -RunAsync

Who should receive the machine said cluster and on a host that is in the connected state.  A subsequent operation to the market (whenever do you eventually) should then see DRS power on the virtual machine on a suitable host in the cluster.

Maybe the dev team can comment if this behavior is the expected or desired.

Anyway, how does do for you?

Tags: VMware

Similar Questions

  • What happens when your computer dies and you need to reactivate your applications on a new computer, but you can't turn them off the old computer?

    My computer died recently. I had the right to install applications on two different machines. My new Mac is here and my panic to get back to work by using the CC apps, I reinstalled the on the new machine. Now I'm able to use them on my laptop because I wasn't able to disable out old Mac applications and this is why Adobe think I used my two installs.

    Hello

    You can actually have installed creative cloud and on two computers, signed as long as you don't use it on one at a time. Download and install as you did on the first computer, sign in to your Adobe account on the Adobe using your Adobe ID website, download the desktop app from clouds, then download the software. Sign on a computer that should not be used: log in and log out of the desktop Adobe Creative Cloud application

    You can download the installer for Creative Cloud from here:
    Creative cloud help | Creative cloud desktop.

    After you install the creative Cloud desktop application, you will need to sign in with a login password and Adobe. Then you can install applications. This link provides more information and step by step instructions, if you need: CC help | Download, install, update or uninstall applications

    Hope this helps

  • Reload the Configuration of the virtual computer after changing the VMX file

    Hello

    If I make changes to a file on a virtual machine's .vmx in vCenter 5.5 is automatically valid configuration for the engine power vm off? I made some changes earlier and it seemed to be the case, but one of the steps that I see in some of the documents is to reload the configuration of the vm, so it can be used appropriately. So this happens automatically or not?

    Hello

    If she turned off the virtual computer, then during power on, changes to take effect.

    Concerning

    Mohammed

  • Cannot convert a virtual machine while it is powere on or suspended. Shut down and power off the virtual machine before the conversion.

    Hi all

    I am currently using preinstalled VMware 7.1 and I try to import a virtual machine, I used to work on my windows XP. Recently, I am using windows VISTA and I am trying to import my VM (.vmx) and I get this error "cannot convert a virtual machine, although it is powere on or suspended. "Shut down and power off the virtual machine before the conversion.

    This virtual machine worked very well under windows XP and VMware 6.5, but now I am not able to import it. Please suggest how I can make this virtual machine running in my VISTA and vmware 7.1.

    I am also attaching the converter file logs and .vmx vmware.

    Thank you...

    Is there a problem with this backup?

    It is possible. How big is she?

    Right-click on the vmdk file in Solution Explorer, then select «Map virtual disk...» "Does it work?

    André

  • How can I change/turn off the led under the speakers on Satellite P100?

    How can I change/turn off the led under the speakers? (in Satellite P100 (PSPA6E))
    Now I see the light only in the left side, but when I bought the computer left and right led line lights blue under the speakers.

    Gazz's right. It is not possible to switch off the LEDs. If just one LED is on the other must be faulty. Contact the customer Service of your country partner. I'm sure they can disconnect one too if you n t need her.

  • Premium creative suite of Adobe - I can't registerit on a new computer and I can't turn it off the old. On my account the results of the stored program, but when I open the program it asks me to register

    Adobe creative suite premium.

    I can't save it on a new computer and I can't turn it off the former where it is registered (where can I find the registration number?)

    On my ADOBE .COM account results achieved registered (?), but when I open a program it asks me to register and if I do, it does not work.

    There is a phone number of (Italian) help?

    Thank you.

    assuming it comes to cs6 or more, find the serial number of your product Adobe quickly

    If you see an anomaly of counting activation, contact adobe for hourly pst support by clicking here and, when available, click on "still need help," https://helpx.adobe.com/contact.html and ask a county of activation reset.

    [left Adobe Creative Cloud for download, installation, commissioning]

  • HELP PLEASE! I can't power off the virtual machine on host VWware ESXi

    I can not power off the virtual machine on host VWware ESXi is any other command. How can I restart?

    I need to power on the virtual machine, I did not back up!

    Thank you very much

    Hello

    in the ESXi console, run esxtop... you see the functioning of the virtual machine?

    If this isn't the case, you can restart management agents in the ESXi and you will be able to turn on the virtual machine again.

  • You can edit vmx file while the virtual machine is running? And is it safe?

    You can edit vmx file while the virtual machine is running? And is it safe?

    Hello

    Moved to the forum of the Virtual Machine and the guest operating system.

    If you edit the VMX while the virtual machine is powered on change is not levied until the power off then power on (not reboot) and there is a good chance that the change will be deleted when turn you off the system. So it is not safe to do so.

    Best regards
    Edward L. Haletky
    VMware communities user moderator
    ====
    Author of the book ' VMWare ESX Server in the enterprise: planning and securing virtualization servers, Copyright 2008 Pearson Education.
    Blue gears and SearchVMware Pro items - top of page links of security virtualization - Security Virtualization Round Table Podcast

  • Power and turn off the virtual machine

    I write some scripts to turn off a virtual computer and power on the virtual machine.  Can someone please tell me what commands that I use to power on a virtual machine and a virtual computer power off, if this is possible.

    Thank you

    Depends on if you have the VMware tools running.

    (1) without tools

    Get-VM  | Stop-VM
    

    (2) with tools

    Get-VM  | Shutdown-VMGuest
    

    The 2nd method let the OS do stop.

    The first method is the power Cup.

    For power on you can use

    Get-VM  | Start-VM
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • After the Virtual Machine is hot migrated lose the reference to the virtual computer object (VMware.Vim.VirtualMachine)

    Hello

    In my VB.Net application, I retrieve the virtual computer object (VMware.Vim.VirtualMachine) through scripting Powershell VI.

    If the Virtual Machine is migrated to another host (hotmigrate) I receive an event (VMware.Vim.VmMigratedEvent), which also holds the moref of the Virtual Machine. I tried to use the updateview method to refresh the virtual computer object but failed with an error message stating that the object could not be found, or never existed.

    I also tried to recover the virtual computer object again, throug the method Client.GetView and the moref returned by the event, but the same error message.

    How can I get my hands on the virtual computer object or update after migration to another host takes place. I have to get it back again? It would be great if I could do it somhow with information from moref I hold the event!

    Any help is appreciated!

    Concerning

    Manfred

    Sorry, but I can only show you how to do this in PowerShell.

    I use the purpose of the task to get to the prompt MoRef.

    Here's how:

    $vmName = 
    $tgtHost = 
    $tgtPool = 
    
    $vm = Get-VM $vmName | Get-View
    $poolMoRef = (Get-ResourcePool $tgtPool | Get-View).MoRef
    $esxMoRef = (Get-VMHost $tgtHost | Get-View).MoRef
    
    $task= Get-View ($vm.MigrateVM_Task($poolMoRef, $esxMoRef, "lowPriority", "poweredOn"))
    
    while($task.Info.State -eq "running" -or $task.Info.State -eq "queuing"){
      $task.UpdateViewData()
    }
    
    $vmImpl = Get-VIObjectByVIView -MORef $task.Info.Entity
    

    I don't know how you get at the VmMigratedEvent event, but the MoRef in there is pointing to the correct prompt.

    In the following script, I extracted all the events related to the task of vMigrate immediately after the vMigrate task finished

    function Print-VmName{
         param($event)
    
         $MoRef = New-Object VMware.Vim.ManagedObjectReference
         $MoRef.Type = $event.vm.vm.type
         $MoRef.Value = $event.vm.vm.Value
         $vm = Get-View $MoRef
         Write-Host $vm.Name
    }
    
    $events = Get-VIEvent -Start (Get-Date).addminutes(-15)
    $events | % {
         $event = $_
         $eventType = $_.GetType().Name
         switch ($eventType){
              "VmMigratedEvent" {
                   $eventType
                   Print-VmName $event
              }
              "VmEmigratingEvent"{
                   $eventType
                   Print-VmName $event
              }
              "VmBeingHotMigratedEvent" {
                   $eventType
                   Print-VmName $event
              }
              "TaskEvent" {
                   $eventType
                   Print-VmName $event
              }
         }
    }
    
  • How to import bookmarks Firefox to a hard drive in another PC Firefox browser? The hard drive containing the bookmark has been deleted from a computer whose mother is dead, but the hard drive can be recognized outside on the new computer.

    How to import bookmarks Firefox to a hard drive in another PC Firefox browser? The hard drive containing the bookmark has been deleted from a computer whose mother is dead, but the hard drive can be recognized outside on the new computer.

    See this support article:

    http://support.Mozilla.com/en-us/KB/recovering+important+data+from+an+old+profile

  • How can I type of NETWORK adapter in the virtual computer a vCloud?

    I'm trying to write a script that compares the type of NETWORK card in vCloud NIC type in vCenter to work around a bug in vCloud 1.5.  I can get the type of NETWORK adapter in the virtual computer a vCenter by getting the vCenter VM up and running:


    $vcvm | Get-NetworkAdapter | FT-auto
    Name Type NetworkName MacAddress WakeOnLanEnabled
    ----              ----           ----------- ----------        ----------------
    Network adapter 1 isolated EnhancedVmxnet 00:50:56:01:00:33 True


    I do not get the same results when you perform an action similar to vCloud:
    $vcdvm | Get-CINetworkAdapter

    Connected primary index IPAddressAllocation IPAddress ExternalIPAddress VM
    ----- ------- ---------  ------------------- ---------       ----------------- --
    0 true true manual 192.168.10.30 nic1

    I can get all the other info NIC, such as the network, IP, MAC, etc, but not the type:
    ($vcdvm. ExtensionData.section) [2] .networkconnection

    Network: isolated
    NeedsCustomization: false
    NetworkConnectionIndex: 0
    IP address: 192.168.10.30
    ExternalIpAddress:
    IsConnected: true
    MACAddress: 00:50:56:01:00:33
    IpAddressAllocationMode: MANUAL
    Get_anyattr:
    VCloudExtension:

    For the moment, I get the type of NIC the vCloud himself database vCloud.  Thanks for any help.

    I use VMware vSphere PowerCLI 5.1 Release 1 build 793510

    I could tell you where to find it, but there is a bug in the API that shows only as PCNET32 anyway (sleep if she could be VMXNET3). Keep doing what you're doing with the database query.

    See you soon,.

    Jake

  • I have a subscription to creative cloud.  I just bought a new computer.  How can I download it to the new computer?

    I have a subscription to creative cloud.  I just bought a new computer.  How can I download it to the new computer?

    If you have already installed the software CC before, you simply repeat the same process for the new machine.

    Download/install the desktop application, connect and install applications subscription.

    Cloud creation help / download, install, update or uninstall applications

    https://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Cloud creation help / Creative Cloud to desktop

    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Cloud creation help / sign out, sign in | Creative office cloud app

    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Cloud creation help / install, update or uninstall applications

    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Install creative Cloud applications

    http://TV.Adobe.com/watch/CS6-creative-cloud-feature-tour-for-video/installing-desktop-app s-of-creative-cloud.

  • get a new computer. can I disable or uninstall the old computer fromm

    get a new computer. can I disable or uninstall the old computer fromm?

    Hi jogee1,

    Which Adobe product work?

    ~ Ashish

  • Turn off the virtual machine to remove the snapshot?

    I discovered that, even though my Snapshot Manager says that there are no photos, I have several virtual machines with the snapshot files. I tried to create a new snapshot and then remove it, but it does not work. I tried to shut down the VM, and then create a snapshot and remove - that works. What is the difference? Why would it works when the virtual computer is disabled but does not work when the virtual machine is turned on?

    And even if you go to snapmgt you can not delete them?

    Download rvtools tool, there is an instant writer and see if there's trully snaps and might send a screnn for me!

Maybe you are looking for

  • How to erase a disc from merger before selling my iMac

    I plan to sell my iMac and replace it with a new one, but I don't know how to safely clear the merger drive on my current iMac.

  • Did someone else never receives electric shocks of their macbook?

    Did someone else never receives electric shocks of their macbook? How to solve it?

  • Microsaoft when you unlock my account... john jangula

    Block you my account because some scum bag was high jacking my account why didn't not block you scum bag,.and leave my only account, you knew it wasn't me... * address email is removed from the privacy *.Yet once, when are you going to unlock my acco

  • driver wifi HP pavilion g4

    HP Paviolion g4-1314tx Windows 7 x 64 My recovery disks do not work so I decided to install everything manually. The only device that I have not managed to install is my wifi driver. so I looked on the net. I tried all the drivers on the site below,

  • How to erase a CD - R disc in drive D?

    Hello I have files on a CD - R disc and erase the content. I insert in the D drive and it opens the files it contains, but I don't know how to clear this content. What should do? I hope I have the correct Windows themes shoes. Anne