From 69096c52cce0eb64341336496f1b3441fa7021b6 Mon Sep 17 00:00:00 2001 From: root <root@givry.it-innovation.soton.ac.uk> Date: Sat, 2 Jun 2018 23:58:15 +0100 Subject: [PATCH] ci vm for givry --- Vagrantfile.libvirt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Vagrantfile.libvirt diff --git a/Vagrantfile.libvirt b/Vagrantfile.libvirt new file mode 100644 index 0000000..5a3bae4 --- /dev/null +++ b/Vagrantfile.libvirt @@ -0,0 +1,24 @@ +$lxc_script = <<-SCRIPT + +apt-get update +apt-get install lxc lxc-templates wget bridge-utils jq -y +lxc-checkconfig + +touch /etc/lxc/dnsmasq.conf +sed -i s/10.0.3/172.40.231/g /etc/default/lxc-net +sed -i s/#LXC_DHCP_CONFILE/LXC_DHCP_CONFILE/g /etc/default/lxc-net +service lxc-net restart + +SCRIPT + +Vagrant.configure("2") do |config| + config.vm.box = "yk0/ubuntu-xenial" + + config.vm.provider :libvirt do |domain| + domain.memory = 8192 + domain.cpus = 4 + end + + # Install lxc + config.vm.provision :shell, inline: $lxc_script +end -- GitLab