Oracle Virtualbox

Oracle VM VirtualBox Features

Learn how Oracle VM VirtualBox features support desktop virtualization, VM groups, portability, Guest Additions, snapshots, virtual hardware, and lifecycle management.

What Oracle VM VirtualBox Does

Oracle VM VirtualBox is desktop virtualization software. It lets one physical computer run one or more virtual machines (VMs). A VM is a software-defined computer with virtual processors, memory, storage, networking, and other devices.

VirtualBox is a Type 2 hypervisor, also called a hosted hypervisor. It runs as an application on an existing operating system instead of running directly on the physical hardware.

TermMeaning
Physical computerThe real computer containing the processor, memory, storage, and devices.
Host operating systemThe operating system installed on the physical computer running VirtualBox.
VirtualBoxThe hosted virtualization software that provides and manages virtual hardware.
Virtual machineThe software-defined computer managed by VirtualBox.
Guest operating systemThe operating system installed inside a VM.

For example, Windows can be the host operating system while a Linux distribution runs as the guest operating system inside a VM. The guest behaves like a separate computer, although its resources are provided by the host.

Before working with these features, it helps to understand what a hypervisor is, what a virtual machine is, and how VirtualBox works.

Availability and Licensing

The core VirtualBox platform is available at no cost and uses open-source licensing. This makes it useful for personal learning, development, testing, and many lab environments.

Some optional extension components have separate licensing terms. Review the license for each component before using it in a business or production environment. In particular, do not assume that every optional feature has the same license as the core platform.

Cross-Platform Operation and Portability

VirtualBox supports major host platforms, including Windows, Linux, macOS, and Oracle Solaris where supported by the current release. A VM definition and its virtual disk files can often be moved between compatible hosts.

VirtualBox can also export and import virtual appliances using the Open Virtualization Format (OVF). OVF is a standard packaging format that describes a virtual machine and its associated virtual disks. An OVA file is a single-file archive containing an OVF appliance and its disks.

  1. Prepare and test the VM on the source host.
  2. Export it as an OVF appliance or an OVA file.
  3. Transfer the appliance to the destination host.
  4. Import it and review its hardware, storage, and network settings.
  5. Start the imported VM and verify the guest operating system and applications.

Portability is not absolute. Compatibility can depend on the host CPU architecture, guest operating system requirements, attached USB or other hardware, networking configuration, virtual storage controllers, and installed guest drivers. A VM may require adjustment after import, especially when it refers to host-specific devices, shared folders, or network interfaces.

Portable training lab example

Prepare a VM containing course tools and sample files, then export it as an OVA. Import the appliance on another compatible VirtualBox host. After import, check the network adapter, shared folders, processor settings, and storage paths before giving the VM to learners.

See moving a virtual machine, disk image files, and virtual disks for related storage and relocation concepts.

Organizing VMs with Groups

A VM group is a logical collection of virtual machines that can be organized and managed together. A group is not itself an operating system or a separate VM; it is an organizational container.

For a multi-tier application lab, create separate VMs for a client, application server, and database server. Place them in a group named Application Lab. Groups can contain nested groups, so a larger training project can contain groups such as Development, Testing, and Networking.

Selected lifecycle actions can be applied to a group. This allows several related VMs to be started, paused, shut down, or powered off together. Consider dependencies when doing this: a database may need to remain available until application and client VMs have stopped.

Use VM groups when the main goal is coordinated organization, not recovery or copying.

Guest Additions

Guest Additions are drivers and utilities installed inside a supported guest operating system. They improve usability and host-guest integration; they do not replace the guest operating system or remove its hardware and software requirements.

  • Improved virtual display drivers.
  • Dynamic resizing when the VM window changes size.
  • Shared clipboard between host and guest, when enabled.
  • Drag and drop between host and guest, where supported.
  • Shared folders for exchanging files.
  • Seamless pointer integration, reducing awkward mouse capture.
  • Guest time synchronization with the host.

Install a Guest Additions version compatible with the host VirtualBox version and the guest operating system. After installing or updating it, the guest may need to be restarted.

Guest desktop usability example

  1. Install the guest operating system.
  2. Start the guest and use the VirtualBox Devices menu to insert the Guest Additions media.
  3. Run the installer inside the guest operating system.
  4. Restart the guest if requested.
  5. Enable only the shared clipboard, drag-and-drop, and shared folders needed for the lab.
  6. Resize the VM window and verify display and pointer integration.

If resizing does not work or mouse capture feels awkward, Guest Additions may be missing, outdated, or incompatible. Update them, reboot the guest, and check the selected display controller and video memory settings.

Read more about VirtualBox Guest Additions.

Snapshots and State Recovery

A snapshot preserves a point-in-time VM state. It records the VM configuration and can preserve disk state and memory state when selected. A snapshot is useful as a short-term rollback point before a risky installation, software test, or system configuration change.

Snapshot workflow

  1. Create a clean Linux test VM.
  2. Take a snapshot named Before-Testing.
  3. Install an untrusted package or change a system configuration.
  4. Test the result.
  5. Restore the snapshot if the change damages the guest.

Restoring a snapshot returns the VM to the preserved point. Changes made after that point can be discarded, so copy out any files that must be retained before restoring.

Snapshots form snapshot chains. As the guest changes, additional disk blocks may be stored in differencing images. Long-lived or large chains can consume significant storage and may affect disk performance. Keep snapshots temporary and purposeful. After confirming that a recovery point is no longer needed, delete or consolidate it carefully. Create a backup or clone first if the data is important.

Snapshot versus other options

OptionWhat is preservedBest useData-loss or storage considerations
SnapshotA point-in-time VM configuration and disk state; optionally memory state.Short-term rollback before changes.Later changes may be discarded; chains consume storage.
Saved stateThe suspended execution state of a running VM.Resume the VM where it stopped.It is not an independent backup and depends on the VM files remaining usable.
Graceful shutdownFiles are closed by the guest operating system; no suspended execution state is retained.Normal daily stopping.Usually the safest way to stop a guest.
Power offStops the virtual hardware immediately.Recovery when the guest is unresponsive.Can cause guest filesystem or application data loss.
CloneAn independent copy of a VM.Creating a separate test or deployment VM.Consumes additional storage; identity and network settings may need review.
OVF/OVA exportA portable appliance description and virtual disks.Sharing or relocating a VM.Compatibility and host-specific settings must be checked.
BackupA recoverable copy of VM files or exported data.Long-term disaster recovery.Requires separate storage and a tested restore process.

A snapshot is therefore not a substitute for a backup. Use taking a snapshot and restoring a snapshot for short-term testing recovery, and use cloning or backups when an independent recoverable copy is required.

Virtual Hardware Support

VirtualBox presents configurable virtual hardware to each guest. The exact features available depend on VM settings, the selected virtual controller, host capabilities, guest operating system support, and installed extensions.

  • SMP: Symmetric multiprocessing allows a guest to use more than one virtual CPU. Assigning more virtual CPUs is not always faster; the host must have enough processing capacity and the guest must support multiple processors.
  • ACPI: Advanced Configuration and Power Interface provides power-management information and supports signals such as an orderly shutdown request.
  • USB: A guest can use supported USB devices through a virtual USB controller. Certain USB capabilities may require a separately licensed extension component, and host permissions or device ownership can affect access.
  • Multi-monitor and adjustable display: Multiple virtual monitors and changing display resolutions are supported, particularly when Guest Additions provide the appropriate display integration.
  • iSCSI: Built-in Internet Small Computer Systems Interface support can allow a guest configuration to access remote block storage over a network.
  • PXE boot: Preboot Execution Environment boot lets a VM obtain startup code from a network deployment service instead of booting only from a local virtual disk or optical image.

Configure processor count, USB, display, storage controllers, and boot order in the VM settings. For networking, choose a mode appropriate to the lab, such as NAT, bridged, host-only, or internal networking. See virtual networking and network modes.

Network-based deployment example

  1. Configure the VM network adapter for the intended deployment network.
  2. Enable PXE or network boot in the VM boot configuration.
  3. Start the VM and allow it to contact the network deployment service.
  4. Use the test to verify unattended operating system installation behavior.

VM Lifecycle Operations

Lifecycle actions control how a VM runs, pauses, stops, and resumes.

ActionEffect on the guestWhen to use itRisk level
StartBoots or resumes the VM.Begin a lab or application session.Low.
PauseTemporarily stops execution while retaining the current running state in memory.Free host CPU temporarily without shutting down.Low for short pauses; the VM cannot make progress while paused.
Save stateWrites the suspended VM execution state so it can resume later.Stop temporarily when a guest shutdown is inconvenient.Generally safe, but it is not a backup.
ACPI shutdownSends a power-button signal to the guest.Request an orderly guest shutdown.Low when the guest supports ACPI and responds correctly.
ResetRestarts the virtual machine as if its reset control were pressed.Recover from a guest that will not respond normally.Medium to high; unsaved data may be lost.
Power offImmediately removes virtual power.Emergency recovery when normal controls fail.High; filesystem and application data may be corrupted.

Prefer a guest operating system shutdown or an ACPI shutdown for normal operation. Use reset only when necessary, and use forced power-off as a last resort.

VBoxManage examples

VBoxManage is VirtualBox's command-line management tool. The following examples assume that the VM is registered under the displayed name.

VBoxManage list vms
VBoxManage snapshot "Lab-VM" take "Before-Testing"
VBoxManage snapshot "Lab-VM" restore "Before-Testing"
VBoxManage export "Lab-VM" --output Lab-VM.ova
VBoxManage import Lab-VM.ova
VBoxManage startvm "Lab-VM" --type headless
VBoxManage controlvm "Lab-VM" acpipowerbutton
VBoxManage controlvm "Lab-VM" poweroff

The ACPI command requests a graceful shutdown. The poweroff command is forceful and can risk guest data loss.

VirtualBox Feature Summary

FeaturePurposeTypical use caseImportant limitation or consideration
Cross-platform operationRun VirtualBox on supported desktop host operating systems.Use similar labs on Windows, Linux, macOS, or Oracle Solaris hosts.Current-release support, host architecture, and guest requirements matter.
OVF/OVA import and exportPackage and transfer appliances.Share or relocate a prepared VM.Review hardware, network, storage, and compatibility settings.
VM groupsOrganize and operate related VMs together.Manage a client, application server, and database lab.Group actions may not produce a clean shutdown for every guest.
Guest AdditionsImprove display, input, clipboard, and file integration.Make a desktop guest easier to use.Must match the host VirtualBox version and guest OS support.
SnapshotsPreserve a temporary rollback point.Test packages or configuration changes.Chains can consume storage and are not backups.
Multi-CPU guest supportProvide multiple virtual CPUs through SMP.Run guests that need parallel processing.Host capacity and guest OS support limit useful CPU counts.
USB supportPresent selected USB devices to a guest.Test USB software or hardware behavior.Controller, permissions, device ownership, and extensions may matter.
Multi-monitor supportProvide multiple virtual displays and adjustable resolutions.Test desktop layouts or improve workstation usability.Guest drivers and Guest Additions affect integration.
iSCSI supportAccess remote block storage through a network protocol.Test storage configurations using network-accessible disks.Requires suitable storage, networking, controller, and guest support.
PXE bootBoot a VM from a network deployment service.Test automated operating system deployment.Requires a correctly configured deployment network and service.

Choosing the Right Feature

  • Use groups for coordinated lab management.
  • Use snapshots for short-term rollback before risky changes.
  • Use OVF or OVA export for sharing or relocating a VM.
  • Use Guest Additions for improved host-guest integration.
  • Use a clone or backup when an independent, recoverable copy is required.
  • Use saved state when you need to resume a VM later, not as a disaster-recovery copy.
  • Use graceful shutdown for normal stopping and forced power-off only for recovery.

Troubleshooting Common Feature Problems

An imported VM does not start

<
  • Check whether CPU virtualization settings or architecture differ between hosts.
  • Review whether the appliance expects virtual hardware unavailable on the destination host.
  • Check processor, storage controller, and network adapter settings.
  • Remove or replace host-specific USB devices, shared folders, and storage paths.
  • Update VirtualBox or use a version compatible with the appliance configuration.

The guest display will not resize

  • Install or update Guest Additions inside the guest.
  • Restart the guest if required.
  • Confirm that the display controller and video memory settings suit the guest operating system.

A snapshot uses too much storage

  • Check whether a long snapshot chain has accumulated changed disk blocks.
  • Keep snapshots temporary and remove unneeded snapshots only after confirming they are no longer required.
  • Create a backup or clone before deleting an important recovery point.

A USB device is unavailable

  • Enable the appropriate virtual USB controller.
  • Install a matching extension component if the required capability needs one.
  • Detach the device from host applications that currently use it.
  • Review host permissions and USB filters.

A group shutdown is not clean

  • Verify that ACPI is enabled and supported by each guest.
  • Check whether a guest is paused or its guest services are hung.
  • Use the guest operating system's own shutdown procedure when clean stopping is essential.
  • Use forced power-off only when recovery is necessary and possible data loss is acceptable.

Next Steps

For hands-on practice, start with creating a virtual machine, then learn how to start a VM, pause it, and configure USB settings. The Oracle VirtualBox online course can provide a broader sequence of related lessons.