Need to create and add RDM disk while calling reconfigVM

Hello

Now I create RDM disk help createdisk method and then added the disk of the virtual machine by using the reconfigvm method using vsphere sdk in c# but I need to create and add the disk while calling the reconfigVM only. I searched and found a code as example.

diskSpec.operation = VirtualDeviceConfigSpecOperation.add;
diskSpec.fileOperation = VirtualDeviceConfigSpecFileOperation.create;

". According to my understanding, vmdk file can create while adding the LUNs as disk RDM using both add and create function, but then I try these i couldn't succeed. If anyone has tried what can you share your code or suggestions please.

Thank you

Vijaya

Vijaya,

I guess that how you specify the devicename property is invalid. You just need to assign the devicename you recovered in QueryConfigTarget to the devicename of the backup file.  Please refer below snippet for adding disk:

Request for more information on specific devices that can be used to back up virtual devices

CTAR ConfigTarget = cb.getConnection () .getService () .queryConfigTarget (envBrow, hostmor);

VirtualMachineScsiDiskDeviceInfo [] arrSCSILun = (VirtualMachineScsiDiskDeviceInfo []) ctar.getScsiDisk ();

HostScsiDisk drive;

If (arrSCSILun! = null) {}

for (int i = 0; i)< arrscsilun.length;="" i++)="">

disc = arrSCSILun [i] .getDisk ();

If (disk == null) {}

continue;

}

else {}

deviceName = arrSCSILun [i] .getDisk () .getCanonicalName ();

}

Add a disk
VirtualDeviceConfigSpec diskSpec = new VirtualDeviceConfigSpec();
     
diskSpec.setFileOperation (VirtualDeviceConfigSpecFileOperation.create);
diskSpec.setOperation (VirtualDeviceConfigSpecOperation.add);
     
VirtualDisk disk = new VirtualDisk();
VirtualDiskRawDiskMappingVer1BackingInfo diskfileBacking = new VirtualDiskRawDiskMappingVer1BackingInfo();
     
diskfileBacking.setFileName("");
diskfileBacking.setDiskMode ("persist");
diskfileBacking.setCompatibilityMode ("physicalMode");
   diskfileBacking.setDeviceName (deviceName); It's the devicename you got above
System.out.println ("DeviceName assigned is" + deviceName);
disk.setKey (new Integer(-101));
disk.setControllerKey (new Integer (diskCtlrKey));
disk.setUnitNumber (new Integer (0));
disk.setBacking (diskfileBacking);
disk.setCapacityInKB (1024);
     
diskSpec.setDevice (disk);

And to set the loglevel, please visit: http://kb.vmware.com/kb/1001457

Tags: VMware

Similar Questions

  • LAN printer prints not - need to remove and add another printer to obtain a paper copy. Intermittent problem.

    LAN printer prints not - need to remove and add another printer to obtain a paper copy. Intermittent problem.

    http://TechNet.Microsoft.com/en-us/library/bb727037.aspx

    Have a read of the link above re Vista file and printer sharing.

    Permissions/Share info is there as well.

    See you soon.

    Mick Murphy - Microsoft partner

  • Create and add a message in the log off screen on a Windows 7 PC

    Original title: Log Off Message

    Hi, I was wondering if it is possible to create and add a message in the newspaper off the screen of a Windows 7 PC

    I searched and found only information on adding text in the log to the screen. This text will include the verbiage "Don't forget your USB."

    You can use a script to logoff to do, which is a file that runs automatically when the computer disconnects. http://TechNet.Microsoft.com/en-us/library/cc753583.aspx

  • What I do when I get this message: there is not enough space left to the location of the cache... Thumbnails and previews are not generated or updated in cache on the disk.  Please leave bridge and add more disk space on the volume of the cache or change

    I don't know what that means:

    "There is not enough disk space to left to the location of the cache...  Thumbnails and previews are not generated or updated in cache on the disk.  Please leave bridge and add more disk space on the volume of the cache or change the location of the cache in the Cache preferences.  Then restart Bridge. »

    I deleted a whole bunch of photoshoots I had on my desktop, but how to make more space here?

    Erica

    Hi Ericacole

    What version of the bridge are you using and what is your OS?

    Please how much is left in your main hard drive.

    By default, the bridge cache is located at: -.

    C:\Users\Yourname\AppData\Roaming\Adobe\Bridge CC\Cache (AppData is a hidden folder)

    Note that cache bridge could be very large depending on your use of the product.

    Please see Troubleshooting of errors, freezes | Adobe Bridge | Windows, Mac OS

    Concerning

    Assani

  • Create and add a slider?

    Is there a way to create and add a new cursor image in Captivate? I am using Captivate 5.5. I also have Flash CS4.

    LOL, as with anything we can rarely be absolutely certain of nothing. Especially when the programmers are involved. Tricksy coders, they can be!

    It has always been my own understanding, that this is where Captivate has obtained its list of sliders presented to the author.

    It would be really cool if one of the development team was watching this thread and could meet to put us all straight on how things work "cursor-wise.

    Hello? Adobe? Each of you to look at this thread?

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • someone will help me please, I am a senior and I forgot my password the I have a laptop with windows 7, the Reset Wizard is telling me that I need to create a password reset disk how do

    I have an acer laptop I am a senior and I forgot my password, Reset Wizard tells me I need to create a password how to reset cd dom that

    http://support.Microsoft.com/kb/305478/en-GB

  • Need to create a cost recovery disk

    I have a HP Pavilion a1330n, build software 61NAemMPC1.  I have never provided with a CD of this recovery software; somewhere, it is incorporated in the PC, I guess.

    I want to create a fresh and current recovery disk, but when I try, I get a dialog box that indicates already, I have a & cannot do another...

    How can I disable this barrier, to allow my creation of a current recovery disk?

    Would be very happy for any help with this...

    TIA!

    Robert

    HP has a block to avoid a second round. There are a few hacks/settings on the internet in order to make a second series, but if you're under the assumption that you will do a set of current installation_it recovery, update will not be. No matter how much recovery sets hack you the machine to allow, he will always be the same original game that returns the machine to its original configuration.

    Best option is to make a custom recovery set using an application of Imaging. I've been using Macrium and it is very good. Backup external USB hdd, CD/DVD, network drive, etc. It also creates a boot cd to boot from and restore your OS together, the programs and files in case of problems.

    Macrium Reflect Disk Imaging HERE

    Alternative & useful software video HERE
  • What I need to create and publish a magazine for iOS and Android?

    Hello!

    I would like to know what I need to design, create and publish a magazine for iOS and Android. Also, I would like to know what product I need, at what price would you be willing to pay and what treatment I must follow to perform this work.

    Thanks in advance!

    You ned to have PRO Edition or Enterprise edition of DPS.

    You can check http://www.adobe.com/products/digital-publishing-suite-family/buying-guide.html

    You must also have a developer account with Apple/Android

  • I need to create and download a calendar to creative cloud

    I need create and download a calendar that I can use on creative cloud. I'd appreciate any help, thank you

    I don't know what kind of feature, you need with the calendar, or what product you wanted to create in it.

    This might help?

    http://www.Adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&EXTID=1046667

  • How can I get Muse recognizes and opens another site of Muse created elsewhere? I need to update and add features.

    Generated by Muse site created elsewhere, which I am now to manage and update. My Muse program will not recognize the site as Muse and therefore not open not import it, since there is no import feature. How can I get Muse to recognize one of their own?

    Are you talking about HTML? Muse can't open html prepared in advance (Yes, even if muse wrote the code)

    the only option is to get a copy of the muse and open to edit the site.

    (I hope I'm wrong on this, but I am my experience can't do)

  • Need to create and adjustment layer to compensate for the unwanted hue caused by lens

    I'm looking for help to set up an adjustment layer to compensate for a specific lens coloring problem. Basically, I use a GoPro (on a drone) but I got a flat lens of spare parts. The sharpness is good, but the lens has a well-known problem: it translates into a pink coloring around the edges/corners. Most of the time it is barely perceptible, sometimes he jumps. It also depends on the screen, that I use for example. My TV seems to bring out a lot more than my laptop.

    Here's an example - look at around 0:35 0:40 http://vimeo.com/117790732

    And to try to get an idea where the question is on the frame, I took a picture of the example of the grass Frost, very early in the morning. I then crank up the saturation to 100% and this is what it looks like:

    Frosty Grass for Adj Layer.jpg

    I would like to be able to compensate for this. This should probably do with an adjustment in Photoshop layer that I can then import in Premier Pro. Can anyone advise as to how to do?

    Any help will be appreciated.

    Thank you

    Jacques

    Since any change in RGB channels influence the tonal scale, perhaps to the laboratory, with m/g-b/y juxtaposition and distinct tone level would be a logical choice. Here, a few sweeping curves (and a rough mask, sorry about that) need to be addressed.

    The adjustment layer that results can be changed in the opacity according to the saturation of the chromatic aberration.

    EDIT: Posted quickly. End of shadow of channel tweak L. red dot needs a white dot in the mask to eliminate].

  • employee to create and add job API

    Hi all
    I am trying to create an employee via the API but I am unable to find a suitable parameter to pass the value of employment. Do I need a different API call or something else?

    Here is the code example:
    HR_EMPLOYEE_API.CREATE_EMPLOYEE
       (
       P_HIRE_DATE                     =>     TO_DATE('01.01.2012','dd.mm.yyyy') 
      ,P_BUSINESS_GROUP_ID             =>     0
      ,P_LAST_NAME                     =>    'Last name'
      ,P_FIRST_NAME                    =>     'First name'
      ,p_date_of_birth                 =>     to_date('01.01.1988','dd.mm.yyyy')
      ,P_SEX                           =>     'M'
      ,P_EMPLOYEE_NUMBER               =>     L_EMP_NUM
      ,P_PERSON_ID                     =>     L_PERSON_ID
      ,P_ASSIGNMENT_ID                 =>     L_ASSIGNMENT_ID
      ,p_per_object_version_number     =>     l_per_object_version_number
      ,P_ASG_OBJECT_VERSION_NUMBER     =>     L_ASGOBJECT_VERSION_NUMBER
      ,p_per_effective_start_date      =>     l_effective_start_date
      ,p_per_effective_end_date        =>     l_effective_end_date
      ,P_FULL_NAME                     =>     L_FULL_NAME
      ,P_PER_COMMENT_ID                =>     L_COMMENT_ID
      ,P_ASSIGNMENT_SEQUENCE           =>     L_ASSIGNMENT_SEQUENCE
      ,P_ASSIGNMENT_NUMBER             =>     L_ASSIGNMENT_NUMBER
      ,P_NAME_COMBINATION_WARNING      =>     L_NAME_COMBINATION_WARNING
      ,P_ASSIGN_PAYROLL_WARNING        =>     L_ASSIGN_PAYROLL_WARNING
      ,P_ORIG_HIRE_WARNING             =>     L_ORIG_HIRE_WARNING
       );
    Any ideas?

    The EBS version: 12.1.3.

    DB version: 11g



    Thanks in advance,
    Bahchevanov.

    A manual update is not sure.
    I assume that the work that you created is not valid from the start_date assignment, also a CORRECTION option is to throw an error.

    Locate the DATE_FROM value for the job_id argument in the per_jobs table.

    See you soon,.
    Vignesh

  • BlackBerry smartphones want to create and add new folder Media Card/Curve 8320 T-Mobile


    Thank you Jeremy! It's just what I wanted to do. My first hike in "Adding records to the breast of media"... I wanted to rely on the experienced before trying to do so. I always thought media means only audio and video (as suggested by the 4 basic native folder/files in the media). Now, I understand "text" files are also available within the native app of Media thanks for getting back to me...

  • Create and add cartridge PERSONALIZED Hello World to SIR in Oracle 11.1 trade

    I'm working on a CRS application based. I went through the code in assembler Development Guide for creating model of Hello World in Discover. But I'm not able to create a model of Hello everyone in the same way for CommerceReferenceStore. Please guide me how?

    You have mapped your cartridge in /atg/endeca/assembler/NucleusAssemblerFactory.properties?

    Check if your cartridge can be found in :/dyn/admin/nucleus/atg/short/assemble/NucleusAssemblerFactory /? = propertyName handlerMapping are mapped.

    If you access /crs/cartridges/HelloWorld/HelloWorld.jsp in the browser returns the contents of jsp or return 404?

    More errors in the log?

  • dynamically create and bind datamodel and listview

    Hello

    I looked through forums and examples, but in all the listview/datamodel example are linked since the start of the application only. I need to create and link dynamically. Because my data listview will depend on the selection of the previous shape. Need to do using qml. Can someone help me?

    I have not seen that your souce code can only guess the possibility.

    You have set the query, like "query:" / xxx/yyy "? You can add the journal to your custom data source to check the loop iteration of data?

    If you can show your brief source code, it willl be quick analysis.

Maybe you are looking for

  • Satellite P10 randomly turns off

    Hello I had my laptop since new for about 1 and a half years now, and only about 2 months, my laptop keeps turning off itself without warning or anything? I really doubt that it's a virus I have norton and also have ad-aware program running all the t

  • Subract bug or limitation

    I have two values with exactly 1 unit difference, e.g. (X + 1 and X + 2), when I subtracted another number (Y) other results aren't exactly 1 unit of differece ((X + 2-Y) and (X + 1 - Y) isn't exactly a 1 unit difference), there are a few changes in

  • Can't open anything without going through a right click and run as administrator?

    My computer has Vista Home Premium.  It is possible to open anything without right click "run as Administrator".  I also can not download anything.  I tried to download the drivers for my printer and Microsoft Security scan). The computer shows that

  • Groovy Expression not worked on jdeveloper 11.1.1.7.0

    Hi Experts,In my case, I created a simple display object which have variable bind. I'll put the link using Expression Groovy variable value. <Variable     Name="empcode"     Kind="where"     Type="java.lang.String">     <TransientExpression><![CDATA[

  • How to find the ID of the existing contact?

    I need to update an existing contact in Eloqua, but to do that I need to find the ID of the contact.I know how to get the ID of the contact after it is created the first time, but once it is already created how to find the code.How do I do that?Here