-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.template
38 lines (30 loc) · 1.22 KB
/
Vagrantfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "source", autostart: false do |source|
source.vm.box = "{{ .SourceBox }}"
config.ssh.insert_key = "{{ .InsertKey }}"
end
config.vm.define "output" do |output|
output.vm.box = "{{ .BoxName }}"
output.vm.box_url = 'file://package.box'
config.ssh.insert_key = "{{ .InsertKey }}"
# Configure system resource defaults.
output.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
# Enable GUI.
v.gui = true
v.customize ["modifyvm", :id, "--accelerate2dvideo", "on"]
v.customize ["modifyvm", :id, "--vram", 256]
# Allow clipboard passthrough.
v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
# Passthrough AtmelICE Programmer using USB VID/PID.
v.customize ["modifyvm", :id, "--usb", "on"]
v.customize ["usbfilter", "add", "0", "--target", :id, "--name", "AtmelICE", "--vendorid", "0x03eb", "--productid", "0x2141"]
end
# Configure network bridge for Raspberry Pi.
output.vm.network 'public_network', ip: '192.168.136.1', bridge: 'en7: RNDIS/Ethernet Gadget'
end
config.vm.synced_folder ".", "/vagrant", disabled: true
end