Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for additional disk #155

Closed
ghost opened this issue Feb 16, 2014 · 8 comments
Closed

support for additional disk #155

ghost opened this issue Feb 16, 2014 · 8 comments

Comments

@ghost
Copy link

ghost commented Feb 16, 2014

It would be nice to be able to attach an additional disk to the VM with something like:

config.vm.customize ['storageattach'...

for vagrant or

ec2-create-volume 

for EC2 or ...

@anodelman
Copy link
Contributor

This sounds like a small patch for vagrant - would it just be the ability to pass through an additional variable/setting to the vagrant file? Could you give me a sample of how the vagrant file would look when correctly configured?

@ghost
Copy link
Author

ghost commented May 30, 2014

@anodelman I don't know much about vagrant, sorry :-)

@aldavud
Copy link

aldavud commented May 30, 2014

An example of a complete vagrant file would look like

Vagrant.configure("2") do |c|
  c.vm.define 'first' do |v|
    v.vm.hostname = 'first'
    v.vm.box = 'ubuntu-server-12042-x64-vbox4210-nocm'
    v.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box'
    v.vm.network :private_network, :ip => '10.11.12.2'
    v.vm.provider 'virtualbox' do |prov, override|
    prov.customize ['modifyvm', :id, '--macaddress1','0800271016FA']
 prov.customize ['createhd', '--filename', '/tmp/sparediskfirst', '--size', 10240]
 prov.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', '/tmp/sparediskfirst.vdi']
    end
  end
end

@anodelman
Copy link
Contributor

I haven't used additional disk for vagrant... is the disk shared amongst all vagrant boxes defined in the Vagrantfile? Or is it a new disk per instance? I'll keep poking around online to find out, but if anyone has the answer quicker than that I'd appreciate it.

@ghost
Copy link
Author

ghost commented Jun 9, 2014

One disk for one specific instance, not a disk shared between instances.

@anodelman
Copy link
Contributor

In PR, #303

This just covers vagrant support. I think that we should split out requests for additional disk by hypervisor.

@anodelman
Copy link
Contributor

vagrant support for additional disk in #303.

@anodelman
Copy link
Contributor

Please file further issues for support for additional hypervisors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants