Page 2 - Contents; Introduction
Contents 1 Introduction 9 1.1 Virtualization basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.2 Software vs. hardware virtualization (VT-x and AMD-V) . . . . . . . . . 11 1.3 Features overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 1.4 Supported host opera...
Page 3 - Guest Additions
Contents 3.4.2 Changing removable media . . . . . . . . . . . . . . . . . . . . . 41 3.4.3 Saving the state of the machine . . . . . . . . . . . . . . . . . . 41 3.4.4 Snapshots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.5 The Virtual Disk Manager . . . . . . . . . . . . . . . ...
Page 4 - Virtual networking
Contents 5.5 iSCSI servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 5.5.1 Access iSCSI targets via Internal Networking . . . . . . . . . . . 80 6 Virtual networking 82 6.1 Virtual networking hardware . . . . . . . . . . . . . . . . . . . . . . . . 82 6.2 Introduction to n...
Page 5 - Advanced topics
Contents 8.14 VBoxManage createhd . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 8.15 VBoxManage modifyhd . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 8.16 VBoxManage clonehd . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 8.17 VBoxManage convertfromraw . . . . ...
Page 6 - 1 Troubleshooting
Contents 11 Troubleshooting 144 11.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 11.1.1 Collecting debugging information . . . . . . . . . . . . . . . . . 144 11.1.2 Guest shows IDE errors for VDI on slow host file system . . . . . 144 11.1.3 Responding to gue...
Page 7 - 3 Known limitations
Contents 12.10Version 2.0.4 (2008-10-24) . . . . . . . . . . . . . . . . . . . . . . . . . 174 12.11Version 2.0.2 (2008-09-12) . . . . . . . . . . . . . . . . . . . . . . . . . 176 12.12Version 2.0.0 (2008-09-04) . . . . . . . . . . . . . . . . . . . . . . . . . 178 12.13Version 1.6.6 (2008-08-26) ....
Page 8 - 5 VirtualBox privacy policy
Contents 14.2.7 Slirp license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 14.2.8 liblzf license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 14.2.9 libpng license . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 14.2.10 lwIP license . . . . . . . . . . ....
Page 9 - Introduction; You can find a brief feature overview in chapter; Virtualization basics; dows Vista as guest operating system in a virtual machine window:
1 Introduction Sun VirtualBox is a collection of powerful virtual machine tools, targeting desktopcomputers, enterprise servers and embedded systems. With VirtualBox, you can virtu-alize 32-bit and 64-bit operating systems on machines with Intel and AMD processors,either by using hardware virtualiza...
Page 10 - Operating system support.; Supported host operating systems
1 Introduction ground, however, VirtualBox intercepts certain operations that the guest performs tomake sure that the guest does not interfere with other programs on the host. The techniques and features that VirtualBox provides are useful for several scenar- ios: • Operating system support. With Vi...
Page 12 - ware virtualization”; . This means that these processors aid virtualization soft-; software; . This means that you can run virtual machines even
1 Introduction There are two ways in which VirtualBox can achieve virtualization: either entirely in software or, with newer processors, using certain hardware features. • For some years, Intel and AMD processors have had support for so-called “hard- ware virtualization” . This means that these proc...
Page 13 - “nested paging”; and; Features overview; ported host operating systems
1 Introduction Warning: Do not run other hypervisors (open-source or commercial virtu- alization products) together with VirtualBox! While several hypervisors cannormally be installed in parallel, do not attempt to run several virtual ma- chines from competing hypervisors at the same time. VirtualBo...
Page 14 - Clean architecture unprecedented modularity.; inside; Great hardware support.
1 Introduction • Clean architecture; unprecedented modularity. VirtualBox has an extremely modular design with well-defined internal programming interfaces and a cleanseparation of client and server code. This makes it easy to control it from severalinterfaces at once: for example, you can start a V...
Page 15 - ACPI power status support,
1 Introduction – Full ACPI support. The Advanced Configuration and Power Interface (ACPI) is fully supported by VirtualBox. This eases cloning of PC imagesfrom real machines or third-party virtual machines into VirtualBox. With itsunique ACPI power status support, VirtualBox can even report to ACPI-...
Page 16 - Supported host operating systems; Windows; Linux; Installing on Linux hosts; Solaris; Known limitations
1 Introduction 1.4 Supported host operating systems Currently, VirtualBox is available for the following host operating systems: • Windows hosts: – Windows XP, all service packs (32-bit) – Windows Server 2003 (32-bit) – Windows Vista (32-bit and 64-bit 2 ). – Windows Server 2008 (32-bit and 64-bit) ...
Page 17 - Supported guest operating systems; All versions/editions and service packs are fully supported how-; Solaris 10, OpenSolaris; Limited support. Guest Additions are not available yet.; OpenBSD
1 Introduction 1.5 Supported guest operating systems Since VirtualBox is designed to provide a generic virtualization environment for x86systems, it may run operating systems of any kind, even those that are not officiallysupported by Sun Microsystems. However, our focus is to optimize the product’s...
Page 18 - working device; , since there is no 64-bit driver support for the AMD PCNet
1 Introduction 1.6 64-bit guests Starting with Version 2.0, VirtualBox also supports 64-bit guest operating systems.Starting with Version 2.1, you can even run 64-bit guests on a 32-bit host operatingsystem, so long as you have sufficient hardware. In particular, 64-bit guests are supported under th...
Page 19 - Installation; Installing on Windows hosts; USB support; This package contains special drivers for your Windows host that
2 Installation As installation of VirtualBox varies depending on your host operating system, we pro-vide installation instructions in four separate chapters for Windows, Mac OS X, Linuxand Solaris, respectively. 2.1 Installing on Windows hosts 2.1.1 Prerequisites For the various versions of Windows ...
Page 20 - Networking; and then do as follows:; Installing on Mac OS X hosts; A window will open telling you to double click on the
2 Installation Networking This package contains extra networking drivers for your Windows host that VirtualBox needs to support Host Interface Networking (to make your VM’svirtual network cards accessible from other machines on your physical network). Depending on your Windows configuration, you may...
Page 21 - Installing on Linux hosts
2 Installation 2.2.2 Uninstallation To uninstall VirtualBox, open the disk image (dmg) file again and double-click on theuninstall icon contained therein. 2.2.3 Unattended installation To perform a non-interactive installation of VirtualBox you can use the command lineversion of the installer applic...
Page 22 - The version numbers of the header file packages must
2 Installation The VirtualBox kernel module is automatically installed on your system when you install VirtualBox. To maintain it with future kernel updates, for recent Linux distribu-tions – for example Fedora Core 5 and later, Ubuntu 7.10 (Gutsy) and later and Man-driva 2007.1 and later –, general...
Page 23 - USB and advanced networking support; usbfs
2 Installation 2. The kernel of your Linux host got updated. In that case, the kernel module will need to be reinstalled by executing (as root): /etc/init.d/vboxdrv setup 2.3.3 USB and advanced networking support In order to use VirtualBox’s USB support, the user account under which you intend torun...
Page 26 - devfs; usb
2 Installation make install The VirtualBox kernel module needs a device node to operate. The above make command will tell you how to create the device node, depending on your Linux system.The procedure is slightly different for a classical Linux setup with a /dev directory, a system with the now dep...
Page 27 - vboxdrv
2 Installation sudo ./VirtualBox.run uninstall or as root ./VirtualBox.run uninstall . Starting with version 2.2.2, you can uninstall the .run package by invoking /opt/VirtualBox/uninstall.sh To manually uninstall VirtualBox, simply undo the steps in the manual installation inreverse order. 2.3.4.5 ...
Page 28 - Installing on Solaris hosts
2 Installation 2.3.5 Starting VirtualBox on Linux The easiest way to start a VirtualBox program is by running the program of your choice( VirtualBox , VBoxManage , VBoxSDL or VBoxHeadless ) from a terminal. These are symbolic links to VBox.sh that start the required program for you. The following de...
Page 30 - Configuring a zone for running VirtualBox; zonecfg
2 Installation 2.4.4 Unattended installation To perform a non-interactive installation of VirtualBox we have provided a responsefile named autoresponse that the installer will use for responses to inputs rather than ask them from you. Extract the tar.gz package as described in the normal installatio...
Page 31 - Starting out with VirtualBox; Virtualization basics; Starting the graphical user interface
3 Starting out with VirtualBox As already mentioned in chapter 1.1 , Virtualization basics , page 9 , VirtualBox allows you to run each of your guest operating systems on its own virtual computer system,which is called a “virtual machine” (VM). The guest system will run in its VM as if itwere instal...
Page 32 - Creating a virtual machine
3 Starting out with VirtualBox group of your “Applications” menu. Alternatively, you can type VirtualBox in a terminal. A window like the following should come up: On the left, you can see a pane that lists all the virtual machines you have created sofar (quite a few in the example above). A row of ...
Page 33 - name; recommended to always set it to the correct value.
3 Starting out with VirtualBox On the following pages, the wizard will ask you for the bare minimum of informationthat is needed to create a VM, in particular: 1. A name for your VM, and the type of operating system (OS) you want to install. The name is what you will later see in the VirtualBox main...
Page 34 - virtual hard disk; Virtual storage
3 Starting out with VirtualBox Note: Choose this setting carefully! The memory you give to the VM will not be available to your host OS while the VM is running, so do not specifymore than you can spare. For example, if your host machine has 1 GB ofRAM and you enter 512 MB as the amount of RAM for a ...
Page 35 - “New”; The Virtual Disk Manager; “Create New Virtual Disk Wizard”.
3 Starting out with VirtualBox The wizard allows you to create an image file or use an existing one. Note alsothat the disk images can be separated from a particular VM, so even if you deletea VM, you can keep the image, or copy it to another host and create a new VMfor it there. In the wizard, you ...
Page 36 - “Next”; to go to the; “Finish”; , your new virtual machine will be created. You will; Basics of virtual machine configuration
3 Starting out with VirtualBox much more space, a fixed-size file incurs less overhead and is thereforeslightly faster than a dynamically expanding file. For details about the differences, please refer to chapter 5.2 , Disk image files (VDI, VMDK, VHD) , page 77 . To prevent your physical hard disk ...
Page 38 - Running a virtual machine
3 Starting out with VirtualBox • If you have downloaded installation media from the Internet in the form of anISO image file (most probably in the case of a Linux distribution), you wouldnormally burn this file to an empty CD or DVD and proceed as just described.With VirtualBox however, you can skip...
Page 39 - Keyboard and mouse support in virtual machines; second; keyboard
3 Starting out with VirtualBox in the window, as can be seen with the image in chapter 1.1 , Virtualization basics , page 9 . In general, you can use the virtual machine much like you would use a real com- puter. There are couple of points worth mentioning however. 3.4.1 Keyboard and mouse support i...
Page 40 - mouse
3 Starting out with VirtualBox To release keyboard ownership, press the Host key (as explained above, typicallythe right Control key). Note that while the VM owns the keyboard, some key sequences (like Alt-Tab forexample) will no longer be seen by the host, but will go to the guest instead.After you...
Page 42 - Save the machine state:; without; “Discard”
3 Starting out with VirtualBox The difference between these three options is crucial. They mean: • Save the machine state: With this option, VirtualBox “freezes” the virtual ma- chine by completely saving its state to your local disk. When you later resume theVM (by again clicking the “Start” button...
Page 43 - take a snapshot; VBoxManage; The Virtual Disk Manager; Virtual Disk
3 Starting out with VirtualBox Once you have set up the machine the way you want it, simply take a snapshot, and should anything happen to the installation, you can simply revert to its snapshot state. To take a snapshot of your VM, perform the following steps: 1. If your VM is currently in either t...
Page 44 - button this will bring up the; “Add”
3 Starting out with VirtualBox The Disk Image Manager shows you all images that are currently registered withVirtualBox, conveniently grouped in three tabs for the three possible formats. Theseformats are: • Hard disk images, either in VirtualBox’s own Virtual Disk Image (VDI) format orin the widely...
Page 45 - remove; Cloning disk images; Deleting virtual machines
3 Starting out with VirtualBox • remove an image from the registry (and optionally delete the image file when doing so); • “release” an image, that is, detach it from a virtual machine if it is currently attached to one as a virtual hard disk. We recommend that you maintain two special folders on yo...
Page 47 - Base memory; This sets the amount of RAM that is allocated and given to the VM; Boot order; VBoxManage modifyvm
3 Starting out with VirtualBox 3.7.1.3 “Description” tab Here you can enter any description for your virtual machine, if you want. This has noeffect of the functionality of the machine, but you may find this space useful to notedown things like the configuration of a virtual machine and the software...
Page 48 - Enable ACPI; must not; CPU cores
3 Starting out with VirtualBox Enable ACPI VirtualBox can present the Advanced Configuration and Power Interface (ACPI) to the guest operating system for configuring the virtual hardware. Inaddition, via ACPI, VirtualBox can present the host’s power status information tothe guest. ACPI is the curren...
Page 49 - Nested paging; not; Video memory size
3 Starting out with VirtualBox In addition, the “Enable PAE/NX” setting determines whether the PAE and NX capa- bilities of the host CPU will be exposed to the virtual machine. PAE stands for “PhysicalAddress Extension”. Normally, if enabled and supported by the operating system, theneven a 32-bit x...
Page 50 - two IDE controllers
3 Starting out with VirtualBox comes with Microsoft Windows (typically found under “Accessories” -> “Com-munication” -> “Remote Desktop Connection”) or, on Linux systems, the stan-dard open-source rdesktop program. These features are described in detail in chapter 7.4 , Remote virtual machines...
Page 51 - “Mount”; checkbox is
3 Starting out with VirtualBox lifetime. You may, however, freely remove, add and exchange virtual hard drives afterthe machine has been set up. For example, if you wish to copy some files from anothervirtual disk that you created, you can connect that disk as a second hard disk. To connect an addit...
Page 55 - Vendor and product ID.; VBoxManage reference; lsusb
3 Starting out with VirtualBox Note: 1. Be careful with USB devices that are currently in use on the host! For example, if you allow your guest to connect to your USB hard disk thatis currently mounted on the host, when the guest is activated, it will bedisconnected from the host without a proper sh...
Page 56 - deactivate; vboxusers; Importing and exporting virtual machines
3 Starting out with VirtualBox 3. Remote. This setting specifies whether the device will be local only, or remote only (over VRDP), or either. On a Windows host, you will need to unplug and reconnect a USB device to use it after creating a filter for it. As an example, you could create a new USB fil...
Page 57 - virtual appliances; import; an appliance in OVF format, select “File” -> “Import appliance” from the
3 Starting out with VirtualBox OVF is a cross-platform standard supported by many virtualization products which allows for creating ready-made virtual machines that can then be imported into avirtualizer such as VirtualBox. As opposed to other virtualization products, VirtualBoxnow supports OVF with...
Page 58 - “Import”; , VirtualBox will copy the disk images and create local virtual ma-; export; virtual machines that you already have in VirtualBox, select
3 Starting out with VirtualBox This presents the virtual machines described in the OVF file and allows you to changethe virtual machine settings by double-clicking on the description items. Once youclick on “Import” , VirtualBox will copy the disk images and create local virtual ma- chines with the ...
Page 60 - Guest Additions; Mouse pointer integration; Capturing and releasing keyboard and mouse; Better video support
4 Guest Additions The previous chapter covered getting started with VirtualBox and installing operatingsystems in a virtual machine. For any serious and interactive use, the VirtualBox GuestAdditions will make your life much easier by providing closer integration between hostand guest and improving ...
Page 61 - Time synchronization; Folder sharing; Seamless windows; Shared clipboard; General settings; Automated Windows logons; Automated Windows guest logons (VBoxGINA); Windows Guest Additions
4 Guest Additions For Linux and Solaris guests, the Xorg server version 1.3 or later is required forautomatic resizing (the feature has been disabled on Fedora 9 guests due to abug in the X server they supply). The server version can be checked with Xorg -version . Finally, if the Guest Additions ar...
Page 62 - Installing the Windows Guest Additions
4 Guest Additions • Microsoft Windows Server 2003 (any service pack) • Microsoft Windows Vista (all editions) • Microsoft Windows 7 Beta Generally, it is strongly recommend to install the Windows Guest Additions. 4.2.1 Installing the Windows Guest Additions After mounting the Guest Additions ISO fil...
Page 63 - Updating the Windows Guest Additions; the VirtualBox Graphics Adapter and
4 Guest Additions 4.2.1.2 Running the installer Unless you have the Autostart feature disabled in your Windows guest, Win-dows will now autostart the VirtualBox Guest Additions installation programfrom the Additions ISO. If the Autostart feature has been turned off, choose VBoxWindowsAdditions.exe f...
Page 64 - Linux Guest Additions
4 Guest Additions 4.2.4 Manual file extraction If you would like to install the files and drivers manually, you can extract the files fromthe Windows Guest Additions setup by typing: VBoxWindowsAdditions.exe /extract To explicitly extract the Windows Guest Additions for another platform than the cur...
Page 65 - Installing the Linux Guest Additions; The VirtualBox kernel module; before
4 Guest Additions • Ubuntu 5.10, 6.06, 7.04, 7.10, 8.04, 8.10 and 9.04. Other distributions may work if they are based on comparable software releases.The version of the Linux kernel supplied by default in SUSE and openSUSE 10.2, Ubuntu 6.10 (all versions) and Ubuntu 6.06 (server edition) contains a...
Page 66 - Video acceleration and high resolution graphics modes
4 Guest Additions sh ./VBoxAdditions.run help for more information. To recompile the guest kernel modules, use this command: /etc/init.d/vboxadd setup After compilation you should reboot your guest to ensure that the new modules are actually used. 4.3.2 Video acceleration and high resolution graphic...
Page 67 - Solaris Guest Additions; The following Solaris distributions are officially supported:; Installing the Solaris Guest Additions; Installation involves the following steps:; Uninstalling the Solaris Guest Additions
4 Guest Additions 4.4 Solaris Guest Additions Like the Windows Guest Additions, the VirtualBox Guest Additions for Solaris take theform of a set of device drivers and system applications which may be installed in theguest operating system. The following Solaris distributions are officially supported...
Page 68 - Updating the Solaris Guest Additions
4 Guest Additions 4.4.3 Updating the Solaris Guest Additions The Guest Additions should be updated by first uninstalling the existing Guest Ad-ditions and then installing the new ones. Attempting to install new Guest Additionswithout removing the existing ones is not possible. 4.5 OS/2 Guest Additio...
Page 70 - to set the character set used for I/O operations (utf8 by default) and; uid
4 Guest Additions $id uid=5000(jack) gid=1(other) $mkdir /export/home/jack/mount $pfexec mount -F vboxfs -o uid=5000,gid=1 jackshare /export/home/jack/mount $cd ~/mount $ls sharedfile1.mp3 sharedfile2.txt $ Beyond the standard options supplied by the mount command, the following are available: iocha...
Page 71 - Hardware 3D acceleration (OpenGL and DirectX; The 3D acceleration currently has the following preconditions:
4 Guest Additions To enable seamless mode, after starting the virtual machine, press the Host key (nor-mally the right control key) together with “L”. This will enlarge the size of the VM’sdisplay to the size of your host screen and mask out the guest operating system’s back-ground. To go back to th...
Page 72 - manually enabled; in the VM settings (see chapter
4 Guest Additions • OpenGL on Linux requires kernel 2.6.27 and higher as well as X.org serverversion 1.5 and higher. Ubuntu 8.10 and Fedora 10 have been tested andconfirmed as working. • OpenGL on Solaris guests requires X.org server version 1.5 and higher. 2. The Guest Additions must be installed. ...
Page 74 - chapter
4 Guest Additions Name: /VirtualBox/GuestAdd/Components/VBoxSF.sys, value: 3.0.0r40720, timestamp: 1229098279893056000, flags: Name: /VirtualBox/GuestAdd/Components/VBoxVideo.sys, value: 3.0.0r40720, timestamp: 1229098279895767000, flags: Name: /VirtualBox/GuestInfo/OS/LoggedInUsers, value: 1, times...
Page 75 - Virtual storage; VirtualBox as well this is described in chapter
5 Virtual storage As the virtual machine will most probably expect to see a hard disk built into its virtualcomputer, VirtualBox must be able to present “real” storage to the guest as a virtualhard disk. There are presently three methods in which to achieve this: 1. Most commonly, VirtualBox will us...
Page 76 - SCSI; There are limitations with the default SCSI drivers shipped with; AHCI
5 Virtual storage CD-ROM/DVD drive, this leaves you with up to three virtual hard disks that youcan attach to a virtual machine’s IDE controller. So even if your guest operating system has no support for SCSI or SATA devices,it should always be able to see the default IDE controller that is enabled ...
Page 78 - dynamically expanding image; Configuring image write operations; normal images; Snapshots; immutable images
5 Virtual storage • Finally, VirtualBox also fully supports the VHD format used by Microsoft. Irrespective of the disk format, as briefly mentioned in chapter 3.2 , Creating a virtual machine , page 32 , there are two options of how to create a disk image: fixed-size or dynamically expanding. • If y...
Page 79 - write-through hard disks
5 Virtual storage which VirtualBox creates automatically when the VM starts. The next time theVM is started, the differencing image is reset so that every time the VM starts, itsimmutable images have exactly the same content. 4 If the automatic discarding of the differencing image on VM startup does...
Page 80 - Cloning disk images; only; Access iSCSI targets via Internal Networking; Internal networking
5 Virtual storage 5.4 Cloning disk images You can duplicate hard disk image files on the same host to quickly produce a secondvirtual machine with the same operating system setup. However, you should only make copies of virtual disk images using the utility supplied with VirtualBox; see chapter 8.16...
Page 82 - Virtual networking; Network settings; Virtual networking hardware; hardware
6 Virtual networking As briefly mentioned in chapter 3.7.7 , Network settings , page 52 , VirtualBox provides up to eight virtual PCI Ethernet cards for each virtual machine. For each such card,you can individually select 1. the hardware that will be virtualized as well as 2. the virtualization mode...
Page 83 - jumbo frames; Introduction to networking modes; network address translation
6 Virtual networking VirtualBox has limited support for so-called jumbo frames , i.e. networking packets with more than 1500 bytes of data, provided that you use the Intel card virtualiza-tion and bridged networking. In other words, jumbo frames are not supported in NATmode or with the AMD networkin...
Page 84 - “Not attached” mode; Fine-tuning the VirtualBox NAT engine; Configuring port forwarding with NAT; This means
6 Virtual networking 6.3 “Not attached” mode When a virtual network card’s mode is set to “Not attached”, VirtualBox reports to theguest that a network card is present, but that there is no connection – as if no Ethernetcable was plugged into the card. This way it is possible to “pull” the virtual E...
Page 85 - limitations
6 Virtual networking To an application on the host or other physical (or virtual) machines on the network, it looks as though the service being proxied is actually running on the host (note thatthis also means that you cannot run the same service on the same ports on the host).However, you still gai...
Page 86 - ICMP protocol limitations:; ping; Receiving of UDP broadcasts is not reliable:; root; Bridged networking; host
6 Virtual networking ICMP protocol limitations: Some frequently used network debugging tools (e.g. ping or tracerouting) rely on the ICMP protocol for sending/receiving messages. While ICMP support has been improved with VirtualBox 2.1 ( ping should now work), some other tools may not work reliably....
Page 87 - Macintosh; hosts, functionality is limited when using AirPort (the Mac’s wire-; On
6 Virtual networking Note: Even though TAP is no longer necessary on Linux with bridged network- ing, you can still use TAP interfaces for certain advanced setups, since you can connect a VM to any host interface – which could also be a TAP interface. To enable bridged networking, all you need to do...
Page 88 - Internal networking; mode to “internal networking”. There are two ways to accomplish this:
6 Virtual networking 6.6 Internal networking Internal Networking is similar to bridged networking in that the VM can directly com-municate with the outside world. However, the “outside world” is limited to other VMswhich connect to the same internal network. Even though technically, everything that ...
Page 90 - virtual machines; Features overview
7 Alternative front-ends; remote virtual machines 7.1 Introduction As briefly mentioned in chapter 1.3 , Features overview , page 13 , VirtualBox has a very flexible internal design that allows you to use different front-ends to control the samevirtual machines. To illustrate, you can, for example, ...
Page 91 - Alternative front-ends remote virtual machines; Using VBoxManage to control virtual machines
7 Alternative front-ends; remote virtual machines 7.2 Using VBoxManage to control virtual machines This section will give you a brief introduction to VBoxManage and how you can use itto create and operate virtual machines. In essence, VBoxManage supports everything that our graphical user interface ...
Page 92 - VBoxManage showvminfo
7 Alternative front-ends; remote virtual machines $ VBoxManage createvm --name "SUSE 10.2" --register VirtualBox Command Line Management Interface Version 3.0.0 (C) 2005-2008 Sun Microsystems, Inc. All rights reserved. Virtual machine ’SUSE 10.2’ is created. UUID: c89fc351-8ec6-4f02-a048-57f...
Page 95 - server; telnet
7 Alternative front-ends; remote virtual machines Note that when you use VBoxHeadless to start a VM, the built-in VRDP server will always be enabled, regardless of whether you have enabled the VRDP server in theVM’s settings. If this is undesirable (for example because you want to access the VMvia s...
Page 99 - in order to use them at the same time (see chapter
7 Alternative front-ends; remote virtual machines 7.4.6 VRDP multiple connections The VirtualBox built-in RDP server supports simultaneous connections to the samerunning VM from different clients. All connected clients see the same screen outputand share a mouse pointer and keyboard focus. This is s...
Page 100 - VBoxManage reference
8 VBoxManage reference When running VBoxManage without parameters or when supplying an invalid com-mand line, the below syntax diagram will be shown. Note that the output will beslightly different depending on the host platform; when in doubt, check the output of VBoxManage for the commands availabl...
Page 105 - VBoxManage showvminfo
8 VBoxManage reference 8.1 VBoxManage list The list command gives relevant information about your system and information about VirtualBox’s current settings. The following subcommands are available with VBoxManage list : • vms lists all virtual machines currently registered with VirtualBox. By defau...
Page 107 - VBoxManage createvm; VBoxManage registervm; VBoxManage modifyvm; Virtual machine settings
8 VBoxManage reference 8.4 VBoxManage createvm This command creates a new XML virtual machine definition file. The --name <name> parameter is required and must specify the name of the machine. Since this name is used by default as the file name of the set- tings file (with the extension .xml )...
Page 112 - VBoxManage import
8 VBoxManage reference should be shared with the host; see chapter 3.7.1 , General settings , page 46 . This requires that the Guest Additions be installed in the virtual machine. • --vrdp on|off : With the VirtualBox graphical user interface, this enables or disables the built-in VRDP server. Note ...
Page 113 - VBoxManage export
8 VBoxManage reference VBoxManage import WindowsXp.ovf --dry-run Interpreting WindowsXp.ovf... OK. Virtual system 0: 0: Suggested OS type: "WindowsXP" (change with "--vsys 0 --ostype <type>"; use "list ostypes" to list all) 1: Suggested VM name "Windows XP Professio...
Page 114 - VBoxManage startvm; VirtualBox; gui
8 VBoxManage reference VMDK. See chapter 3.8 , Importing and exporting virtual machines , page 56 for an in- troduction to appliances. The export command is simple to use: list the machine (or the machines) that you would like to export to the same OVF file and specify the target OVF file after anad...
Page 115 - VBoxManage controlvm; VBoxManage startvm
8 VBoxManage reference 8.9 VBoxManage controlvm The controlvm subcommand allows you to change the state of a virtual machine that is currently running. The following can be specified: • VBoxManage controlvm <vm> pause temporarily puts a virtual machine on hold, without changing its state for g...
Page 116 - VBoxManage discardstate; The
8 VBoxManage reference • dvdattach inserts a DVD image into the virtual machine or connects it to the host DVD drive. With this command (as opposed to VBoxManage modifyvm ), the image file does not first have to be registered with VirtualBox. You can use VBoxManage list hostdvds to display all the d...
Page 117 - VBoxManage showhdinfo; where the parameters mean:
8 VBoxManage reference Note: For compatibility with earlier versions of VirtualBox, the “registerim- age” and “unregisterimage” commands are also supported and mapped inter-nally to the “openmedium” and “closemedium” commands, respectively. Note however that when you unregister a hard disk image usi...
Page 118 - remember; VBoxManage modifyhd; modifyhd
8 VBoxManage reference remember Keep the destination image registered after it was successfully written. Note: For compatibility with earlier versions of VirtualBox, the “createvdi” command is also supported and mapped internally to the “createhd” com-mand. 8.15 VBoxManage modifyhd With the modifyhd...
Page 120 - VBoxManage addiscsidisk; addiscsidisk
8 VBoxManage reference 8.18 VBoxManage addiscsidisk The addiscsidisk command attaches an iSCSI network storage unit to VirtualBox. The iSCSI target can then be made available to and used by a virtual machine asthough it were a standard write-through virtual disk image. This command has the following...
Page 121 - VBoxManage getextradata/setextradata; global; which would return; VBoxManage setproperty; hdfolder; are kept see chapter; vrdpauthlibrary; This specifies which library to use when “external” VRDP authenti-; websrvauthlibrary; VirtualBox programming interfaces; hwvirtexenabled
8 VBoxManage reference 8.19 VBoxManage getextradata/setextradata These commands let you attach and retrieve string data to a virtual machine or to aVirtualBox configuration (by specifying global instead of a virtual machine name). You must specify a key (as a text string) to associate the data with,...
Page 122 - VBoxManage metrics
8 VBoxManage reference 8.21 VBoxManage usbfilter add/modify/remove The usbfilter commands are used for working with USB filters in virtual machines, or global filters which affect the whole VirtualBox setup. Global filters are applied be-fore machine-specific filters, and may be used to prevent devi...
Page 123 - list
8 VBoxManage reference Metric data is collected and retained internally; it may be retrieved at any time with the VBoxManage metrics query subcommand. The data is available as long as the background VBoxSVC process is alive. That process terminates shortly after all VMs and frontends have been close...
Page 124 - collect; setup; VBoxManage guestproperty; Guest properties
8 VBoxManage reference Note: The query subcommand does not remove or “flush” retained data. If you query often enough you will see how old samples are gradually being“phased out” by new samples. collect This subcommand sets the interval between taking two samples of metric data and the number of sam...
Page 125 - VBoxManage dhcpserver; VBoxManage list hostonlyifs
8 VBoxManage reference omitted, the property is deleted. With --flags you can optionally specify ad- ditional behavior (you can combine several by separating them with commas): – TRANSIENT : the value will not be stored with the VM data when the VM exits; – RDONLYGUEST : the value can only be change...
Page 127 - Advanced topics; VirtualBox configuration data
9 Advanced topics 9.1 VirtualBox configuration data For each system user, VirtualBox stores configuration data in the user’s home directory,as per the conventions of the host operating system: • On Windows, this is %HOMEDRIVE%%HOMEPATH%\.VirtualBox ; typically something like C:\Documents and Setting...
Page 129 - Custom external VRDP authentication; RDP authentication
9 Advanced topics Note: The VirtualBox GINA is implemented as a wrapper around the standard Windows GINA ( MSGINA.DLL ) so it will most likely not work correctly with 3rd party GINA modules. To set credentials, use the following command on a running VM: VBoxManage controlvm "Windows XP" setc...
Page 131 - Secure labeling with VBoxSDL
9 Advanced topics • reverse the order of byte 6 and 7. Using this conversion you will get identical results when converting the binary UUIDto the string representation. The second arguments contains information about the guest authentication status. For the first call, it is always set to VRDPAuthGu...
Page 132 - Custom VESA resolutions; can be set using the video mode hint feature.
9 Advanced topics Additions automatically provide the reduced video modes. Additionally, the VESABIOS has been adjusted to duplicate its standard mode table with adjusted resolutions.The adjusted mode IDs can be calculated using the following formula: reduced_modeid = modeid + 0x30 For example, in o...
Page 133 - Multiple monitors for the guest; tiple connections; domain; Releasing modifiers with VBoxSDL on Linux; SIGUSR1
9 Advanced topics 9.6 Multiple monitors for the guest VirtualBox allows the guest to use multiple virtual monitors. Up to sixty-four virtualmonitors are supported. Note: 1. Multiple monitors currently work only with Windows XP guests, and Guest Additions must be installed, as the implementation resi...
Page 134 - Launching more than 120 VMs on Solaris hosts; Serial ports
9 Advanced topics to the VBoxSDL main thread (first entry in the ps list). For example, when switching away to another VT and saving the virtual machine from this terminal, the followingsequence can be used to make sure the VM is not saved with stuck modifiers: kill -usr1 <pid> VBoxManage cont...
Page 135 - Using a raw host hard disk from a guest; total loss of data; do not; Access to entire physical hard disk; entire physical disk
9 Advanced topics This sets up a serial port in the guest with the default settings for COM1 (IRQ 4, I/Oaddress 0x3f8) and the Location setting assumes that this configuration is used on a Windows host, because the Windows named pipe syntax is used. Keep in mind thaton Windows hosts a named pipe mus...
Page 136 - Access to individual physical hard disk partitions; see
9 Advanced topics arbitrary ways without having to recreate the image file that gives access to the rawdisk. To create an image that represents an entire physical hard disk (which will not contain any actual data, as this will all be stored on the physical disk), on a Linuxhost, use the command VBox...
Page 138 - Allowing a virtual machine to start even with; Configuring the address of a NAT network interface
9 Advanced topics 9.11 Allowing a virtual machine to start even with unavailable CD/DVD/floppy devices When, on VM startup, a CD, DVD or floppy device is unavailable, VirtualBox by defaultprints an error message and refuses to start the virtual machine. In some situationsthis behavior is not desirab...
Page 139 - Binding NAT sockets to a specific interface
9 Advanced topics VBoxManage setextradata "Linux Guest" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/NextServer" 10.0.2.2 VBoxManage setextradata "Linux Guest" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/BootFile" /srv/tftp/boot/MyPXEBoot.pxe 9.12.3 Tuning TCP/IP buffers...
Page 140 - Configuring the maximum resolution of guests; will remove all limits on guest resolutions.; manually specifies a maximum resolution.; Configuring the BIOS DMI information
9 Advanced topics 9.12.5 Enabling DNS proxy in NAT mode For resolving network names the DHCP server of the NAT engine offers a list of regis-tered DNS servers of the host. For some reason you might need to hide the DNS serverlist, thereby forcing the VirtualBox NAT engine to react to changes in the ...
Page 141 - to reflect guest execution; To revert to the default TSC handling mode use:
9 Advanced topics "Host BIOS Version" VBoxManage setextradata "My VM" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate" "Host BIOS Release Date" VBoxManage setextradata "My VM" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMajor" 1 VBoxMa...
Page 142 - Configuring the hard disk vendor product data
9 Advanced topics 9.16 Configuring the hard disk vendor product data (VPD) VirtualBox reports vendor product data for its virtual hard disks which consist of harddisk serial number, firmware revision and model number. These can be changed usingthe following commands: VBoxManage setextradata "My ...
Page 143 - which is available for download from
10 VirtualBox programming interfaces VirtualBox comes with comprehensive support for third-party developers. The so-called “Main API” of VirtualBox exposes the entire feature set of the virtualizationengine. It is completely documented and available to anyone who wishes to controlVirtualBox programm...
Page 144 - to; Guest shows IDE errors for VDI on slow host file system
11 Troubleshooting This chapter provides answers to commonly asked questions. In order to improve youruser experience with VirtualBox, it is recommended to read this section to learn moreabout common pitfalls and get recommendations on how to use the product. 11.1 General 11.1.1 Collecting debugging...
Page 145 - Responding to guest IDE flush requests; described in chapter
11 Troubleshooting after a certain amount of data has been written. This interval is normally infinite, butcan be configured individually for each disk of a VM using the following command: VBoxManage setextradata VMNAME "VBoxInternal/Devices/piix3ide/0/LUN#[x]/Config/FlushInterval" [b] The v...
Page 146 - Windows bluescreens after changing VM configuration; Installation reboots, usually during component registration.
11 Troubleshooting 11.2 Windows guests 11.2.1 Windows bluescreens after changing VM configuration Often, customers encounter Windows startup failures (the infamous “blue screen”)after performing configuration changes to a virtual machine which are not allowedfor an already installed Windows operatin...
Page 147 - How to record bluescreen information from Windows; In order to enable this feature, issue the following command:; No networking in Windows Vista guests; Windows Vista networking; Windows guests may cause a high CPU load; . We recommend to recompile the guest kernel and to select a
11 Troubleshooting VBoxManage setextradata VMNAME "VBoxInternal/Devices/piix3ide/0/Config/IRQDelay" 1 This sets the delay to one millisecond. In case this doesn’t help, increase it to a value between 1 and 5 milliseconds. Please note that this slows down disk performance.After installation, ...
Page 148 - System settings
11 Troubleshooting 11.3.2 AMD Barcelona CPUs Most Linux-based guests will fail with AMD Phenoms or Barcelona-level Opterons dueto a bug in the Linux kernel. Enable the I/O-APIC to work around the problem (seechapter 3.7.1.2 , “Advanced” tab , page 46 ). 11.3.3 Buggy Linux 2.6 kernel versions The fol...
Page 149 - Sluggish response when using Microsoft RDP client; or; can be set appropriately.
11 Troubleshooting the COM server might experience an internal error and subsequently other processesfail to initialize it. In these situations, it is recommended to use the Windows taskmanager to kill the process VBoxSVC.exe . 11.4.2 CD/DVD changes not recognized In case you have assigned a physica...
Page 150 - Running an iSCSI initiator and target on a single system; Linux kernel module refuses to load
11 Troubleshooting 11.4.4 Running an iSCSI initiator and target on a single system Deadlocks can occur on a Windows host when attempting to access an iSCSI targetrunning in a guest virtual machine with an iSCSI initiator (e.g. Microsoft iSCSI Ini-tiator) that is running on the host. This is caused b...
Page 151 - Strange guest IDE error messages when writing to CD/DVD
11 Troubleshooting 11.5.3 Linux host CD/DVD drive not found (older distributions) On older Linux distributions, if your CD/DVD device has a different name, VirtualBoxmay be unable to find it. On older Linux hosts, VirtualBox performs the following stepsto locate your CD/DVD drives: 1. VirtualBox exa...
Page 153 - Linux kernel vmalloc pool exhausted
11 Troubleshooting Replace 85 with the group ID that matches your system (search /etc/group for “usb” or similar). Alternatively, if you don’t mind the security hole, give all users access toUSB by changing “664” to “666”. The various distributions are very creative from which script the usbfs files...
Page 154 - VM aborts with out of memory errors on Solaris 10 hosts
11 Troubleshooting a weird error message such as “failed to mount the root partition”), then you haveprobably run into a memory conflict of your kernel and initial RAM disk. This can besolved by adding the following parameter to your GRUB configuration: uppermem 524288 11.6 Solaris hosts 11.6.1 Cann...
Page 160 - GUI: reworked network settings dialog
12 Change log 12.3 Version 2.2.2 (2009-04-27) This is a maintenance release. The following items were fixed and/or added: • Host and guest clipboard: fixed a number of issues affecting hosts and guestsrunning the X window system • Guest Additions: make sure the virtual mouse autodetection works on f...
Page 166 - Network drive not connected
12 Change log • NAT: fixed occasional crashes when the guest is doing traceroute (non-Windowshosts; bug #3200) • NAT: fixed crashes under high load (bug #3110) • NAT: fixed truncated downloads (Windows hosts only, bug #3257) • NAT: don’t intercept TFTP packages with a destination address different f...
Page 213 - – Bad performance
13 Known limitations The following section describes some issues that are known not to work in VirtualBox3.0.0. Unless marked otherwise these issues are planned to be fixed in later releases. • The following Guest SMP (multiprocessor) limitations exist: – Bad performance with 32-bit guests on AMD CP...
Page 216 - 4 Third-party licenses; GNU Lesser
14 Third-party licenses VirtualBox incorporates materials from several Open Source software projects. There-fore the use of these materials by VirtualBox is governed by different Open Sourcelicenses. This document reproduces these licenses and provides a list of the materialsused and their respectiv...
Page 238 - are permitted provided that the following conditions are met:
14 Third-party licenses 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler [email protected] [email protected] 14.2.6 OpenSSL license This package is an SSL implementation written by Eric Young ([email protected]).The implementation was writte...
Page 253 - § 3 VirtualBox registration process.; The VirtualBox application may ask that the; § 4 Update notifications.; The VirtualBox application may contact Sun Microsys-; § 5 Usage of personal information.; Sun may use anonymous and personal data
15 VirtualBox privacy policy Policy version 1.3, June 29, 2009 This privacy policy sets out how Sun Microsystems, Inc. (“Sun”) treats personal information related to the virtualbox.org website and the VirtualBox registration pro-cess. § 1 virtualbox.org. The “virtualbox.org” website, as any other we...
Page 255 - Glossary; such as hard disks. See chapter
Glossary A ACPI Advanced Configuration and Power Interface, an industry specification for BIOS and hardware extensions to configure PC hardware and perform power manage-ment. Windows 2000 and higher as well as Linux 2.4 and higher support ACPI.Windows can only enable or disable ACPI support at insta...
Page 259 - XML
Glossary X XML The eXtensible Markup Language, a metastandard for all kinds of textual infor- mation. XML only specifies how data in the document is organized generally anddoes not prescribe how to semantically organize content. XPCOM Mozilla Cross Platform Component Object Model, a programming infr...