Announcement

Collapse
No announcement yet.

Creating VM manually from a template on ESXi 3.5

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating VM manually from a template on ESXi 3.5

    To All VMware Expert,

    Iíve created a Windows Server 2003 x64 VM template which is located in my local Server datastore1, and now Iím about to deploy it into my SAN-VMFS, it is around 40 GB in size and I do the copy using FastSCP which took 45 minutes to transfer the whole directory from LOCAL_VMFS to SAN_VMFS
    Previously in VMWare Server 2.0,

    I just need to do the following:

    1. Change the directory name and all filename into another number or name (vmws03-00 into vmws03-01 and so onÖ)
    2. Edit the .VMDK and .VMX to replace anything with vmws03-00 into vmws03-01
    But now, the question is that should I be worry about the following entries:
    1. uuid entries
    uuid.location = "56 4d 49 a3 70 15 52 62-48 cf 27 3a 3f 33 51 29"
    uuid.bios = "56 4d 49 a3 70 15 52 62-48 cf 27 3a 3f 33 51 29"

    2. ethernet0.generatedAddress (example = "00:0c:29:33:51:29")

    3. sched.swap.derivedName (example = "/vmfs/volumes/49ebf741-09b1b6f4-2132-001ec9f0c731/Win2003x64_vmws00/Win2003x64_vmws01-a0dd3982.vswp").

    4. CPU ID (example
    hostCPUID.0 = "0000000a756e65476c65746e49656e69"
    guestCPUID.0 = "0000000a756e65476c65746e49656e69"
    userCPUID.0 = "0000000a756e65476c65746e49656e69"
    hostCPUID.1 = "0001067600040800000ce3bdbfebfbff"
    guestCPUID.1 = "0001067800010800000822010febfbff"
    userCPUID.1 = "0001067600040800000822010febfbff"
    hostCPUID.80000001 = "00000000000000000000000120100000"
    guestCPUID.80000001 = "00000000000000000000000120100000"
    userCPUID.80000001 = "00000000000000000000000120100000")

    is there any way to automate these entry and make a unique Identifier ?
    * more like NewSID tool from Sysinternals for Windows OS*

    thanks

  • #2
    Re: Creating VM manually from a template on ESXi 3.5

    you could always only copy the VMDK file and create a new VM with the copied existing vmdk file. That would create the unique ID's for your VM

    If this is a Stand-alone installation then ther is no way of automating (especially if this is ESX3i) you will need Virtual Center for that
    Maish
    ----------------------------------------------------------
    Technodrone|@maishsk|Author of VMware vSphere Design
    VMware vExpert 2013-2010,VCAP5-DCA/DCD,VCP
    MSCA 2000/2003, MCSE 2000/2003
    A proud husband and father of 3 girls
    ----------------------------------------------------------
    If you find the information useful please don't forget to give reputation points sigpic.

    Have a good one!!

    Comment


    • #3
      Re: Creating VM manually from a template on ESXi 3.5

      thanks for the reply Maish,

      I've connected to the SSH console from ESXi 3.5 u4 and do the following command

      Code:
       cp -r /vmfs/volumes/datastore1/VM_Templates/<SOURCE> /vmfs/volumes/datastore1/<DESTINATION>
      should I delete everything and just leave the *.VMDK files only ?

      because at the moment i have no plan to get VCenter due to the budget limitation.

      Comment


      • #4
        Re: Creating VM manually from a template on ESXi 3.5

        It would actually be better to use the native command

        Code:
        vmkfstools -i <path to >.vmdk <path to new>.vmdk
        This should actually be a lot faster than copy and you have less chance of disk corruption

        you can remove all the other files besides the vmdk files, create a new VM and attach it to the the cloned vmdk.
        Maish
        ----------------------------------------------------------
        Technodrone|@maishsk|Author of VMware vSphere Design
        VMware vExpert 2013-2010,VCAP5-DCA/DCD,VCP
        MSCA 2000/2003, MCSE 2000/2003
        A proud husband and father of 3 girls
        ----------------------------------------------------------
        If you find the information useful please don't forget to give reputation points sigpic.

        Have a good one!!

        Comment


        • #5
          Re: Creating VM manually from a template on ESXi 3.5

          great, this is very concise answer.

          Thanks for helping me Maish.

          Comment


          • #6
            Re: Creating VM manually from a template on ESXi 3.5

            You are welcome
            Maish
            ----------------------------------------------------------
            Technodrone|@maishsk|Author of VMware vSphere Design
            VMware vExpert 2013-2010,VCAP5-DCA/DCD,VCP
            MSCA 2000/2003, MCSE 2000/2003
            A proud husband and father of 3 girls
            ----------------------------------------------------------
            If you find the information useful please don't forget to give reputation points sigpic.

            Have a good one!!

            Comment


            • #7
              Re: Creating VM manually from a template on ESXi 3.5

              Hi Maish,

              I'm now using ESXi 3.5 u4 and I've enabled the SSH connection,

              in a Putty console, I execute the following command:

              # vmkfstools -i /vmfs/volumes/datastore1/WinXPProSP3_vmxp00_ _/vmfs/volumes/MD3000i_VMFS/WinXPProSP3_vmxp01

              to copy _WinXPProSP3_vmxp00_ virtual directory into my SAN-VMFS but then I got this error:

              DiskLib_Check() failed for source disk The file specified is not a virtual disk (15).

              is there any better way of doing it without vCenter license ?

              or ishall just use

              cp -r
              /vmfs/volumes/datastore1/VM_Templates/*<SOURCE>*
              /vmfs/volumes/datastore1/*<DESTINATION>*


              instead ?

              Comment


              • #8
                Re: Creating VM manually from a template on ESXi 3.5

                You have to point to the vmdk file directly not the folder
                vmkfstools -i <path to >.vmdk <path to new>.vmdk
                Maish
                ----------------------------------------------------------
                Technodrone|@maishsk|Author of VMware vSphere Design
                VMware vExpert 2013-2010,VCAP5-DCA/DCD,VCP
                MSCA 2000/2003, MCSE 2000/2003
                A proud husband and father of 3 girls
                ----------------------------------------------------------
                If you find the information useful please don't forget to give reputation points sigpic.

                Have a good one!!

                Comment


                • #9
                  Re: Creating VM manually from a template on ESXi 3.5

                  Ah.. yes,

                  so in this case i shall point the source VMDK to the destination VMDK.

                  Cheers.

                  Comment

                  Working...
                  X