Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to allow more than 40GB storage capacity #160

Closed
dandonahoe opened this issue Dec 24, 2015 · 4 comments
Closed

Option to allow more than 40GB storage capacity #160

dandonahoe opened this issue Dec 24, 2015 · 4 comments

Comments

@dandonahoe
Copy link

I'm importing a SQL dump file that's ~100GB, but the scotch-box appears to have a fixed size of 40GB. When I attempt most of the advice online of running:

VBoxManage modifyhd "/Users/[name]/VirtualBox VMs/vagrant_default_1450926405979_88764/box-disk1.vmdk" --resize 128000

I get the error:

0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!

Is it possible to put the desired storage size in the Vagrant file?

@Braunson
Copy link

@dandonahoe Yes it is, havn't done it myself but..

config.vm.provider "virtualbox" do |vb|
  vb.customize "pre-boot", ["modifyhd", "disk id", "--resize", "size in megabytes"]
end

Alternatively..

You can resize the box itself like so: hashicorp/vagrant#2339 (comment)

Ref: hashicorp/vagrant#2339

@zacker330
Copy link

@Braunson I got these errors with this config:

`
==> hadoop-namenode: Running 'pre-boot' VM customizations...
A customization command failed:

["modifyhd", :id, "--resize", 8096]

The following error was experienced:

#<Vagrant::Errors::VBoxManageError: There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyhd", "c389bcec-a4ae-407c-972f-4e671fac9358", "--resize", "8096"]

Stderr: VBoxManage: error: The given path 'c389bcec-a4ae-407c-972f-4e671fac9358' is not fully qualified
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp

Please fix this customization and try again.
`

@Braunson
Copy link

Braunson commented Feb 7, 2016

@zacker330 Have you instead tried option #2 re-sizing the box? hashicorp/vagrant#2339 (comment)

@whatnickcodes
Copy link
Member

Adding this to the docs in next release. Thanks guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants