没有合适的资源?快使用搜索试试~ 我知道了~
首页VirtualBox用户手册官方版
VirtualBox用户手册官方版
需积分: 43 21 下载量 101 浏览量
更新于2023-03-16
收藏 6.02MB PDF 举报
VirtualBox 虚拟机安装操作系统用户手册官方版。 大家配置使用 VirtualBox 必备手册。
资源详情
资源推荐
Oracle VM
VirtualBox
R
User Manual
Version 4.3.26
c
2004-2015 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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
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 . . . . . . . . . . . . . . . . . . . . . . . . . 90
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
8.23 VBoxManage modifyhd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
8.24 VBoxManage clonehd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
8.25 VBoxManage convertfromraw . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
8.26 VBoxManage getextradata/setextradata . . . . . . . . . . . . . . . . . . . . . . . 144
8.27 VBoxManage setproperty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
8.28 VBoxManage usbfilter add/modify/remove . . . . . . . . . . . . . . . . . . . . . 145
8.29 VBoxManage sharedfolder add/remove . . . . . . . . . . . . . . . . . . . . . . . 145
8.30 VBoxManage guestproperty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
8.31 VBoxManage guestcontrol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
8.32 VBoxManage debugvm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
8.33 VBoxManage metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
8.34 VBoxManage hostonlyif . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
8.35 VBoxManage dhcpserver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
8.36 VBoxManage extpack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
9 Advanced topics 158
9.1 VBoxSDL, the simplified VM displayer . . . . . . . . . . . . . . . . . . . . . . . . 158
9.1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
9.1.2 Secure labeling with VBoxSDL . . . . . . . . . . . . . . . . . . . . . . . 158
9.1.3 Releasing modifiers with VBoxSDL on Linux . . . . . . . . . . . . . . . 159
9.2 Automated guest logons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
9.2.1 Automated Windows guest logons . . . . . . . . . . . . . . . . . . . . . 160
9.2.2 Automated Linux/Unix guest logons . . . . . . . . . . . . . . . . . . . . 161
9.3 Advanced configuration for Windows guests . . . . . . . . . . . . . . . . . . . . 164
9.3.1 Automated Windows system preparation . . . . . . . . . . . . . . . . . 164
9.4 Advanced configuration for Linux and Solaris guests . . . . . . . . . . . . . . . . 165
9.4.1 Manual setup of selected guest services on Linux . . . . . . . . . . . . . 165
9.4.2 Guest graphics and mouse driver setup in depth . . . . . . . . . . . . . 165
9.5 CPU hot-plugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
9.6 PCI passthrough . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
9.7 Webcam passthrough . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
9.7.1 Using a host webcam in the guest . . . . . . . . . . . . . . . . . . . . . 168
9.7.2 Windows hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
9.7.3 Mac OS X hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
9.7.4 Linux hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
9.8 Advanced display configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
9.8.1 Custom VESA resolutions . . . . . . . . . . . . . . . . . . . . . . . . . . 170
9.8.2 Configuring the maximum resolution of guests when using the
graphical frontend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
9.9 Advanced storage configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
9.9.1 Using a raw host hard disk from a guest . . . . . . . . . . . . . . . . . . 171
9.9.2 Configuring the hard disk vendor product data (VPD) . . . . . . . . . . 173
5
剩余373页未读,继续阅读
aaronpan21
- 粉丝: 151
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功