sprotheroe / vagrant-disksize

Vagrant plugin to resize disks in VirtualBox
MIT License
479 stars 51 forks source link

Not working with virtualbox 5.2 (latest in ubuntu package) #25

Closed Nightbr closed 6 years ago

Nightbr commented 6 years ago

Hey,

we receive an update of Virtualbox on ubuntu package VirtualBox Version 5.2.18_Ubuntu r123745. But it seems this plugin doesn't work with VirtualBox 5.2. Here is the error:

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

Command: ["clonemedium", "/*****/VirtualBox VMs"/*****/ubuntu-xenial-16.04-cloudimg.vmdk", "/*****/VirtualBox VMs/*****/ubuntu-xenial-16.04-cloudimg.vdi", "--format", "VDI"]

Stderr: VBoxManage: error: UUID {b85d6f69-494b-484a-8ae3-e88f9767d605} of the medium '/*****/VirtualBox VMs/*****/ubuntu-xenial-16.04-cloudimg.vmdk' does not match the value {8b6ab839-6848-4f96-8309-4ad89b452485} stored in the media registry ('/*****/.config/VirtualBox/VirtualBox.xml')
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "CloneTo(pDstMedium, ComSafeArrayAsInParam(l_variants), NULL, pProgress.asOutParam())" at line 987 of file VBoxManageDisk.cpp

Any idea on this ?

Nightbr commented 6 years ago

I have uninstall Virtualbox from package and install it from the website .deb (https://www.virtualbox.org/wiki/Downloads). -> Version 5.2.22 r126460. I also uninstall vagrant-disksize plugin and reinstall it.

Seems to work now, no error when resize disk.

Note: Vagrant 2.2.1

Nightbr commented 6 years ago

I will close this and hope if someone has the same issue can use my workaround/solution.

Cheers!