Thanks. It was copied and pasted from somewhere so something got mangled. 

Had to make a few additional changes to get it working with my box. Settled 
on this;

                device=0
                [ "data", "log" ].each do |volume|
                # MariaDB volumes
                file_to_disk = "/tmp/mariadb#{host_id}_#{volume}.vdi"
                  unless File.exist?(file_to_disk)
                  #  v.customize['createhd',
                  #               '--filename',
                  #               "#{file_to_disk}",
                  #               '--size',
                  #               (500 * 1024).floor]
                  v.customize ['createhd', '--filename', "#{file_to_disk}", 
'--size', (5 * 1024).floor]
                  end
                  #v.customize ['storageattach',
                  #             :id,
                  #             '--storagectl',
                  #             'SATA Controller',
                  #             '--port',
                  #             1,
                  #             '--device',
                  #             0,
                  #             '--type',
                  #             'hdd',
                  #             '--medium',
                  #             "#{file_to_disk}"]
                  v.customize ['storageattach', :id, '--storagectl', 'IDE 
Controller', '--port', 1, '--device', device, '--type', 'hdd', '--medium', 
"#{file_to_disk}"]
                  device+=1
                end

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/d8384d15-98be-481d-aad4-e521333b1e8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to