obsidian-notes/系统/Openwrt/ESXI更改磁盘大小.md
CSSC-WORK\murmur 3e6078442b init version
2024-04-15 11:19:57 +08:00

21 lines
718 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1. 在Win系统下用Xshell等SSH工具登录到你的ESXI输入命令红色字部分
```bash
cd /vmfs/volumes/datastore1/openwrt
ls *.vmdk
#openwrt-flat.vmdk openwrt.vmdk
vmkfstools -X 500M openwrt.vmdk
```
命令说明:
1"cd /vmfs/volumes/datastore1/openwrt"这个路径不要照搬,以你的实际路径为准。
2"vmkfstools -X 10GB openwrt.vmdk"中的-X 为大写字母X500M是要改成磁盘大小500兆openwrt.vmdk是需要修改的固件vmdk文件。
```bash
cd /vmfs/volumes/5c55a00c-cb2f6313-dd2c-00e067150cd2/openwrt/
vmkfstools -X 90GB openwrt-10.18.2022-x86-64-generic-squashfs-combined-efi.vmdk
```
2. 接着取消注册虚拟机
3. 重新注册虚拟机