![]() I deleted my snapshots before attempting the resize. Everything indicates it worked on the VirtualBox level (see status, resize and status outputs below), BUT in Windows the new space doesn't show up (See diskpart output below). However this only changes the drive capacity, you will have to expand the file system for the guest afterwards. Attempting to increase the size of a virtual disk (VDI type). For VMware Player, the disk size setting can be found using the following options on the overview page: (Your VM) > Edit virtual machine settings > Hardware > Hard Disk (SCSI) > Utilities > Expand > Maximum disk size. ![]() Resize it using VBoxManage modifyhd box.vdi -resize 15360 which increases the capacity to 15GB. (Your VM) > Summary > Commands > Edit Settings > Hardware > Hard Disk 1 > Capacity > New Size. VBoxManage clonehd in.vmdk out.vdi -format VDI and then re-attached it (using the GUI is easier). Then, in front of the Size option on the bottom of the window, adjust the slider to change the size of the disk. To be able to resize the HDD, you'll have to convert it to VDI first, e.g. From the list, select the virtual hard disk. ![]() To increase the capacity of disk for Vagrant Base Box Click the Apply button to implement the Virtual Disk Space changes. This currently works only for VDI and VHD formats, and only for the dynamically allocated variants, and can only be used to expand (not shrink) the capacity. To increase this Guest OS’ Virtual Disk Space, we will move the horizontal scroll bar under Section 2 to the right with consideration of the needed size increase. The -resize x option (where x is the desired new total space in megabytes) allows you to change the capacity of an existing image this adjusts the logical size of a virtual disk without affecting the physical size much. However, vagrant base boxes are basically exported OVF/OVA using VMDK format. Reason why: VBoxManage modifyhd only works with native VDI image. Personally I think it'll be easier to attach an extra virtual HDD and mount it to a proper mount point, for example /opt and move your stuff over using rsync to work around this issue, after all, puppet vagrant boxes are for testing purposes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |