forked from embox/embox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
32 lines (22 loc) · 855 Bytes
/
Vagrantfile
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
required_plugins = %w(vagrant-reload)
required_plugins.each do |plugin|
puts "#{plugin} not available, run `vagrant plugin install #{plugin}' (affects all vagrants on system)" unless Vagrant.has_plugin? plugin
end
Vagrant.configure("2") do |config|
config.vm.define "xen", autostart: false do |xen|
xen.vm.box = "ubuntu/bionic64"
xen.vm.provision "shell", inline: <<-SHELL
DEBIAN_FRONTEND=noninteractive \
apt-get -y update
DEBIAN_FRONTEND=noninteractive \
apt-get -y install \
xen-hypervisor-amd64
echo "cd /embox" >> /home/vagrant/.bashrc
echo "export PATH=$PATH:/usr/lib/xen-4.9/bin" >> /home/vagrant/.bashrc
SHELL
xen.vm.provision :reload
xen.vm.synced_folder ".", "/embox", type: "rsync",
rsync__exclude: ".git/"
end
config.vm.network "forwarded_port", guest: 1234, host: 1234
end