Posts tagged virtual machines
VBoxTool – An Incredibly Useful Script
Jan 8th
Bash scripting is straight forward. There are logical and object oriented constructs like programs, and you are basically manipulating data contained in files, and using standard output to determine various tasks to be done. VBoxTool does what VBoxManage lacks. I wonder how corporations start virtual machines on boot, and manage their machines once the system is running. They clearly write their own scripts. VBoxTool is a publicly published script that does just this. I would like to extend appreciation to Mark Baaijens for the script; it is extremely useful! It completely manages my system from automating the boot process when I need to reboot the host, saving the machines when the need to be shut down, and backing them up at regular intervals with cron jobs.
Extended VirtualBox Management – VBoxTool
Dec 9th
VBoxManage, the command line tool of VirtualBox, does its job. It also has its limitations. You can starts, pause, and save virtual machines, but there is no integrated way to automate various processes. To have a virtual machine boot with the host, in headless mode, you would have to create a custom init.d boot script. A great script package, call VBoxTool, coordinates the process into a terminal app. The terminal app refereneces two configuration files in your /etc directory, and utilizes an init script to boot virtual machines. VBoxTool is at sourceforge:
http://vboxtool.sourceforge.net/
Configure the machines you want to boot in:
/etc/vboxtool/machines.conf
Any machine listed in machines.conf will boot with the host. You can view running machines with:
vboxtool showrun
Then you can also view all available machines with:
vboxtool show
Maybe this wrapper script will be integrated into VBoxManage directly; it is clear the features are useful especially for system administrators.
VirtualBox Bridge and Tap no Longer Needed – Built in
Nov 3rd
With recent version of VirtualBox you no longer need to create a bridge and tap to enable host networking. In the settings panel of the virtual machine, select the network tab, and make sure that its set on bridged adapter. VirtualBox automatically creates a virtual ethernet adapter, and bridges it to the network of the host machine.
Bridging to the host network is necessary for the virtual machine to get an ip address from the router. Such a configuration is needed to communicate with the machine from the outside world. Because of this feature virtual machines can server website, and other services. I use my virtual machine to host this website, a visual ftp server, a wiki, and an EyesOS server.
There are other ways to forward individual ports from the host system to the guest, but then the ports on the host machine will not be accessible on the host; they will virtually represent the guest OS thus hindering connectivity with the host machine. There may be instances where this is what is wanted and more information, including instruction, can be found on this previous post.
The following is a screenshot of the network tab in VirtualBox. It had a bridge adapter option that will autobridge the connection to an existing ethernet adapter. Bare in mind that this is the screen from a Linux install of VirtualBox and it might be different in Windows. I remember in Windows you might have the option to create a virtual ethernet adapter, and then you can bridge the connection all in VirtualBox. Nothing needs to be done manually anymore, and everything can be done from within the VirtualBox configuration panels.
Here is a screen from Windows Vista. Go to the network tab of the virtual machine settings:
Then select the attach to drop down menu:
Then change the attach to, drop down menu, to bridged adapter:






