Link to home
Start Free TrialLog in
Avatar of ivan rosa
ivan rosaFlag for United States of America

asked on

"Sysprep" Linux

Hello Guys,

Has anybody have any similar tool to "sysprep" a Linux Machine? (Deb / REHL)


Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Generally when deploying Linux from templates or golden images, is not considered best practice, and complete scripted installations using PXE boot etc

But Ubuntu (based on Deb) has this

http://manpages.ubuntu.com/manpages/precise/man1/virt-sysprep.1.html

see also this for Red Hat

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-guest_virtual_machine_disk_access_with_offline_tools-using_virt_sysprep
Avatar of ivan rosa

ASKER

Yes I have tried, that but I haven't found a guide that works yet, maybe there's another tool  ?
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I concur - we generally script everything, and if additional things are required, do them manually, then add that to the script for next time.

We actually maintain multiple scripts as it is easier with multiple clients, (client A might use scripts 1 & 2, client B uses scripts 1 & 3 etc) but you may be able to have a single solution that works in all cases.

Alan.
Thank you guys, Shell scrips here we go.

Ivan 
I'm with @Andrew, sysprep has always seemed very... spooky... to me...
Historically, especially pre PowerShell, scripting in Windows environments was much more difficult and less reliable so we'd always use SysPrep to build an image and deploy via PXE boot (I certainly remember doing that for Win XP under Server 2003 - maybe earlier).

More options now, but I prefer scripts even under Windows, as you can more easily see precisely what you have set up, plus scripts are very easy to document

Alan.