关于调整虚拟磁盘大小的疑虑 [英] doubts about resize a virtual disk

查看:47
本文介绍了关于调整虚拟磁盘大小的疑虑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个动态虚拟磁盘,最初有 5GB 的虚拟空间,这是我在访问驱动器属性时可以看到的空间(虚拟 SO 是 wnidows XP).

I have a dynamic virtual disk has in a firt time has 5GB of virtual space, and this is the space that I can see when I go to properties of my drive (the virtual SO is wnidows XP).

我用 vboxmanage 将其大小调整为 15GB,但是当我启动虚拟机时,在驱动器的属性中我可以看到相同的空间,总共 5GB.

I resize it with vboxmanage to 15GB, but when I start the virtual machine, in the properties of the drive I can see the same space, 5GB in total.

新空间是分配的分区吗?如果是这样,如何将虚拟磁盘的所有分区合并为一个分区?

the new space is an alloacated partition? If this is true, how can I merge all the partitions of the virtual disk in one partition?

谢谢.

推荐答案

在 Linux 上,我以这种方式调整我的 (Win-VM) 分区大小.

on Linux i resize my ( Win-VM ) partition on this way.

1) 在命令行 \ bash 中调整 vdi 的大小

VBoxManage modifyhd path/yourVMImage.vdi --resize 30000

( --resize, 以兆字节为单位更改容量的命令)
(仅适用于 VDI 和 VHD 格式)

2) 在此之后,您必须使用 gparted-live 之类的分区管理器扩展分区 在这里下载

2.1) 你必须用这些 live 工具启动你的虚拟机,然后你可以使用 gparted-live 扩展你的分区.

2.1.1) 要从 gparted-live 启动,您必须添加另一个虚拟硬盘,按照此处

2.1.1) for booting from gparted-live, you have to add another virtual hard disk, follow the steps described here

要添加另一个虚拟硬盘、CD/DVD 或软盘驱动器,请选择应将其添加到的存储控制器(IDE、SATA、SCSI、SAS,软盘控制器)然后点击下面的添加磁盘"按钮那个树.然后,您可以选择添加 CD/DVD 设备"或添加硬盘"Disk".(如果您单击软盘控制器,则可以添加软盘驱动器.)或者,右键单击存储控制器并在那里选择一个菜单项.

To add another virtual hard disk, or a CD/DVD or floppy drive, select the storage controller to which it should be added (IDE, SATA, SCSI, SAS, floppy controller) and then click on the "add disk" button below the tree. You can then either select "Add CD/DVD device" or "Add Hard Disk". (If you clicked on a floppy controller, you can add a floppy drive instead.) Alternatively, right-click on the storage controller and select a menu item there.

在窗口的右侧,您可以设置以下内容:

On the right part of the window, you can then set the following:

...您可以选择要使用的图像文件.

...You can select which image file to use.

这篇关于关于调整虚拟磁盘大小的疑虑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆