无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 17699|回复: 49
打印 上一主题 下一主题

【高手请进,把老外的技术搞到手!】在WinPE上运行VMware!

[复制链接]
跳转到指定楼层
1#
发表于 2008-2-18 10:42:28 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
本人尝试多次,在winpe上运行VMware workstation,不管是完整版,精简绿色版都会报错,上网查了N多资料,没有可行的办法,
在这里有For BartPE的vmware Plugin:http://www.bootcd.us/BartPE_Plugin_Details/535/VMware-Workstation-4_5_2-Plugin.html
希望高手去研究一下,既然在BartPE下能运行,在WinPE下我想应该也能的,附上相关资料:
===============================================================================
This is a test to find out if this plugin works without my customizations on XPE1.02
I don't expect this to work on XP or with any other shell than XPE 1.02.
I think you will need a WMI-repository and MSI ..... let's find out about compatibilty of this plugin and your PE.
Please do not redistribute this at this stage because I expect it to change a lot next weeks.

This plugin needs some more preparation than usual. Here is a description of the necessary steps.

Dependancies:

XPE 1.0.2 - MSI - 2k3-built of BartPE - a standard installation of VMware on a 2k3 system

Files:

This plugin needs files in several system-folders and about 20MB in a program folder. The programs runs from
Ram-drive and in this case R:\ws452 as installpath is hardcoded into all infs - sorry for that - %temp%\ws452 doesn't work for me. Run search and replace on all files if you need to change that. I don't like B: for RAMdrive as I use to have a virtual floppy on this letter. You can decide wether you want files on CD or in a self-extracting archive - for this plugin I used files on CD.
In some cases you probably have to rename some files for example the oem (?).infs - this plugin uses oem0-oem2.
You can change the oem-number - run s+r on all files to adjust.
Registry:
Most of the registry entries can be done via an *.inf file. There are some registry-entries that can't be processed by PE-builder - they have to be merged in when BartPE is alive. The plugin uses a cmd to export the registry entries.
If the SAM - branch does not contain more than just the header you have to change permissions on HKLM\SAM so that it expands upto
HKLM\SAM\SAM\Domains\Account\Users\Names\__vmware_user__

RAMdrive:
I use the driveletter R:\ for this build - B:\ is better suited for a virtual floppy drive - so I changed the driveletter. I recommend useing a RAMdrive with 256MB or more. If you try less be prepared to see RAMdrive-crashs quite often.

System-RAM:

Don't expect this plugin to work if you are building a BartPE for systems with less than 512MB of RAM. If you only need
raw-disk-creation you can build for smaller systems - in this case you may even be able to use programfiles on CD instead of RAM-drive to safe about 20MB of RAM.

Testing in a VM:
You can and should test your builts before writing them to media in VMware. 512MB-VMs are enough as you will not be able to start a VM while running on VMware - it may work in Virtual PC but I don't know for sure. If you can push the play-button and get the No VM in a VM message your built is ready for toasting it.

?/p> Run make.cmd and read ws452-files-only.inf

VMware is launched by running vmware.cmd

===============================================================================
还有这里:http://www.911cd.net/forums//index.php?showtopic=8876
===============================================================================
It finally works !


A month ago I had almost given up - 2 months of running against a wall and I still was not able to introduce the "_vmware_user_" pseudo NT-acount that I needed to actually start a VM. Now I know it was worth the time.
The trick was simply to export the SAM-hive at the right time and to merge it into BartPE at the right time.
I never seen any other plugin make use of the SAM-hive - the pebuilder is not even able to process this kind of registry stuff - so I needed some time until I started looking into non-obvious directions . Another tricky aspect was the sequence in which the different ingredients have to be loaded at boot-time.
Anyway - now I got a way to build a working version based on a 2k3 build with some kind of explorer shell. It is repeatable on different builds, different methods to load network and different explorer-shells. Here is a short outline of the required actions: make a clean install of VMware into R:\ws452 - use installrite to capture classes. Hand edit the registry entries for the drivers. Create a profile-dir with settings for VMware - all users and default users. Manually copy installer dir into build dir as the pebuilder won't accept the dir name. Setup a config.ini and a preferences.ini that fit this special working conditions. Create a BartPE with a RAM-drive as large as possible. Install classes and drivers via *.inf. At boot-time register some *.ocx files, register the 3 dlls needed, copy profiles to RAM-drive, add System-acount to administrator group and finally merge the _vmware_user_ and the group settings.


Well - the working speed is slow compared with a standard install. But I don't think that this argument counts much in those situations where a VMware-LiveCD would be useful.
Desaster recovery - you can start your VMs when your host-system is unusable. You can extract files from Linux or BSD VMs and so on.
P2V - you can easily find out if a target-system will run in VMware - just go to the target, boot it from BartPE and run the target-system as a VM. Create raw-disks to convert them into vmdk-files.
Forensic - boot a target-system once and be able to read any filesystem natively just by starting small "translator VMs"

Not all functions are fully working at this time - the biggest problem - passing the check of the _vmware_user_ - is solved and everything else will be simple.
Don't expect a plugin tomorrow - as this will become the most complicated plugin I have ever seen. Actually I use a mixture of *.infs, editing build dir and merging *.reg-files at runtime. Now it runs on a 2k3 build with XPE. I will try XPsp1 as well but I see no point in adopting it for XPsp2 at this time.
Amazingly it doesn't matter if you put the VMware-dir in the ram-drive or onto the CD. I think the option to put it into program-dir looks more promising so I will follow that road.
Another idea that I will try is to load the complete BartPE with VMware into RAM so that I can change CDs and insert media with prebuilt VMs.
It is possible to install Virtual PC into the same BartPE build.
My current build includes VMware 4.5.2, Virtual PC, SSH-client with user-keys (client from ssh.com), an older demo-version of X-win 32, various remote control clients like ultravnc, Citrix-clients and some disk-image mounting tools like file-disk, Ken Katos vdk.exe and some P2V scripts. I hope to replace Virtual PC by Virtual Server and to add Svista-serenity as well. I don't have access to these versions now so that may take some time but I am sure that it is possible.

===============================================================================

[ 本帖最后由 adoijay 于 2008-2-18 11:35 AM 编辑 ]

vmware on bartPE.jpg (117.33 KB, 下载次数: 116)

运行截图

运行截图
50#
发表于 2025-4-19 20:37:20 来自手机 | 只看该作者
谢谢分享
回复

使用道具 举报

49#
发表于 2009-4-29 21:39:27 | 只看该作者

在PE中运行虚拟机的意义

其实很好理解,就是拿PE当XP用,在XP下什么意义在PE下还是什么意义。

当然,如果XP下的虚拟机仅仅用来运行PE,这样的“递归”显示没必要。如果PE仅仅是用来维护,当然也没什么必要。可是偏偏就愿意拿PE当XP使,当然什么都要拿来尝试和实现,这里的真正意义就在于:真把PE当作XP一样的操作系统,而不仅仅是拿来玩玩而已。

至于在XP下的虚拟机,并非只用来玩PE,比如有名的排版软件PM9,在XP下输出的PDF文件,里面的中文全是乱码,但放在98中却完全正常。还有很多以前在DOS时代,在WIN31下开发的东西,不但XP不能用,98或95都不能用,但其中有些特色新版本却丢掉了。并非什么都是新的好,也并非谁都出于怀旧,确实在实际工作中经常有这样的需要。

[ 本帖最后由 滑头 于 2009-4-29 21:54 编辑 ]
回复

使用道具 举报

48#
发表于 2009-4-29 17:12:05 | 只看该作者
老兄 你用的什么 pe啊  告诉兄弟一下
回复

使用道具 举报

47#
发表于 2009-4-12 10:32:56 | 只看该作者
感谢高手的问题和回复,学习了。
回复

使用道具 举报

46#
发表于 2009-4-1 09:40:14 | 只看该作者
PE里使用VM,不是不行,而是确实可行。
回复

使用道具 举报

45#
发表于 2009-3-27 02:31:05 | 只看该作者
看完回复才知道那么有用.....
回复

使用道具 举报

44#
发表于 2009-3-27 02:11:05 | 只看该作者
老大 能不能把研究成果 说明下
回复

使用道具 举报

43#
发表于 2008-11-22 13:16:25 | 只看该作者
感觉挺有用处的,不知现在研究结果出来没有?
回复

使用道具 举报

42#
发表于 2008-11-22 13:11:41 | 只看该作者
本人力推QEMU 0.83
一小!二兼容好
回复

使用道具 举报

41#
发表于 2008-11-21 23:27:39 | 只看该作者
功能不能实现???会的
回复

使用道具 举报

40#
发表于 2008-11-16 22:26:26 | 只看该作者
楼上不要挖坟
此问题已太监
回复

使用道具 举报

39#
发表于 2008-11-16 18:10:40 | 只看该作者
学习拉
可惜没有一个比较完美的解决方案

sorry,晕了,刚才回复过了。
回复

使用道具 举报

38#
发表于 2008-11-16 17:47:41 | 只看该作者
进来学习一下。...
回复

使用道具 举报

37#
发表于 2008-11-16 13:21:13 | 只看该作者
关注下
讨论来讨论去 好像也没有高手给出具体解决方案
再等等吧
回复

使用道具 举报

36#
发表于 2008-3-22 15:18:59 | 只看该作者
楼上的不是认为我会在pe上装完整版的vm吧?
回复

使用道具 举报

35#
发表于 2008-3-22 15:16:24 | 只看该作者
deepin版的vmware才几M,vpc就算了,和vm性能没法比,虽然能轻易的在pe上运行。
回复

使用道具 举报

34#
发表于 2008-3-22 11:42:43 | 只看该作者
   可以在PE下运行的虚拟机压缩起来不到2M,解包5、6M,就是与之配套的系统盘要够大才行,不然系统不全没用。
     不要以为只有虚拟机和系统就行了,那种组合只能用于测试,功能太少了。我的想法是PE系统+外置+系统盘,现在的问题是,没真正好用的系统盘,如果有的话,就能兼顾应用和测试了,这才是完美的解决方案。从体积上说PE+外置700M+系统盘700M,这样限制在1.5G之内,2G的U盘正好还有0.5G的机动空间用于随机存储东西,比较合适吧?我想也基本适合目前大多用户的主流配置。

[ 本帖最后由 ynxmaifmsguxmft 于 2008-3-22 12:03 PM 编辑 ]
回复

使用道具 举报

33#
发表于 2008-3-22 08:34:00 | 只看该作者
Connectix VPC只要加入两个驱动VPCAppSv.sys、VPCNetS2.sys、VPCNetS2.dll和VPCPower.sys(这个不是必需的)(244K)加上程序(含6.5M的VPCAdditions010021.iso)共计约13M。最好注册下VPCShExH.dll。
VM55需要vmnet.sys、vmnetadapter.sys、vmnetbridge.sys、vmparport、vmscsi.sys、vmx86.sys、vstor2.sys这些服务(1M左右),Common Files\VMware(10.3M)、VMware(109M) 扣除freebsd.iso、linux.iso、netware.iso、solaris.iso(以减少支持为代价精简四个约46M),就算再七扣八抠估计还有六七十M,最好玩得还得费尽心机加进去__vmware_user__这个用户。
另外,在虚拟机方面VPC最多只要两个文件(如果虚拟硬盘已装好系统还可以精简VPCAdditions010021.iso)。
快6、70M对应6、7M确实够强*_*!!这个体积用来改善PE的话估计PE都可以改得很强悍了。
以上还没算上需要往PE内核里面添加的支持文件(具体需要那些没有研究)。
另外一点,VPC也可以组网。

[ 本帖最后由 netwinxp 于 2008-3-22 09:59 AM 编辑 ]
回复

使用道具 举报

32#
发表于 2008-3-22 06:38:40 | 只看该作者
为什么图片全部都看不到呢?????????
回复

使用道具 举报

31#
发表于 2008-3-22 02:14:50 | 只看该作者
我顶,再不回答把你们贬为低手。
以中校之名!

评分

参与人数 1无忧币 -10 收起 理由
hwd6 -10 恶意灌水

查看全部评分

回复

使用道具 举报

30#
发表于 2008-3-20 02:33:09 | 只看该作者
用了楼上的脚本,还是无法启动vm6,哪位高手完美实现的

请给出详细步骤

试验了多个pe,vm的组合都不成?
回复

使用道具 举报

29#
发表于 2008-2-26 23:04:19 | 只看该作者

回复 #20 adoijay 的帖子

这个脚本是XP下共享宽带的初始化文件,没有结果修改,现附是全部脚本(公用组件/共享上网/路由上网(局域网)的脚本,自己根据需要作适当修改就行了

VMware 初始化脚本.rar

4.45 KB, 下载次数: 196, 下载积分: 无忧币 -2

回复

使用道具 举报

28#
发表于 2008-2-26 19:19:16 | 只看该作者
这门技术在很久之前看过了, 是网友sanbarrow开发的.

看懂英文的就去作者的网站看看吧:
http://sanbarrow.com/
回复

使用道具 举报

27#
发表于 2008-2-26 19:19:10 | 只看该作者
偶回去也试一下。顶了。
回复

使用道具 举报

26#
发表于 2008-2-26 18:15:47 | 只看该作者
我的U盘下有vm ware 下的XP,我还可以在别的电脑的XP下用,不用在别人电脑上设置,
也不用在我下边的工厂安装我的外贸软件,这是最大的用处,更不用怕别的电脑的安全性不好,
我会把自己的XP防护做得很好。
总之,可以实现一张U盘下使用任何操作系统和相应的业务软件!!!
这应该是重大的技术突破!!!
回复

使用道具 举报

25#
发表于 2008-2-26 18:12:33 | 只看该作者
当然有用!!极有用!!我可以在vmware 里的xp 系统里装上我平时用的所有软件(我用8G或是更大的U盘),这样我出差在外的时候,只要有电脑运行PE,打开VMware 就可以用我设置好的XP,直接用我的业务软件。这样就不必因为我的业务软件不能在PE下用感觉烦了。
另外,这个PE可以不必加外置的程序,所有外置程序可以装在vm ware下的XP上,
严重关注!!!
我一直在找这样的PE,只可惜我不懂编程,只能等高手们的PE
回复

使用道具 举报

24#
发表于 2008-2-26 13:59:18 | 只看该作者
没试过,不知道能不能用
回复

使用道具 举报

23#
发表于 2008-2-26 11:27:28 | 只看该作者
还是绿色版好一些。。
回复

使用道具 举报

22#
发表于 2008-2-26 10:49:14 | 只看该作者
期待各位的成果!!!!!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-8-17 04:05

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表