mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 18:00:22 +01:00
ec248cd0d8
This will allow building a raspiblitz base image with packer and spin up a development environment in a VM.
29 lines
837 B
Ruby
29 lines
837 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# in order to attach a secondary disk we need to enable vagrant disk experimental feature
|
|
if ENV['VAGRANT_EXPERIMENTAL'] != 'disks'
|
|
ENV['VAGRANT_EXPERIMENTAL'] = 'disks'
|
|
end
|
|
|
|
Vagrant.configure('2') do |config|
|
|
config.vm.box = 'raspiblitz'
|
|
|
|
config.ssh.username = 'admin'
|
|
config.ssh.password = 'raspiblitz'
|
|
config.ssh.insert_key = true
|
|
|
|
config.vm.disk :disk, size: '16GB', primary: true
|
|
config.vm.disk :disk, size: '500GB', name: 'external_disk'
|
|
|
|
config.vm.provider 'virtualbox' do |vb, override|
|
|
vb.memory = 2048
|
|
vb.customize ['modifyvm', :id, '--usbxhci', 'on']
|
|
end
|
|
|
|
config.vm.provision 'shell',
|
|
privileged: false,
|
|
run: 'always',
|
|
path: 'alternative.platforms/amd64/packer/scripts/init_vagrant.sh'
|
|
end
|