Skip to content

Getting Vagrantfile to work on MacOS with vagrant+virtualbox #3

@julienlim

Description

@julienlim

@shirshendu

There's a known bug with the virtualbox and vagrant for MacOS and CentOS/7 combination that you run into some issue with the storagectl, so I had to switch it to IDE to get it work as SATA Controller won't work on my MacOS laptop.

Also for the port to create the virtualdisk, only port 0 or 1 is supported on my system.

Below are the changes I made to get the Vagrantfile to work for me (1 tendrl-server + 3 gluster nodes):

  • vagrantfile.orig == original Vagrantfile
  • vagrantfile == my changes to get it to work for MacOS
$ diff vagrantfile.orig vagrantfile

100,101c100,101
<       '--storagectl', 'SATA Controller',
<       '--port', i,
---
>       '--storagectl', 'IDE',
>       '--port', 1,
107a108
> # vb.customize ['storageattach', :id, '--storagectl', "IDE", '--port', "1", '--device', "1", '--type', 'hdd', '--medium', "node#{i}.vdi"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions