The Book Of VMware - The Complete Guide To VMware Workstation (2002).pdf

(1430 KB) Pobierz
Table of Contents
The Book of VMware—The Complete Guide to VMware Workstation.......................................................1
Chapter 1: Introduction.....................................................................................................................................3
Overview..................................................................................................................................................3
1.1 Who Should Read This Book............................................................................................................3
1.2 Terms and Conventions.....................................................................................................................4
1.3 Book Layout......................................................................................................................................4
1.4 VMware Applications........................................................................................................................6
1.4.1 Quality Assurance (QA)....................................................................................................6
1.4.2 Network Programming and Testing
...................................................................................6
1.4.3 Operating System Development, Research, and Education..............................................7
1.4.4 Other VMware Products....................................................................................................7
Chapter 2: The VMware Virtual Machine.......................................................................................................8
Overview..................................................................................................................................................8
2.1 Processor, Bus, Memory, and Interrupts
............................................................................................8
2.2 The VMware Devices........................................................................................................................9
2.2.1 IDE Disks and CD−ROM Drives......................................................................................9
2.2.2 SCSI Disks.......................................................................................................................10
2.2.3 Floppy Drives..................................................................................................................11
2.2.4 Ethernet Interfaces...........................................................................................................11
2.2.5 Serial Ports.......................................................................................................................12
2.2.6 Parallel Ports....................................................................................................................12
2.2.7 USB Interface..................................................................................................................13
2.2.8 Graphics...........................................................................................................................13
2.2.9 Mouse
...............................................................................................................................13
2.2.10 Sound Cards...................................................................................................................14
2.3 PC BIOS..........................................................................................................................................14
2.4 How a PC Boots...............................................................................................................................15
Chapter 3: Installing VMware Workstation..................................................................................................16
Overview................................................................................................................................................16
3.1 Host System Requirements..............................................................................................................16
3.2 Installing VMware Workstation for Windows................................................................................17
3.2.1 Upgrading from Version 2...............................................................................................18
3.3 Starting VMware for Windows
........................................................................................................18
3.4 VMware Workstation for Windows Files........................................................................................19
3.5 Uninstalling VMware for Windows
.................................................................................................19
3.6 Installing VMware Workstation for Linux......................................................................................20
3.7 Configuring VMware Workstation for Linux..................................................................................22
3.8 Compiling VMware Kernel Modules..............................................................................................24
3.9 Starting VMware Workstation for Linux
.........................................................................................25
3.10 VMware Linux Executables..........................................................................................................26
vmware−config.pl.....................................................................................................................26
vmware−uninstall.pl.................................................................................................................26
vmware−wizard........................................................................................................................26
vmware−nmbd, vmware−smbd, vmware−smbpasswd, vmware−smbpasswd.bin...................26
vmware−mount.pl, vmware−loop
.............................................................................................26
vmnet−bridge, vmnet−dhcpd, vmnet−natd, vmnet−netifup, vmware−ping.............................26
vmnet−sniffer............................................................................................................................27
3.11 VMware Linux Library Directory.................................................................................................27
3.12 VMware Workstation for Linux Boot Script.................................................................................27
Table of Contents
Chapter 3: Installing VMware Workstation
3.13 Additional Files in /etc/vmware and /dev......................................................................................28
locations....................................................................................................................................28
config........................................................................................................................................28
installer.sh.................................................................................................................................28
/etc/vmware/vmnet Directories.................................................................................................29
not_configured..........................................................................................................................29
Device Files..............................................................................................................................29
3.14 Upgrading VMware Workstation for Linux..................................................................................29
Chapter 4: Virtual Machine Configuration and Operation.........................................................................31
Overview................................................................................................................................................31
4.1 Getting Started.................................................................................................................................31
4.2 The VMware Configuration Wizard................................................................................................31
4.2.1 Stepping Through the VMware Configuration Wizard...................................................32
4.3 VMware Operation..........................................................................................................................34
4.4 Power On.........................................................................................................................................35
4.5 Toolbar Buttons...............................................................................................................................35
4.6 VMware Menu Items.......................................................................................................................36
4.6.1 File Menu.........................................................................................................................36
4.6.2 Power Menu.....................................................................................................................37
4.6.3 Settings Menu..................................................................................................................37
4.6.4 Devices Menu..................................................................................................................39
4.6.5 View Menu......................................................................................................................39
4.6.6 Help Menu.......................................................................................................................40
4.7 Input Options...................................................................................................................................40
4.8 Suspend/Resume..............................................................................................................................41
4.8.1 Performance Notes
...........................................................................................................42
4.9 Full−Screen Mode
............................................................................................................................43
4.9.1 Windows Host Display Configuration
.............................................................................43
4.9.2 Linux Host Display Configuration..................................................................................44
4.10 Connecting and Disconnecting Devices........................................................................................44
4.11 VMware Tools...............................................................................................................................45
4.11.1 VMware Tools Properties (Toolbox)
.............................................................................46
4.12 The Configuration Editor...............................................................................................................48
4.12.1 Windows Configuration Editor
......................................................................................48
4.12.2 Linux Configuration Editor...........................................................................................49
4.12.3 Configuration Editor Options........................................................................................49
4.12.4 Nonhardware Options....................................................................................................57
4.13 Host Memory Requirements..........................................................................................................58
4.14 The VMware BIOS........................................................................................................................59
Chapter 5: Windows Guest Systems...............................................................................................................62
Overview................................................................................................................................................62
5.1 Windows Driver Compatibility in a Guest System.........................................................................62
5.2 Windows NT, 2000, and XP............................................................................................................62
5.2.1Navigating the Control Panels..........................................................................................63
5.2.2 IDE Devices.....................................................................................................................63
5.2.3 SCSI Devices...................................................................................................................65
5.2.4 Floppy Drives..................................................................................................................65
5.2.5 Ethernet Interfaces...........................................................................................................65
5.2.6 Serial Ports.......................................................................................................................66
Table of Contents
Chapter 5: Windows Guest Systems
5.2.7 Parallel Ports....................................................................................................................66
5.2.8 Sound Card......................................................................................................................66
5.2.9 USB Controller................................................................................................................67
5.3 Windows 95, 98, and Me.................................................................................................................68
5.3.1 Installation under VMware..............................................................................................68
5.3.2 VMware Devices under Windows 95, 98, and Me..........................................................68
5.3.3 IDE Disks
.........................................................................................................................69
5.3.4 CD−ROM Drives.............................................................................................................70
5.3.5 SCSI Devices...................................................................................................................71
5.3.6 Ethernet Interfaces...........................................................................................................71
5.3.7 Serial Ports.......................................................................................................................71
5.3.8 Parallel Ports....................................................................................................................71
5.3.9 Mouse
...............................................................................................................................72
5.3.10 Sound Card....................................................................................................................72
5.3.11 USB Controller..............................................................................................................72
5.4 VMware Tools for Windows...........................................................................................................73
5.4.2 VMware Tools Properties for Windows..........................................................................74
5.4.3 Dual Configurations and Hardware Profiles
....................................................................75
5.4.4 Setting Up Your System for Dual Configuration............................................................76
5.5 Unix/GNU Utilities for Windows....................................................................................................77
5.6 DOS and Windows 3.1....................................................................................................................78
5.6.1 DOS CPU Idler Utility and APM under Windows 3.1....................................................79
5.6.2 IDE Disks
.........................................................................................................................79
5.6.3 CD−ROM Drive..............................................................................................................79
5.6.4 SCSI Devices...................................................................................................................80
5.6.5 Floppy Drives..................................................................................................................80
5.6.6 Ethernet Interfaces...........................................................................................................80
5.6.7 Serial and Parallel Ports...................................................................................................82
5.6.8 Mouse
...............................................................................................................................82
5.6.9 Sound Card......................................................................................................................82
5.6.10 USB Devices..................................................................................................................83
Chapter 6: Linux Guest Operating Systems..................................................................................................84
Overview................................................................................................................................................84
6.1 Running Linux as a Guest under VMware......................................................................................84
6.2 System Requirements......................................................................................................................84
6.3 Installing Linux under VMware
.......................................................................................................85
6.4 Running Existing Linux Installations under VMware.....................................................................86
6.5 VMware Tools for Linux.................................................................................................................87
6.5.1 Installing VMware Tools.................................................................................................87
6.5.2 XFree86 Server Configuration
.........................................................................................88
6.5.3 Testing and Customizing the VMware X Server.............................................................90
6.5.4 Additional VMware X Server Information
......................................................................91
6.5.5 The VMware Toolbox.....................................................................................................91
6.5.6 The VMware Toolbox and X Startup Files.....................................................................91
6.5.7 Other VMware Tools for Linux and Dual Configuration................................................92
6.5.8 Using checkvm in X Startup Scripts................................................................................94
6.6 Linux Devices..................................................................................................................................94
6.6.1 /dev/hd*: IDE Disks and ATAPI CD−ROM/DVD Drives
..............................................95
6.6.2 /dev/sd*: SCSI Disks.......................................................................................................95
6.6.3 /dev/scd*, /dev/sr*: SCSI CD−ROM Drives...................................................................96
Table of Contents
Chapter 6: Linux Guest Operating Systems
6.6.4 /dev/sg*: Generic SCSI Devices......................................................................................96
6.6.5 /dev/ttyS*: Serial Ports....................................................................................................96
6.6.6 /dev/fd*: Floppy Drives...................................................................................................96
6.6.7 /dev/lp*, /dev/parport*: Parallel Ports.............................................................................97
6.6.8 Ethernet Interfaces...........................................................................................................97
6.6.9 /dev/psaux: PS/2 Mouse
...................................................................................................97
6.6.10 /dev/dsp, /dev/audio: Sound Card..................................................................................97
6.6.11 USB Devices..................................................................................................................98
6.7 The Linux Kernel and Device Drivers.............................................................................................98
6.7.1 Working with Kernel Modules........................................................................................98
6.7.2 Linux Device Drivers for VMware Workstation.............................................................99
6.8 Linux System Information.............................................................................................................102
6.9 Booting Linux: LILO.....................................................................................................................102
6.9.1 Method 1: New Virtual Disk.........................................................................................103
6.9.2 Method 2: Fake Floppy Disk.........................................................................................103
Chapter 7: FreeBSD Guest Systems..............................................................................................................105
Overview..............................................................................................................................................105
7.1 Installing FreeBSD under VMware...............................................................................................105
7.2 Using an Existing FreeBSD Installation under VMware
...............................................................106
7.3 VMware Tools for FreeBSD
..........................................................................................................106
7.3.1 The VMware X Server
...................................................................................................107
7.3.2 XFree86 Version 4.........................................................................................................107
7.3.3 The VMware Toolbox...................................................................................................108
7.3.4 Single and Dual Configuration......................................................................................108
7.4 BSD Devices..................................................................................................................................109
7.4.1 ATA/IDE Disks.............................................................................................................110
7.4.2 ATAPI CD−ROM Drive
................................................................................................113
7.4.3 SCSI Devices.................................................................................................................114
7.4.4 Floppy Drives................................................................................................................114
7.4.5 Ethernet Interfaces.........................................................................................................114
7.4.6 Serial Ports.....................................................................................................................114
7.4.7 Parallel Ports..................................................................................................................114
7.4.8 USB Devices..................................................................................................................115
7.4.9 PS/2 Mouse Port............................................................................................................115
7.4.10 Sound...........................................................................................................................115
7.5 Customizing a FreeBSD Kernel for VMware
................................................................................116
7.5.1 Help! My New Kernel Didn’t Work!............................................................................117
7.5.2 FreeBSD Kernel Configuration Parameters..................................................................117
7.6 The FreeBSD Boot Manager.........................................................................................................119
7.7 FreeBSD System Statistics............................................................................................................120
Chapter 8: Other Guest Operating Systems................................................................................................121
Overview..............................................................................................................................................121
8.1 CPU Idle and VMware Workstation..............................................................................................121
8.2 NetBSD and OpenBSD..................................................................................................................122
8.2.1 Installing NetBSD..........................................................................................................123
8.2.2 Installing OpenBSD.......................................................................................................123
8.2.3 NetBSD and OpenBSD Devices....................................................................................124
8.2.4 NetBSD Kernels............................................................................................................125
8.2.5 OpenBSD Kernels
..........................................................................................................126
Zgłoś jeśli naruszono regulamin