Specify the destination data store

Can someone tell me how to specify the destinaion for a conversion job data store.  For now, it is to choose a (seemingly random) default data store based on the host (also a seemingly random choice by default).

I can't find anything on a data store in the definition of the target.

Thank you

William

Hello

First of all to respond to the selection of the host.

If you are targeting a VC and your VM need to be deployed on specific ESX you must set the property 'host' to 'ConverterTargetVmSpecManagedVmLocation '.

Host property is ManagedObjecReference to "HostSystem" (see Ref. guide). Thus, the code should look like similar to (java):

ConverterTargetVmSpecManagedVmLocation targetVMLocation = new ConverterTargetVmSpecManagedVmLocation();

........

ManagedObjectReference targetESX = new ManagedObjectReference();
targetESX.setType ("HostSystem");
targetESX.set_value("host-93"); can get real value through the VC API

targetVMLocation.setHost (targetESX);

To answer the second question - for selection of storage.

If you want to select certain data for the target VM store when managed destination is used you must set the property 'vmxDatastoreName' of the data object 'ConverterStorageParams' (it is property of ConverterCloningParams, which is prop from ConverterConversionParams, which are the pillar of the ConversionJobSpec).

If you want virtual disks virtual (file hard) machine is stored in different data store of VMX data store, you must set property 'datastoreName' of the data object ConverterStorageParamsManagedTargetDiskParams (which need to be addressed for the post of pillar of object 'ConverterStorageParams')

I hope this helps.

Tags: VMware

Similar Questions

  • Shrink a VM HD - is the destination data store need to have enough space for the source or destination VM?

    Hi all

    I have an existing file with HD Server configures:

    HD1: 60 GB

    HD2: 20 GB

    HD3: 650 GB

    Total: 730 GB

    I intend to shrink HD3 250 GB that will give me a new total of 330 GB.

    My question is, when I rode the VMware Converter Standalone process and I get to the step where I select the 'destination '.  Obviously, I need to select a data store that can adapt to the virtual destination machine.

    My concern is that it shows the size of the source disk (Go 730) (see image below), and for some reason any part of the conversion process the destination data store requires the storage of the size of 330 GB vm 730GB as opposed to the 'new '.

    source disk size.PNG

    Can anyone confirm?

    Thank you

    There are no for the data store 730 GB free in order to submit the conversion. 330 GB free (size after reduction) would be sufficient.

    If you also select a provisioning, you could even start the conversion with less free space on the data store, but it may fail at some point, if the actual data meet.

  • 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

  • Cloning of VM/TIME to the different data store

    Hi all

    I am working out scripts excellent clone of Ruben garcia and one thing I'm trying to add is to have the VAPP created on a different data store.

    # Clone and move virtual machines
    {foreach ($vm to $vms)
    $vm = $vm | Get-opinion
    $vmname = $cloneName + "»" + $vm.name "
    . \LcloneVM $vm.name - cloneName '$vmname' - «$PortGroup» PortGroup
    Get-vm-name $vmname | Move-vm-destination $vapp;
    The virtual machine are getting cloned and then inserted in the passed TIME as a parameter name, but I can't understand how do to have the VAPP will be created on a data store that I specify. At this time the vApp is created on the same data store where the linked clones. Can I travel after from the user interface by using the migrate command but I want if possible to automate it.
    I thought that the next line should work but the VAPP fails when creating, so the move-vm command fails later.
    # Create VAPP
    $vapp = $host_name | VAPP-new-name "$cloneName" - data store "ThinDiskTesting"

    I am at a loss to what im doing wrong

    Post edited by: BrianRTS - difficulty of setting in the form

    You can specify the data store where you want to create linked clone delta files.

    This requires a slight modification to the script of Ruben

    # Generate specs for clone
    $cloneSpec = new-object Vmware.Vim.VirtualMachineCloneSpec $cloneSpec.Snapshot = $sourceVM.Snapshot.CurrentSnapshot $cloneSpec.Location = new-object Vmware.Vim.VirtualMachineRelocateSpec $cloneSpec.Location.DiskMoveType = [Vmware.Vim.VirtualMachineRelocateDiskMoveOptions]::createNewChildDiskBacking $cloneSpec.Location.Datastore = (Get-Datastore -Name $tgtDatastoreName).ExtensionData.MoRef
    

    Ownership of the data store is used to indicate where the clone should be placed.

    Or you want to create the clones, then move them?

  • Good way to use the concurrent data store

    Hello

    I'm developing a multithreaded C++ application that uses the C++ of Berkeley DB Library.

    In my case, I have several databases that I composed in a wooded area. It is important for me to use an environment because I need control over the cachesize parameter.

    I don't need no guarantee of transaction and have for most of the readings, so I decided to use the "simultaneous database.

    I first pre-fill all databases with a number of entries (configuration single-threaded phase) and then work on it at the same time (for most readings, but also insertions and deletions).

    I tried all kinds of different configurations, but I can't work without specifying DB_THREAD as a flag of the environment.

    I don't want to because then access all handles is synchronized sequentially according to the documentation:

    "... Note that the activation of this indicator will serialize calls to DB using the handle between the threads. If

    simultaneous scaling is important for your application, we recommend handles separate for each thread opening

    (and do not specify this indicator), rather than share handles between threads. "

    (Berkeley DB QAnywhere C++)

    So I tried to open the environment with the following indicators:

    DB_CREATE | DB_PRIVATE | DB_INIT_MPOOL | DB_INIT_CDB

    All data in this environment handles are open only with the DB_CREATE flag.

    So, since my understanding this same basic access handles need to be synchronized, I opened separate handles foreach database for each thread (opening the handles is still single-threaded).

    In my first approach, I have only made use of the object of global environment. Which does not work and gives the following during operations error message:

    DB_LOCK-> lock_put: Lock is no longer valid

    So I thought, since the same handle global env is passed to all handles separate DB, it is perhaps a race condition critical on the handful of approx.

    So in my next test, I opened also handles separate EPS in each thread (and db handles owned each).

    That does not produce an error in db, but now it seems that each thread sees its own version of the databases (I call it stat early in the life of each thread and he sees all of the empty dbs).

    What is the right way to use the concurrent data store? Each thread should really open his own set of db handles? What about the number of open handles env?

    PS: Without specifying that the DB_PRIVATE flag seems to do the job, but for performance reasons, I want all operations to perform in the cache and do not specify product DB_PRIVATE average of several writes to the disk for my scenario.

    Thanks a lot for your help.

    CD (simultaneous database) allows a single editor with multiple drives, access to the db at a given point in time.    The handle for the writer doesn't have to be shared with readers.   If you share the DB handle then calls are synchronized, but if each thread has its own handle DB then this is not the case.     Since you have an environment, DB_THREAD must be at the level of the environment.   This will allow the sharing of the environment handle.     This type of error "DB_LOCK-> lock_put: Lock is no longer valid" you can provide us your code so we can take a look.   Also what BDB version are you using?

  • ESXI 5.1 "the disc is not thin-provisioned" after copying to the new data store vmdk

    I wanted to create an external backup as a 2nd VM ready-to-run on the 2nd data store.

    I've removed all snapshots, stop the machine virtual and exported the OVF file to a computer, adjusted to the size of the original virtual machine starts in Gparted to update the partition and restart. All very well.

    I then tried to deploy the OVF in the data store alternative (235GB slim, thickness according to the deployment of 250 Wizard). I tried both thick and thin but the error message "cannot deploy the OVF. The operation was cancelled by the user.

    I then manually downloaded the VMDK & OVF file to the 2nd data store and tried to inflate but then received the message "a specified parameter was not correct. The disc isn't thin provisioned. ».

    It seems I have dealing with the same thing, as this is the document here (http://pubs.vmware.com/Release_Notes/en/vsphere/55/vsphere-vcenter-server-55u3-release-notes.html).  However, I have no idea what to do now... and I'm worried because it seems that my backup plan may not work if I can't restore an OVF/VMDK from a disk of visas.

    The solution to the first problem here: https://communities.vmware.com/message/2172950#2172950 that solved my problem 2nd too.

  • Clone the virtual machine to the local data store

    Hi all

    I'm looking to automate a task daily (or almost) of my friends with a small script with powercli.

    I'm trying to "backup" or to clone a virtual machine, I work in a storage of one of our servers.

    The servers are managed by a 5.1 vCenter and the machine is on a shared storage.

    From time to time, I clean, stop the machine, remove all snapshots and clone the virtual machine to one of the local server as a backup storage. So I put together a small script which almost works. It works as long as the target data store is a shared storage, but not with a local storage.

    I get always an error that claims it can not access the local data store and is not a permissions problem...

    Given that I can accomplish this via the customer without problem I thought it is possible via powercli too, or I'm wrong?

    My Script up to now:

    # Variables
    $VC = "vc.domain.com" #vCenter Server
    $User = "domain\user" #User
    $Pass = 'test123' #User PW
    $VMName = 'scripttest' #VM
    $BackupSuffix = "backup" #Suffix to add the name of VM to mark this as a backup
    $VmHost = "esx2.domain.com".
    $Datastore = 'ESX2-LocalData' #Datastore
    $BackupFolder = 'Backup' #Folder the VM gets classified


    # Register cmdlets to VMware

    If (-not (Get-PSSnapin VMware.VimAutomation.Core - ErrorAction SilentlyContinue)) {}

    Add-PSSnapin VMware.VimAutomation.Core

    }


    # Connect to the server

    SE connect-ViServer $VC - user $User-password $Pass


    # Remove the old clone

    $OldBackups = get - VM | WHERE {$_.} {Name: corresponds to '$VMName - $BackupSuffix'}

    If ($OldBackups - don't "")

    {

    If ($OldBackups.Count - gt 1)

    {

    Write-Host "better check! "Found several results:

    Foreach ($VM to $OldBackups)

    {

    Write-Host $VM. Name

    }

    }

    on the other

    {

    Remove-VM - VM $OldBackups - DeleteFromDisk-confirm: $false

    }

    }


    # Clone VM

    $VMInfo = get - VM $VMName | Get-View

    $CloneSpec = new-Object Vmware.Vim.VirtualMachineCloneSpec

    $CloneSpec.Snapshot = $VMInfo.Snapshot.CurrentSnaphshot

    $CloneSpec.Location = new-Object Vmware.Vim.VirtualMachineRelocateSpec

    $CloneSpec.Location.Datastore = (get-Datastore-name $Datastore |) Get - View). MoRef

    $CloneSpec.Location.Transform = [Vmware.Vim.VirtualMachineRelocateTransformation]: sparse

    $CloneFolder = $VMInfo.Parent

    $CloneName = "$VMName - $BackupSuffix".

    $TaskCloneID = $VMInfo.CloneVM_Task ($CloneFolder, $CloneName, $CloneSpec)


    # Check if the task is completed


    $Check = $false

    While ($Check - eq $false)

    {

    $Tasks = get-job | Select State, id | Where {$_.} State - eq "Running" - and $_. State - eq "pending"}

    ForEach ($Task in $Tasks)

    {

    If ($Task.id - eq $TaskCloneID)

    {$Check = $false}

    on the other

    {$Check = $true}

    }

    Start-Sleep 10

    }

    # Move clone to the backup folder

    Move-VM - VM '$VMName - $BackupSuffix' - Destination $BackupFolder


    # Disconnect

    Disconnect-VIServer-confirm: $false

    Can you show us the complete error message you get?

    BTW, the clone step can be replaced by the New-VM cmdlet with the setting of the virtual machine.

  • Increase in the size of block of the local data store

    I tried from Googling and it involves a lot of things from the command line and seems to be different ways of doing.

    They say that I need to format the drive again and specify a block size.  But isn't ESXi installed on the same partition? If I reformat it, it won't get rid of the ESXi software?

    Where can I get easy step by step instructions on how to do this?

    If you have no data, go to Configuration / Storage and remove the existing data store.

    Then choose Add datastore.

    André

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

  • Timestamp in the default data store is logical length of 13

    I inserted a data store in the designer, the table lists fields that are TIMESTAMP (6) WITH ZONE SCHEDULE

    The column of the logical data store default length is 13.

    Execution fails with ORA-30088 because the ddl of the temporary table is TIMESTAMP (13) WITH ZONE SCHEDULE

    I fixed the problem by changing the 05:47 on each column.


    I want to know is how can I change the default to 6?
    Or why is ODI not pick up it correctly?

    Is there any solution for this?

    Hello

    Topology of Goto---> physical architecture---> Oracle---> expand the types of data and change the TIMESTAMP WITH time ZONE SCHEDULE

    See if the following is specified by report "Create table syntax" and "type of data accessible by writing syntax".
    TIMESTAMP WITH TIME ZONE (%)

    If so, then change the same and remove (%).
    that is, it will become TIMESTAMP WITH time ZONE SCHEDULE

    Save and run your interface.

    Thank you
    Fati

  • specify the start date of subscription plan?

    How can I specify the start date for a subscription to a plan (as the land line + mobile for the plan of Britain)? I would like to be covered for the month of September. I have to wait until September 1 before you subscribe and pay?

    Thank you

    Rob

    RobIreland wrote:

    I have to wait until September 1 before you subscribe and pay?

    Hello and welcome to the Skype community.

    Yes, you do.

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • Need to create a structure for the target data store?

    Hi Experts,

    If I create a structure for the target data store, and then load the data from source to target works fine. If I make mistakes.

    Is necessary to create a structure for target?

    Please help me...

    Thanks in advance.

    A.Kavya.

    I found the answer. No need to create the structure for target temporary data store. and we need to create the structure for the permanent target data store.

  • remove the Cluster data store data store

    I have an infrastructure with vCenter and ESXi 4 5.5 I have a data cluster store in SAN with 8 Mon, I need to remove 3 Lun (to be used for other purposes) what is the appropriate procedure

    to remove the Lun (end then to destroy)? Thank you

    Do you want the LUN to use for purpose of non-vSphere? If so, you can just storage vMotion virtual machines since associated LUN data warehouses that you want to decommission (or simply putting the data store in maintenance mode, in this way, that the virtual machines will automatically be migrated). Cleaning after the data store, move the data store from the cluster data store, and then delete the VMware environment data store as described here: best practices: how to properly remove a unit number logic of a host ESX - VMware vSphere Blog - VMware Blogs

  • Extremely high latency during the migration of the local data store to data store shared.

    Hi guys I hope you help me. Sorry for my English btw, I'm not native.

    Let's start!

    I have:

    1 vCenter
    1 host
    1 Distributed Switch (with a pg for managing network/IPstorage the esxi)
    1 standard switch (empty)
    1 FreeNAS to provide iSCSI LUNS
    1 Microsoft to provide iSCSI LUNS

    When I try to migrate virtual machines between the warehouses of shared data or data shared at local store, all right. The problem has become when I try to migrate virtual machines from the local to the shared data store. All data stores down (all paths down) and back up and I get this error:

    "Error caused by the /vmfs/volumes/volumenID/VMDirectory/Disk.vmdk file.


    When I try to migrate virtual machines from the local to the FreeNAS iSCSI data store it fails immediately.
    When I do the same local Microsoft iSCSI datastore that it takes a time loooooong to migrate the virtual computer, give it to me even all the paths downwards and uplinks down error but not lacking in migration.

    I'll give you some screenshots to see the errors.

    Thank you very much!

    EDIT: I have extremely high latency notice when I try to migrate from the premises of warehouses of shared data. average 2000ms with peaks of 50,000 (see my response below for more information)

    Finally, I found the solution! The problem is that I have been using E1000E vmnic instead of vmxnet3. I have configured an adapter vmxnet3 and boom! 20 ms in all migration!

    Thank you to all for help, especially Nick_Andreev !

  • Expand the Local data store

    Hello

    I have an ESX 4.1 with only a data store local (RAID5) on virtual machines on a DELL Server

    I want to enlarge the data store, I don't have enough free space to create multiple virtual machines.

    To do:

    -Install a new hard drive (with vmware powered)

    -Add the new hardisk to Raid5 with DELL Open manage

    -wait finally extend raid 5

    -Power Off Vmware machines?  or continue started?

    -Develop with local Vshpere the data store vmware (what time must expand?)

    I want to know if I can do an extension with the new space unpartitioned on local existing datastore without losing my virtual machines? I have only the local data store with esxi when I develop the esxi continue to work?

    Can someone help me?

    Concerning

    Yes, it's quite OK.

    If this solved your problem, please mark it as answered.

    See you soon,.

    Adil Arif

Maybe you are looking for

  • How to use AppleScript to create a menu shortcut in figures?

    Does anyone know how I can create a pop up menu numbers using AppleScript. say application "Numbers". activate say le first table of the sheet active of the document 1 the value the format of cell "B3" to popup menu end say end say I can create a pop

  • When the mouse is flown over link, url is not always the real url

    I use version 4.0.I noticed that the url shown when you hover over a link isn't always the real url, it's annoying because I want to see when I think of going before I go. I don't want the real destination is hidden. Is there an easy way to see the t

  • conditional error for comparison of sine waves

    Hi all I do a small program concerning some changes in the sine waves, and later I compare to set my status. I can't get through this error. I really want to put out as Boolean so my loop condition is attached to this release. Everyone please help Co

  • Netflix will not load up to in Windows Media Center more.

    I've had Netflix service for about two months now. Up to two days, I was able to stream movies through Netflix and Windows Media Center option. Now it will not load anything. It will allow me to connect to Netflix, but I can't get something and my in

  • system has recovered from a serious error

    I have a desktop hp d4100 with wxp sp3, intel pentium d 3.2 ghz and 3.5 GB of ram. It restarts itself automatically after some time when it is inactive (it never restarts when I am using any application) and when you start BACK it gives an error mess