Oracle VM Virtualbox User Manual
Total Page:16
File Type:pdf, Size:1020Kb
Oracle VM VirtualBox R User Manual Version 5.2.30 c 2004-2019 Oracle Corporation http://www.virtualbox.org Contents 1 First steps 12 1.1 Why is virtualization useful?............................. 13 1.2 Some terminology................................... 13 1.3 Features overview................................... 14 1.4 Supported host operating systems.......................... 16 1.5 Host CPU Requirements............................... 17 1.6 Installing VirtualBox and extension packs...................... 17 1.7 Starting VirtualBox.................................. 18 1.8 Creating your first virtual machine......................... 19 1.9 Running your virtual machine............................ 22 1.9.1 Starting a new VM for the first time.................... 23 1.9.2 Capturing and releasing keyboard and mouse.............. 23 1.9.3 Typing special characters.......................... 24 1.9.4 Changing removable media......................... 25 1.9.5 Resizing the machine’s window...................... 25 1.9.6 Saving the state of the machine...................... 26 1.10 Using VM groups................................... 27 1.11 Snapshots....................................... 28 1.11.1 Taking, restoring and deleting snapshots................. 28 1.11.2 Snapshot contents.............................. 30 1.12 Virtual machine configuration............................ 31 1.13 Removing virtual machines.............................. 31 1.14 Cloning virtual machines............................... 31 1.15 Importing and exporting virtual machines..................... 32 1.16 Global Settings.................................... 34 1.17 Alternative front-ends................................. 34 2 Installation details 36 2.1 Installing on Windows hosts............................. 36 2.1.1 Prerequisites................................. 36 2.1.2 Performing the installation......................... 36 2.1.3 Uninstallation................................ 38 2.1.4 Unattended installation........................... 38 2.1.5 Public properties............................... 38 2.2 Installing on Mac OS X hosts............................. 38 2.2.1 Performing the installation......................... 38 2.2.2 Uninstallation................................ 39 2.2.3 Unattended installation........................... 39 2.3 Installing on Linux hosts............................... 39 2.3.1 Prerequisites................................. 39 2.3.2 The VirtualBox driver modules....................... 39 2.3.3 Performing the installation......................... 40 2.3.4 The vboxusers group............................ 43 2.3.5 Starting VirtualBox on Linux........................ 44 2.4 Installing on Solaris hosts.............................. 44 2.4.1 Performing the installation......................... 44 2 Contents 2.4.2 The vboxuser group............................. 45 2.4.3 Starting VirtualBox on Solaris....................... 45 2.4.4 Uninstallation................................ 45 2.4.5 Unattended installation........................... 45 2.4.6 Configuring a zone for running VirtualBox................ 45 3 Configuring virtual machines 47 3.1 Supported guest operating systems......................... 47 3.1.1 Mac OS X guests............................... 48 3.1.2 64-bit guests................................. 48 3.2 Unattended guest installation............................ 49 3.3 Emulated hardware.................................. 49 3.4 General settings.................................... 50 3.4.1 “Basic” tab.................................. 50 3.4.2 “Advanced” tab............................... 51 3.4.3 “Description” tab.............................. 51 3.5 System settings.................................... 51 3.5.1 “Motherboard” tab............................. 51 3.5.2 “Processor” tab............................... 53 3.5.3 “Acceleration” tab.............................. 54 3.6 Display settings.................................... 54 3.7 Storage settings.................................... 55 3.8 Audio settings..................................... 57 3.9 Network settings................................... 58 3.10 Serial ports...................................... 58 3.11 USB support...................................... 59 3.11.1 USB settings................................. 59 3.11.2 Implementation notes for Windows and Linux hosts........... 61 3.12 Shared folders..................................... 61 3.13 User Interface..................................... 61 3.14 Alternative firmware (EFI).............................. 62 3.14.1 Video modes in EFI............................. 62 3.14.2 Specifying boot arguments......................... 63 4 Guest Additions 64 4.1 Introduction...................................... 64 4.2 Installing and Maintaining Guest Additions..................... 65 4.2.1 Guest Additions for Windows........................ 65 4.2.2 Guest Additions for Linux.......................... 69 4.2.3 Guest Additions for Solaris......................... 71 4.2.4 Guest Additions for OS/2.......................... 71 4.3 Shared folders..................................... 72 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.............................. 76 4.5 Hardware-accelerated graphics........................... 76 4.5.1 Hardware 3D acceleration (OpenGL and Direct3D 8/9)......... 76 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 3 Contents 4.9.1 Memory ballooning............................. 80 4.9.2 Page Fusion................................. 81 5 Virtual storage 83 5.1 Hard disk controllers: IDE, SATA (AHCI), SCSI, SAS, USB MSD, NVMe...... 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................................... 93 5.8 Limiting bandwidth for disk images......................... 93 5.9 CD/DVD support................................... 94 5.10 iSCSI servers...................................... 95 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........................ 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.................................... 105 6.10 Limiting bandwidth for network I/O......................... 106 6.11 Improving network performance........................... 106 7 Remote virtual machines 108 7.1 Remote display (VRDP support)........................... 108 7.1.1 Common third-party RDP viewers..................... 108 7.1.2 VBoxHeadless, the remote desktop server................. 109 7.1.3 Step by step: creating a virtual machine on a headless server...... 110 7.1.4 Remote USB................................. 112 7.1.5 RDP authentication............................. 112 7.1.6 RDP encryption............................... 113 7.1.7 Multiple connections to the VRDP server................. 114 7.1.8 Multiple remote monitors.......................... 115 7.1.9 VRDP video redirection........................... 115 7.1.10 VRDP customization............................. 115 7.2 Teleporting...................................... 116 8 VBoxManage 118 8.1 Introduction...................................... 118 8.2 Commands overview................................. 119 8.3 General options.................................... 129 8.4 VBoxManage list................................... 129 8.5 VBoxManage showvminfo.............................. 131 8.6 VBoxManage registervm / unregistervm...................... 131 8.7 VBoxManage createvm................................ 132 8.8 VBoxManage modifyvm............................... 132 4 Contents 8.8.1 General settings............................... 132 8.8.2 Networking settings............................. 136 8.8.3 Miscellaneous settings........................... 138 8.8.4 Video Capture settings........................... 140 8.8.5 Remote machine settings.......................... 141 8.8.6 Teleporting settings............................. 143 8.8.7 Debugging settings............................. 144 8.8.8 USB card reader settings.......................... 144 8.8.9 Auto starting VMs during host system boot................ 144 8.9 VBoxManage clonevm................................ 145 8.10 VBoxManage import................................. 145 8.11 VBoxManage export.................................. 146 8.12 VBoxManage startvm................................