Skip to content

Commit 6e80677

Browse files
committed
Add initial Vagrant support
1 parent 768e2d1 commit 6e80677

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vagrant

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
osdev
22
=====
33

4-
OS development playground
4+
OS development playground.
5+
6+
Environment
7+
-----------
8+
9+
This stuff is much easier to do on Linux, so I'm using Vagrant to easily work
10+
inside a Linux vm. It's super easy to use:
11+
12+
vagrant up
13+
vagrant ssh

Vagrantfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure("2") do |config|
5+
config.vm.box = "precise32"
6+
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
7+
config.vm.provision :shell, :path => 'bootstrap.sh'
8+
config.ssh.forward_x11 = true
9+
end

bootstrap.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
apt-get update
4+
apt-get install -y build-essential gdb nasm bochs bochs-x bochs-sdl

0 commit comments

Comments
 (0)