Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1099901
  • 博文数量: 286
  • 博客积分: 3124
  • 博客等级: 中校
  • 技术积分: 5186
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-24 23:42
个人简介

Bomi

文章存档

2015年(1)

2013年(1)

2012年(281)

2008年(3)

分类: 虚拟化

2012-02-05 12:49:51

Sun xVM VirtualBox 用户手册

Version 1.6.4


2004-2008 Sun Microsystems, Inc.
July 29, 2008


目录

1 介绍

1.2 功能概要
1.3操作系统支持

1.3.1支持的宿主(物理主机)操作系统
1.3.2支持的寄生(虚机主机)操作系统

2.安装
2.1 安装在Windows主机上
2.1.1 系统需求
2.1.2 安装 .
2.1.3 卸载
2.1.4 无人职守安装
2.2 安装在Mac OS X 主机上
2.2.1 安装
2.2.2 卸载
2.2.3 无人职守安装
2.3 安装在Linux主机上
2.3.1 系统需求 
2.3.2 VirtualBox 内核模块 
2.3.3 USB和高级网络支持
2.3.4 安装
2.3.5 在Linux上启用VirtualBox 
2.4 安装在OpenSolaris主机上
2.4.1安装
2.4.2 在OpenSolaris上启用VirtualBox
2.4.3 卸载
2.4.4 无人职守安装
2.4.5 设置一个zone来运行VirtualBox



3 Starting out with VirtualBox 27
3.1 Starting the graphical user interface . . . . . . . . . . . . . . . . . . . . 27
3.2 Creating a virtual machine . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.3 Basics of virtual machine configuration . . . . . . . . . . . . . . . . . . . 32
3.4 Running a virtual machine . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.4.1 Keyboard and mouse support in virtual machines . . . . . . . . . 34
3.4.2 Changing removable media . . . . . . . . . . . . . . . . . . . . . 37
3.4.3 Saving the state of the machine . . . . . . . . . . . . . . . . . . 37
3.4.4 Snapshots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3.5 The Virtual Disk Manager . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3.6 Deleting virtual machines . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.7 Virtual machine settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.7.1 General settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.7.2 Hard disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3.7.3 CD/DVD-ROM and floppy settings . . . . . . . . . . . . . . . . . 46
3.7.4 Audio settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
3.7.5 Network settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
3.7.6 USB support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
3.7.7 Remote display . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.7.8 Shared folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.7.9 Serial ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

4 The VirtualBox Guest Additions 52
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4.2 Windows Guest Additions . . . . . . . . . . . . . . . . . . . . . . . . . . 53
4.2.1 Installing the Windows Guest Additions . . . . . . . . . . . . . . 53
4.2.2 Updating the Windows Guest Additions . . . . . . . . . . . . . . 55
4.2.3 Unattended Installation . . . . . . . . . . . . . . . . . . . . . . . 55
4.2.4 Windows Vista networking . . . . . . . . . . . . . . . . . . . . . 55
4.3 Linux Guest Additions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4.3.1 Installing the Linux Guest Additions . . . . . . . . . . . . . . . . 56
4.3.2 Video acceleration and high resolution graphics modes . . . . . 57
4.3.3 Updating the Linux Guest Additions . . . . . . . . . . . . . . . . 57
4.4 Solaris Guest Additions . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
4.4.1 Installing the Solaris Guest Additions . . . . . . . . . . . . . . . 58
4.4.2 Uninstalling the Solaris Guest Additions . . . . . . . . . . . . . . 58
4.4.3 Updating the Solaris Guest Additions . . . . . . . . . . . . . . . 58
4.5 Folder sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
4.6 Seamless windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

5 Virtual storage 62
5.1 Hard disk controllers: IDE, SATA, AHCI . . . . . . . . . . . . . . . . . . 62
5.2 Virtual Disk Image (VDI) files . . . . . . . . . . . . . . . . . . . . . . . . 64
5.3 Cloning disk images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
5.4 VMDK image files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
5.5 iSCSI servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
5.5.1 Access iSCSI targets via Internal Networking . . . . . . . . . . . 67

6 Virtual networking 69
6.1 Virtual networking hardware . . . . . . . . . . . . . . . . . . . . . . . . 69
6.2 Introduction to networking modes . . . . . . . . . . . . . . . . . . . . . 69
6.3 “Not attached” mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
6.4 Network Address Translation (NAT) . . . . . . . . . . . . . . . . . . . . 70
6.4.1 Configuring port forwarding with NAT . . . . . . . . . . . . . . . 71
6.4.2 PXE booting with NAT . . . . . . . . . . . . . . . . . . . . . . . . 72
6.4.3 NAT limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
6.5 Introduction to Host Interface Networking (HIF) . . . . . . . . . . . . . 73
6.6 Host Interface Networking and bridging on Windows hosts . . . . . . . 74
6.7 Host Interface Networking and bridging on Linux hosts . . . . . . . . . 74
6.7.1 Permanent host interfaces and bridging . . . . . . . . . . . . . . 75
6.7.2 Creating interfaces dynamically when a virtual machine starts up 82
6.8 Host Interface Networking and bridging on OpenSolaris hosts . . . . . . 83
6.8.1 Creating interfaces using the setup script. . . . . . . . . . . . . . 84
6.8.2 Creating interfaces manually . . . . . . . . . . . . . . . . . . . . 84
6.9 Internal networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

7 Alternative front-ends; remote virtual machines 87
7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
7.2 Using VBoxManage to control virtual machines . . . . . . . . . . . . . . 88
7.3 VBoxSDL, the simplified VM displayer . . . . . . . . . . . . . . . . . . . 89
7.4 Remote virtual machines (VRDP support) . . . . . . . . . . . . . . . . . 90
7.4.1 VBoxHeadless, the VRDP-only server . . . . . . . . . . . . . . . . 91
7.4.2 Step by step: creating a virtual machine on a headless server . . 91
7.4.3 Remote USB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
7.4.4 RDP authentication . . . . . . . . . . . . . . . . . . . . . . . . . 93
7.4.5 RDP encryption . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
7.4.6 VRDP multiple connections . . . . . . . . . . . . . . . . . . . . . 94

8 VBoxManage reference 95
8.1 VBoxManage list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.2 VBoxManage showvminfo . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.3 VBoxManage registervm / unregistervm . . . . . . . . . . . . . . . . . . 100
8.4 VBoxManage createvm . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
8.5 VBoxManage modifyvm . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
8.5.1 General settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
8.5.2 Storage settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
8.5.3 Networking settings . . . . . . . . . . . . . . . . . . . . . . . . . 103
8.5.4 Serial port, audio, clipboard, VRDP and USB settings . . . . . . 104
8.6 VBoxManage startvm . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
8.7 VBoxManage controlvm . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
8.8 VBoxManage discardstate . . . . . . . . . . . . . . . . . . . . . . . . . . 108
8.9 VBoxManage snapshot . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
8.10 VBoxManage registerimage / unregisterimage . . . . . . . . . . . . . . . 108
8.11 VBoxManage showvdiinfo . . . . . . . . . . . . . . . . . . . . . . . . . . 108
8.12 VBoxManage createvdi . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
8.13 VBoxManage modifyvdi . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
8.14 VBoxManage clonevdi . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
8.15 VBoxManage convertdd . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
8.16 VBoxManage addiscsidisk . . . . . . . . . . . . . . . . . . . . . . . . . . 109
8.17 VBoxManage createhostif/removehostif . . . . . . . . . . . . . . . . . . 110
8.18 VBoxManage getextradata/setextradata . . . . . . . . . . . . . . . . . . 110
8.19 VBoxManage setproperty . . . . . . . . . . . . . . . . . . . . . . . . . . 111
8.20 VBoxManage usbfilter add/modify/remove . . . . . . . . . . . . . . . . 111
8.21 VBoxManage sharedfolder add/remove . . . . . . . . . . . . . . . . . . 112
8.22 VBoxManage updatesettings . . . . . . . . . . . . . . . . . . . . . . . . 112

9 Advanced topics 113
9.1 VirtualBox configuration data . . . . . . . . . . . . . . . . . . . . . . . . 113
9.2 Automated Windows guest logons (VBoxGINA) . . . . . . . . . . . . . . 114
9.3 Custom external VRDP authentication . . . . . . . . . . . . . . . . . . . 115
9.4 Secure labeling with VBoxSDL . . . . . . . . . . . . . . . . . . . . . . . 116
9.5 Custom VESA resolutions . . . . . . . . . . . . . . . . . . . . . . . . . . 117
9.6 Multiple monitors for the guest . . . . . . . . . . . . . . . . . . . . . . . 118
9.7 Releasing modifiers with VBoxSDL on Linux . . . . . . . . . . . . . . . . 119
9.8 Using serial ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
9.9 Using a raw host hard disk from a guest . . . . . . . . . . . . . . . . . . 120
9.9.1 Access to entire physical hard disk . . . . . . . . . . . . . . . . . 121
9.9.2 Access to individual physical hard disk partitions . . . . . . . . . 121
9.10 Allowing a virtual machine to start even with unavailable CD/DVD/floppy
devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
9.11 Configuring the address of a NAT network interface . . . . . . . . . . . . 123
9.12 Configuring the maximum resolution of guests when using the graphical
frontend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
9.13 Configuring the BIOS DMI information . . . . . . . . . . . . . . . . . . . 124

10 VirtualBox programming interfaces 126
10.1 The VirtualBox webservice: WSDL and SOAP . . . . . . . . . . . . . . . 127
10.1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
10.1.2 A hands-on example . . . . . . . . . . . . . . . . . . . . . . . . . 128
10.1.3 Fundamental conventions . . . . . . . . . . . . . . . . . . . . . 130
10.1.4 Command line options of vboxwebsrv . . . . . . . . . . . . . . . 131
10.1.5 Example: A typical webservice client session . . . . . . . . . . . 132
10.1.6 Managed object references . . . . . . . . . . . . . . . . . . . . . 133
10.1.7 Some more detail about webservice operation . . . . . . . . . . 134
10.1.8 Using the VirtualBox Main API documentation for webservice
clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
10.2 The VirtualBox COM API . . . . . . . . . . . . . . . . . . . . . . . . . . 137

11 Troubleshooting 139
11.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
11.1.1 Collecting debugging information . . . . . . . . . . . . . . . . . 139
11.1.2 Guest shows IDE errors for VDI on slow host file system . . . . . 139
11.1.3 Responding to guest IDE flush requests . . . . . . . . . . . . . . 140
11.2 Windows guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
11.2.1 Windows boot failures (bluescreens) after changing VM configuration
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
11.2.2 Windows 2000 installation failures . . . . . . . . . . . . . . . . 141
11.2.3 How to record bluescreen information from Windows guests . . 141
11.2.4 No networking in Windows Vista guests . . . . . . . . . . . . . . 142
11.2.5 Windows guests may cause a high CPU load . . . . . . . . . . . 142
11.3 Linux guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
11.3.1 Linux guests may cause a high CPU load . . . . . . . . . . . . . 142
11.4 Windows hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
11.4.1 VBoxSVC out-of-process COM server issues . . . . . . . . . . . . 142
11.4.2 CD/DVD changes not recognized . . . . . . . . . . . . . . . . . . 143
11.4.3 Sluggish response when using Microsoft RDP client . . . . . . . 143
11.4.4 Running an iSCSI initiator and target on a single system . . . . . 144
11.5 Linux hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
11.5.1 Linux kernel module refuses to load . . . . . . . . . . . . . . . . 144
11.5.2 Linux host CD/DVD drive not found . . . . . . . . . . . . . . . . 144
11.5.3 Linux host CD/DVD drive not found (older distributions) . . . . 145
11.5.4 Linux host floppy not found . . . . . . . . . . . . . . . . . . . . 145
11.5.5 Strange guest IDE error messages when writing to CD/DVD . . . 145
11.5.6 VBoxSVC IPC issues . . . . . . . . . . . . . . . . . . . . . . . . . 146
11.5.7 USB not working . . . . . . . . . . . . . . . . . . . . . . . . . . 146
11.5.8 PAX/grsec kernels . . . . . . . . . . . . . . . . . . . . . . . . . . 147
11.5.9 Linux kernel vmalloc pool exhausted . . . . . . . . . . . . . . . 147

12 Change log 148
12.1 Version 1.6.4 (2008-07-30) . . . . . . . . . . . . . . . . . . . . . . . . . 148
12.2 Version 1.6.2 (2008-05-28) . . . . . . . . . . . . . . . . . . . . . . . . . 149
12.3 Version 1.6.0 (2008-04-30) . . . . . . . . . . . . . . . . . . . . . . . . . 151
12.4 Version 1.5.6 (2008-02-19) . . . . . . . . . . . . . . . . . . . . . . . . . 153
12.5 Version 1.5.4 (2007-12-29) . . . . . . . . . . . . . . . . . . . . . . . . . 155
12.6 Version 1.5.2 (2007-10-18) . . . . . . . . . . . . . . . . . . . . . . . . . 157
12.7 Version 1.5.0 (2007-08-31) . . . . . . . . . . . . . . . . . . . . . . . . . 159
12.8 Version 1.4.0 (2007-06-06) . . . . . . . . . . . . . . . . . . . . . . . . . 162
12.9 Version 1.3.8 (2007-03-14) . . . . . . . . . . . . . . . . . . . . . . . . . 165
12.10Version 1.3.6 (2007-02-20) . . . . . . . . . . . . . . . . . . . . . . . . . 166
12.11Version 1.3.4 (2007-02-12) . . . . . . . . . . . . . . . . . . . . . . . . . 167
12.12Version 1.3.2 (2007-01-15) . . . . . . . . . . . . . . . . . . . . . . . . . 168
12.13Version 1.2.4 (2006-11-16) . . . . . . . . . . . . . . . . . . . . . . . . . 169
12.14Version 1.2.2 (2006-11-14) . . . . . . . . . . . . . . . . . . . . . . . . . 169
12.15Version 1.1.12 (2006-11-14) . . . . . . . . . . . . . . . . . . . . . . . . 170
12.16Version 1.1.10 (2006-07-28) . . . . . . . . . . . . . . . . . . . . . . . . 171
12.17Version 1.1.8 (2006-07-17) . . . . . . . . . . . . . . . . . . . . . . . . . 171
12.18Version 1.1.6 (2006-04-18) . . . . . . . . . . . . . . . . . . . . . . . . . 172
12.19Version 1.1.4 (2006-03-09) . . . . . . . . . . . . . . . . . . . . . . . . . 172
12.20Version 1.1.2 (2006-02-03) . . . . . . . . . . . . . . . . . . . . . . . . . 173
12.21Version 1.0.50 (2005-12-16) . . . . . . . . . . . . . . . . . . . . . . . . 175
12.22Version 1.0.48 (2005-11-23) . . . . . . . . . . . . . . . . . . . . . . . . 175
12.23Version 1.0.46 (2005-11-04) . . . . . . . . . . . . . . . . . . . . . . . . 176
12.24Version 1.0.44 (2005-10-25) . . . . . . . . . . . . . . . . . . . . . . . . 176
12.25Version 1.0.42 (2005-08-30) . . . . . . . . . . . . . . . . . . . . . . . . 177
12.26Version 1.0.40 (2005-06-17) . . . . . . . . . . . . . . . . . . . . . . . . 178
12.27Version 1.0.39 (2005-05-05) . . . . . . . . . . . . . . . . . . . . . . . . 179
12.28Version 1.0.38 (2005-04-27) . . . . . . . . . . . . . . . . . . . . . . . . 179
12.29Version 1.0.37 (2005-04-12) . . . . . . . . . . . . . . . . . . . . . . . . 180

13 Known issues 181

14 Third-party licenses 183
14.1 Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
14.2 Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
14.2.1 GNU General Public License (GPL) . . . . . . . . . . . . . . . . . 185
14.2.2 GNU Lesser General Public License (LGPL) . . . . . . . . . . . . 190
14.2.3 Mozilla Public License (MPL) . . . . . . . . . . . . . . . . . . . . 198
14.2.4 X Consortium License (X11) . . . . . . . . . . . . . . . . . . . . 207
14.2.5 zlib license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
14.2.6 OpenSSL license . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
14.2.7 Slirp license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
14.2.8 liblzf license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
14.2.9 libpng license . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
14.2.10lwIP license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
14.2.11libxml license . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
14.2.12libxslt licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
14.2.13gSOAP Public License Version 1.3a . . . . . . . . . . . . . . . . . 212

15 VirtualBox privacy policy 219

Glossary 220

[ 本帖最后由 云杉上的蝴蝶 于 2008-8-19 21:00 编辑 ]
阅读(1330) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~