解决VMware Workstation 6.0在Vista下hr = 0×80004003问题 唯美,震撼 - 世界最高瀑布Angel Falls
Aug 26

以前装了个Windows Vista Ultimate+UbuntuStudio 7.04双系统,但是平时主要还是在Vista下,没时间玩Ubuntu得,因为重启进Ubuntu浪费时间。最近想了一个YY的办法,主要用VMWare的“映射物理磁盘”功能,在Vista上跑VMware,然后在Vmware里启动物理硬盘上的真实Ubuntu。这样不用重启就可以使用Ubuntu,同时节省磁盘空间,因为这样不用硬盘上装一个Ubuntu虚拟机里一个Ubuntu。这个Ubuntu虚拟机几个文件加起来一共才240K :)

新建虚拟机

在VMware菜单里选择 File -> New -> Virtual Machine,然后Custom一个Ubuntu的虚拟机。注意新建 虚拟磁盘 的时候(如图),一定要选择Use a physical disk(for advanced users)
1.jpg

接下来把虚拟磁盘映射到当前主机的真是磁盘上,选择 Use individual partitions。

我的硬盘分区非配为:C:\为Vista系统盘(NTFS格式,GRUB启动),D:\为软件工具盘(FAT32格式,GRUB启动),E:\为文件盘(NTFS带压缩格式),剩下的分区分别是Ubuntu的swao, /home还有 / 根目录。这里只映射了D:盘(作为交换文件用)和3个Ubuntu分区。

启动虚拟机

启动虚拟机的时候。发现其中有一行错误。原来是我的C:和E:盘没有找到 :)

配置X.org

启动到最后显示X.org出错。在VMware菜单里选择 VM -> Install VMware tools。Vmware会自动加载VMware显卡驱动的iso到光驱。发现光盘里有两个文件,一个VMwareTools-6.0.0-45731.i386.rpm,另一个是VMwareTools-6.0.0-45731.tar.gz,Ubuntu没法用rpm只有去手工编译了。用tar -xzf VMwareTools-6.0.0-45731.tar.gz -C ~/ 解压到 /home/est 目录下,运行sudo ~/vmware-tools-distrib/vmware-install.pl

Stopping VMware Tools services in the virtual machine:   Guest operating system daemon:                                      done   Blocking file system:                                               done   Unmounting HGFS shares:                                             done   Guest filesystem driver:                                            done   Guest memory manager:                                               done * Deconfiguring network interfaces...                                   [ OK ]   Guest vmxnet fast network device:                                   done   New Host-Guest communications path:                                 doneTrying to find a suitable vmmemctl module for your running kernel.
None of the pre-built vmmemctl modules for VMware Tools is suitable for yourrunning kernel.  Do you want this program to try to build the vmmemctl modulefor your system (you need to have a C compiler installed on your system)?[yes] yes
Using compiler "/usr/bin/gcc". Use environment variable CC to override.
What is the location of the directory of C header files that match your runningkernel? [/lib/modules/2.6.20-16-generic/build/include]
Extracting the sources of the vmmemctl module.
Building the vmmemctl module.
Using 2.6.x kernel build system.make: Entering directory `/tmp/vmware-config0/vmmemctl-only'make -C /lib/modules/2.6.20-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modulesmake[1]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic'  CC [M]  /tmp/vmware-config0/vmmemctl-only/os.o  SHIPPED /tmp/vmware-config0/vmmemctl-only/vmmemctl1.o  LD [M]  /tmp/vmware-config0/vmmemctl-only/vmmemctl.o  Building modules, stage 2.  MODPOST 1 modulesWARNING: could not find /tmp/vmware-config0/vmmemctl-only/.vmmemctl1.o.cmd for /tmp/vmware-config0/vmmemctl-only/vmmemctl1.o  CC      /tmp/vmware-config0/vmmemctl-only/vmmemctl.mod.o  LD [M]  /tmp/vmware-config0/vmmemctl-only/vmmemctl.komake[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic'cp -f vmmemctl.ko ./../vmmemctl.omake: Leaving directory `/tmp/vmware-config0/vmmemctl-only'The module loads perfectly in the running kernel.
Extracting the sources of the vmhgfs module.
Building the vmhgfs module.
Using 2.6.x kernel build system.make: Entering directory `/tmp/vmware-config0/vmhgfs-only'make -C /lib/modules/2.6.20-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modulesmake[1]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic'  CC [M]  /tmp/vmware-config0/vmhgfs-only/backdoor.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/backdoorGcc32.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/bdhandler.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/cpName.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/cpNameLinux.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/cpNameLite.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/dbllnklst.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/dentry.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/dir.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/eventManager.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/file.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/filesystem.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/fsutil.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/hgfsBd.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/hgfsUtil.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/inode.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/kernelStubsLinux.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/link.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/message.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/module.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/page.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/request.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/rpcin.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/rpcout.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/staticEscape.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/stubs.o  CC [M]  /tmp/vmware-config0/vmhgfs-only/super.o  LD [M]  /tmp/vmware-config0/vmhgfs-only/vmhgfs.o  Building modules, stage 2.  MODPOST 1 modules  CC      /tmp/vmware-config0/vmhgfs-only/vmhgfs.mod.o  LD [M]  /tmp/vmware-config0/vmhgfs-only/vmhgfs.komake[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic'cp -f vmhgfs.ko ./../vmhgfs.omake: Leaving directory `/tmp/vmware-config0/vmhgfs-only'The module loads perfectly in the running kernel.
pcnet32                34052  0Unloading pcnet32 module
Extracting the sources of the vmxnet module.
Building the vmxnet module.
Using 2.6.x kernel build system.make: Entering directory `/tmp/vmware-config0/vmxnet-only'make -C /lib/modules/2.6.20-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modulesmake[1]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic'  CC [M]  /tmp/vmware-config0/vmxnet-only/vmxnet.o  Building modules, stage 2.  MODPOST 1 modules  CC      /tmp/vmware-config0/vmxnet-only/vmxnet.mod.o  LD [M]  /tmp/vmware-config0/vmxnet-only/vmxnet.komake[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic'cp -f vmxnet.ko ./../vmxnet.omake: Leaving directory `/tmp/vmware-config0/vmxnet-only'The module loads perfectly in the running kernel.
Extracting the sources of the vmblock module.
Building the vmblock module.
Using 2.6.x kernel build system.make: Entering directory `/tmp/vmware-config0/vmblock-only'make -C /lib/modules/2.6.20-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modulesmake[1]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic'  CC [M]  /tmp/vmware-config0/vmblock-only/linux/block.o  CC [M]  /tmp/vmware-config0/vmblock-only/linux/control.o  CC [M]  /tmp/vmware-config0/vmblock-only/linux/dbllnklst.o  CC [M]  /tmp/vmware-config0/vmblock-only/linux/dentry.o  CC [M]  /tmp/vmware-config0/vmblock-only/linux/file.o  CC [M]  /tmp/vmware-config0/vmblock-only/linux/filesystem.o  CC [M]  /tmp/vmware-config0/vmblock-only/linux/inode.o  CC [M]  /tmp/vmware-config0/vmblock-only/linux/module.o  CC [M]  /tmp/vmware-config0/vmblock-only/linux/stubs.o  CC [M]  /tmp/vmware-config0/vmblock-only/linux/super.o  LD [M]  /tmp/vmware-config0/vmblock-only/vmblock.o  Building modules, stage 2.  MODPOST 1 modules  CC      /tmp/vmware-config0/vmblock-only/vmblock.mod.o  LD [M]  /tmp/vmware-config0/vmblock-only/vmblock.komake[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic'cp -f vmblock.ko ./../vmblock.omake: Leaving directory `/tmp/vmware-config0/vmblock-only'The module loads perfectly in the running kernel.
[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) serviceprovides a new communication capability with the Host, primarily fordevelopment at the moment.  Would you like to enable this feature? [yes] y
Extracting the sources of the vmci module.
Building the vmci module.
Using 2.6.x kernel build system.make: Entering directory `/tmp/vmware-config0/vmci-only'make -C /lib/modules/2.6.20-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modulesmake[1]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic'  CC [M]  /tmp/vmware-config0/vmci-only/dbllnklst.o  CC [M]  /tmp/vmware-config0/vmci-only/kernelStubsLinux.o  CC [M]  /tmp/vmware-config0/vmci-only/vmciDatagram.o  CC [M]  /tmp/vmware-config0/vmci-only/vmci_drv.o  CC [M]  /tmp/vmware-config0/vmci-only/vmciProcess.o  CC [M]  /tmp/vmware-config0/vmci-only/vmciResource.o  CC [M]  /tmp/vmware-config0/vmci-only/vmciSharedMemory.o  CC [M]  /tmp/vmware-config0/vmci-only/vmciTest.o  CC [M]  /tmp/vmware-config0/vmci-only/vmciUtil.o  LD [M]  /tmp/vmware-config0/vmci-only/vmci.o  Building modules, stage 2.  MODPOST 1 modules  CC      /tmp/vmware-config0/vmci-only/vmci.mod.o  LD [M]  /tmp/vmware-config0/vmci-only/vmci.komake[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic'cp -f vmci.ko ./../vmci.omake: Leaving directory `/tmp/vmware-config0/vmci-only'The module loads perfectly in the running kernel.
Detected X.org version 7.2.
This program previously created the file/usr/lib/xorg/modules/input/vmmouse_drv.so, and was about to remove it.Somebody else apparently did it already.
Do you want to change the display size that X starts with? (yes/no) [no] n
X Window System Version 7.2.0Release Date: 22 January 2007X Protocol Version 11, Revision 0, Release 7.2Build Operating System: Linux UbuntuCurrent Operating System: Linux est-ubuntu 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686Build Date: 04 April 2007        Before reporting problems, check http://wiki.x.org        to make sure that you have the latest version.Module Loader presentMarkers: (--) probed, (**) From config file, (==) default setting,        (++) From command line, (!!) notice, (II) informational,        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.6340", Time: Sun Aug 26 19:58:58 2007(++) Using config file: "/tmp/vmware-config0/XF86Config.6340"
X is running fine with the new config file.
(EE) AIGLX: Screen 0 is not DRI capableSynaptics Touchpad no synaptics event device found (checked 15 nodes)Query no Synaptics: 6003C8(EE) Synaptics Touchpad no synaptics touchpad detected and no repeater device(EE) Synaptics Touchpad Unable to query/initialize Synaptics hardware.(EE) PreInit failed for input device "Synaptics Touchpad"(EE) xf86OpenSerial: Cannot open device /dev/input/wacom        No such file or directory.Error opening /dev/input/wacom : No such file or directory(EE) xf86OpenSerial: Cannot open device /dev/input/wacom        No such file or directory.Error opening /dev/input/wacom : No such file or directory(EE) xf86OpenSerial: Cannot open device /dev/input/wacom        No such file or directory.Error opening /dev/input/wacom : No such file or directoryCould not init font path element /usr/X11R6/lib/X11/fonts/misc, removing From list!Could not init font path element /usr/share/fonts/X11/cyrillic, removing From list!Could not init font path element /usr/X11R6/lib/X11/fonts/Type1, removing From list!FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.Starting VMware Tools services in the virtual machine:   Switching to guest configuration:                                   done   Guest filesystem driver:                                            done   Mounting HGFS shares:                                              failed   Guest memory manager:                                               done   Guest vmxnet fast network device:                                   done   New Host-Guest communications path:                                 done   Blocking file system:                                               done   DMA setup:                                                          done   Guest operating system daemon:                                      done
The configuration of VMware Tools 6.0.0 build-45731 for Linux for this runningkernel completed successfully.
You must restart your X session before any mouse or graphics changes takeeffect.
You can now run VMware Tools by invoking the following command:"/usr/bin/vmware-toolbox" during an X server session.
To use the vmxnet driver, restart networking using the following commands:/etc/init.d/networking stoprmmod pcnet32rmmod vmxnetmodprobe vmxnet/etc/init.d/networking start
If you wish to configure any experimental features, please run the followingcommand: "vmware-config-tools.pl --experimental".
Enjoy,
--the VMware team

搞定

Vista下跑VMware,虚拟机运行真实硬盘上的Ubuntu,截图纪念


35 Responses to “Vista+Ubuntu+VMware不一样的双系统”

  1. Says:

    Kudos for posting such a useful blog. Your blog isn’t only informative but also very artistic too. There usually are extremely couple of individuals who can write not so easy articles that creatively. Keep up the great writing !!

  2. Says:

    hey, your post actually helps, now i receive the same troubles, and i have no clue on how to solve the issue. luckily i search bing and discovered your post, it helps me get rid of my trouble. thanks once morejust one thing, can i paste your entry on my site? i will add the source and credit to your site.regards!

  3. Says:

    MBT shoes are with professional design to make your feet more comfortable. Even more tantalizing your legs look, as long as you can in this mode so that it will make you look more appealing. Moreover, mbt shoes have a reasonable price.

  4. Says:

    Silver prices rised again. Do you think it will rise more? Euro is falling. Should I buy bullion now at that high prices? Look at that charts of silver prices here or at Kitco. What should we do?

  5. Says:

    I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites web page list and will be checking back soon. Please check out my site as well and let me know what you think. Thanks.

  6. Says:

    This is my first visit to your blog. We are starting a new initiative in the same niche as this blog. Your blog provided us with important information to work on. You have done a admirable job.

  7. Says:

    thanks for the ideas , i’d love to stick to your weblog as generally as i can.have a great day

  8. Says:

    This is my second visit to this blog. We are starting a new initiative in the same category as this blog. Your blog provided us with important information to work on. You have done a marvellous job.

  9. Says:

    Cheers for this post, It was a great read which was very helpful.

  10. Says:

    I just got a pair of New Balance and had to go a full size larger. I make the time to take the trek (a two hour trek) to the shoe store 2x a year to get fitted and when I have the perfect shoe, I order the second pair off the web. It’s luck of the draw when buying online.

  11. Says:

    I will add this blog to my favorites, it is great.

  12. Says:

    Let the debate begin!

  13. Says:

    Haa, very nice!

  14. Says:

    Thank you ever so for you blog.Really looking forward to read more. Will read on…

  15. Says:

    your website is a great resource

  16. Says:

    Very nice and helpful information has been given in this article. I like the way you explain the things. Keep posting.

  17. Says:

    big pimpin post

  18. Says:

    Great post!

  19. Says:

    An interesting concept this. I’m a single of those individuals whom tend to wait for things to mature before taking action but in this case I am mindful that inaction leads to only failures so I will heed your comments and begin to do something about it.

  20. Says:

    When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks

  21. Says:

    How do gangs get at transcendent products?

  22. Says:

    This is a great blog. Thanks for all your hard work and the info you give.

  23. Says:

    This was pretty fascinating to read. And also do you own an account on Twitter? I did not find it on your web site.

  24. Says:

    hey there, this might be little offtopic, but i am hosting my site on hostgator and they will suspend my hosting in 4days, so i would like to ask you which hosting do you use or recommend?

  25. Says:

    There are a handful of esteemed thoughts in this expansive area.

  26. Says:

    Your goal must be to look into the practical details germane to.

  27. Says:

    Which Golf Clubs Are Better - Steel or Graphite ?

  28. Says:

    Interesting information, may I use a part of it in my website?

  29. Says:

    Which Golf Clubs Are Better - Steel or Graphite ?

  30. Says:

    In all honesty, there are tons of things that are paramount to that when it’s in the same class as.

  31. Says:

    HostRocket are, in my opinion, a great company. I currently use them and from what I’ve seen, there hasn’t been any uptime issues and the support have been able to sort out the problems I’ve had. My overall opinion? Definitely recommended.

  32. Says:

    Searching for this for some time now - i guess luck is far more advanced than research engines :)

  33. Says:

    I recently found your blog/website and have really enjoyed reading this and some of your other posts. I believed I’d dive out from the shadows and leave my first comment. I’m not sure what to say other than I’ve loved reading and can continue to visit as often as I can.

  34. Says:

    its great stuff you’ve got on your blog. Had been looking for this all over. Nice blog

  35. Says:

    I just book marked your blog on Digg and StumbleUpon.I enjoy reading your commentaries.