UserManual.pdf
(
4918 KB
)
Pobierz
Oracle VM VirtualBox User Manual
Oracle VM
VirtualBox
R
User Manual
Version 4.1.6
c
2004-2011 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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
3.4 System settings
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
3.4.1 “Motherboard” tab
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
3.4.2 “Processor” tab
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
3.10 USB support
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
3.10.1 USB settings
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
3.10.2 Implementation notes for Windows and Linux hosts
. . . . . . . . . . . 54
3.11 Shared folders
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.12 Alternative firmware (EFI)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.12.1 Video modes in EFI
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4 Guest Additions
56
4.1 Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
4.2 Installing and Maintaining Guest Additions
. . . . . . . . . . . . . . . . . . . . . 57
4.2.1 Guest Additions for Windows
. . . . . . . . . . . . . . . . . . . . . . . . 57
4.2.2 Guest Additions for Linux
. . . . . . . . . . . . . . . . . . . . . . . . . . 59
4.2.3 Guest Additions for Solaris
. . . . . . . . . . . . . . . . . . . . . . . . . 64
4.2.4 Guest Additions for OS/2
. . . . . . . . . . . . . . . . . . . . . . . . . . 65
4.3 Shared folders
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
4.3.1 Manual mounting
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4.3.2 Automatic mounting
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
4.4 Hardware-accelerated graphics
. . . . . . . . . . . . . . . . . . . . . . . . . . . 67
4.4.1 Hardware 3D acceleration (OpenGL and Direct3D 8/9)
. . . . . . . . . 67
4.4.2 Hardware 2D video acceleration for Windows guests
. . . . . . . . . . . 69
4.5 Seamless windows
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
4.6 Guest properties
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
4.7 Guest control
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
4.8 Memory overcommitment
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
4.8.1 Memory ballooning
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
4.8.2 Page Fusion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
5 Virtual storage
75
5.1 Hard disk controllers: IDE, SATA (AHCI), SCSI, SAS
. . . . . . . . . . . . . . . . 75
5.2 Disk image files (VDI, VMDK, VHD, HDD)
. . . . . . . . . . . . . . . . . . . . . 77
5.3 The Virtual Media Manager
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
5.4 Special image write modes
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
5.5 Differencing images
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
5.6 Cloning disk images
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
3
Contents
5.7 Host I/O caching
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
5.8 Limiting bandwidth for disk images
. . . . . . . . . . . . . . . . . . . . . . . . . 84
5.9 CD/DVD support
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
5.10 iSCSI servers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
6 Virtual networking
87
6.1 Virtual networking hardware
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
6.2 Introduction to networking modes
. . . . . . . . . . . . . . . . . . . . . . . . . . 88
6.3 Network Address Translation (NAT)
. . . . . . . . . . . . . . . . . . . . . . . . . 89
6.3.1 Configuring port forwarding with NAT
. . . . . . . . . . . . . . . . . . 89
6.3.2 PXE booting with NAT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
6.3.3 NAT limitations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
6.4 Bridged networking
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
6.5 Internal networking
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
6.6 Host-only networking
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
6.7 UDP Tunnel networking
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
6.8 VDE networking
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
7 Remote virtual machines
95
7.1 Remote display (VRDP support)
. . . . . . . . . . . . . . . . . . . . . . . . . . . 95
7.1.1 Common third-party RDP viewers
. . . . . . . . . . . . . . . . . . . . . 95
7.1.2 VBoxHeadless, the remote desktop server
. . . . . . . . . . . . . . . . . 96
7.1.3 Step by step: creating a virtual machine on a headless server
. . . . . . 97
7.1.4 Remote USB
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
7.1.5 RDP authentication
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
7.1.6 RDP encryption
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
7.1.7 Multiple connections to the VRDP server
. . . . . . . . . . . . . . . . . 101
7.1.8 Multiple remote monitors
. . . . . . . . . . . . . . . . . . . . . . . . . . 101
7.1.9 VRDP video redirection
. . . . . . . . . . . . . . . . . . . . . . . . . . . 101
7.1.10 VRDP customization
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
7.2 Teleporting
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
8 VBoxManage
104
8.1 Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
8.2 Commands overview
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
8.3 VBoxManage list
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
8.4 VBoxManage showvminfo
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
8.5 VBoxManage registervm / unregistervm
. . . . . . . . . . . . . . . . . . . . . . 113
8.6 VBoxManage createvm
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
8.7 VBoxManage modifyvm
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
8.7.1 General settings
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
8.7.2 Networking settings
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
8.7.3 Serial port, audio, clipboard, remote desktop and USB settings
. . . . . 118
8.7.4 Remote machine settings
. . . . . . . . . . . . . . . . . . . . . . . . . . 119
8.7.5 Teleporting settings
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
8.8 VBoxManage clonevm
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
8.9 VBoxManage import
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
8.10 VBoxManage export
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
8.11 VBoxManage startvm
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
8.12 VBoxManage controlvm
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
8.13 VBoxManage discardstate
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
8.14 VBoxManage adoptstate
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
8.15 VBoxManage snapshot
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
8.16 VBoxManage closemedium
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
4
Contents
8.17 VBoxManage storageattach
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
8.18 VBoxManage storagectl
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
8.19 VBoxManage bandwidthctl
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
8.20 VBoxManage showhdinfo
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
8.21 VBoxManage createhd
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
8.22 VBoxManage modifyhd
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
8.23 VBoxManage clonehd
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
8.24 VBoxManage convertfromraw
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
8.25 VBoxManage getextradata/setextradata
. . . . . . . . . . . . . . . . . . . . . . . 131
8.26 VBoxManage setproperty
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
8.27 VBoxManage usbfilter add/modify/remove
. . . . . . . . . . . . . . . . . . . . . 132
8.28 VBoxManage sharedfolder add/remove
. . . . . . . . . . . . . . . . . . . . . . . 132
8.29 VBoxManage guestproperty
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
8.30 VBoxManage guestcontrol
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
8.31 VBoxManage debugvm
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
8.32 VBoxManage metrics
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
8.33 VBoxManage hostonlyif
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
8.34 VBoxManage dhcpserver
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
8.35 VBoxManage extpack
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
9 Advanced topics
141
9.1 VBoxSDL, the simplified VM displayer
. . . . . . . . . . . . . . . . . . . . . . . . 141
9.1.1 Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
9.1.2 Secure labeling with VBoxSDL
. . . . . . . . . . . . . . . . . . . . . . . 141
9.1.3 Releasing modifiers with VBoxSDL on Linux
. . . . . . . . . . . . . . . 142
9.2 Automated guest logons
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
9.2.1 Automated Windows guest logons
. . . . . . . . . . . . . . . . . . . . . 143
9.2.2 Automated Linux/Unix guest logons
. . . . . . . . . . . . . . . . . . . . 144
9.3 Advanced configuration for Windows guests
. . . . . . . . . . . . . . . . . . . . 145
9.3.1 Automated Windows system preparation
. . . . . . . . . . . . . . . . . 145
9.4 Advanced configuration for Linux and Solaris guests
. . . . . . . . . . . . . . . . 146
9.4.1 Manual setup of selected guest services on Linux
. . . . . . . . . . . . . 146
9.4.2 Guest graphics and mouse driver setup in depth
. . . . . . . . . . . . . 146
9.5 CPU hot-plugging
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
9.6 PCI passthrough
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
9.7 Advanced display configuration
. . . . . . . . . . . . . . . . . . . . . . . . . . . 149
9.7.1 Custom VESA resolutions
. . . . . . . . . . . . . . . . . . . . . . . . . . 149
9.7.2 Configuring the maximum resolution of guests when using the
graphical frontend
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
9.8 Advanced storage configuration
. . . . . . . . . . . . . . . . . . . . . . . . . . . 150
9.8.1 Using a raw host hard disk from a guest
. . . . . . . . . . . . . . . . . . 150
9.8.2 Configuring the hard disk vendor product data (VPD)
. . . . . . . . . . 152
9.8.3 Access iSCSI targets via Internal Networking
. . . . . . . . . . . . . . . 153
9.9 Launching more than 120 VMs on Solaris hosts
. . . . . . . . . . . . . . . . . . 153
9.9.1 Temporary solution while VirtualBox is running
. . . . . . . . . . . . . 154
9.9.2 Persistent solution, requires user to re-login
. . . . . . . . . . . . . . . . 154
9.10 Legacy commands for using serial ports
. . . . . . . . . . . . . . . . . . . . . . . 154
9.11 Fine-tuning the VirtualBox NAT engine
. . . . . . . . . . . . . . . . . . . . . . . 155
9.11.1 Configuring the address of a NAT network interface
. . . . . . . . . . . 155
9.11.2 Configuring the boot server (next server) of a NAT network interface
. . 155
9.11.3 Tuning TCP/IP buffers for NAT
. . . . . . . . . . . . . . . . . . . . . . . 155
9.11.4 Binding NAT sockets to a specific interface
. . . . . . . . . . . . . . . . 156
9.11.5 Enabling DNS proxy in NAT mode
. . . . . . . . . . . . . . . . . . . . . 156
9.11.6 Using the host’s resolver as a DNS proxy in NAT mode
. . . . . . . . . . 156
5
Plik z chomika:
johny_pal
Inne pliki z tego folderu:
VirtualBox-4.1.6-74713-Win.exe
(89340 KB)
UserManual.pdf
(4918 KB)
Inne foldery tego chomika:
Acronis True Image 9.0 Build 2273
AVG2012 antivir
ChomikBox (2.0.4.3)
ChomikBox (2.0.8.0)
CPU-Z v. 1.57
Zgłoś jeśli
naruszono regulamin