Oracle VM Virtualbox User Manual
Total Page:16
File Type:pdf, Size:1020Kb
Oracle VM VirtualBox R User Manual Version 5.1.18 c 2004-2017 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 driver modules....................... 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.................................... 51 3.6 Storage settings.................................... 52 3.7 Audio settings..................................... 54 3.8 Network settings................................... 55 3.9 Serial ports...................................... 55 3.10 USB support...................................... 56 3.10.1 USB settings................................. 56 3.10.2 Implementation notes for Windows and Linux hosts........... 58 3.11 Shared folders..................................... 58 3.12 User Interface..................................... 58 3.13 Alternative firmware (EFI).............................. 59 3.13.1 Video modes in EFI............................. 59 3.13.2 Specifying boot arguments......................... 59 4 Guest Additions 60 4.1 Introduction...................................... 60 4.2 Installing and Maintaining Guest Additions..................... 61 4.2.1 Guest Additions for Windows........................ 61 4.2.2 Guest Additions for Linux.......................... 65 4.2.3 Guest Additions for Solaris......................... 67 4.2.4 Guest Additions for OS/2.......................... 67 4.3 Shared folders..................................... 68 4.3.1 Manual mounting.............................. 68 4.3.2 Automatic mounting............................ 69 4.4 Drag and Drop..................................... 70 4.4.1 Supported formats............................. 71 4.4.2 Known limitations.............................. 72 4.5 Hardware-accelerated graphics........................... 72 4.5.1 Hardware 3D acceleration (OpenGL and Direct3D 8/9)......... 72 4.5.2 Hardware 2D video acceleration for Windows guests........... 73 4.6 Seamless windows.................................. 73 4.7 Guest properties.................................... 74 4.8 Guest control..................................... 76 4.9 Memory overcommitment.............................. 76 4.9.1 Memory ballooning............................. 76 4.9.2 Page Fusion................................. 77 3 Contents 5 Virtual storage 79 5.1 Hard disk controllers: IDE, SATA (AHCI), SCSI, SAS, USB MSD, NVMe...... 79 5.2 Disk image files (VDI, VMDK, VHD, HDD)..................... 82 5.3 The Virtual Media Manager............................. 83 5.4 Special image write modes.............................. 84 5.5 Differencing images.................................. 86 5.6 Cloning disk images.................................. 88 5.7 Host I/O caching................................... 89 5.8 Limiting bandwidth for disk images......................... 89 5.9 CD/DVD support................................... 90 5.10 iSCSI servers...................................... 91 6 Virtual networking 92 6.1 Virtual networking hardware............................. 92 6.2 Introduction to networking modes.......................... 93 6.3 Network Address Translation (NAT)......................... 94 6.3.1 Configuring port forwarding with NAT.................. 94 6.3.2 PXE booting with NAT............................ 95 6.3.3 NAT limitations............................... 95 6.4 Network Address Translation Service........................ 96 6.5 Bridged networking.................................. 97 6.6 Internal networking.................................. 98 6.7 Host-only networking................................. 99 6.8 UDP Tunnel networking............................... 100 6.9 VDE networking.................................... 101 6.10 Limiting bandwidth for network I/O......................... 101 6.11 Improving network performance........................... 102 7 Remote virtual machines 104 7.1 Remote display (VRDP support)........................... 104 7.1.1 Common third-party RDP viewers..................... 104 7.1.2 VBoxHeadless, the remote desktop server................. 105 7.1.3 Step by step: creating a virtual machine on a headless server...... 106 7.1.4 Remote USB................................. 108 7.1.5 RDP authentication............................. 108 7.1.6 RDP encryption............................... 109 7.1.7 Multiple connections to the VRDP server................. 110 7.1.8 Multiple remote monitors.......................... 111 7.1.9 VRDP video redirection........................... 111 7.1.10 VRDP customization............................. 111 7.2 Teleporting...................................... 112 8 VBoxManage 114 8.1 Introduction...................................... 114 8.2 Commands overview................................. 115 8.3 General options.................................... 125 8.4 VBoxManage list................................... 125 8.5 VBoxManage showvminfo.............................. 126 8.6 VBoxManage registervm / unregistervm...................... 127 8.7 VBoxManage createvm................................ 127 8.8 VBoxManage modifyvm............................... 128 8.8.1 General settings............................... 128 8.8.2 Networking settings............................. 131 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............................. 139 8.8.7 Debugging settings............................. 139 8.8.8 USB card reader settings.......................... 139 8.8.9 Auto starting VMs during host system boot................ 140 8.9 VBoxManage clonevm................................ 140 8.10 VBoxManage import................................. 141 8.11 VBoxManage export.................................. 142 8.12 VBoxManage startvm................................. 142 8.13 VBoxManage controlvm............................... 143 8.14 VBoxManage discardstate.............................