نمایش نتایج: از شماره 1 تا 5 از مجموع 5
سپاس ها 6سپاس
  • 1 توسط judon3t
  • 5 توسط th95

موضوع: نحوه تغییر نام ماشین مجازی

  
  1. #1
    نام حقيقي: Ali

    عضو عادی شناسه تصویری Black_Roze
    تاریخ عضویت
    Jun 2010
    محل سکونت
    Mashhad
    نوشته
    441
    سپاسگزاری شده
    258
    سپاسگزاری کرده
    105
    نوشته های وبلاگ
    1

    نحوه تغییر نام ماشین مجازی


  2. #2
    نام حقيقي: Saeed

    عضو عادی شناسه تصویری greatcyrus
    تاریخ عضویت
    Jan 2010
    محل سکونت
    Tehran
    نوشته
    2,662
    سپاسگزاری شده
    933
    سپاسگزاری کرده
    1248
    نوشته های وبلاگ
    3
    دوست عزیز سعی کن اسم ماشین در وی سنتر دقیقا اسم خود ماشین باشه .
    مثلا اسم ماشین مجازیت dc01 هست تو وی سنتر هم همین باشه ...
    البته فکر نکنم مشکلی پیش بیاد در صورت یکی نبودن. ولی بهتره همنام باشن ..



  3. #3
    نام حقيقي: it

    عضو عادی
    تاریخ عضویت
    Aug 2011
    محل سکونت
    teh
    نوشته
    198
    سپاسگزاری شده
    127
    سپاسگزاری کرده
    654
    نقل قول نوشته اصلی توسط Black_Roze نمایش پست ها
    سلام
    دوستان برایتغییر نام ماشین های مجازی در Vcenter کار خاصی باید انجام داد یا خیر ؟
    چون باتغییر نام محتوای فولدر تغییر نمیکنه !
    سلام.به نظرم اول با وی ام ویر خودتون امتحان کنید چون ممکنه دچار مشکل بشید و کارتون سخت بشه


    Black_Roze سپاسگزاری کرده است.

  4. #4
    نام حقيقي: Mohammad

    عضو ویژه شناسه تصویری th95
    تاریخ عضویت
    Sep 2008
    نوشته
    4,263
    سپاسگزاری شده
    5765
    سپاسگزاری کرده
    2674
    نوشته های وبلاگ
    20
    راحت ترین راه انجام Storage vMotion است

    Renaming a virtual machine and its files in VMware ESXi and ESX (1029513)

    اگر هم خواستید خیلی با کلاس عمل کنید فقط 20 گام لازم است

    Renaming virtual machine files in-place using the console


    Warning: Before proceeding, ensure that:

    • The virtual machine has a current backup, and that it has been powered down.
    • The virtual machine does not have snapshots or virtual disks shared with other virtual machines.

    To manually rename the virtual machine's files:

    1. Log into the VMware vSphere Client.
    2. Locate the virtual machine in your host inventory.
    3. Power down the virtual machine.
    4. Right-click on the virtual machine and click Remove from inventory.
    5. Open a console to the ESXi/ESX host. For more information, see Unable to connect to an ESX host using Secure Shell (SSH) (1003807) or Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
    6. Navigate to the directory containing the virtual machine. For example:

      # cd /vmfs/volumes/DatastoreName/originalname
    7. Rename the virtual disk (VMDK) files using the vmkfstools -E command. For more information, see Renaming a virtual machine disk (VMDK) via the vSphere Management Assistant (vMA) or vSphere CLI (vCLI) (1002491).

      # vmkfstools -E "originalname.vmdk" "newname.vmdk"

      Notes:
      • In some cases, it may be required to clone (copy) a virtual disk. To clone a virtual disk to a new virtual disk, run this command:

        # vmkfstools -i "originalname.vmdk" "newname.vmdk"

        This leaves the original virtual disk untouched. You need enough space available to clone the virtual disk in the destination directory. In the case of the command above, the new virtual disk is created in the current directory but a different directory can be specified.
      • You need not rename the originalname-flat.vmdk file after running the vmkfstools command. The vmkfstools command renames both VMDK files and updates the reference within the descriptor.
      • Do not use the cp or mv commands to rename virtual disk files. Instead, use VMware utilities such as vmkfstools.


    8. Copy the virtual machine configuration file (.vmx) using the command:

      # cp "originalname.vmx" "newname.vmx"
    9. Open the file new virtual machine configuration (for example, newname.vmx) in a text editor. For more information, see Editing configuration files in VMware ESXi and ESX (1017022).

      For example:

      # vi "newname.vmx"
    10. Within the configuration file, modify all old instances of the virtual machine's file names to the new file names. At a minimum, modify these values (more may exist):

      nvram = " newname.nvram"
      displayName = " newname "
      extendedConfigFile = " newname .vmxf"
      scsi0:0.fileName = " newname .vmdk"
      [...]
      migrate.hostlog = "./ newname -UUID.hlog"


      Repeat this process for each virtual machine disk. For example:

      scsi0:1.fileName = " newname _1.vmdk"
      scsi0:2.fileName = " newname _2.vmdk"


      Correct the VMkernel swap file reference. For example:

      sched.swap.derivedName = "/vmfs/volumes/DatastoreUUID/ newname/ newname-UUID.vswp

      Note: Be sure to rename both the .vswp file and the directory name for the swap file, in bold above.
    11. Correct any other remaining lines referencing the original path or file names.
    12. Save the file and exit the editor.
    13. Rename all the remaining files, except the .vmx configuration file, to the new names.

      For example:

      # mv "originalname.nvram" "newname.nvram"
    14. Change directory to the parent directory:

      # cd ..
    15. Rename the directory for the virtual machine:

      # mv "originalname" "newname"
    16. Using the VMware vSphere Client, browse the datastore and navigate to the renamed virtual machine directory.
    17. Right-click the virtual machine's new configuration file (for example, newname.vmx) and select Add to inventory.

      Alternatively, you can use this command to add the virtual machine to the inventory:

      For ESX:

      # vmware-cmd -s register "/vmfs/volumes/DatastoreName/newname/newname.vmx"

      For ESXi:

      # vim-cmd solo/registervm
      /vmfs/volumes/DatastoreName/newname/newname.vmx


    18. Power on the virtual machine.
    19. A question for the virtual machine displays in the Summary tab during power-on. Review the question by:
      • Clicking the Summary tab.
      • Right-clicking the virtual machine in your inventory and selecting Answer question.

        When prompted, select I moved it, then click OK.

        Warning: Selecting I copied it results in a change of the virtual machine's UUID and MAC address, which may have detrimental effects on guest applications that are sensitive to MAC address changes, and virtual machine backups that rely on UUIDs.



    20. Optionally delete the original virtual machine configuration file.

      For example:

      # rm /vmfs/volumes/DatastoreName/newname/originalname.vmx



    ویرایش توسط th95 : 2014-01-25 در ساعت 10:35 PM
    M-r-r، halvaei، mavrick و 2 نفر دیگر سپاسگزاری کرده‌اند.

  5. #5
    نام حقيقي: Ali

    عضو عادی شناسه تصویری Black_Roze
    تاریخ عضویت
    Jun 2010
    محل سکونت
    Mashhad
    نوشته
    441
    سپاسگزاری شده
    258
    سپاسگزاری کرده
    105
    نوشته های وبلاگ
    1
    ممنونم از همه دوستان
    جناب آقای جنگی میخواستم ببینم که Storage Vmition تو قسمت Advance شما میتونید نوع Type هارد رو مشخص کنید اگر اشتباه نکرده باشد
    یک نکتهکهStorge Vimotion فقط واسه 4 , 3.5 بود از 5 به بعد فقط اسم فولدر عوض میشه
    و باید همون روشه با کلاس روبری
    که خیلی حالگیریه خدایی
    اسم رو درست انتخاب کنید
    یک نکته دیگه که هست شما میتونید با کلون گرفتن این موضوع رو حل کنید


    ویرایش توسط Black_Roze : 2014-01-26 در ساعت 08:06 AM

کلمات کلیدی در جستجوها:

نحوه کار با vmkfstools

.vmx تغییر

برچسب برای این موضوع

مجوز های ارسال و ویرایش

  • شما نمی توانید موضوع جدید ارسال کنید
  • شما نمی توانید به پست ها پاسخ دهید
  • شما نمی توانید فایل پیوست ضمیمه کنید
  • شما نمی توانید پست های خود را ویرایش کنید
  •