https://github.com/ckaznocha/bootable2vbox
A shell script to simplify creating a VirtualBox VM from a bootable USB drive or other bootable media
https://github.com/ckaznocha/bootable2vbox
bootable-media virtualbox-vm
Last synced: about 1 year ago
JSON representation
A shell script to simplify creating a VirtualBox VM from a bootable USB drive or other bootable media
- Host: GitHub
- URL: https://github.com/ckaznocha/bootable2vbox
- Owner: ckaznocha
- License: mit
- Created: 2014-05-10T23:55:04.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-08T00:55:26.000Z (about 12 years ago)
- Last Synced: 2025-02-08T14:13:38.546Z (over 1 year ago)
- Topics: bootable-media, virtualbox-vm
- Language: Shell
- Homepage:
- Size: 180 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Bootable2VBox
================================
[](https://travis-ci.org/ckaznocha/Bootable2VBox)
[](https://github.com/ckaznocha/Bootable2VBox/releases/latest)
[](http://ckaznocha.mit-license.org)
This is a small shell script to create a new VirtualBox VM and Raw Disk from an external drive with a bootable OS on it. Because the external drive's UUID changes, you need to recreate the VM every time you plug it in. This script makes that process simpler.
## WARNINGS
I am in no way affiliated with VirtualBox. I just wanted to eliminate something that was annoying to me.
### Data loss
Running this script could cause damage to your data or your drives. Use it at your own risk. I take no responsibility and cannot help you if something goes wrong.
### Supported Operating Systems
I have only used this script on OS X 10.8. It may work on other versions of OS X and Linux, it has not been tested. I make no guarantees.
I use this to launch a VirtualBox VM from a bootable USB thumb drive with Ubuntu 14.04 installed on it. It may work for other operating systems on different types of bootable media.
### Settings
The list of settings applied by this script and their defaults work for me. They may not work for you. You might want to change them.
Refer to the Virtualbox manual for information: http://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvm
## Installation
Just download the script. You'll need to update the permissions to make it executable.
## Usage
Execute the script from the terminal. You must use `sudo` to run it as root.
On OS X you might get some notifications about your bootable drive not being readable. Just click ignore. What ever you do, **DO NOT** initialize the disk.
**Note:** Avoid installing VirtualBox Guest Additions on your bootable OS if you wish to be able to boot directly from it on a physical computer.