步驟說明:
最重要的一步是 確保您擁有有效的備份!
確認備份後,請按照以下步驟進行操作:
1. 在開始之前,先建立虛擬機的快照 (snapshot)或完整備份。
2. 關閉(Power-off)虛擬機。
3. 新增 VMware Paravirtual 控制器 到虛擬機,但 不要立即更改磁碟控制器的分配,只需先添加新的存儲控制器到 VM。
4. 開啟(Power-on)虛擬機。
5. 使用具有 root 權限的帳戶登入虛擬機。
6. 重新生成初始 RAM 磁碟映像(initramfs):
mkinitrd -f -v /boot/initramfs-$(uname -r).img $(uname -r)
7. 關閉(Power-off)虛擬機。
8. 將磁碟重新分配給新的 VMware Paravirtual 存儲控制器,並移除舊的存儲控制器。
9. 開啟(Power-on)虛擬機。
10. 確認系統正常運行,並確保磁碟已正確掛載。
11. 完成後,刪除先前建立的快照或備份。
這樣就成功將 VMware 的存儲控制器更改為 Paravirtual,並確保 CentOS 7 可以正常開機和運行!
資料來源:https://be-virtual.net/changing-vmware-storage-controller-to-paravirtual-for-centos-7/
分類: vmWare
Renaming a virtual machine and its files in VMware ESXi
Source : https://kb.vmware.com/s/article/1029513?docid=2094957
Rename the virtual disk (VMDK) files using the vmkfstools -E command:
# 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 preceding command, 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.
How to Increase VMware ESXi Virtual Hard Disk Space
e.g. vmware-vdiskmanager -x 25GB image.vmdk
vmware-vdiskmanager -x [extend size] [vmware image file]