Oracle VM Virtualbox User Manual
Total Page:16
File Type:pdf, Size:1020Kb
Oracle VM VirtualBox R User Manual Version 3.2.8 c 2004-2010 Oracle Corporation http://www.virtualbox.org Contents 1 First steps 10 1.1 Why is virtualization useful?........................ 11 1.2 Some terminology.............................. 12 1.3 Features overview.............................. 13 1.4 Supported host operating systems..................... 15 1.5 Installing and starting VirtualBox...................... 16 1.6 Creating your first virtual machine..................... 18 1.7 Running your virtual machine........................ 22 1.7.1 Keyboard and mouse support in virtual machines......... 22 1.7.2 Changing removable media..................... 25 1.7.3 Saving the state of the machine.................. 25 1.8 Snapshots................................... 26 1.9 Virtual machine configuration........................ 29 1.10 Deleting virtual machines.......................... 30 1.11 Importing and exporting virtual machines................. 30 1.12 Alternative front-ends............................ 33 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.2 Installing on Mac OS X hosts........................ 36 2.2.1 Performing the installation..................... 36 2.2.2 Uninstallation............................ 36 2.2.3 Unattended installation....................... 36 2.3 Installing on Linux hosts........................... 37 2.3.1 Prerequisites............................. 37 2.3.2 The VirtualBox kernel module................... 37 2.3.3 USB and advanced networking support.............. 38 2.3.4 Performing the installation..................... 38 2.3.5 Starting VirtualBox on Linux.................... 44 2.4 Installing on Solaris hosts.......................... 44 2.4.1 Performing the installation..................... 44 2.4.2 Starting VirtualBox on Solaris................... 45 2.4.3 Uninstallation............................ 45 2 Contents 2.4.4 Unattended installation....................... 45 2.4.5 Configuring a zone for running VirtualBox............ 46 3 Configuring virtual machines 47 3.1 Supported guest operating systems..................... 47 3.1.1 Mac OS X Server guests....................... 48 3.1.2 64-bit guests............................. 49 3.2 Emulated hardware............................. 50 3.3 General settings............................... 50 3.3.1 “Basic” tab.............................. 50 3.3.2 “Advanced” tab........................... 51 3.3.3 “Description” tab.......................... 51 3.4 System settings................................ 52 3.4.1 “Motherboard” tab......................... 52 3.4.2 “Processor” tab............................ 54 3.4.3 “Acceleration” tab.......................... 54 3.5 Display settings................................ 55 3.6 Storage settings............................... 55 3.7 Audio settings................................ 58 3.8 Network settings............................... 58 3.9 Serial ports.................................. 59 3.10 USB support................................. 60 3.10.1 USB settings............................. 60 3.10.2 Implementation notes for Windows and Linux hosts....... 62 3.11 Shared folders................................ 62 3.12 Alternative firmware (EFI)......................... 62 3.12.1 Video modes in EFI......................... 63 4 Guest Additions 64 4.1 Introduction................................. 64 4.2 Installing and Maintaining Guest Additions................ 66 4.2.1 Guest Additions for Windows.................... 66 4.2.2 Guest Additions for Linux...................... 69 4.2.3 Guest Additions for Solaris..................... 75 4.2.4 Guest Additions for OS/2...................... 76 4.3 Shared folders................................ 76 4.4 Seamless windows.............................. 78 4.5 Hardware-accelerated graphics....................... 79 4.5.1 Hardware 3D acceleration (OpenGL and Direct3D 8/9)..... 79 4.5.2 Hardware 2D video acceleration for Windows guests....... 81 4.6 Guest properties............................... 81 4.7 Guest control................................. 83 4.8 Memory ballooning............................. 84 4.9 Page Fusion.................................. 85 3 Contents 5 Virtual storage 87 5.1 Hard disk controllers: IDE, SATA (AHCI), SCSI, SAS........... 87 5.2 Disk image files (VDI, VMDK, VHD, HDD)................. 90 5.3 The Virtual Media Manager......................... 91 5.4 Special image write modes......................... 93 5.5 Differencing images............................. 95 5.6 Cloning disk images............................. 98 5.7 Disk images and I/O caching........................ 98 5.8 CD/DVD drive operation........................... 99 5.9 Writing CDs and DVDs using the host drive................ 100 5.10 iSCSI servers................................. 101 5.10.1 Access iSCSI targets via Internal Networking........... 101 6 Virtual networking 103 6.1 Virtual networking hardware........................ 103 6.2 Introduction to networking modes..................... 104 6.3 Network Address Translation (NAT).................... 105 6.3.1 Configuring port forwarding with NAT............... 106 6.3.2 PXE booting with NAT........................ 107 6.3.3 NAT limitations........................... 107 6.4 Bridged networking............................. 108 6.5 Internal networking............................. 109 6.6 Host-only networking............................ 110 7 Remote virtual machines 112 7.1 Remote display (VRDP support)...................... 112 7.1.1 Common third-party RDP viewers................. 112 7.1.2 VBoxHeadless, the VRDP-only server................ 113 7.1.3 Step by step: creating a virtual machine on a headless server.. 114 7.1.4 Remote USB............................. 116 7.1.5 RDP authentication......................... 116 7.1.6 RDP encryption........................... 118 7.1.7 Multiple VRDP connections..................... 118 7.1.8 Multiple remote monitors...................... 118 7.1.9 VRDP video redirection....................... 119 7.2 Teleporting.................................. 119 8 VBoxManage 121 8.1 Introduction................................. 121 8.2 Commands overview............................. 122 8.3 VBoxManage list............................... 128 8.4 VBoxManage showvminfo.......................... 129 8.5 VBoxManage registervm / unregistervm.................. 131 8.6 VBoxManage createvm............................ 131 8.7 VBoxManage modifyvm........................... 131 4 Contents 8.7.1 General settings........................... 132 8.7.2 Networking settings......................... 134 8.7.3 Serial port, audio, clipboard, VRDP and USB settings...... 137 8.7.4 Remote machine settings...................... 138 8.7.5 Teleporting settings......................... 138 8.8 VBoxManage import............................. 139 8.9 VBoxManage export............................. 140 8.10 VBoxManage startvm............................ 141 8.11 VBoxManage controlvm........................... 141 8.12 VBoxManage discardstate.......................... 143 8.13 VBoxManage snapshot............................ 143 8.14 VBoxManage openmedium / closemedium................. 144 8.15 VBoxManage storagectl / storageattach.................. 144 8.15.1 VBoxManage storagectl....................... 145 8.15.2 VBoxManage storageattach..................... 146 8.16 VBoxManage showhdinfo.......................... 147 8.17 VBoxManage createhd............................ 147 8.18 VBoxManage modifyhd........................... 148 8.19 VBoxManage clonehd............................ 148 8.20 VBoxManage convertfromraw........................ 149 8.21 VBoxManage addiscsidisk.......................... 149 8.22 VBoxManage getextradata/setextradata.................. 150 8.23 VBoxManage setproperty.......................... 151 8.24 VBoxManage usbfilter add/modify/remove................ 151 8.25 VBoxManage sharedfolder add/remove.................. 152 8.26 VBoxManage metrics............................. 152 8.27 VBoxManage guestproperty......................... 154 8.28 VBoxManage guestcontrol.......................... 155 8.29 VBoxManage dhcpserver........................... 157 9 Advanced topics 159 9.1 VirtualBox configuration data........................ 159 9.2 VBoxSDL, the simplified VM displayer................... 161 9.2.1 Introduction............................. 161 9.2.2 Secure labeling with VBoxSDL................... 162 9.2.3 Releasing modifiers with VBoxSDL on Linux........... 163 9.3 Automated guest logons........................... 163 9.3.1 Automated Windows guest logons................. 163 9.3.2 Automated Linux/Unix guest logons................ 165 9.4 Advanced configuration for Windows guests................ 166 9.4.1 Automated Windows system preparation............. 166 9.5 CPU hot-plugging.............................. 167 9.6 Advanced display configuration....................... 168 9.6.1 Custom VESA resolutions...................... 168 5 Contents 9.6.2 Configuring the maximum resolution of guests when using the graphical frontend.......................... 168 9.6.3 Custom external VRDP authentication............... 169 9.7 Advanced storage configuration....................... 171 9.7.1 Using a raw host hard disk from a guest.............. 171 9.7.2 Configuring the hard disk vendor product