Virtualbox 固定磁盘和动态磁盘之间进行转换
将动态磁盘转为固定磁盘实际操作步骤
# 切换目录
[C:\~]$ cd C:\Program Files\Oracle\VirtualBox
[C:\Program Files\Oracle\VirtualBox]$
# 列出当前硬盘信息
[C:\Program Files\Oracle\VirtualBox]$ VBoxManage.exe list hdds
UUID: 782ec60c-da8e-4308-994c-fff7e8e3594d
Parent UUID: base
State: locked write
Type: normal (base)
Location: D:\10-软件数据\Virtualbox\CentOS7.5_My HugeGraph\CentOS7.5_My HugeGraph-disk001.vmdk
Storage format: VMDK
Capacity: 204800 MBytes
Encryption: disabled
# 将固定磁盘转换为动态磁盘
[C:\Program Files\Oracle\VirtualBox]$ VBoxManage.exe clonemedium disk "D:\10-软件数据\Virtualbox\CentOS7.5_My HugeGraph\CentOS7.5_My HugeGraph-disk001.vmdk" "D:\10-软件数据\Virtualbox\CentOS7.5_My HugeGraph\Centos75.vdi" -variant Standard
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone medium created in format 'VMDK'. UUID: 38a0c1d3-cc6f-427c-8dc4-fb33a50a0b24
# 将动态磁盘转为固定磁盘
# [C:\Program Files\Oracle\VirtualBox]$ VBoxManage.exe clonemedium disk "D:\10-软件数据\Virtualbox\CentOS7.5_My HugeGraph\CentOS7.5_My HugeGraph-disk001.vmdk" "D:\10-软件数据\Virtualbox\CentOS7.5_My HugeGraph\Centos75_fixed.vdi" -variant Fixed
# 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
# Clone medium created in format 'VMDK'. UUID: 4f4952d3-6754-4267-8ffa-0e06f12d1449
# 列出当前硬盘信息
[C:\Program Files\Oracle\VirtualBox]$ VBoxManage.exe list hdds
UUID: 782ec60c-da8e-4308-994c-fff7e8e3594d
Parent UUID: base
State: created
Type: normal (base)
Location: D:\10-软件数据\Virtualbox\CentOS7.5_My HugeGraph\CentOS7.5_My HugeGraph-disk001.vmdk
Storage format: VMDK
Capacity: 204800 MBytes
Encryption: disabled
UUID: 4f4952d3-6754-4267-8ffa-0e06f12d1449
Parent UUID: base
State: created
Type: normal (base)
Location: D:\10-软件数据\Virtualbox\CentOS7.5_My HugeGraph\Centos75_fixed.vdi
Storage format: VMDK
Capacity: 204800 MBytes
Encryption: disabled
断开虚拟机和原有硬盘的关联,然后 添加新硬盘
删除原有硬盘(可以点击查看硬盘,会显示硬盘是否分配,未分配的硬盘根据需要可以对应删除掉)
版权声明:
作者:SE_Zhang
链接:https://www.cnesa.cn/1231.html
来源:CNESA
文章版权归作者所有,未经允许请勿转载。
共有 0 条评论