Changing the order of the drives using the VI SDK

Hello

I'm changing the order of the discs using the VI API SDK. Can anyone help me in doing this. Currently I have remove all the diskdevices and make a ReconfigureVM_Tak followed by adding disk devices in the order of the prefeered and new call to the ReconfigureVM_Task.

On this I finish by adding records in the same order, which has been defined as a prerequisite for these operations.

Any kind of help in this is apprciated.

THX,

Germain

So my question is why exactly are you doing this? If the disks are empty, then simply put any drive you want to be the first and foremost.

The label "Hard disk X" is just to let you know how many disks is attached and which adapter/SCSI bus is on. If you have added disk0-2 and you remove and you add back them in reverse order, then disk2 will now label 'disk 1' since this is the first record added. What really matters is the map/bus it's on, because the OS will see the readers in a certain order, which is what I think that where it counts.

At this point, you will never get the labels to be "inverted" because the labels are generated to ensure uniqueness through the number of disks.

I hope this makes sense, so the recommendation is to order the disks in the order in which you want the OS to see it, that will be by selecting the map/bus

for example SCSI0:0, SCSI0:1, SCSI0:2...

=========================================================================

William Lam

VMware vExpert 2009

Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

Twitter: @lamw

repository scripts vGhetto

Introduction to the vMA (tips/tricks)

Getting started with vSphere SDK for Perl

VMware Code Central - Scripts/code samples for developers and administrators

150 VMware developer

If you find this information useful, please give points to "correct" or "useful".

Tags: VMware

Similar Questions

  • Change the source SDK files

    I'm currently editing the Flex SDK Source files to fix some bugs in the DataGrid. I found the source code files in the Program Files directory to: C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\source\mx. I am able to open these files in Flex and edit the code. However, when I compile my application and try to browse the code, it seems that the SDK files do not get compiled.

    How to compile the Flex SDK files after changing them.

    Bill

    Here's what you do:

    Make a copy of the source file in your own project directory, BUT use the EXACT SAME path. For example, mx.controls.DataGrid must go in the mx/controls directory in your project. In this way the compiler will pick up files changed on those in the SDK. In other words, do not modify the code in the framework source directory, copy and modify the copy.

    You can also do this with your own CFCS (library Flex) and then whenever you want to use your code to ours, simply place your CFC above ours in any Application Flex project library path you use.

    Warning: we do not support your changes - you are responsible for them.

    Also: Please fill a bug report when you find something: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • I changed the hard drive and was invited to provide an activation code in order to achieve the functioning of the operating system

    I had problems with my PC which is an old, 2003 E - business machines, I changed the hard drive and was invited to provide an activation code in order to achieve the functioning of the operating system, it is the third time that I had to do it in 2 years, a message came back to me that I could use this activation key which is Microsoft XP Home Edition... any suggestions I'm a student who can't afford to keep buying these keys to get my PC running, I have homework to fill out online... Please help

    Use telephone activation, say nothing, and you will possibly connected to a human being.  They should be able to sort out you.

  • I used my iMac as a hard drive backup to my macbook once. Now when I update to El Capitan he says that it cannot be updated due to being of a backup. How do I change the drive mode so I can update?

    I used my iMac as a hard drive backup to my macbook once. Now when I update to El Capitan he says that it cannot be updated due to being of a backup. How do I change the drive mode so I can update?

    If you use your iMac as a backup to disk using Time Machine look for a folder called Backups.backupdb.

    It's what keeps you upgraded your operating system, you must remove it.

    Copy everything first if you are on a different drive. It would be wise to create a backup of the iMac on another drive also.

    Check system preferences > Time Machine and make sure that the iMac is not selected as the Time Machine drive.

  • How to change the Satellite L670D-103 using new SSD 80 GB HARD drive?

    Hello

    I have a Satellite L670D-103 with a 320 GB HARD drive running at 5400 RPM which is too slow for me.

    So I plan to change this factory by a new SSD HDD to increase the performance of the overall system :)

    But as the SSD are expensive, I have only a 80 GB SSD.

    I built the recovery on a USB media and I want to use it to restore my system to the new SSD (I previously did the space needed to ensure that all data can be stored on my new SSD 80 GB space; p)

    Retrieving SSD partitioning new procedure is done without error, but when copying image to restore data to freshly created the partition, one not enough space error stop the process!

    It seems that the recovery procedure is possible on a hard drive that is equal or superior to the original size of the disk (320 gb).

    So, how can I restore mysystem on my new SSD?

    Thank you
    Stéphane.

    > It seems that the recovery procedure is possible on a hard drive that is equal or superior to the original size of the disk (320 gb)

    To my knowledge, you have different recovery options:

    (* 1) * recovery of factory default software

    (a) recovery to out of box state
    (b) recovery without changing the HARD drive partitions
    (c) recovery of a custom size partition

    (* 2) * "erase the HARD drive.

    I think that if you choose factory default software recovery of-> recovery to out of box state then the recovery would create exactly the same size of partition on the new SSD which were available on the 320 GB HARD drive.
    I think this might be the reason why you have received this message.

    Perhaps you need to choose the 3rd option Recovery on a custom size partition

    What do you think?

  • I need to change the drive to a new drive letter, but XP will not let me because he thinks that the letter is in use.

    Quick question: I need to change the drive to a new drive letter, but XP will not let me because he thinks that the letter is in use, when it is not.

    The question for a long time: I've updated two disks in my computer from 1 TB to 2 TB. They were e and K:. The KC: drive is used as a backup of data on E: drive.

    I copied all the data on the old drive E: to the new, but when I put the new drive in place of the old, XP wouldn't let me assign the E: drive letter. It is ironic that several times, I see the warning that if you change a drive letter, some programs may not work - so of course that Microsoft is aware of this problem - however, it is annoying when you NEED to change a drive letter to OPERATE programs, but Windows won't let you. Sometimes, trying to protect users from doing stupid things prevents them from making things work...

    Anyway, after some research, I discovered that if I put the drive E: OLD and "remove" the drive of her letter, then the letter E: becomes available again. It did not work, and my computer is now partially satisfied with his new E: drive. However, the same trick with the new drive K: does NOT work.

    I removed the letter 'k': the old K: drive, but when I install a new one, it won't let me change it. It happens to be stuck at 'l': it's no use to me because backup programs are ready to use the K:\ path.

    There is that no "K:" drive in my computer and I deleted the letter k: the old disk. How do I FORCE XP to designate the new drive K: so that my backup program can work again?

    Thank you.

    Did you try to start your computer in Mode without fail (repeatedly, key to tap the F8 as your computer starts) and then try to re-assignment of drive letters?
    I think that some programs on your machine may be playing with your drive letters.  Boot safe mode will allow Windows to operate with a minimum of processes that are running and you should be able to change drive letters in these conditions.

    HTH,
    JW

  • Can I change the operating with another drive, and then use the recovery CD to restore my operating system on the new drive?

    I have 2 hard drives. I want to replace the smallest disk, which can be found be the operating drive. If I removed and installed another drive and used the recovery CD the I bought with the computer, I'll be able to re - install new hard disk?

    Hello

    Yes, you can change the hard drive and reinstall Vista using recovery disks.

    You may or may not have problems of reactivation.

    If you do, use the telephone option and hold firmly explain to a real person in the situation.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon.

  • Can I change the drive letter of the partition BDEDrive on a computer using the BitLocker encryption without causing problems?

    The computer is running Windows 7 Enterprise and has a hard drive encrypted with BitLocker. Drive s. letter is assigned to the partition of BDEDrive I am currently installing an application on this PC which uses a drive mapping, and he refuses to use anything other than its default value (which is S). The best way I can resolve this would be to reallocate the BDEdrive a different drive letter re-use then S for the application mapping.

    Change the drive letter BDEDrive will break anything, specifically with Bitlocker?

    Hello

    Given that BDEDRIVE is used for deployment, and you try to map the drive. I would recommend posting your query in the TechNet Forums.

    TechNet Forum
    http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itprovirt

    Hope this information is useful.

  • How to change permissions for a complete local drive using the command?

    How can I change the authorization for a disk full local and all subfolders and files with the command. If my user name is "XYZ" and that the disk is 'local disk (I) '.  Thank you

    You can do this by using the ICACLS command.  There is a great page that explains it here:

    http://TechNet.Microsoft.com/en-us/magazine/2009.07.geekofalltrades.aspx

    However - don't do this on your system (Windows) drive.  Break you considerably and have to reinstall your operating system.

  • How to change the 'Drive' for the BSO cubes (just like we do using "alter tablespace" for ASO cubes) using MAXL etc.?

    Hello team,

    I'm trying to make a backup copy of the cube by using the copy commands, BSO

    but after copy, I need to change the drive letter (for the data and indexes of the files) using MAXLs.

    I am able to do for cubes ASO using "Alter tablespace" i.e. for example, change "D:\" car ' to 'E:\. "for the tablespace files.

    I need to do the same for the BSO cubes? any idea?

    Kind regards

    Amit

    Don't forget while you can also change the drive it can't displace data. You would have to export the data, delete the database, change the disks, and then reload.

    For the actual command of MaxL watch the MaxL Alter Database command. You can add, dorp or set volumes of disk for ind and pag files

  • Can I change the order of starting the computer using Powershell virtual?

    Hello

    I'm trying to find a way to change the order of boot virtual machine using Powershell VI. Is there a possibility cmdlet to do?

    Any help is appreciated.

    Thank you.

    As much as I know there is no way to change the boot order in the virtual machine with the VITK.

    But you can configure devices which the guest can start.

    Take a look at specify bootable for a virtual machine devices

  • HP Pavilion p6290d: change to smaller capacity desktop hard drive using the recovery disks

    Currently my hard drive (750 GB) is having a problem. I have a spare hard drive (500 GB), I can replace the 750Go with the 500 GB hard drive using the recovery disks that I created when I got the pc?

    Hello:

    All I can say is that you have nothing to lose to give a try.

    500 GB could be sufficient to allow the recovery discs, you did to work.

  • How to change the order of boot on the Satellite L755-172

    Guys,

    Try to access the motherboard bios Setup to verify the boot priority order.
    I'm trying to format my PC using a DVD but its does not work.
    I checked the DVD on the other PC and its working properly!

    Can I get help?

    Thanx

    Hello

    You can access the start menu without changing the boot order in the BIOS.
    Turn on the laptop, press F12. Usually, you should get a boot menu where you can choose the CD/DVD drive as a boot device.

    PS: I would recommend created a Toshiba drive recover first before formatting the laptop!
    ?

  • Satellite P70-A01D: change the drive letters after the 2nd SSD upgrade

    I think it's a generic UEFI / Win 8.1 question (not according to model).

    However, FWIW, I have a Satellite P70-A01D (bought locally here in Australia).

    It is a victory of 16 GB 17.3 inch Gen4 i7 4700MQ Intel HM86 8.0 64-bit RAM.
    http://www.MyToshiba.com.au/products/computers/satellite/P70/psplpa-01d002/specifications

    I updated the OS to Win 8.1

    The P70 is supplied with a drive Bay HARD vacuum #2 - I bought a 250 GB Samsung 840 EVO SSD that I want to use as the main system disk / boot Win 8.1.

    I installed this SSD in bays #2 and from there I had no problem using the wizard of Samsun cloning software provided with the SSD (VCC 4.0) to clone my 1 TB on the SSD system.

    There are a lot of instructions from Samsun and around the web on how to clone and "substitute" of a HDD with a SSD - however there are much less when it comes to 'Add' the SSD - in the #2 Bay - while always keeping the original HDD fully functional as an additional drive.

    After execution of the cloning software, I tried just go into the settings of the UEFI on reboot and change the order of the boot drive placing the SSDS over HARD drive.

    It worked but there are obviously questions still as I had not renamed readers SSD worked as system but he was editing as D: and HARD drive was still C: and most of the system/application paths were always scheduled to access C:!

    It led to the crash and restart cycles of the Bureau (? & or explorer.exe?) and two consistent error messages:
    -"SkyDrive engine Sync host has stopped working".
    -"Host for the synchronization setting process has stopped working".

    I saw in the Control Panel-Administrative Tools-Computer Management-Online Storage-online-online right click on each drive disk management online online that I can access > however
    (a) I'm not sure if the solution I need is this simple;
    (b) nervous about change of letter on a disk while running the system; and
    (C) uncertain steps in order of evolution [IE. C: (non - sys) becomes M; D: (sys) becomes C:...

    At the moment via UEFI I'm back to working with the system on the HARD disk rather than on the SSD seems stable and without compromise of my screwing around!

    Apologies for the long post by train to make sure to include all relevant information. I think that my final goal is double win bootable 8.1 / Ubuntu 12.04 of the SSDS probably with Ubuntu on a 50 GB partition leaving 200 GB (enough?). I want to keep a slab of SSD space available for photo and video editing: +/-100 GB!

    I wondered simply assign new letters to readers, however the notes at the bottom of http://windows.microsoft.com/en-au/windows7/change-add-or-remove-a-drive-letter state:

    You cannot change a drive letter if the drive is a system partition or a boot partition.

    Suggestions please?

    Hello

    I think you could try to change the letter to readers as suggested in the Microsoft article.
    Where this is not possible, try to use 3rd party such as GParted software.
    http://gparted.org/LiveUSB.php

    You could try changing the drive letters might start to the top of the unit using the live USB version.
    But it might be possible that your system would not initialize correctly after this change.

    So you should not forget to mark the partition as bootable.

    Your comments would be appreciated

  • Satellite 1900-303: changed the BIOS settings, and now I can't boot from the CD drive

    Can anyone help, I inadvertently changed the BIOS settings, and now I can't get the CD player to boot the pc back to the default settings, Windows xp seems to work ok as is the cd player.
    If someone has the original settings, I would be grateful for any help.

    Derek has soon

    Hello Derek

    Use the F2 key to enter the BIOS settings and change the order of boot devices. This option is under the STARTUP tab. Otherwise, you can insert the recovery CD when the unit is turned OFF. Turn it on and immediately press the C button. keep it down for a few seconds and unit is forced from the CD/DVD drive.

Maybe you are looking for