Skip to content

Customize Vagrant before importing the image disk #1247

Closed
@willdurand

Description

@willdurand

Heya,

Vagrant allows to customize the VirtualBox VM by using the config.vm.customize key in the Vagrantfile. Under the hood, this uses vboxmanage and you can find more information here: config.vm.customize.

Thing is, vboxmanage can also manage "global" properties, like the defaultMachineFolder:

vboxmanage setproperty machinefolder "/path/to/your/VirtualBox VMs/"

It's not possible to use Vagrant to run this command as customizations are executed after the image disk importation.

So my question is, could it be possible to run customizations before everything else? I guess it's not supported yet (or I missed something), so could it be an improvement?

Thanks,
William

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions