Oracle VM Virtualbox User Manual
Total Page:16
File Type:pdf, Size:1020Kb
Oracle VM VirtualBox R User Manual Version 4.3.18 c 2004-2014 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....................................... 27 1.10.1 Taking, restoring and deleting snapshots................. 27 1.10.2 Snapshot contents.............................. 29 1.11 Virtual machine configuration............................ 30 1.12 Removing virtual machines.............................. 30 1.13 Cloning virtual machines............................... 30 1.14 Importing and exporting virtual machines..................... 31 1.15 Global Settings.................................... 33 1.16 Alternative front-ends................................. 33 2 Installation details 35 2.1 Installing on Windows hosts............................. 35 2.1.1 Prerequisites................................. 35 2.1.2 Performing the installation......................... 35 2.1.3 Uninstallation................................ 36 2.1.4 Unattended installation........................... 36 2.2 Installing on Mac OS X hosts............................. 37 2.2.1 Performing the installation......................... 37 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....................... 38 2.3.3 Performing the installation......................... 39 2.3.4 The vboxusers group............................ 42 2.3.5 Starting VirtualBox on Linux........................ 42 2.4 Installing on Solaris hosts.............................. 43 2.4.1 Performing the installation......................... 43 2.4.2 The vboxuser group............................. 43 2.4.3 Starting VirtualBox on Solaris....................... 44 2 Contents 2.4.4 Uninstallation................................ 44 2.4.5 Unattended installation........................... 44 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.................................... 51 3.6 Storage settings.................................... 52 3.7 Audio settings..................................... 54 3.8 Network settings................................... 54 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 Alternative firmware (EFI).............................. 58 3.12.1 Video modes in EFI............................. 58 3.12.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......................... 69 4.2.4 Guest Additions for OS/2.......................... 70 4.3 Shared folders..................................... 70 4.3.1 Manual mounting.............................. 71 4.3.2 Automatic mounting............................ 72 4.4 Hardware-accelerated graphics........................... 73 4.4.1 Hardware 3D acceleration (OpenGL and Direct3D 8/9)......... 73 4.4.2 Hardware 2D video acceleration for Windows guests........... 74 4.5 Seamless windows.................................. 74 4.6 Guest properties.................................... 75 4.7 Guest control..................................... 77 4.8 Memory overcommitment.............................. 77 4.8.1 Memory ballooning............................. 77 4.8.2 Page Fusion................................. 78 5 Virtual storage 80 5.1 Hard disk controllers: IDE, SATA (AHCI), SCSI, SAS................ 80 5.2 Disk image files (VDI, VMDK, VHD, HDD)..................... 82 5.3 The Virtual Media Manager............................. 83 3 Contents 5.4 Special image write modes.............................. 85 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 (experimental)............... 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.................................... 100 6.10 Limiting bandwidth for network I/O......................... 101 6.11 Improving network performance........................... 102 7 Remote virtual machines 103 7.1 Remote display (VRDP support)........................... 103 7.1.1 Common third-party RDP viewers..................... 103 7.1.2 VBoxHeadless, the remote desktop server................. 104 7.1.3 Step by step: creating a virtual machine on a headless server...... 105 7.1.4 Remote USB................................. 107 7.1.5 RDP authentication............................. 107 7.1.6 RDP encryption............................... 108 7.1.7 Multiple connections to the VRDP server................. 109 7.1.8 Multiple remote monitors.......................... 110 7.1.9 VRDP video redirection........................... 110 7.1.10 VRDP customization............................. 110 7.2 Teleporting...................................... 111 8 VBoxManage 113 8.1 Introduction...................................... 113 8.2 Commands overview................................. 114 8.3 General options.................................... 122 8.4 VBoxManage list................................... 122 8.5 VBoxManage showvminfo.............................. 123 8.6 VBoxManage registervm / unregistervm...................... 124 8.7 VBoxManage createvm................................ 125 8.8 VBoxManage modifyvm............................... 125 8.8.1 General settings............................... 125 8.8.2 Networking settings............................. 128 8.8.3 Serial port, audio, clipboard and USB settings.............. 130 8.8.4 Remote machine settings.......................... 130 8.8.5 Teleporting settings............................. 131 8.9 VBoxManage clonevm................................ 132 8.10 VBoxManage import................................. 132 4 Contents 8.11 VBoxManage export.................................. 133 8.12 VBoxManage startvm................................. 134 8.13 VBoxManage controlvm............................... 134 8.14 VBoxManage discardstate.............................. 136 8.15 VBoxManage adoptstate............................... 136 8.16 VBoxManage snapshot................................ 136 8.17 VBoxManage closemedium.............................. 137 8.18 VBoxManage storageattach.............................. 137 8.19 VBoxManage storagectl................................ 139 8.20 VBoxManage bandwidthctl.............................. 140 8.21 VBoxManage showhdinfo............................... 141 8.22 VBoxManage createhd...............................