一、需求
今天去参加网络安全的培训,Engineer 分享了一份 Virtual box 虚拟机。但是只有我拷取了这份文件,小伙伴们都是装的 VMware Workstation。
那么该如何将vdi转换成vmdk呢?
二、步骤
1、安装 Virtualbox 并加入系统环境
$ path
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Python36\Scripts\;C:\Python36\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSH-Win64;C:\Users\rabbit\AppData\Local\Microsoft\WindowsApps;C:\Users\rabbit\AppData\Local\Pandoc\;C:\Program Files (x86)\Nmap;D:\Tools\cygwin\bin;F:\COMMAND;F:\SOFTWARE;C:\Program Files\Oracle\VirtualBox
2、查询磁盘UUID(要求该虚机已被导入至Virtual box)
$ VBoxManage list hdds
UUID: f83fa853-eded-4e67-9927-05fb72544c3d
Parent UUID: base
Format: VDI
Location: /Users/stmiller/VirtualBox VMs/win7_64/win7_64.vdi
State: created
Type: normal
Usage: win7_64 (UUID: 3dbe6d6e-9b41-437c-9191-706c42b6eded)
UUID: 9898a049-abe0-4a9f-bc29-b196c56facbb
Parent UUID: base
Format: VDI
Location: /Users/stmiller/VirtualBox VMs/winxp_32/winxp_32.vdi
State: created
Type: normal
Usage: winxp_32 (UUID: f28ff2cd-da7c-472a-95f3-35627b21c624)
3、转换(进入VMdisk目录下按住shift右键在当前位置打开command line)
$ VBoxManage clonehd f83fa853-eded-4e67-9927-05fb72544c3d win764.vmdk --format vmdk
C:\VMdisk\Kali>vboxmanage clonehd af4b3413-2c9a-4e67-b60f-fa2e0aa9455c kali.vmdk --format vmdk
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone medium created in format 'vmdk'. UUID: 41271328-02b8-41a7-bb05-da08fd602490