24
Tue, Dec
0 New Articles

TechTip: Sun's Open-Source VirtualBox Rivals VMware Workstation

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Sun's free VirtualBox is a great product for desktop virtualization, and you can't beat the price!

 

Originally released in January of 2007 by a company called innotek, VirtualBox is an open-source desktop virtualization product. In 2008, the company was acquired by Sun Microsystems, and since then, Sun has spent an incredible amount of time developing a very stable, easy-to-use virtualization platform.

 

For quite some time, I've been a huge fan of VMware products. All of my virtual machines in the enterprise mission-critical environments run on VMware ESX solutions. At the desktop level, VMware Workstation and VMware Server (the free product) are deployed where systems aren't as critical. All of these VMware products have been very stable, with the exception of VMware Server, the free product, as of late. Given some of the bugs with VMware Server, I slowly and hesitantly switched over from VMware Server to VirtualBox and have been quite pleased.

Supported Systems and Licensing

VirtualBox supports just about every well-known OS out there. You can run it on Windows, Mac OS X, Solaris, and OpenSolaris, as well as all the many Linux flavors, like Ubuntu, Debian, OpenSuSE, SuSE, Red Hat, and many more. The only issues with all of the various precompiled binaries are a few licensing concerns, but they aren't complicated and can be bypassed by using the open-source edition.

 

A complete list of the binary installers exists already for all of the systems listed above. The two conditions that exist with use of these binaries are that you can use the installation only for personal, educational, or evaluation use and that you cannot redistribute the binaries. If you want to use VirtualBox in an enterprise environment, you can contact Sun to purchase enterprise licenses. These also provide you with more features than the free version.

 

The open-source edition is provided in the form of source code from the downloads section of the Web site. This edition is completely open source and covered under the GPL, so it's yours to use as you wish. Once downloaded, you can find build instructions for Windows, Linux, Mac OS X, and Solaris. To get a feel for the software, I suggest using the binaries under the evaluation license before you compile and install the software, since the binaries are easier to install.

Features and Benefits

Similar to many of the other leading virtualization technologies, VirtualBox can be considered modular in design. For instance, you can start a machine in the GUI interface and then control it with the command line VBox tools included with the program. All virtual machine configuration files are stored in XML format, so you can easily copy configurations to other servers if you wish. Similar to VMware, Sun uses what it calls Guest Additions to add software drivers into the virtual machine, providing improved performance during run time.

 

One of my favorite features is the ability to share folders between the guest and the host OS. This capability allows you to access your files on your local desktop from the virtualized guest machine. USB support is included, which is nothing miraculous in and of itself; however, USB over Remote Desktop Protocol (RDP) protocol is an interesting feature. When you put the guest machine into RDP mode, others can access the machine remotely along with any USB devices plugged into the virtual machine. Also, snapshots give you the ability to save the current machine state in case you want to test software, giving you the ability to roll the machine back in the event of failures.

 

VirtualBox supports creating a lot of different virtual machine operating systems. For Windows systems, everything from Windows 3.1 to Windows 7 is supported. You can install around 10 distinct Linux types or simply use a generic Linux kernel series. Solaris, OpenSolaris, and BSD are supported, along with IBM OS/2 systems. And you can even install DOS or NetWare systems.

GUI Interface

The graphical interface is actually very simple to use. There are hardly any menus to deal with, making the user experience very smooth. Creating a new virtual machine is a breeze with VirtualBox's wizard interface. The creation wizard walks you right through the process of choosing an OS type, creating a new hard disk, or using an existing image. Once you've created the virtual machine, you can edit settings, create or edit hardware, and disable or delete devices that you don't want on the system. All hardware settings can be edited or viewed by highlighting the virtual machine and choosing Settings or by clicking on the appropriate section to the right of the main GUI interface.

 

121809Maximage1
Figure 1: Edit or view hardware settings from the VirtualBox main window. (Click images to enlarge.)

 

VirtualBox makes use of its disks and other forms of media, such as ISO images, in its version of VMware's datastore. You can access the VirtualBox Media Manager from the menu under the File button. From here, you can add and delete disk images already on the system or add and delete images to be utilized as CD/DVD or floppy images.

 

121809Maximage2

Figure 2: Add and delete images from the VirtualBox Media Manager.

 

Another feature is the ability to import or export a virtual machine as an appliance format. VirtualBox supports the Open Virtualization Format (OVF) for use with packaging and distributing virtual machines. You can export currently installed systems using the export feature from the menu as well as import any virtual appliance you obtain that uses the OVF formatting.

 

Creating shared folders between the host and the guest OS is very simple as well. The only caveat to it is to ensure you mount the share from within Linux; and from within Windows, you need to map the connection you have set up. The commands necessary to mount and map the shares are shown to you directly in the Shared Folders menu.

 

121809Maximage3
Figure 3: Mount and map shares from the Shared Folders menu.

Command Line Interface

While the GUI removes many of the features of VirtualBox, the command line gives you complete access to everything it can do. You can create, modify, and delete virtual machines. Disk and floppy mediums can be opened and closed. The command line tools allow you to clone drives and create, delete, or modify existing ones. Conversion support is enabled, meaning you can convert VMDK- and VHD-supported virtualization extensions to VirtualBox VDI types.

 

On a Linux machine, all of the virtual machine configuration files and hard disk files are stored under a hidden directory within your user profile. For instance, under my user profile of /home/maxhetrick/.VirtualBox, the files can be found. All of the configuration files are stored under the Machines directory, and all of the hard disks are stored under the HardDisks directory. When running VirtualBox command-line tools, you can refer to these files.

 

Although there are several command-line tools, the main command-line tool that's used to work with VirtualBox is VBoxManage. If you simply type VBoxManage at the command line, you should get the complete list of arguments it uses. To get a list of all the virtual machines on the system, you can type the following.

 

# VBoxManage list vms

 

"WinXP" {feb5329d-fbce-494b-85c8-20e2b6ed17ec}

"Ubuntu-9.10" {1328b5d5-412a-4147-ac20-247d974793e3}

 

You'll notice the identifier string next to the name of the virtual machines. This is the Universally Unique Identifier (UUID) that VirtualBox uses internally to reference the virtual machines. Either the UUID or the virtual machine name can be used in commands, as long as machine names are unique.

 

All command list arguments can be isolated to show only the help related to that particular argument if you'd like to narrow down the output. For instance, to see just the help with the createvm argument, type only what you want to view.

 

# VBoxManage createvm

 

The one feature that is missing in the GUI, which can be accessed from the command-line interface (CLI), is the performance metrics data of virtual machines. The VBoxManage metrics command accesses all the performance information of machines. To gather a five-second increment of statistics for a running virtual machine, use the period switch.

 

# VBoxManage metrics collect --period 5 Ubuntu-9.10

Time stamp Object Metric Value

------------ ---------- -------------------- --------------------

20:57:30.205 Ubuntu-9.10 CPU/Load/User 1.60%

20:57:30.205 Ubuntu-9.10 CPU/Load/User:avg 1.60%

20:57:30.205 Ubuntu-9.10 CPU/Load/User:min 1.60%

20:57:30.205 Ubuntu-9.10 CPU/Load/User:max 1.60%

20:57:30.205 Ubuntu-9.10 CPU/Load/Kernel 3.51%

20:57:30.205 Ubuntu-9.10 CPU/Load/Kernel:avg 3.51%

20:57:30.205 Ubuntu-9.10 CPU/Load/Kernel:min 3.51%

20:57:30.205 Ubuntu-9.10 CPU/Load/Kernel:max 3.51%

20:57:30.205 Ubuntu-9.10 RAM/Usage/Used 259352 kB

20:57:30.205 Ubuntu-9.10 RAM/Usage/Used:avg 259352 kB

20:57:30.205 Ubuntu-9.10 RAM/Usage/Used:min 259352 kB

20:57:30.205 Ubuntu-9.10 RAM/Usage/Used:max 259352 kB

------------ ---------- -------------------- --------------------

 

There are many more options than this one to gather data, so just refer to the help output of the commands to walk you through all of the arguments and switches.

Virtualization Made Easy

Although I'm running VirtualBox so far only as a desktop system, I see no reason why this product isn't robust enough to run as a virtual machine server. At the desktop level, VirtualBox provides a very clean, smooth, and easy-to-use GUI for the users who just want virtualization to be made easy for them. This is probably its greatest strength. For you hardcore option-oriented users, VirtualBox's command-line interface is complete, allowing you to do everything the GUI can, plus more.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: