Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Add VMware Network drivers Failed

- - - - -

  • Please log in to reply
3 replies to this topic

#1
djseppie

djseppie

    Newbie

  • Member
  • 20 posts
  • Joined 31-July 04
Hello, im having this strange problem. I added drivers to boot.wim and i want to deploy an image to vmware workstation 6.02.
When i add the driver it goed without errors. I close the boot.wim (or course with the /commit switch).

Now i receive the error (which i ca't read of course. Anyone solved this?? I really need to the correct way to add nic drivers to my boot.wim.

Any help is welcome :-)

Attached Files

  • Attached File  1.jpg   17.23KB   24 downloads



How to remove advertisement from MSFN

#2
djseppie

djseppie

    Newbie

  • Member
  • 20 posts
  • Joined 31-July 04
I solved this myself.. Just give your virtual machine 512mb memory and everything works fine..

Please use this script for adding drivers, it's a time-saver!

@echo off
:: Set Machine Architecture
:: Machine type can be x86, amd64, or ia64.
set mType=x86

:: Set Default WinPE Working Path
set PEwork=C:\WinPE_%mType%

:: Set location of WAIK Tools
set WAIKtools=C:\Program Files\Windows AIK\Tools

:: Set drivers path
set vDrivers=C:\Drivers

:: No real need to change anything beyond this point unless you know what you are doing.

:: Set mounted location
set mLocal=%PEwork%\mount

:: Set Source Path
set sPath=%PEwork%\ISO\sources

:: Set location of Source WIM
set oSource=%sPath%\boot.wim

:: ---------------------------------------------------------------------------------------
:: Install WinPE of not installed on local machine
if exist "%PEwork%" goto doit
call "%WAIKtools%\PETools\copype.cmd" %mType% "%PEwork%"
:doit
cls
:: Mount the WIM image
"%WAIKtools%\%mType%\imagex" /mountrw "%oSource%" 1 "%mLocal%"

echo Adding VMWare Networking Drivers...
echo.
"%WAIKtools%\PETools\peimg" /inf="%vDrivers%\vmxnet\win2k\vmware-nic.inf" "%mLocal%\windows"
"%WAIKtools%\PETools\peimg" /inf="%vDrivers%\vmxnet\win2k\vmxnet.inf" "%mLocal%"
echo.
cls
echo Adding VMWare Video Drivers...
echo.
"%WAIKtools%\PETools\peimg" /inf="%vDrivers%\video\winnt2k\32Bit\vmx_svga.inf" "%mLocal%\windows"
cls
echo.
echo Adding VMWare SCSI Drivers...
echo.
"%WAIKtools%\PETools\peimg" /inf="%vDrivers%\scsi\win2k\vmscsi.inf" "%mLocal%\windows"
cls
echo.
echo Adding VMWare Mouse Drivers...
echo.
"%WAIKtools%\PETools\peimg" /inf="%vDrivers%\mouse\win2k\32Bit\vmmouse.inf" "%mLocal%\windows"
cls
echo.
echo Adding VMWare System Drivers...
echo.
"%WAIKtools%\PETools\peimg" /inf="%vDrivers%\memctl\win2k\32Bit\vmmemctl.inf" "%mLocal%\windows"
"%WAIKtools%\PETools\peimg" /install=*SRT* "%mLocal%\windows"
cls
"%WAIKtools%\PETools\peimg" /list "%mLocal%\windows"
pause
cls
echo.
echo Copying System Tools to image...
echo.
xcopy "%WAIKtools%\%mType%" "%mLocal%\windows\system32\" /S /Q /R /Y
set fn="%mLocal%\windows\system32\Wimscript.ini"
> %fn% echo [ExclusionList]
>> %fn% echo ntfs.log						 
>> %fn% echo hiberfil.sys					 
>> %fn% echo pagefile.sys					 
>> %fn% echo "System Volume Information"	  
>> %fn% echo RECYCLER						 
>> %fn% echo Windows\CSC					  
>> %fn% echo.								 
>> %fn% echo [CompressionExclusionList]	   
>> %fn% echo *.mp3							
>> %fn% echo *.zip							
>> %fn% echo *.cab							
>> %fn% echo \WINDOWS\inf\*.pnf  
cls
echo.
echo Apply the changes to WIM and build ISO...
echo.
"%WAIKtools%\%mType%\imagex" /unmount "%mLocal%" /commit
"%WAIKtools%\PETools\oscdimg" -n -b%PEwork%\etfsboot.com -h -lCustom_WinPE "%PEwork%\ISO" "%PEwork%\winpe_%mType%.iso"
cls
echo.
echo Everything is finished!
echo.
echo You have now successfully created a new ISO image ("%PEwork%\winpe_%mType%.iso")
echo of Windows PE 2.x including VMWare Drivers.
echo.
pause
:EXIT


#3
dim

dim

    Newbie

  • Member
  • 45 posts
  • Joined 07-August 06
Nice little script

If you want it to be a little more dynamic use CMD inputs like

scriptname.cmd %arch% %location% %mountpoint% %driverlocation%

blah.. Build that out and then let the scripts dynamically add the variable

Or, switch to vbscript

#4
djseppie

djseppie

    Newbie

  • Member
  • 20 posts
  • Joined 31-July 04
And now we have MDT 2010 and we don't need to add drivers to boot.wim anymore, are we??




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users