VMware

This Question is Answered

1 "helpful" answer available (6 pts)
8 Replies Last post: Aug 4, 2009 5:39 PM by snapper  

New Submission: P2V Scripts - Post-Configuration Scripts posted: Jan 5, 2006 6:11 AM

Click to view Mike_Laverick's profile Virtuoso User Moderators vExpert 4,091 posts since
Jan 5, 2004
Hi there

I've collated and created some P2V scripts that handle the "clean up process" for a recently P2V'ed virtual machine.

Most of these I have "poached and modified " from various websites (all in the public arena) such MS "Scripting Center". Most of the scripts run with little user interaction and contain some rudimentary syntax checks.

The main "innovation" is using Microsoft DevCon utility (a command-line version of Device Manager) to create a report of all the hardware on the physical machine and all the hardware on the virtual machine - then I work out all the "phantom hardware" that needs to be removed - and devcon does the rest.

The helper is set up with 2 NICs and as NAT - to allow communication between the VM and PM to stop any IP/NetBIOS conflicts.

The clever part of the scripts were worked on in conjunction with Rob van der Woude of:

http://www.robvanderwoude.com

The scripts are held on an ISO file which you attach to the P2V Virtual Machine. The ISO file can be downloaded here:

p2v-scriptsiso

I also have created a PDF file which explains each of the scripts and what they were meant to do:

http://www.rtfm-ed.co.uk/docs/vmwdocs/p2v-scripts.pdf

Regards
Mike Laverick
RTFM Education - VMware

ps I should add that I've never been able to get the devcon side of my scripts working on winxp. I think this service pack2/security issue. DevCon will run locally on WinXP.

ps thanks ken!

ps if you like my P2V scripts - then why not subscribe to my free weekly email circular on "new stuff" I learn about Vmware. Subscribe by sending an email here: subscribe@rtfm-ed.co.uk

Message was edited by: Daryll (formatting)
Mike_Laverick

Link to p2v-scripts changed due to site redesign

Click to view Ken.Cline's profile Champion VMware Employees User Moderators vExpert 5,150 posts since
Jul 7, 2004
I've had a chance to play with Mike's scripts - and they are REALLY NICE! He has done an excellent job of testing, cleaning, packaging, and documenting...

Well worth the time to download and experiment with.
Click to view boydd's profile Champion User Moderators 5,707 posts since
Jun 15, 2004
Dido - Mike has done a fantastic job of putting together these scripts. Keep up the good work. :-)

DB
Click to view Thomas Louis's profile Novice 12 posts since
Oct 17, 2006
Hey Mike, thanks for the solution. It works great, though i only use the devcon part :)

Also i want to point out an issue that I had P2V'ing a Windows 2003 Terminal Server.
Apparently by using the devcon command line, some drivers - that are used by rdp - are affected.

The error you get: The remote computer has ended the connection

The solution: devcon.exe -r install %windir%\inf\machine.inf root\rdpdr

I have included the link where i got this information:
http://stalltheball.com/index.php/2006/08/31/w2k3_remote_computer_has_ended_the_conne

Regards,
Thomas
Click to view mikefoley's profile Expert vExpert 372 posts since
Nov 23, 2004
Mike,

FYI

Sending email to subscribe@rtfm-ed.co.uk bounced with the following
error:

The e-mail account does not exist at the organization this message was sent to. Check the e-mail address, or contact the recipient directly to find out the correct address.
< xxxxxx.xx.xxx.net #5.1.1 SMTP; 550 unknown user <subscribe@rtfm-ed.co.uk>>
Click to view pixi's profile Lurker 1 posts since
Aug 16, 2007
Hey,
wow! this looks so great, the .pdf looks so promising.
im trying to retrieve the iso file but i cant, everytime i try i get the following error:
"The requested URL could not be retrieved".....
"The following error was encountered:

* Access Denied."
i think it might be our company's proxy, i aint sure of that though, ill know for certain once i get home.
please check to see if there is any problem with the link provided.
thanks alot, appreciated!
Click to view continuum's profile Guru vExpert 13,959 posts since
Dec 18, 2003
try again - the link is ok
Click to view zenomorph's profile Hot Shot 141 posts since
Jan 25, 2008

Hi there Mike, I'm trying to test your scripts but I downloaded the p2v-scripts.iso and it seems its corrupted, any chance you have another copy?

Great work

Cheers..........

Click to view snapper's profile Enthusiast 52 posts since
Sep 19, 2004
Try this:
http://communities.vmware.com/thread/129871

I've been using this for a couple of years @ client sites and works well.

Cheers,
SP






Don't forget to award points where appropriate :)

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities