Oracle VM Virtualbox User Manual
Total Page:16
File Type:pdf, Size:1020Kb
Oracle VM VirtualBox R User Manual Version 5.1.2 c 2004-2016 Oracle Corporation http://www.virtualbox.org Contents 1 First steps 11 1.1 Why is virtualization useful?............................. 12 1.2 Some terminology................................... 12 1.3 Features overview................................... 13 1.4 Supported host operating systems.......................... 15 1.5 Installing VirtualBox and extension packs...................... 16 1.6 Starting VirtualBox.................................. 17 1.7 Creating your first virtual machine......................... 18 1.8 Running your virtual machine............................ 21 1.8.1 Starting a new VM for the first time.................... 21 1.8.2 Capturing and releasing keyboard and mouse.............. 22 1.8.3 Typing special characters.......................... 23 1.8.4 Changing removable media......................... 24 1.8.5 Resizing the machine’s window...................... 24 1.8.6 Saving the state of the machine...................... 25 1.9 Using VM groups................................... 26 1.10 Snapshots....................................... 26 1.10.1 Taking, restoring and deleting snapshots................. 27 1.10.2 Snapshot contents.............................. 28 1.11 Virtual machine configuration............................ 29 1.12 Removing virtual machines.............................. 30 1.13 Cloning virtual machines............................... 30 1.14 Importing and exporting virtual machines..................... 31 1.15 Global Settings.................................... 32 1.16 Alternative front-ends................................. 32 2 Installation details 34 2.1 Installing on Windows hosts............................. 34 2.1.1 Prerequisites................................. 34 2.1.2 Performing the installation......................... 34 2.1.3 Uninstallation................................ 36 2.1.4 Unattended installation........................... 36 2.1.5 Public properties............................... 36 2.2 Installing on Mac OS X hosts............................. 36 2.2.1 Performing the installation......................... 36 2.2.2 Uninstallation................................ 37 2.2.3 Unattended installation........................... 37 2.3 Installing on Linux hosts............................... 37 2.3.1 Prerequisites................................. 37 2.3.2 The VirtualBox kernel module....................... 37 2.3.3 Performing the installation......................... 38 2.3.4 The vboxusers group............................ 41 2.3.5 Starting VirtualBox on Linux........................ 42 2.4 Installing on Solaris hosts.............................. 42 2.4.1 Performing the installation......................... 42 2.4.2 The vboxuser group............................. 43 2 Contents 2.4.3 Starting VirtualBox on Solaris....................... 43 2.4.4 Uninstallation................................ 43 2.4.5 Unattended installation........................... 43 2.4.6 Configuring a zone for running VirtualBox................ 43 3 Configuring virtual machines 45 3.1 Supported guest operating systems......................... 45 3.1.1 Mac OS X guests............................... 46 3.1.2 64-bit guests................................. 46 3.2 Emulated hardware.................................. 47 3.3 General settings.................................... 48 3.3.1 “Basic” tab.................................. 48 3.3.2 “Advanced” tab............................... 48 3.3.3 “Description” tab.............................. 49 3.4 System settings.................................... 49 3.4.1 “Motherboard” tab............................. 49 3.4.2 “Processor” tab............................... 51 3.4.3 “Acceleration” tab.............................. 51 3.5 Display settings.................................... 52 3.6 Storage settings.................................... 53 3.7 Audio settings..................................... 55 3.8 Network settings................................... 55 3.9 Serial ports...................................... 55 3.10 USB support...................................... 57 3.10.1 USB settings................................. 57 3.10.2 Implementation notes for Windows and Linux hosts........... 58 3.11 Shared folders..................................... 59 3.12 Alternative firmware (EFI).............................. 59 3.12.1 Video modes in EFI............................. 59 3.12.2 Specifying boot arguments......................... 60 4 Guest Additions 61 4.1 Introduction...................................... 61 4.2 Installing and Maintaining Guest Additions..................... 62 4.2.1 Guest Additions for Windows........................ 62 4.2.2 Guest Additions for Linux.......................... 66 4.2.3 Guest Additions for Solaris......................... 68 4.2.4 Guest Additions for OS/2.......................... 68 4.3 Shared folders..................................... 69 4.3.1 Manual mounting.............................. 69 4.3.2 Automatic mounting............................ 70 4.4 Drag and Drop..................................... 71 4.4.1 Supported formats............................. 72 4.4.2 Known limitations.............................. 73 4.5 Hardware-accelerated graphics........................... 73 4.5.1 Hardware 3D acceleration (OpenGL and Direct3D 8/9)......... 73 4.5.2 Hardware 2D video acceleration for Windows guests........... 74 4.6 Seamless windows.................................. 74 4.7 Guest properties.................................... 75 4.8 Guest control..................................... 77 4.9 Memory overcommitment.............................. 77 4.9.1 Memory ballooning............................. 77 4.9.2 Page Fusion................................. 78 3 Contents 5 Virtual storage 80 5.1 Hard disk controllers: IDE, SATA (AHCI), SCSI, SAS, USB MSD.......... 80 5.2 Disk image files (VDI, VMDK, VHD, HDD)..................... 83 5.3 The Virtual Media Manager............................. 84 5.4 Special image write modes.............................. 85 5.5 Differencing images.................................. 87 5.6 Cloning disk images.................................. 89 5.7 Host I/O caching................................... 89 5.8 Limiting bandwidth for disk images......................... 90 5.9 CD/DVD support................................... 91 5.10 iSCSI servers...................................... 91 6 Virtual networking 93 6.1 Virtual networking hardware............................. 93 6.2 Introduction to networking modes.......................... 94 6.3 Network Address Translation (NAT)......................... 95 6.3.1 Configuring port forwarding with NAT.................. 95 6.3.2 PXE booting with NAT............................ 96 6.3.3 NAT limitations............................... 96 6.4 Network Address Translation Service........................ 97 6.5 Bridged networking.................................. 98 6.6 Internal networking.................................. 99 6.7 Host-only networking................................. 100 6.8 UDP Tunnel networking............................... 101 6.9 VDE networking.................................... 102 6.10 Limiting bandwidth for network I/O......................... 102 6.11 Improving network performance........................... 103 7 Remote virtual machines 105 7.1 Remote display (VRDP support)........................... 105 7.1.1 Common third-party RDP viewers..................... 105 7.1.2 VBoxHeadless, the remote desktop server................. 106 7.1.3 Step by step: creating a virtual machine on a headless server...... 107 7.1.4 Remote USB................................. 109 7.1.5 RDP authentication............................. 109 7.1.6 RDP encryption............................... 110 7.1.7 Multiple connections to the VRDP server................. 111 7.1.8 Multiple remote monitors.......................... 112 7.1.9 VRDP video redirection........................... 112 7.1.10 VRDP customization............................. 112 7.2 Teleporting...................................... 113 8 VBoxManage 115 8.1 Introduction...................................... 115 8.2 Commands overview................................. 116 8.3 General options.................................... 126 8.4 VBoxManage list................................... 126 8.5 VBoxManage showvminfo.............................. 127 8.6 VBoxManage registervm / unregistervm...................... 127 8.7 VBoxManage createvm................................ 128 8.8 VBoxManage modifyvm............................... 128 8.8.1 General settings............................... 128 8.8.2 Networking settings............................. 132 8.8.3 Miscellaneous settings........................... 134 4 Contents 8.8.4 Video Capture settings........................... 135 8.8.5 Remote machine settings.......................... 136 8.8.6 Teleporting settings............................. 137 8.8.7 Debugging settings............................. 138 8.8.8 USB card reader settings.......................... 138 8.8.9 Auto starting VMs during host system boot................ 138 8.9 VBoxManage clonevm................................ 138 8.10 VBoxManage import................................. 139 8.11 VBoxManage export.................................. 140 8.12 VBoxManage startvm................................. 140 8.13 VBoxManage controlvm............................... 141 8.14 VBoxManage discardstate.............................. 145 8.15 VBoxManage adoptstate..............................