- Notifications
You must be signed in to change notification settings - Fork0
Some scripts to help setting up an Xubuntu VM with VirtualBox
License
maverickwoo/XU64Base
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
I wrote these scripts to helpme set upXubuntu virtualmachines (VMs). I preferVirtualBox, and I amsharing these in the hope that it may save others some time.
My goal is to create a VM that can be used as a base Vagrant box. Out of my ownneeds, the box should support:
- Atom, for editingGithub-flavored Markdown like this document
- Docker
- Google Chrome
- IDA Pro
- OCaml withOPAM, for developing with the CMUBinary Analysis Platform (BAP)
- Qira
I cache a copy of the current Xubuntu LTS ISO in~/ISOs
on all my machines.These scripts are tested against this ISO, though I believe these scripts shouldalso work with other Ubuntu distributions as long as they are the same release.
The script0.sh
creates and registers an empty VM with VirtualBox. Itsdefaults are chosen to be sane for being a base Vagrant box.
yourself@host$ ./0.sh ~/ISOs/xubuntu-14.04.1-desktop-amd64.iso [disk-size-in-GB]
After running this script, start your VM to install Xubuntu. You should followthe instructions printed by the script when interacting with the installer.
At this end of this step, you should have a VM with a fresh installation ofXubuntu, i.e., it hasnever been booted. Remember to take a snapshot asinstructed by the script!
Boot the VM and login asvagrant
with the passwordvagrant
. Then run thescript1.sh
.
vagrant@VM$ ./1.sh
The script is 100% automatic after the initial confirmation. When the scriptfinishes, it will inform you to shutdown the VM and take a snapshot.
Boot the VM and login asvagrant
with the passwordvagrant
. Then run thescript2.sh
.
vagrant@VM$ ./2.sh
The script is 100% automatic. Its running time depends on your networkconnection and the size of your disk image. 10 minutes would be a good guess.
IMPORTANT: While you are waiting for the script to finish, editversioning.json
. Make sure you edit thename
,description
, andversion
settings. Theversion
setting is a date string separated by dot used forvagrant box versioning.
When the script finishes, it will show you how to create a base box using thesnapshot you have just created.