raspiblitz/Vagrantfile
Alessio Caiazza ec248cd0d8 Add vagrant support (#1523)
This will allow building a raspiblitz base image with packer and spin up a development environment in a VM.
2020-09-23 13:30:32 +02:00

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