Oracle VM Virtualbox User Manual
Total Page:16
File Type:pdf, Size:1020Kb
Oracle VM VirtualBox R User Manual Version 5.0.16 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............................ 42 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................ 44 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......................... 70 4.2.4 Guest Additions for OS/2.......................... 71 4.3 Shared folders..................................... 71 4.3.1 Manual mounting.............................. 72 4.3.2 Automatic mounting............................ 73 4.4 Drag and Drop..................................... 74 4.4.1 Supported formats............................. 75 4.4.2 Known limitations.............................. 75 4.5 Hardware-accelerated graphics........................... 75 4.5.1 Hardware 3D acceleration (OpenGL and Direct3D 8/9)......... 75 4.5.2 Hardware 2D video acceleration for Windows guests........... 77 4.6 Seamless windows.................................. 77 4.7 Guest properties.................................... 78 4.8 Guest control..................................... 80 4.9 Memory overcommitment.............................. 80 4.9.1 Memory ballooning............................. 80 4.9.2 Page Fusion................................. 81 3 Contents 5 Virtual storage 83 5.1 Hard disk controllers: IDE, SATA (AHCI), SCSI, SAS, USB MSC.......... 83 5.2 Disk image files (VDI, VMDK, VHD, HDD)..................... 86 5.3 The Virtual Media Manager............................. 87 5.4 Special image write modes.............................. 88 5.5 Differencing images.................................. 90 5.6 Cloning disk images.................................. 92 5.7 Host I/O caching................................... 92 5.8 Limiting bandwidth for disk images......................... 93 5.9 CD/DVD support................................... 94 5.10 iSCSI servers...................................... 94 6 Virtual networking 96 6.1 Virtual networking hardware............................. 96 6.2 Introduction to networking modes.......................... 97 6.3 Network Address Translation (NAT)......................... 98 6.3.1 Configuring port forwarding with NAT.................. 98 6.3.2 PXE booting with NAT............................ 99 6.3.3 NAT limitations............................... 99 6.4 Network Address Translation Service (experimental)............... 100 6.5 Bridged networking.................................. 101 6.6 Internal networking.................................. 102 6.7 Host-only networking................................. 103 6.8 UDP Tunnel networking............................... 104 6.9 VDE networking.................................... 104 6.10 Limiting bandwidth for network I/O......................... 105 6.11 Improving network performance........................... 106 7 Remote virtual machines 107 7.1 Remote display (VRDP support)........................... 107 7.1.1 Common third-party RDP viewers..................... 107 7.1.2 VBoxHeadless, the remote desktop server................. 108 7.1.3 Step by step: creating a virtual machine on a headless server...... 109 7.1.4 Remote USB................................. 111 7.1.5 RDP authentication............................. 111 7.1.6 RDP encryption............................... 112 7.1.7 Multiple connections to the VRDP server................. 113 7.1.8 Multiple remote monitors.......................... 114 7.1.9 VRDP video redirection........................... 114 7.1.10 VRDP customization............................. 114 7.2 Teleporting...................................... 115 8 VBoxManage 117 8.1 Introduction...................................... 117 8.2 Commands overview................................. 118 8.3 General options.................................... 128 8.4 VBoxManage list................................... 128 8.5 VBoxManage showvminfo.............................. 129 8.6 VBoxManage registervm / unregistervm...................... 130 8.7 VBoxManage createvm................................ 131 8.8 VBoxManage modifyvm............................... 131 8.8.1 General settings............................... 131 8.8.2 Networking settings............................. 134 8.8.3 Miscellaneous settings........................... 136 4 Contents 8.8.4 Video Capture settings........................... 137 8.8.5 Remote machine settings.......................... 138 8.8.6 Teleporting settings............................. 139 8.8.7 Debugging settings............................. 139 8.9 VBoxManage clonevm................................ 139 8.10 VBoxManage import................................. 140 8.11 VBoxManage export.................................. 141 8.12 VBoxManage startvm................................. 142 8.13 VBoxManage controlvm............................... 142 8.14 VBoxManage discardstate.............................. 145 8.15 VBoxManage adoptstate............................... 145 8.16 VBoxManage snapshot................................ 145 8.17 VBoxManage closemedium.............................