Move-VM error: VM must be managed by the same VI servers as the destination data store

I work with 2 ESXi servers and a single vCenter server with vSphere 6.0 Update 1 b; and PowerCLI 6.0 Release 2

I have an a datacenter, cluster, vCenter and a vDS.  I need to pass the vCenter data store to another and get the error message:

"Move-VM VM you are moving should be handled by the same server of VI as the destination container and the data store.

Code looks like the following:

$vctObj = to connect-viserver $vctIPaddress

$esx1Obj = to connect-viserver $esx1IPaddress

$esx2Obj = to connect-viserver $esx2IPaddress

$vmObj = get-vm-name $vmname - Server $vctObj

$destDSobj = get-datastore-name $destDSname

Move-vm - vm $vmObj Datastore - $destDSobj - 'End' DiskStorageFormat

I can migrate successfully from the virtual machine to vCenter data store through the VI Client, but PowerCLI left me speechless.

Maureen

Try to use the Server parameter on the Get-Datastore line

Tags: VMware

Similar Questions

  • Add VDSwitchPhysicalNetworkAdapter error - 'vmnic must be managed by the same server VC.

    I used PowerCli 6.0 R3 on vSphere 6.0 Update 1 b.  I have only a single virtual machine, my VM vCenter which is a Windows Server 2012.  I have also 2 Dell ESXi servers.

    I have created a virtual Distributed Switch (vDS), 3 groups of ports vd and have added the first 2 VMHosts service VDS using PowerCli.

    My problem occurs when I try to add my vmnic host that need the VDS (10 GB NIC).  I get the following error:

    The PhysicalNicImpl - "vmnic6" must be managed by the same VC server that you use to call this operation.

    A code snippet is attached.  I appreciate any suggestions on what may cause this error.  You feel something in my environment.

    Thank you Luke, you gave me the idea and I was able to understand.

    In my script that I was connected to 2 my vCenter server and ESXi hosts and I never specified the vCenter server in cmdlets for a list of the network adapters.  So instead for expansion via vCenter cards, I received the ESXi host and this is why the Add-VDSwitchPhysicalNetworkAdapter complained.

    Once, I started from vCenter in as the parameter server, everything started to click.

    Difficulty:

    $vctServerObj = to connect-viServer $vctIPaddress

    $vmHostObj = get-vmhost-name $serverIP - Server $vctServerObj

    $adapterList = get-VMHostNetworkAdapter-host $vmHostObj - Server $vctServerObj

    {Foreach ($adapter to $adapterList)

    $newVDSObj | Add-VDSwitchPhysicalNetworkAdapter - VMHostNetworkAdapter $Server adapter $vctServerObj

    }

  • ESXi 4: error in live migration (VMotion) to the different data store (Local SATA to iSCSI SAN)

    Hi all

    I have a problem during VM migration live in the different data store, the specifications of the virtual machine is just Windows 2003 x 64 installed with the latest VMWare tools.

    Here is the error message:

    Move the virtual machine

    Win2003x64_RST01

    A general error occurred: detected Source this destination could not resume.

    The active state of VM migration

    any idea what could cause this please?

    Kind regards

    AWT

    Check that the machine ESX4 has prevention performance virtualization and data, indicators enabled in the BIOS. I could move 32 bit machines vmotion Unflagged VT turned on in the BIOS, but 64-bit machines could not begin until I activated the flag of VT in the BIOS.

    Also try to clear the mask of the source of the VM CPU before migrating, providing the hosts have the same hardware.

  • 1 error windows must now restart because the plug-and-play service taken end unexpectedly__error 2 - windows must now restart because the DCOM Server process Launcher service put end unexpectedly__

    1 error windows must now restart because the plug-and-play service terminated unexpectedly
    error 2 - windows must now restart because the DCOM server process Launcher service terminated unexpectedly
    -every half an hour or 45 minutes such error comes and restarting the laptop... How to solve this problem...

    Hi nevil.fidelis,
     
     
    This seems to be a common problem, I recommend you to follow the discussions below and check if it helps.

    You can follow the procedure posted by Bindu RMicrosoft support, Moderator on Sunday, 24 January 2010, at 20:04.
    http://social.answers.Microsoft.com/forums/en-us/vistarepair/thread/ea20a793-5fe8-4448-9fa2-c3ef45069b87

    For additional help please refer to the following thread also:
    http://social.answers.Microsoft.com/forums/en-us/vistahardware/thread/aa3373fa-836D-43f2-BCFC-6e566553c818

    You can also check the positions of the TCD in the thread below on
    http://social.answers.Microsoft.com/forums/en-us/vistarepair/thread/0f1a049c-4852-4321-91d7-dc1255f4d7a4
     
    Consider the response posted by Karena R, Moderator Thursday, December 31, 2009 at 01:28
    http://social.answers.Microsoft.com/forums/en-us/vistahardware/thread/aa3373fa-836D-43f2-BCFC-6e566553c818

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Satellite A200 - 26 d - error code 19 Device Manager on the USB ports

    I decided to try Windows 7, but the usb ports do not work in Device Manager all the usb root hubs have a yellow triangle and the State of the device says "Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged. (Code 19) ».

    I tried to uninstall via the Device Manager and restart the computer and download and reinstall the drivers for vista, because I can't seem to find the drivers for Windows 7, but none of this fixed anything. I was wondering if there was something else I could try or if I could get a link for the correct drivers.

    Hey JP317!

    If it didn t work removing the USB ports in Device Manager and restart the laptop, you should try to update the chipset drivers because they are usually a part of it.

    So check the site Web of Intel for an update and you should also find Windows 7 drivers.

    If you have any other questions, please let us know!

  • error file name of report with the Chinese Date format

    Hello

    I see an error in the DUT report stage writing in the standard template files.  This step is calling the API method save on the Runstate.Report object.

    This problem occurs on computers using localization in Chinese with the date in the name of the report file.

    Is this a known issue?  Is it possible to change the name of the file before calling the method above to eliminate the problem?

    Mike,

    You have the ability to recognize characters multi-byte enabled? Please navigate to configure"Station and select the location tab. There should be a checkbox to recognize multibyte characters. This box is checked? Otherwise, try to check the box and re-run your movie file.

    Please let me know the results of this test. Thank you!

  • Move VM vcenter to the new data store

    Hello

    I have a cluster with 2 data warehouses and I must "empy"one for then reassign the disks on the SAN. " However I seem to be in a situation of catch-22 virtual machines, I need to move/migrate is the VM vCenter. I need to have propelled him down to move the data store, but then I have no way related to migration. I presume that this requires a manual move/copy of the vCenter VM file to a data to another store, but not sure of the consequences etc..

    THX

    Gerry

    Since you are using a business license you can Storage vMotion, VM of for the new store of data without any stop.

    Select VM-> click on migrate-> select change Datastore Option

  • root properties in the connected data store: error when accessing the date/time storage

    When you browse the properties my connected data store I get an error message when you try to read the value of the property of 'storage date/time': object doesn't support this property or method.

    Here is a minimal example:

    Dim oMyDataStore, MyProperty, oMyProperties
    Set oMyDataStore = Navigator.ConnectDataStoreByParameter ("TOC", "" & "C:\Program Files (x 86) \National 2012\Examples\Data\Example_data.tdm" & "" ')
    Set oMyProperties = oMyDataStore.RootElements (1). Properties
    For each MyProperty in oMyProperties
    Call MsgBoxDisp ("property name:" & MyProperty.Name & + "\n"&"property value:" & MyProperty.Value "")
    Next

    Why can I not access this particular property by default?

    Hi Phex,

    for the date/time properties, an object called UsiTimeDisp is returned. This object allows to that extend features of service as access to each part separately (day, year, hour, seconds,...) of your date/time value. If you want to print the value of time with MessageBoxDisp, you can use the VariantDate this object property.

    Your code might look like this then:

    Dim oMyDataStore, MyProperty, oMyProperties
    Set oMyDataStore = Navigator.ConnectDataStoreByParameter ("TOC", "" & "C:\Program Files (x 86) \National 2012\Examples\Data\Example_data.tdm" & "" ')
    Set oMyProperties = oMyDataStore.RootElements (1). Properties
    For each MyProperty in oMyProperties
    MyProperty.DataType = eTime Then
    Call MsgBoxDisp ("property name:" & MyProperty.Name & + "\n"&"property value:" & MyProperty.Value. ' ") VariantDate)
    On the other
    Call MsgBoxDisp ("property name:" & MyProperty.Name & + "\n"&"property value:" & MyProperty.Value "")
    End If
    Next

    I hope this helps.

    Good day

    Eva

  • What runtime error of Reader 9 to redirect the Application data is fixed?

    Has anyone heard when Adobe will fix the error Runtime of Reader 9 to redirect the Application data?  It still occurs with 9.1.3 only users who have their Application Data redirected folder via Group Policy.

    It lasts for a while, as evidenced by the following link and my own personal pain, fight against this

    http://forums.Adobe.com/thread/391738?start=100 & tstart = 0

    I also installed Adobe Reader 9.2.0 via Active Directory and I can confirm the runtime error message still appears, and the application closes. However, the suggested workaround solution worked. After you have set the folder list / permission to read the data on the shared folder of HOUSES on the server (only applied to the folder itself) Adobe Reader has started working.

  • Satellite L300D - error code 19 Device Manager on the CD/DVD drive

    I have a model of Satellite L300D PSLC0E and you just install Windows 7 upgrade from Vista, everything goes well outside the HL-DT-ST DVDRAM GSA-T50N ATA DEVICE and ATI. With the HL - DT - ST DVDRAM GSA - T50N ATA DEVICE this a driver problem, it is said it seems to do with NTI Backup 4, tried to update for NTI Backup now 4.5 but still no luck.

    With ATI I run updates and reinstalled the program, system check, it shows that it is installed and everything works, but I don't seem to be able to change the display settings most important is 1200 x 800, I seem to think that with ATI there should be more, but not sure because when I start to run a set of changes in the size of the screen to 1024 x 768 , and I can't change anything. Any body any ideas?

    Grommitt60

    Hello

    (1) also tried to remove the capital letters and lowerfilters in the registry? In the forum, I noticed that this does not resolve this error code. On the Microsoft Knowledge Base, you can find a solution for this:
    http://support.Microsoft.com/kb/314060

    (2) I also have Satellite L300D and the maximum screen resolution is 1200 x 800. So you can set a higher screen resolution on internal monitor, this is possible on the external monitor.
    And normally, you can change the resolution of the screen in every game. Check this box!

  • Move vCenter base SQL Express to keep only the SQL data

    Hello, I found several articles on moving from sql express to full Sql but I have a few questions. Some of the items I fell on are: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1028601 now, a question I have is, article mentions reinstating the vcenter DB but is the db RAS (Single Sign-on) and update DB Manager, they are all have to fly over on the new server by following the same instructions? I'm sure they do, but I was wondering if special measures or the restitution order is important. Thank you

    Exactly. Add it to the MSDB. You can remove only database after the installation/upgrade.

  • Error in adding the Cluster data store

    "It was not correct to specified parameters. datastore.info.Type ".

    It is a connected iSCSI Synology. I'm sure this is a setting that I missed, can anyone point me in the right direction?

    With vSphere Client 5.5.0, vCenter Server 5.5.0. All hosts running 5.5 as well.

    Thank you!

    Nevermind, I found it. Different types. NAS vs. VMFS. Sigh.

  • Move virtual machines from a to another data store

    Is there a recommended (or integrated) way to move propelled out of virtual machines from a data store? Or is it a cut simple and working of dough which can be done from any client PC connected to the underlying storage providers?

    If both, store data Source and Destination are connected to the same server vCenter, do Storage vMotion. Make a right-click VM--> migrate--> change of data store and select the Destination data store.

  • VMware ESXi 5.0 - "move to" data store a vmdk file has left at the original location

    Hi all

    I had to free up space on a SAN data store.  For this I used the function "move to...". "browser data store in VsphereClient.

    Did not notice directly but after I moved my E: drive vmdk file, he took no source data store.

    How can I make sure that vmdk (the source data store) may be deleted without impact on the vm?

    1. If 'vmkfstools d' report without lock, so I guess I could assume it is safe? Is there another way to check?

    2 vmkfstools seems not having the '-d' option in vSphere CLI? (East - this only accessible from ssh console on an ESXi? quid vCenter then?)

    In the data store, the files were:

    -Vm\win2k8_data.vmdk [SAN03] (data disk D :)

    -[SAN03] vm\win2k8_data - ctk.vmdk (-ctk looks that it has been created by Veeam)

    -[SAN03] vm\win2k8_transactlog.vmdk (E: transaction log 128 GB drive)

    -[SAN03] vm\win2k8_transact - ctk.vmdk (-ctk always assuming that it was created by Veeam ~ 8 MB)

    Steps to follow:

    -J' turned off the virtual machine using these car

    S ' installs 2 files on the E: drive

    -Removed the vm disk (<-my mistake? maybe this step left a lock file? in power vm off?)

    -Added the disk from the data store where I copied it

    Thanks for the help!

    behd

    Hi Behd,

    The best way to check if the vmdk on the source is not being used would be to add this vmdk to an existing virtual computer and turn on... ? If not used or is locked by one that turns on with success.

    If it has an instance running it wouldn't let you put under tension and raise an error of file locking. ?

    Avinash-

  • ESX3.5U4/VC2.5 - move vmdk to adequate data store and extend the drive on the virtual machine

    ESX3.5U4/VC2.5 - move vmdk to adequate data store and extend the drive on the virtual machine

    Objective: move vmdk to store data with adequate storage and then increase storage D: 20G to 100G

    Converter is not available on this architecture. Can I migrate cold vm to the different data store, no prob.

    Question: Without use of the converter, method 3 can be used without a secondary vm? In other words, just by using target vm offline, online, offline? Or is it a problem of signing/OS disk on the Windows Virtual PC?

    I need to move vmdk in different LUN and extend drive vm windows on D: (non-OS drive). Is this possible via the single procedure? Options?

    To use method 3 to http://communities.vmware.com/thread/81121 requires available vm 'secondary', I did not.

    Method 3? Using of vmkfstools and another VM of Windows to extend a drive

    o stop the VM to resize

    o log in the console ESX Server via Putty

    o Type? vmkfstools? X & lt; new size of drive & gt; vmfs/volumes / & lt; storage volume name & gt;. / & lt; virtual server name & gt;. / & lt; the virtual disk name & gt;? That is to say. /vmfs/volumes/Storage1/my_vm.VMDK new disk size can be specified in kilo, mega, or gigabytes and will be the total size of the new disk. So if you want to increase a virtual disk of 20 GB of 24GO you would put 24000 m or 24g

    o the second virtual machine to help stop

    o change the second virtual machine settings and add the first virtual machine hard drive

    o power on the second VM and load the disk management snap-in and verify that the first virtual machine disk has unallocated on it space

    o select Start, run and enter diskpart.exe

    o the command? the list of volume? This will show you all the volumes.

    o select your volume based on the results of the list volume command, IE. ? Select volume 1?

    o type the command? extend? to extend the volume

    o check again the disk management snap-in and the volume is expected to be expanded with a greater ability

    o stop the second VM and remove (do not remove) the record of it

    o turn your first VM and the new space should be there and ready to use.

    Also, I'm already aware of Dell extpar:

    http://www.RTFM-ed.co.UK/?p=1310

    http://support.Dell.com/support/downloads/download.aspx?c=us & CS = 19 & l = in & s = DHS & ReleaseID = R64398 & formatcnt = 2 & starts = 83929

    for VI3, vmoiton of storage is made by RCLI plugin or a 3rd party

    I prefer the plugin

    http://www.virtualizationadmin.com/articles-tutorials/VMware-ESX-articles/VMotion-DRS-high-availability/storage-VMotion-SVMotion-VI-plugin.html

    In addition, if the option to increase the size of the disk in the VIC is grayed out, it sounds like a permissions issue.  Finally, you can not extend the disc using the VIC, if the customer in question has a snapshot.

Maybe you are looking for