1
0

Vagrant configuration for bootstrap debian/ubuntu images

This commit is contained in:
dump_stack() 2018-09-21 00:17:56 +00:00
parent 663407b241
commit ab7a1d5d75
2 changed files with 20 additions and 0 deletions

3
tools/qemu-debian-img/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.img
*.log
vmlinuz*

17
tools/qemu-debian-img/Vagrantfile vendored Normal file
View File

@ -0,0 +1,17 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y debootstrap qemu golang
mkdir qemu-debian-img && cd qemu-debian-img
cp /vagrant/main.go ./
GOBIN=/usr/bin go get ./
qemu-debian-img generate --repository="http://archive.ubuntu.com/ubuntu" --release="bionic" bionic.img
cp bionic.img /vagrant/
cp /boot/vmlinuz-* /vagrant/vmlinuz-bionic
SHELL
end