4 Replies Latest reply on Oct 20, 2009 1:33 AM by ii00907

    Problem vmreconfig.pl

    ii00907 Enthusiast

       

      Hi,

       

       

      I have a problem when i remove a disk. I run this command ;

       

       

      perl vmreconfig.pl --url https://172.23.42.211/sdk/vimService --username root --password passw0rd --filename ../sampledata/vmreconfig.xml --schema ../schema/vmreconfig.xsd

       

       

      But i have this result;

       

       

      No reconfiguration performed as there is no device config spec created.

       

       

      In attach the file vmreconfig.xml

       

       

       

       

       

      Help please!!!!!!

       

       

        • 1. Re: Problem vmreconfig.pl
          lamw Guru
          Community WarriorsVMware Employees

          The reason it's not working is you're providing the incorrect name of the device ... it actually took me second try before realizing what it was looking for

           

                 <Hard-Disk>
                    <Name>Disk3</Name>
                 </Hard-Disk>
          

           

          should be:

           

                 <Hard-Disk>
                    <Name>Hard disk 3</Name>
                 </Hard-Disk>
          

           

          Note: The input is case sensitive and notice the d on disk is lower case. To find out the device name, specifically for your vDisk, you can take a look at the settings for your virtual machine and you'll see the various devices. VMware should have better error/warning handling versus just "dying" out with some message relating to the API that a user may not be aware of

           

          Here is a sample output for a successful virtual disk removal:

           

          [vi-admin@scofield vm]$ ./vmreconfig.pl --server himalaya.primp-industries.com --username root --filename ../sampledata/my_vmreconfig.xml ../schema/vmreconfig.xsd
          Enter password:
          
          Removing hard disk with the backing filename '[himalaya-local-SATA.RE4-GP:Storage] vMA-resize/vMA-resize_1.vmdk' . . .
          Virtual machine 'vMA-resize' is reconfigured successfully.
          
          

           

           

           

           

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

          William Lam

          VMware vExpert 2009

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

          vGhetto Script Repository

          VMware Code Central - Scripts/Sample code for Developers and Administrators

          VMware Developer Comuunity

          Twitter: @lamw

           

          http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

           

          If you find this information useful, please award points for "correct" or "helpful".

          • 2. Re: Problem vmreconfig.pl
            ii00907 Enthusiast

             

            Very very thanks,

             

             

            I had not thought of that.

             

             

            I found some problems with version 4 of ESX. They took the script of 3.5 and took them on the 4.

             

             

            Sorry if I ask you another question, but now to hook a rdm to use a VM rdmCreate.pl (vdiskcreate.pl not work). Can you tell me if I can attach a rdm through commands vimsh?

            I tried vmware-vim-cmd vmsvc / device.diskaddexisting creating another rdmp.vmdk through vmkftools, but does not work, manages to engage only vdisk.

             

             

            Thanks to one of your kind reply.

             

             

            By

             

             

            Ivan

             

             

            • 3. Re: Problem vmreconfig.pl
              lamw Guru
              Community WarriorsVMware Employees

              afaik, vimsh device.addexistingdisk does not allow you to add an existingn RDM but only standard VMDK(s), it was probably not written to handle RDMs

               

               

               

               

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

              William Lam

              VMware vExpert 2009

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

              vGhetto Script Repository

              VMware Code Central - Scripts/Sample code for Developers and Administrators

              VMware Developer Comuunity

              Twitter: @lamw

               

              http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

               

              If you find this information useful, please award points for "correct" or "helpful".

              • 4. Re: Problem vmreconfig.pl
                ii00907 Enthusiast

                Many thanks,

                are very precise and detailed