reconfiguration of a migrated virtual machine...

Hello

I have a bit of a delicate here.  I have a virtual machine that was originally a physical machine with a 500 GB hard drive.  I used a P2V to convert the HyperV machine and this is where the machine has been sitting whirring away for the last 6 months.  However, after that HyperV us has failed many times and damaged a few virtual machines and caused many headahces we decided to bite the bullet and strain upward to VMware Vsphere5.  So I migrated this VM and noticed that it takes 500 GB of space on my data store and use only 19 gb in the virtual machine, so there is a lot of wasted space.

I have ried to many methods to try to reduce the volume without success, everyone had a similar situation and fixed it?

Tried many things:

Change to thin provisioned during HyperV migration to VMWare

A narrowed the main drive of Windows Hyper-v, compact and tried to migrate

A narrowed the disk of the virtual machine on VMWare machine still cannot recover this space.

Windows backup and restore to a new virtual machine

Other options would be greatly received.

concerning

Dean

Have you tried to select "Function of Volume" in the advanced options of the converter? A basic volume conversion works on the file level and thin provisioned (or resized) target with a drive, you should be able to save disk space.

André

Tags: VMware

Similar Questions

  • PowerCLI Script to migrate virtual machines with the same network Source for the new vCenter Server.

    Hi all

    I checked a few posts on the migration to the new vCenter Server virtual machine. But I'm not very good with Powercli and need some help here.

    We have a new vCenter server where we migrate virtual machines from one source vCenter server. Here are two things that I don't know how to connect together to make sure that bwfore we turn on the virtual machine to the virtual machine is connected to its source network.

    Part 1 - this script works well but do not get any network on the vCenter destination.

    cluster = Get-Cluster "clusterA.

    $inventory = get-Cluster $cluster | Get - VM | Add-Member - MemberType ScriptProperty-name "VMXPath" - value {$this.extensiondata.config.files.vmpathname}-Passthru-Force | Select-Object Name ResourcePool, folder, VMXPath |

    $inventory | Export-Csv c:\file.csv

    $inventory = import-csv c:\file.csv

    $cluster = get-group 'b '.

    {foreach ($vm to $inventory)

    $ESXHost = get-Cluster $cluster | Get-VMHost | Select - 1 first

    New-VM - VMFilePath $vm. VMXPath - VMHost $ESXHost - location $vm. Folder - ResourcePool (Get-Cluster $cluster |) Get-ResourcePool $vm. ResourcePool)

    }

    Part 2 - I want to preserve the Portgroup macaddress and the Ip of the virtual computers and connect them to the new vCenter. How can I do this with the script below. Or how can I combine them together?

    $vm_list = get-Cluster-name "clustera | Get - VM test * | Name sort

    $information = {foreach ($vm to $vm_list)

    $network_adapter_information = get-NetworkAdapter - VM $vm

    $vm | Select Name,PowerState,ResourcePool,@{N="Path; E=       {$_. ExtensionData.Summary.Config.VmPathName}},@{N="NetworkAdapter '; E = {[string]: join (":", ($network_adapter_information |))} %{$_. {{(Nom + "," + _.NetworkName $}))}}, @{N = "MacAddress"; E = {[string]: join (",", ($network_adapter_information | % {$_.}))} MacAddress}))}}

    }

    Step 2

    # Unsubscribe virtual machines

    Remove-VM - VM $vm_list-RunAsync Verbose - confirm: $false

    Step 3

    $cluster = get-group 'b '.

    {foreach ($vm to $inventory)

    $ESXHost = get-Cluster $cluster | Get-VMHost | Select - 1 first

    New-VM - VMFilePath $vm. VMXPath - VMHost $ESXHost - location $vm. Folder - ResourcePool (Get-Cluster $cluster |) Get-ResourcePool $vm. ResourcePool)

    }

    # Save virtual machines

    foreach ($info in $information)

    {

    $vmxpath = $info. Path

    $resource_pool = $info. ResourcePool.Name

    New-VM - ResourcePool (ResourcePool-Get-name $resource_pool) VMFilePath - $vmxpath - RunAsync-Verbose | Out-Null

    }

    Step 4

    # Put the network cards

    foreach ($info in $inventory)

    {

    foreach ($network_information in ($info.NetworkAdapter - split ":"))))

    {

    $virtual_machine = $info | %{$_. Name}

    $network_adapter = ($network_information-split ",") [0]

    $network_vlan = ($network_information-split ",") [1]

    Get-VM-name $virtual_machine | Get-NetworkAdapter-name $network_adapter | Together-NetworkAdapter - NetworkName $network_vlan-Verbose-RunAsync-confirm: $false | Out-Null

    }

    }

    # Start the virtual machines

    foreach ($vm to $vm_list)

    {

    Start-VM - VM $vm. Name-RunAsync Verbose - confirm: $false | Out-Null}

    }

    Thanks in advance for any help.

    Hi all

    I made some changes to the script and it worked for me. We have added a host on the destination with all exchanges and storage mapped vCenter.

    $vm_list = get-Cluster-name 'Site B - b | Get - VM | Name sort

    $information = {foreach ($vm to $vm_list)

    $network_adapter_information = get-NetworkAdapter - VM $vm

    $vm | Select Name,PowerState,ResourcePool,@{N="Path; E=       {$_. ExtensionData.Summary.Config.VmPathName}},@{N="NetworkAdapter '; E = {[string]: join (":", ($network_adapter_information |))} %{$_. {{(Nom + "," + _.NetworkName $}))}}, @{N = "MacAddress"; E = {[string]: join (",", ($network_adapter_information | % {$_.}))} MacAddress}))}}

    }

    # Unsubscribe virtual machines

    Remove-VM - VM $vm_list-Verbose - confirm: $false

    $cluster = get-Cluster "Site A - clustera.

    {foreach ($vm to $information)

    $ESXHost = get-Cluster $cluster | Get-VMHost | Select - 1 first

    New-VM - VMFilePath $vm.path - VMHost $ESXHost - location $vm. Folder - ResourcePool (Get-Cluster $cluster |) Get-ResourcePool $vm. ResourcePool)

    }

    # Save virtual machines

    foreach ($info in $information)

    {

    $vmxpath = $info. Path

    $resource_pool = $info. ResourcePool

    New-VM - ResourcePool (ResourcePool-Get-name "test1") VMFilePath - $vmxpath - RunAsync-Verbose | Out-Null

    }

    # Put the network cards

    .

    foreach ($info in $information)

    {

    foreach ($network_information in ($info.NetworkAdapter - split ":"))))

    {

    $virtual_machine = $info | %{$_. Name}

    $network_adapter = ($network_information-split ",") [0]

    $network_vlan = ($network_information-split ",") [1]

    Get-VM-name $virtual_machine | Get-NetworkAdapter-name $network_adapter | Together-NetworkAdapter - NetworkName $network_vlan-Verbose - confirm: $false | Out-Null

    }

    }

    # Start the virtual machines

    foreach ($vm to $vm_list)

    {

    Start-VM - VM $vm. Name-RunAsync Verbose - confirm: $false | Out-Null

    }

    Hope this will help many of you.

  • Create a new vsphere environment 6 and migrate virtual machines to esxi existing 5.1

    The current environment has a cluster with 5.1 esxi hosts and vcenter server 5.5-controlled.

    I would like to create a new environment vsphere 6 with new hosts. Again I mean a clean install of vCenter server 6 and esxi, implementation of the new cluster, etc.. So I won't be able to migrate virtual machines running in 5.1 esxi hosts to the new environment.

    What would be the appropriate steps to make this right?

    Thank you.

    Take a look at this KB on how to move an ESXi host at another vCenter vSphere: VMware KB: move a managed ESX ESXi host to a vCenter Server to a different Server vCenter

    And if you are using vDS, you should look here: KB VMware: ESX/ESXi host with vDS passing a vCenter Server to another

  • Migrate virtual machines from HP G7(single host) for HP G8 (Cluster) without shared storage

    Hello

    I have 2 esxi host (hp dl 380 G8) and put them in a cluster and other host esxi (dl 380 g7) and I have no shared storage and use local disks just now I must spend my VM G7 server a cluster of the G8 but I want to know I can join my cluster g8 g7 and migrate web vmware machines without any downtime?

    I want to know can migrate without downtime with localdisk? I have no shared storage

    Best regards

    BAbak

    can I join g7 to my cluster of the g8

    You can mix into clusters hosts all desired, even Intel and AMD at least that you enable EVC on the cluster (of course, HA or DRS require shared storage compatible/CPU). However, you need not to have even just cluster hosts to migrate virtual machines through vMotion between them.

    migrate web vmware machines without any downtime?

    Don't know what this "web vmware' but yes, because ESXi 5.1, you can use"enhanced vMotion"to live migrate virtual machines without service interruption from one host to another, even without shared storage:

    Migration with vMotion in environments without shared storage

    The usual vMotion requirements apply. Also you can only live migrate virtual machines from the old host to the new hosts because of different generations of CPU (and back as long as you don't have bike powered virtual machines on new hosts).

  • migrate virtual machines between linked vcenters 5.1

    Hi all, is it possible? can I migrate virtual machines to different servers of vcenter ├a the State of related modes? Thank you

    If you want to try to move to a different data store, then you can consider V2V as well.

  • migrate virtual machines to esxi 3.5 free vsphere 4.1 without vcenter

    Hi all

    I have vms on 2 hosts esxi 3.5 with direct (without san)-attached storage that I want to migrate to a new server esxi under license of 4.1 vsphere essentials. I intend using the stand-alone converter to migrate virtual machines from 3.5 to 4.1 and then upgrade the other two hosts to 4.1 and then moving some virtual machines using the converter.

    I have Web servers that I don't want to bring down more than 10 to 20 minutes (not the 1 to 2 hours that should be a cold conversion with converter) so I try to use the feature p2v on the virtual machine running Web servers.

    Has anyone done this with no san and no vcenter? If so how did you do?

    is it possible to migrate without losing configurations of network adapter in the virtual machine?

    I can just do something like taking a snapshot of the system of runnying, then copy files to new host, then add to the inventory, upgrade tools, hardware upgrade?

    Thank you!

    is it possible to migrate without losing configurations of network adapter in the virtual machine?

    After you copy the files and re - add to inventory new virtual machine, you must take care on the issue of handgun that you see in the market.

    Choose I_moved the files to keep the VM UUID and the same virtual MAC address.

    André

  • Unable to migrate virtual machines from one ESX to another in a cluster

    I have 7 ESX in a cluster... 2 ESX are unable to migrate virtual machines into and out of the host... When we try to perform a manual migration, it displays the following error...

    Impossible to pass. Host CPU is not compatible with the requirements of the Virtual Machine to CPUID level 0 x 80000001 registry "edx" host bits: 1110:1111:1101:0011:1111:1011:1111:1111 required: 11 x 0:1 x 11: 1100:0011:1111:x 0x1: 1111:1111 inconsistency detected for these characteristics: * NX/XD (data execution protection). If the Virtual Machine does not have this feature, power off the virtual machine and delete the requirement of NX/XD by changing the settings of the virtual machine (advanced options).

    Looks like 2 of the 7 ESX has disabled NX/XD (or could be activated I don't know which) in the BIOS of the Server - VMware allows you to maske this characteristic shape the VM so it can vmotion between these hosts - initially put there where the NX/XD bit became more popular in order to allow users to migrate between these hosts with different parameters CPU-

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

  • vCenter roles and privileges to migrate virtual machines

    I created a custom role named 'Build VMs' that I have assigned to an ad group.  This role is assigned in the data centers, all spread and no. folder where elsewhere.  The role was designed to allow a specific group of users to manage virtual machines (create, move, delete, but not clone, etc.).

    For the most part, it works fine, but I have a problem: they cannot migrate powered off VMs.  vMotion is available and works, but I need to move a cluster virtual machines to a different (more old hw & 3.5 to new hw & 4.1).

    The role has the following privileges:

    Name                                Id
    ----                                --
    Anonymous System.Anonymous
    View System.View
    Read System.Read
    Create the folder Folder.Create
    Allocate space Datastore.AllocateSpace
    Update of virtual machine files Datastore.UpdateVirtualMachineFiles
    Configure Network.Config
    Affect the Network.Assign network
    Change DVSwitch.Modify
    Operation of DVSwitch.PortConfig port configuration
    Setting of port DVSwitch.PortSetting operation
    Change DVPortgroup.Modify
    Create the virtual machine Host.Local.CreateVM
    Reconfigure the virtual machine Host.Local.ReconfigVM
    Create new VirtualMachine.Inventory.Create
    Create existing VirtualMachine.Inventory.CreateF...
    Register VirtualMachine.Inventory.Register
    Delete VirtualMachine.Inventory.Delete
    Unregister VirtualMachine.Inventory.Unregister
    Move VirtualMachine.Inventory.Move
    Power VirtualMachine.Interact.PowerOn
    VirtualMachine.Interact.PowerOff power off
    Suspension VirtualMachine.Interact.Suspend
    Discount to zero VirtualMachine.Interact.Reset
    Question answer VirtualMachine.Interact.AnswerQu...
    Console interaction VirtualMachine.Interact.ConsoleI...
    Device connection VirtualMachine.Interact.DeviceCo...
    Configure support CD VirtualMachine.Interact.SetCDMedia
    Configure floppy media VirtualMachine.Interact.SetFlopp...
    VMware Tools install VirtualMachine.Interact.ToolsIns...
    Buy tickets to control comments VirtualMachine.Interact.GuestCon...
    Defragmentation of disks all VirtualMachine.Interact.Defragme...
    Turn on the VirtualMachine.Interact.CreateSe of fault tolerance...
    Disable VirtualMachine.Interact.TurnOffF of fault tolerance...
    Test failover VirtualMachine.Interact.MakePrimary
    Restarting the VM VirtualMachine.Interact.Terminat secondary...
    Disable VirtualMachine.Interact.DisableS of fault tolerance...
    Enable fault tolerance VirtualMachine.Interact.EnableSe...
    Record session on Machine virtual VirtualMachine.Interact.Record
    Review the session on virtual computer VirtualMachine.Interact.Replay
    Backup operation on a virtual machine VirtualMachine.Interact.Backup
    Create a screenshot VirtualMachine.Interact.CreateSc...
    Rename VirtualMachine.Config.Rename
    Add a disk existing VirtualMachine.Config.AddExistin...
    Add the new disk VirtualMachine.Config.AddNewDisk
    Remove the VirtualMachine.Config.RemoveDisk disc
    Raw device VirtualMachine.Config.RawDevice
    Host VirtualMachine.Config.HostUSBDevice USB device
    Change the number of CPU VirtualMachine.Config.CPUCount
    Memory VirtualMachine.Config.Memory
    Add or remove devices VirtualMachine.Config.AddRemoveD...
    Change the settings of the device VirtualMachine.Config.EditDevice
    Parameters VirtualMachine.Config.Settings
    Change resources VirtualMachine.Config.Resource
    Updating of the virtual hardware VirtualMachine.Config.UpgradeVir...
    Reset the VirtualMachine.Config.ResetGuest customer information...
    Advanced VirtualMachine.Config.AdvancedCo...
    Lease of disk VirtualMachine.Config.DiskLease
    Swapfile placement VirtualMachine.Config.SwapPlacement
    Extend the virtual disk VirtualMachine.Config.DiskExtend
    Change disk monitoring VirtualMachine.Config.ChangeTrac...
    Unlock the virtual machine VirtualMachine.Config.Unlock
    Queries files without owner VirtualMachine.Config.QueryUnown...
    Reloading the way VirtualMachine.Config.ReloadFrom...
    Compatibility VirtualMachine.Config.QueryFTCom of the fault tolerance of queries...
    Customize the VirtualMachine.Provisioning.Cust...
    Promote records VirtualMachine.Provisioning.Prom...
    Deploy the model of VirtualMachine.Provisioning.Depl...
    Clone model VirtualMachine.Provisioning.Clon...
    Mark as virtual machine VirtualMachine.Provisioning.Mark...
    Read about the customization VirtualMachine.Provisioning.Read...
    Edit the VirtualMachine.Provisioning.Modi customization specifications...
    Allow access to the disk VirtualMachine.Provisioning.Disk...
    Allow access to the read-only disc VirtualMachine.Provisioning.Disk...
    Assign the virtual machine resources... Resource.AssignVMToPool
    Migrate from Resource.HotMigrate
    Query vMotion Resource.QueryVMotion

    It is the main thing I thought it would take to a simple move of a virtual machine while it is turned off:

    Name                                Id
    ----                                --
    Move VirtualMachine.Inventory.Move

    I gave to create a folder because some of the permissions were not yet allowing the creation of virtual machines, even though it probably isn't necessary.

    Any ideas?

    ~ Luc
    http://thephuck.com

    What happens if you add resources > permission to move?

  • Best way to migrate virtual machines to new ESXi hosts with a different configuration of networking.

    We currently have a cluster of 6 Dell machines that move VM 120 or so on ESXi 5.5. Networking consists of a dVswitch with 6 uplinks that map to 6 x 1gig physical NETWORK adapters on each host ESXi... These are grouped into 3 trunks / gal, so we have 2 GB by SHIFTING of the bandwidth and failover. The LAGS are configured as follows:

    LAG1

    Traffic to our (NFS) shared data store and management of ESXi. (vmk0)

    LAG2

    Access to the network of the VM - groups of different ports on different VLANS

    LAG3

    vMotion (vmk1)

    We just bought 6 new Dell machines that have connections fiber 2 x 10gig each. The idea is to bring together in a 20Ggig LAG by machine that will handle all of the traffic, so traffic NFS data store, network traffic from the VM, vMotion and traffic management ESXi.


    What is the best way to migrate the virtual machine in the cluster existing to the new machines? Many of the virtual machine are essential, so we cannot stop time.


    Can I create the new DELAY on existing dVswitch and put it as an auxiliary card? I'll be able to do it for all 3 of the above both above LAGS?


    Thanks for the info Alistar, it's almost here. The bit that was me stumping was that after establishing a new dVswitch I received messages that the new dvSwitch was not reachable on the old host, when I tried to migrate the virtual computer.

    The solution (with the permission of VMware Support) was that I need to add the two dVswitches to one of the old hosts, then assign a physical alternative on this host uplink to a temporary 3 uplink on the new dVswitch. I then tag all the relevant VLAN that uplink.

    This way I can first migrate the virtual machine to the new dVswitch networking so I can move the computer to the new cluster.

    Obviously I can only migrate from old to new cluster with a single host. each virtual machine must be a double for the host with 2 switches, and then to the new cluster. I also had to have the two dVswitches to the same version.

    Fortunately, I had a physical rising spare on the hosts of the old, otherwise I would have had to break one of the trunks and re-use of one of these uplinks.

    Oh and be aware, impossible to use the same names for groups of ports 2 DV switches, they must be unique!

    Nick

  • PowerCLI script to migrate virtual machines to the new vCenter environment

    Hello world

    in the next few weeks, we need about migrate 700 VMs (Windows/Linux) server to a new environment (new vCenter, new hosts, but VMs will remain on same data warehouses). VMs will be migrated not in one batch, but rather from time to time (which, however, can understand the need to migrate some 10s of virtual machines at the same time).

    Cluster names and folder structure will be identical to the old and the new vCenters. As host in the new vCenter names differ from those in the old vCenter, thought to provide a table of 'translation', which tells the script to save a given VM on host B (new vCenter) when having been registered in order to host a (old vCenter) and so on.

    I thought writing a PowerCLI script which, broadly speaking, can accomplish the following steps:

    • Connect to vCenterOld and vCenterNew
    • Correspondence table of host to read from a file (see step "register VM vCenterNew below)

    Then, in a loop:

    • Ask VM name
    • Get the settings of the virtual machine: Datastore/path, network/Portgroup, HA restart priority, host, folder, note
    • View the parameters and the VM name and request confirmation migrate the virtual machine
    • Turn off VM (closed OS gracefully, but force power off if power status is still not equal 'off' after a time given)
    • To unsubscribe from VM vCenterOld (removal of inventory)
    • Registry of the VM to the data store vCenterNew (assumptions: same folder as vCenterOld, host names are different, but for each source in vCenterOld host a host of destination in vCenterNew for you join the virtual machine to can be provided, that is, CSV)
    • The value of VM portgroup (same name as in vCenterOld)
    • Set VM HA restart priority
    • PowerON VM
    • Wait / check the VM (for example, ping) connectivity / continue immediately if the virtual machine is accessible or after a certain time if the virtual machine is still inaccessible
    • Confirm that the virtual machine has been migrated successfully, OR ask the user to check the connectivity of the virtual machine

    Now to my questions:

    • Is anyone know about an existing script that does something similar or contains parts that can be useful to compile a script like this?
    • How can vCenter two connections at the same time been managed within a PowerCLI script - or doesn't work at all and a connect/disconnect to/from the two vCenters must be completed for each virtual computer?

    Many thanks for any help.

    The following seems to work for me

    $vm = Get-VM -Name MyVM$nic = Get-NetworkAdapter -VM $vm $vdPG = $nic | select -ExpandProperty NetworkName
    
    Get-VDPortgroup -Name $vdPG
    
  • migrate virtual machines from view 5.1 5.2 view Horizons

    Rather than upgrade my current view 5.1 deployment, I'm looking to the installation environment a separate Horizon view 5.2 to migrate to. (1 VCS and 1 VSS)  My users are on dedicated desktop computers that I want to keep during the migration to the new environment.  Is it possible to add desktop computers in a pool without using the template for the pool?   What is the best way to do it?

    Thanks in advance.

    This depends a lot on whether the pool of dedicated assignment users using right now cosists of related or desktop full clone clones. If you use clones related, there are not many things can be done, except so use the Windows Easy Transfer utility to export the profiles of existing virtual machines, hover over the users to a new pool and then use WET to restore their profiles. In addition, if you use Persona for the existing pool, which would save the profile and settings, but any installed application would go when users have been moved to the new linked clone pool.

    If you use full clone desktop computers, you could remove the portal administrator existing display, but not delete disk can create a pool of manual in the new portal administrator display and add the desktop full clone existing to the new pool. This assumes that the old display environment and a new share a common vCenter Server and underlying hosts. Otherwise, you will need to pass a complete clone of a vCenter to another (probably by exporting an ovf of this virtual machine) and then import it into the new.

    I think that there are options, but none of them are ideal. In any case, it would be a good idea to use something like the WET utility to ensure that you have a valid backup of the user's profile before you do anything else.

  • Maintenance mode migrates virtual machines only from GUI

    We have 6 * 5.1 with configured ESXi HA, DRS and a 5.1 Vcenter.

    If we put an ESXi in maintenance mode through the user interface of Vcenter all virtual machines will be to migrate to other hosts, there is no problem at all.

    But if we put the same through VMA host in maintenance mode, virtual machines will suspend mode and the host goes into maintenance mode. On the GUI in Vcenter we get a message that a migration will not work in the current state. Due to the fact that the message is in German, there's not so much sence to post it here, I guess.

    Background is, we have two or three guests time in different places. Two locations in separate buildings, with separate power supply and separate UDP for this purpose.

    So if a location powerd down the udp Protocol must stop the hosts in this place and the virtual machines have to migrate over.

    SVMotion is not necessary, the SAN is a unit of mirroring automatc.

    Please take a look at Re: scripted Maintenance Mode to see if that helps.

    André

  • migrate virtual machines to new host

    How can I migrate easily all my virtual machines (12) on my current 5.1 ESXi host to new host ESXi 5.1... ?

    [1] put the former host's hard drive in the new host and perform an upgrade from 5.1 ESXi installation disk (the hard drives of the two hosts are the same)?

    [2] put HDD in the new host as a secondary, pop disk in the ESXi 5.1 installation disc to install ESXi 5.1 on the new host's hard drive, but migrate/import virtual machines from the data on the secondary drive (drive old host) store? the host of the former

    [3] pop in the ESXi 5.1 installation disc to install ESXi 5.1 on the new host's hard drive. Once completed, put the hard drive of the host of the former in the new host as a secondary drive and copy/import virtual machines from the data store on the secondary drive (drive old host) using VMware vSphere Client?

    [4] install ESXi 5.1 on the new host, he networked with the old host and use VMware vCenter Converter to import virtual machines from the old host?

    What might work is engaging the larger disk of 'old' to a SATA port once you have installed the disk again, ESXi. Attaching to a port USB probably won't work because VMFS volumes are not supported on USB devices.

    André

  • Migrate virtual machines to a different table

    Hello

    We need to migrate a cluster of 550 virtual machines from one storage array to another with downtime.

    We are on vSphere 5.0U1.

    Fortunately, @vNiklas helped us with a script to do this.

    Just testing the script we encountered an error and stripped down to this:

    C:\Program Files\VMware\Infrastructure\vSphere PowerCLI PowerCLI > $dsNameHDD1 = "N-SRZ-PLATIN-S-L60.

    PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI > $vm = "client vmware".

    PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI > $HDDs = Get-disk hard - VM $vm

    C:\Program Files\VMware\Infrastructure\vSphere PowerCLI PowerCLI > $spec = New-Object VMware.Vim.VirtualMachineRelocateSpec

    PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI > $spec.datastore = (Get-Datastore-name $dsNameHDD1). Extensiondata.MoRef

    C:\Program Files\VMware\Infrastructure\vSphere PowerCLI PowerCLI > $HDDs | %{

    > > $disk = new-Object VMware.Vim.VirtualMachineRelocateSpecDiskLocator

    > > $disk.diskId = $_. Extensiondata.Key

    > > $disk.datastore = $_. Extensiondata.Backing.Datastore

    > > $spec.disk += $disk

    {> >}

    > >

    PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI > echo $spec

    Data store: Datastore-datastore-13956

    DiskMoveType:

    Pool:

    Host:

    Disk: {2000, 2001}

    Transform:

    LinkedView:

    DynamicType:

    DynamicProperty:

    #-> locks of this good so far. We have the target data and the disk store target in the display #-> we also tried to define the DiskMoveType because this parameter is new to vsphere5 but we got the same result

    #-> so call us the method with the PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI $spec > $vm. Extensiondata.RelocateVM_Task ($spec, defaultPrior"

    Ity")

    You can not call a method on a null value expression.

    On line: 1 char: 34

    + $vm. Extensiondata.RelocateVM_Task < < < < ($spec, "defaultPriority")

    + CategoryInfo: InvalidOperation: (RelocateVM_Task:String)], RuntimeException

    + FullyQualifiedErrorId: InvokeMethodOnNull

    C:\Program Files\VMware\Infrastructure\vSphere PowerCLI PowerCLI >

    Any idea where the problem is maybe?

    Best regards

    Daniel

    Above, you have $vm assigned a string, not a VM object. Do you attribute elsewhere?

  • Manually migrate virtual machines from the host is not responding.

    I have a 3 host cluster.  One of the guests became unresponsive.  Continue to run all the virtual machines connected to the host is not responding and I can't RDP for them.  I am able to SSH to the host does not respond, but not connect via vCenter.

    Restart the services will cancel the virtual machines running?  If this isn't the case, then what is the command to restart the services?

    What is the best plan to manually migrate those virtual machines for the other two hosts?

    SSH, cd to \usr\sbin, then run "services.sh restart" (without the quotes). Which will restart management services, with no impact to your VM. Then you should be able to re - connect with Vcenter.

Maybe you are looking for

  • Display the yellow iPhone 7

    The display on my iPhone 7 has a yellow tint.  As for the phones in the store and nothing like under the name "gorgeous" as the colors on my iPhone 6.  There is a filter that you can apply to "solve" the problem, but it tarnishes the colors compared

  • iPhone 5 s do not turn on or charge.

    So today my iPhone 5s, I had a little less than 3 years was working normally, but then the battery is dead so I plugged it in and the Red battery logo appeared as usual but was for centuries, but then the phone turned off completely, the screen is co

  • How can I get Firefox to leave the faucet down on my Mac? For the moment, I have to force close down.

    I have an iMac and I'm running 10.4.6I am running Firefox 3.6.26 My problem is, when I shut down my computer, Firefox is not quite, so I have to force Firefox to quit. He's not leaving when I click on leave. Before this problem appears, Firefox would

  • Windows Server 2008 on Pavilion h8-1170uk

    I am trying to run Windows Server 2008 on a Pavilion h8-1170uk. The software works ok but will not connect to the network. I found a thread on the forum to discuss a similar problem with the Pavilion p7 - 1227c, which recommends a link for the approp

  • How to create a new password to the e-mail sri_94@live.co.UK account?

    A friend M had an e-mail [email protected] for a long time account. It has been implemented by her husband who is now serving in the forces abroad. Suddenly she couldn't access e-mails using his password. Ehe somehow she ended up by creating a new pa