【问题描述】
如何将img文件转换为虚拟化盘
【解答思路】
利用虚拟化工具
【操作环境】
Windows\Linux
【操作步骤】
1、安装VirtualBox
2、定位至VirtualBox程序目录
3、利用VBoxManage.exe进行转化
【命令展示】
PS C:\Program Files\Oracle\VirtualBox> .\VBoxManage.exe convertfromraw -format vmdk X:\SoftWare\openWRT\openwrt-23.05.2-x86-64-generic-ext4-combined-efi.img X:\SoftWare\openWRT\openwrt.vmdk
【命令回显】
Converting from raw image file="X:\SoftWare\openWRT\openwrt-23.05.2-x86-64-generic-ext4-combined-efi.img" to file="X:\SoftWare\openWRT\openwrt.vmdk"...
Creating dynamic image with size 126123520 bytes (121MB)...