想在VMware上安装一个openwrt, 发现只有.img镜像,现在分享在macOS上使用QEMU工具把.img镜像格式转为.vmdk格式
首先安装brew软件包管理器

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

然后再安装QEMU

brew install qemu

安装好了后开始转化格式

qemu-img convert -f raw 原镜像文件名.img -O vmdk 新镜像文件名.vmdk

以20200215-plus-openwrt-x86-64-combined-squashfs.img为例

qemu-img convert -f raw 20200215-plus-openwrt-x86-64-combined-squashfs.img -O vmdk 20200215-plus-openwrt-x86-64-combined-squashfs.vmdk

参考教程

https://www.applex.net/threads/macos-img-vmdk.93833/

最后修改:2025 年 06 月 22 日
如果觉得我的文章对你有用,请随意赞赏