Vagrant Development Environment
Vagrant Development Environment
Today I found this. I got really excited and made a Vagrantfile which installs everything you need for os development in an ubuntu 14.04 LTS server instance. I also made a little bash script that downloads, builds and installs a gcc cross compiler to /opt/cross. To start using this create a folder and download the Vagrantfile and installcross.sh files to it. Make sure you have VirtualBox and Vagrant installed on your system. Open a command prompt(bash, cmd, etc.) in the folder you created and run: vagrant up. After it is done run vagrant ssh to ssh into you newly generated development box. When you are done just exit out of ssh and run vagrant halt. Whenever you want to start developing again just run vagrant up and vagrant ssh again. All files in the folder that contains your Vagrantfile will be mounted in the box on /vagrant. So to install the cross compiler just run /vagrant/installcross.sh. You only have to add /opt/cross/bin to your $PATH to be able to use the i686-elf-* programs.
Vagrantfile: here
installcross.sh has been merged into Vagrantfile so that when you run vagrant up for the first time(or vagrant provision if you used this before the merge) it even installs the cross compiler into /opt/cross. I might make it so that it automatically changes the .bashrc file for the vagrant user to add /opt/cross/bin to the path automatically too.
zipfile with the file: here
Hope you find this useful,
Alexander
Vagrantfile: here
installcross.sh has been merged into Vagrantfile so that when you run vagrant up for the first time(or vagrant provision if you used this before the merge) it even installs the cross compiler into /opt/cross. I might make it so that it automatically changes the .bashrc file for the vagrant user to add /opt/cross/bin to the path automatically too.
zipfile with the file: here
Hope you find this useful,
Alexander
Last edited by alexander on Fri Apr 10, 2015 12:23 pm, edited 3 times in total.
- beyondsociety
- Member
- Posts: 39
- Joined: Tue Oct 17, 2006 10:35 pm
- Location: Eagle, ID (USA)
- Contact:
Re: Vagrant Development Environiment
Wow that's pretty interesting, thanks for the info. When I have some time, I may resurrect one of my older computers for this.
"I think it may be time for some guru meditation"
"Barbarians don't do advanced wizardry"
"Barbarians don't do advanced wizardry"
Re: Vagrant Development Environiment
Yeah and the fun thing is that I could've put the installcross.sh script inside Vagrantfile and with that everyone would get the same dev environment when you share the Vagrantfile in a repository.
- beyondsociety
- Member
- Posts: 39
- Joined: Tue Oct 17, 2006 10:35 pm
- Location: Eagle, ID (USA)
- Contact:
Re: Vagrant Development Environiment
I had a chance to read through the documentation and I noticed the repo option which is a nice feature to have. I've been wanting to setup a build server for quite a while but never got around to it, this makes it a lot easier to get something up and running. The list of pre-built os images and options for other emulators is also nice.
"I think it may be time for some guru meditation"
"Barbarians don't do advanced wizardry"
"Barbarians don't do advanced wizardry"
Re: Vagrant Development Environiment
I just merged the installcross.sh script into Vagrantfile. So when you run vagrant up for the first time it will install the cross compiler too!
Re: Vagrant Development Environiment
Make sure you mount the folder with the source from your host machine. Vagrant sometimes reinstalls the virtual machine when booting it up.
I'm Eino Tuominen from Finland, a web software dev learning low level stuff and reading / trying out kernel dev
Re: Vagrant Development Environiment
*Vagrantfile. Please correct it.alexander wrote: [..]
Vragrantfile
[..]
Re: Vagrant Development Environiment
This post has a lot to correct.muazzam wrote:*Vagrantfile. Please correct it.alexander wrote: [..]
Vragrantfile
[..]
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay
Re: Vagrant Development Environiment
Ok I had that wrong all over the place(the github repo was even called VragrantOSSetup). I think I fixed it now. If you seen any more please notify me.Roman wrote:This post has a lot to correct.muazzam wrote:*Vagrantfile. Please correct it.alexander wrote: [..]
Vragrantfile
[..]
Thanks in advance,
Alexander
Re: Vagrant Development Environiment
The topic title is incorrect. "enviroNMent" is correct.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay
Re: Vagrant Development Environiment
Fixed thank you.Roman wrote:The topic title is incorrect. "enviroNMent" is correct.
Re: Vagrant Development Environment
Files contain, not containS.All files in the folder that contains
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay
Re: Vagrant Development Environment
No...Roman wrote:Files contain, not containS.All files in the folder that contains
Actually the post says
This is correct English. Hmm, perhaps the OP has already fixed the post.All files in the folder that contains your Vagrantfile will be mounted in the box on /vagrant.
If a trainstation is where trains stop, what is a workstation ?
Re: Vagrant Development Environment
Oops! I misread it, sorry.gerryg400 wrote:No...Roman wrote:Files contain, not containS.All files in the folder that contains
Actually the post saysThis is correct English. Hmm, perhaps the OP has already fixed the post.All files in the folder that contains your Vagrantfile will be mounted in the box on /vagrant.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay