4 months ago
# -*- mode: ruby -*-
# vi: set ft=ruby :

datadisk1 = '.\data_disk1.vdi'

Vagrant.configure("2") do |config|
  config.vm.box = "centos/7"
  config.vm.synced_folder ".", "/vagrant", disabled: true

  config.vm.provider "virtualbox" do |vb|
    vb.gui = false
    vb.cpus = 1
    vb.memory = "1024"
    vb.name = "Ceph-Admin"
    
    unless File.exist?(datadisk1)
      vb.customize ['createhd', '--filename', datadisk1, '--size', 1 * 1024]
    end
    
    vb.customize ['storageattach', :id, '--storagectl', 'IDE', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', datadisk1]
    
    # Adding a SATA controller that allows 4 hard drives
    #vb.customize ['storagectl', :id, '--name', 'SATA Controller', '--add', 'sata', '--portcount', 4]
    # Attaching the disks using the SATA controller
    #vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 0, '--device', 0, '--type', 'hdd', '--medium', datadisk1]
    
  end
end
← New Vagrant Version after 1.9.5 use docker Spring Boot jar exclude source →
 
comments powered by Disqus