Oracle VM Virtualbox User Manual
Total Page:16
File Type:pdf, Size:1020Kb
Oracle VM VirtualBox R User Manual Version 4.1.28 c 2004-2013 Oracle Corporation http://www.virtualbox.org Contents 1 First steps 10 1.1 Why is virtualization useful?............................. 11 1.2 Some terminology................................... 11 1.3 Features overview................................... 12 1.4 Supported host operating systems.......................... 14 1.5 Installing VirtualBox and extension packs...................... 15 1.6 Starting VirtualBox.................................. 16 1.7 Creating your first virtual machine......................... 17 1.8 Running your virtual machine............................ 20 1.8.1 Starting a new VM for the first time.................... 20 1.8.2 Capturing and releasing keyboard and mouse.............. 20 1.8.3 Typing special characters.......................... 22 1.8.4 Changing removable media......................... 22 1.8.5 Resizing the machine’s window...................... 23 1.8.6 Saving the state of the machine...................... 23 1.9 Snapshots....................................... 24 1.9.1 Taking, restoring and deleting snapshots................. 24 1.9.2 Snapshot contents.............................. 26 1.10 Virtual machine configuration............................ 27 1.11 Removing virtual machines.............................. 27 1.12 Cloning virtual machines............................... 27 1.13 Importing and exporting virtual machines..................... 28 1.14 Alternative front-ends................................. 30 2 Installation details 32 2.1 Installing on Windows hosts............................. 32 2.1.1 Prerequisites................................. 32 2.1.2 Performing the installation......................... 32 2.1.3 Uninstallation................................ 33 2.1.4 Unattended installation........................... 33 2.2 Installing on Mac OS X hosts............................. 34 2.2.1 Performing the installation......................... 34 2.2.2 Uninstallation................................ 34 2.2.3 Unattended installation........................... 34 2.3 Installing on Linux hosts............................... 34 2.3.1 Prerequisites................................. 34 2.3.2 The VirtualBox kernel module....................... 35 2.3.3 Performing the installation......................... 36 2.3.4 The vboxusers group............................ 39 2.3.5 Starting VirtualBox on Linux........................ 39 2.4 Installing on Solaris hosts.............................. 40 2.4.1 Performing the installation......................... 40 2.4.2 The vboxuser group............................. 40 2.4.3 Starting VirtualBox on Solaris....................... 41 2.4.4 Uninstallation................................ 41 2.4.5 Unattended installation........................... 41 2 Contents 2.4.6 Configuring a zone for running VirtualBox................ 41 3 Configuring virtual machines 42 3.1 Supported guest operating systems......................... 42 3.1.1 Mac OS X Server guests........................... 43 3.1.2 64-bit guests................................. 43 3.2 Emulated hardware.................................. 44 3.3 General settings.................................... 45 3.3.1 “Basic” tab.................................. 45 3.3.2 “Advanced” tab............................... 45 3.3.3 “Description” tab.............................. 46 3.4 System settings.................................... 46 3.4.1 “Motherboard” tab............................. 46 3.4.2 “Processor” tab............................... 48 3.4.3 “Acceleration” tab.............................. 48 3.5 Display settings.................................... 48 3.6 Storage settings.................................... 49 3.7 Audio settings..................................... 51 3.8 Network settings................................... 51 3.9 Serial ports...................................... 52 3.10 USB support...................................... 53 3.10.1 USB settings................................. 53 3.10.2 Implementation notes for Windows and Linux hosts........... 55 3.11 Shared folders..................................... 55 3.12 Alternative firmware (EFI).............................. 55 3.12.1 Video modes in EFI............................. 55 4 Guest Additions 57 4.1 Introduction...................................... 57 4.2 Installing and Maintaining Guest Additions..................... 58 4.2.1 Guest Additions for Windows........................ 58 4.2.2 Guest Additions for Linux.......................... 60 4.2.3 Guest Additions for Solaris......................... 65 4.2.4 Guest Additions for OS/2.......................... 66 4.3 Shared folders..................................... 66 4.3.1 Manual mounting.............................. 67 4.3.2 Automatic mounting............................ 68 4.4 Hardware-accelerated graphics........................... 68 4.4.1 Hardware 3D acceleration (OpenGL and Direct3D 8/9)......... 68 4.4.2 Hardware 2D video acceleration for Windows guests........... 70 4.5 Seamless windows.................................. 70 4.6 Guest properties.................................... 71 4.7 Guest control..................................... 73 4.8 Memory overcommitment.............................. 73 4.8.1 Memory ballooning............................. 73 4.8.2 Page Fusion................................. 74 5 Virtual storage 76 5.1 Hard disk controllers: IDE, SATA (AHCI), SCSI, SAS................ 76 5.2 Disk image files (VDI, VMDK, VHD, HDD)..................... 78 5.3 The Virtual Media Manager............................. 79 5.4 Special image write modes.............................. 81 5.5 Differencing images.................................. 82 5.6 Cloning disk images.................................. 84 3 Contents 5.7 Host I/O caching................................... 85 5.8 Limiting bandwidth for disk images......................... 85 5.9 CD/DVD support................................... 86 5.10 iSCSI servers...................................... 87 6 Virtual networking 88 6.1 Virtual networking hardware............................. 88 6.2 Introduction to networking modes.......................... 89 6.3 Network Address Translation (NAT)......................... 90 6.3.1 Configuring port forwarding with NAT.................. 90 6.3.2 PXE booting with NAT............................ 91 6.3.3 NAT limitations............................... 91 6.4 Bridged networking.................................. 92 6.5 Internal networking.................................. 93 6.6 Host-only networking................................. 94 6.7 UDP Tunnel networking............................... 94 6.8 VDE networking.................................... 95 7 Remote virtual machines 97 7.1 Remote display (VRDP support)........................... 97 7.1.1 Common third-party RDP viewers..................... 97 7.1.2 VBoxHeadless, the remote desktop server................. 98 7.1.3 Step by step: creating a virtual machine on a headless server...... 99 7.1.4 Remote USB................................. 100 7.1.5 RDP authentication............................. 101 7.1.6 RDP encryption............................... 102 7.1.7 Multiple connections to the VRDP server................. 103 7.1.8 Multiple remote monitors.......................... 103 7.1.9 VRDP video redirection........................... 104 7.1.10 VRDP customization............................. 104 7.2 Teleporting...................................... 104 8 VBoxManage 106 8.1 Introduction...................................... 106 8.2 Commands overview................................. 107 8.3 VBoxManage list................................... 113 8.4 VBoxManage showvminfo.............................. 114 8.5 VBoxManage registervm / unregistervm...................... 115 8.6 VBoxManage createvm................................ 115 8.7 VBoxManage modifyvm............................... 116 8.7.1 General settings............................... 116 8.7.2 Networking settings............................. 118 8.7.3 Serial port, audio, clipboard, remote desktop and USB settings..... 120 8.7.4 Remote machine settings.......................... 121 8.7.5 Teleporting settings............................. 121 8.8 VBoxManage clonevm................................ 122 8.9 VBoxManage import................................. 123 8.10 VBoxManage export.................................. 124 8.11 VBoxManage startvm................................. 124 8.12 VBoxManage controlvm............................... 124 8.13 VBoxManage discardstate.............................. 126 8.14 VBoxManage adoptstate............................... 126 8.15 VBoxManage snapshot................................ 126 8.16 VBoxManage closemedium.............................. 127 4 Contents 8.17 VBoxManage storageattach.............................. 127 8.18 VBoxManage storagectl................................ 129 8.19 VBoxManage bandwidthctl.............................. 130 8.20 VBoxManage showhdinfo............................... 130 8.21 VBoxManage createhd................................ 130 8.22 VBoxManage modifyhd................................ 131 8.23 VBoxManage clonehd................................. 132 8.24 VBoxManage convertfromraw............................ 133 8.25 VBoxManage getextradata/setextradata....................... 133 8.26 VBoxManage setproperty............................... 134 8.27 VBoxManage usbfilter add/modify/remove..................... 134 8.28 VBoxManage sharedfolder add/remove......................