[分享]在DrapperDrake上利用VMware安装WinXP虚拟机

为当前最终发行版之前的所有版本提供支持
回复
aaronfromchina
帖子: 79
注册时间: 2006-03-02 23:16
来自: 深圳
送出感谢: 0
接收感谢: 0
联系:

[分享]在DrapperDrake上利用VMware安装WinXP虚拟机

#1

帖子 aaronfromchina » 2006-10-01 20:31

对Windows说byebye不是一朝一夕的事,毕竟Win平台上还有少优秀的软件。再加上有些软件厂商还没有为他们的产品开发Linux版本,使我们有时不得不用一下Windows。

Windows和Linux双启动是其中一种解决方案,但由于每次切换都必须重要启动电脑,多有不便。因此,在Linux平台搭设一个Windows虚拟机不失为一种较好的方法。

Vmware(Virtual Machine ware)就是用来搭建虚拟机的工具。该工具不仅可以搭设Windows虚拟机,还可以搭Linux、Novell Netware、Sun Solaris等。Vmware支持在Linux下运行 ,其VMware Server版可免费下载使用。

本文记录了自己在Ubuntu Dapper,安装VMware Server 1.0.1,并用之搭建WinXP的过程。如有遗漏和错误,敬请指正。

硬件环境:
Compaq Presario X1000, Centrino 1.4, 768 RAM, 40G, Radeon 9200
系统环境:
Ubuntu Dapper已经全部更新。Kernel为2.6.15-27-386

1. 准备编译工具
由于安装VMware过程中需要编译,所以要准备编译工具。

代码: 全选

$sudo apt-get install build-essential
(以下操作直到"2. 安装Linux头文件"不一定执行,如果你启动VMware遇到问题,再返回来看。)
查看你的Ubuntu是用哪个版本的gcc编译的。

代码: 全选

$cat /proc version
我的例子显示:

代码: 全选

Linux version 2.6.15-27-386 (buildd@terranova) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006
以上显示是gcc 4.0.3

查看你的gcc 的版本号是否与之相同.

代码: 全选

$gcc -v
如不同,则需要下载与之匹配的版本。例如:

代码: 全选

$apt-get install gcc-3.4 
$apt-get install g++-3.4
$export CC=/usr/bin/gcc-3.4

2. 安装Linux头文件

代码: 全选

$uname -r
$sudo apt-get install linux-headers-'kernel version'
我的例子是:

代码: 全选

$sudo apt-get install linux-headers-2.6.15-27-386
3. 安装xinetd

代码: 全选

$sudo apt-get install xinetd

4. 下载并安装VMWare Server
http://www.vmware.com/download/server/
上面的网站可以下载VMware Server,大约有100M。注册可以免费获得serial number。

代码: 全选

$tar xvfz Vmware-server-1.0.1-29996.tar.gz
$cd vmware-server-distrib
$sudo ./vmware-install.pl
在安装的过程中会出现许多提示,在多数情况下,用缺少的设置即可(敲回车)。上面最后一行命令也可以为:

代码: 全选

$sudo ./vmware-install.pl d
对提示问题全以缺省设置回答。

最后你会被要求输入serial number。vmware-config.pl随之将自动运行 ,同样还是建议用缺少的设置。

5. VMware安装完毕
如果安装成功,Applications -> System Tools 下面将出现VMware Server Console图标。启动它,将出现下面的画面(见图1)。

如果你的VMware Server不能启动,可能是安装过程中有错误。欢迎你把安装过程中的提示贴出来,大家一起讨论。

6. 建立Windows XP虚拟机
点击VMwae Server Console的按钮Create a new virtual machine,在New Virtual Machine Wizard里选择你的搭建 的操作系统-Microsoft Windows;在Version下面选择Windows XP Professional(见图2)。


7. 配置WinXP的上网方式和分区大小

WinXP的上网方式选择(安装好虚拟机后也可以更改配置),我选择的Use bridged networking(见图3)


分区大小是设置WinXP最大可以用到的磁盘空间。我用的是8G(见图4)。

8. 安装Win XP
Win XP虚拟机配置完毕后,将出现Windows XP Professional标签页。插入WinXP安装光盘,点Power on the virtual machine,即开始安装Win XP了。

安装过程和独立安装Win Xp一样的。安装成功后即可使用WinXP了(见图5)。


总结:
在Ubuntu 6.06 (Dapper Drake)下安装VMware Server几乎不需要设置。运行WinXP感觉速度较慢,连移到鼠标都会有延迟(我的机器是Compaq Presario X1000, Centrino 1.4, 768 RAM, 40G, Radeon 9200,分配给Win XP 512M内存)。如果只是仅仅用Win上的几个小程序,模拟整个WinXP有点得不偿失。也许会有更好的办法。


参考文章:
1. 使用VMWare Player安装Windows 2000 虚似机, wolfg
viewtopic.php?t=22330

2. Guide to Vmware on Breezy Preview, denisesballs
http://www.ubuntuforums.org/showthread.php?t=65638

3. How to install Vmware Server on Ubuntu 6.06 LTS (Dapper Drake), Till Brehm
http://www.howtoforge.com/ubuntu_vmware_server
附件
Inst Win on U via VM 5.jpeg
Inst Win on U via VM 4.jpeg
Inst Win on U via VM 3.jpeg
Inst Win on U via VM 2.jpeg
Inst Win on U via VM 1.jpeg
jimmin
论坛版主
帖子: 2138
注册时间: 2006-09-24 4:37
送出感谢: 0
接收感谢: 1 次

#2

帖子 jimmin » 2006-10-09 19:52

VMware是免费的吗?我看到的怎么是一个月的免费试用?
如果只是一个月的免费试用那还不如不装。
aaronfromchina
帖子: 79
注册时间: 2006-03-02 23:16
来自: 深圳
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 aaronfromchina » 2006-10-09 23:21

vmware-server确实是免费的。

请看图:
附件
vmware.jpg
wl1336412
帖子: 182
注册时间: 2006-05-27 14:58
来自: 西安
送出感谢: 0
接收感谢: 0

#4

帖子 wl1336412 » 2006-10-11 19:37

给XP少分些内存就不卡了
aaronfromchina
帖子: 79
注册时间: 2006-03-02 23:16
来自: 深圳
送出感谢: 0
接收感谢: 0
联系:

#5

帖子 aaronfromchina » 2006-10-16 19:23

wl1336412

确实好了些。
谢谢。
springlarry
帖子: 286
注册时间: 2006-06-08 8:53
送出感谢: 0
接收感谢: 0

help

#6

帖子 springlarry » 2006-10-18 14:36

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

/usr/share/applications/vmware-server.desktop: error: Categories values must be one of "Core", "Development", "Building", "Debugger", "IDE", "GUIDesigner", "Profiling", "RevisionControl", "Translation", "Office", "Calendar", "ContactManagement", "Database", "Dictionary", "Chart", "Email", "Finance", "FlowChart", "PDA", "ProjectManagement", "Presentation", "Spreadsheet", "WordProcessor", "Graphics", "2DGraphics", "VectorGraphics", "RasterGraphics", "3DGraphics", "Scanning", "OCR", "Photography", "Viewer", "Settings", "DesktopSettings", "HardwareSettings", "PackageManager", "Network", "Dialup", "InstantMessaging", "IRCClient", "FileTransfer", "HamRadio", "News", "P2P", "RemoteAccess", "Telephony", "WebBrowser", "WebDevelopment", "AudioVideo", "Audio", "Midi", "Mixer", "Sequencer", "Tuner", "Video", "TV", "AudioVideoEditing", "Player", "Recorder", "DiscBurning", "Game", "ActionGame", "AdventureGame", "ArcadeGame", "BoardGame", "BlocksGame", "CardGame", "KidsGame", "LogicGame", "RolePlaying", "Simulation", "SportsGame", "StrategyGame", "Education", "Art", "Construction", "Music", "Languages", "Science", "Astronomy", "Biology", "Chemistry", "Geology", "Math", "MedicalSoftware", "Physics", "Teaching", "Amusement", "Applet", "Archiving", "Electronics", "Emulator", "Engineering", "FileManager", "Shell", "ScreenSaver", "TeminalEmulator", "TrayIcon", "System", "Filesystem", "Monitor", "Security", "Utility", "Accessibility", "Calculator", "Clock", "TextEditor", "KDE", "GNOME", "GTK", "Qt", "Motif", "Java", "ConsoleOnly" (found "Application")
desktop-file-install created an invalid desktop file!
Unable to install the .desktop menu entry file. You must add it to your menus
by hand.
/usr/share/applications/vmware-console-uri-handler.desktop: error: Categories values must be one of "Core", "Development", "Building", "Debugger", "IDE", "GUIDesigner", "Profiling", "RevisionControl", "Translation", "Office", "Calendar", "ContactManagement", "Database", "Dictionary", "Chart", "Email", "Finance", "FlowChart", "PDA", "ProjectManagement", "Presentation", "Spreadsheet", "WordProcessor", "Graphics", "2DGraphics", "VectorGraphics", "RasterGraphics", "3DGraphics", "Scanning", "OCR", "Photography", "Viewer", "Settings", "DesktopSettings", "HardwareSettings", "PackageManager", "Network", "Dialup", "InstantMessaging", "IRCClient", "FileTransfer", "HamRadio", "News", "P2P", "RemoteAccess", "Telephony", "WebBrowser", "WebDevelopment", "AudioVideo", "Audio", "Midi", "Mixer", "Sequencer", "Tuner", "Video", "TV", "AudioVideoEditing", "Player", "Recorder", "DiscBurning", "Game", "ActionGame", "AdventureGame", "ArcadeGame", "BoardGame", "BlocksGame", "CardGame", "KidsGame", "LogicGame", "RolePlaying", "Simulation", "SportsGame", "StrategyGame", "Education", "Art", "Construction", "Music", "Languages", "Science", "Astronomy", "Biology", "Chemistry", "Geology", "Math", "MedicalSoftware", "Physics", "Teaching", "Amusement", "Applet", "Archiving", "Electronics", "Emulator", "Engineering", "FileManager", "Shell", "ScreenSaver", "TeminalEmulator", "TrayIcon", "System", "Filesystem", "Monitor", "Security", "Utility", "Accessibility", "Calculator", "Clock", "TextEditor", "KDE", "GNOME", "GTK", "Qt", "Motif", "Java", "ConsoleOnly" (found "Application")
desktop-file-install created an invalid desktop file!
Unable to install the .desktop menu entry file. You must add it to your menus
by hand.
Trying to find a suitable vmmon module for your running kernel.
头像
milkboy_x
帖子: 431
注册时间: 2006-06-13 11:02
来自: 广东 广州
送出感谢: 0
接收感谢: 0

关于鼠标会有延迟的问题

#7

帖子 milkboy_x » 2006-10-18 21:18

用VMware Server,可以在安装好XP后在里面安装VMware Tools,经过本人的试验(A643000+cpu,512m内存)能够有效的提高鼠标延时的问题,还能提高显示效能,大家可以试试。
在XGL+Beryl下面还可以设全屏和半透明。 :lol:
头像
allend0306
帖子: 17
注册时间: 2006-10-09 14:43
送出感谢: 0
接收感谢: 0
联系:

#8

帖子 allend0306 » 2006-10-23 6:40

安装完毕之后~在系统工具里分别点vmware workstation和vmware player来运行~结果就给我分别弹出了下面两个窗口提示~
但是我在终端下用 sudo vmware就可以正常运行了~
这应该是权限问题吧~我应该怎么解决?~我应该chmod哪个东西才对啊~
谢谢~
附件
Screenshot-错误.png
Screenshot-错误.png (8.57 KiB) 查看 2254 次
Screenshot-错误-1.png
Screenshot-错误-1.png (8.26 KiB) 查看 2255 次
我的脑袋充满了棉花
回复

回到 “老旧版本支持”