2018年7月16日17:51:04
使用说明
虚拟机硬盘不够情况下如何扩充虚拟机硬盘容量
这里使用的是VirtualBox虚拟机
环境
Ubuntu 16、18
VirtualBox
参考资料
https://blog.youkuaiyun.com/ouyang_peng/article/details/53261599
https://blog.youkuaiyun.com/yabingshi_tech/article/details/78134067
1、进入VirtualBox的安装目录(含有.vdi文件的目录)
VBoxManage list hdds
# 显示所有虚拟机盘的情况
UUID: bfcf9f76-7553-4ab9-a838-ae3ddd00a536
Parent UUID: base
State: created
Type: normal (base)
Location: /home/hyh/2018_SoftWare/VirtualBox VMs/windows10/windows10.vdi
Storage format: VDI
Capacity: 102400 MBytes
Encryption: disabled
UUID: 5757ea50-1d39-488a-bd09-6062fb331abc
Parent UUID: base
State: created
Type: normal (base)
Location: /home/hyh/VirtualBox VMs/feed-base-server/feed-base-server.vdi
Storage format: VDI
Capacity: 10240 MBytes
Encryption: disabled
2、扩容(修改uid 这里我是扩展为100G)
VBoxManage modifyhd bfcf9f76-7553-4ab9-a838-ae3ddd00a536 --resize 102400
3、进入虚拟机的win10
# 右击This PC -->Manage
# Storage -->Disk Management(里面会有一块未分配磁盘)
# 右击C盘-->Extend 默认next即可
# 刷新查看This PC