How to sysprep Ubuntu to take its image

17,956

Solution 1

Check this Ubuntu Forums thread. User Cheesemill provides the following advice in response to the question what is the Ubuntu equivalent to sysprep for Windows?

You can boot the Ubuntu installer in OEM mode to achieve the result you are after.

When you boot the installation media, hit SHIFT to get to the installation menu, then hit F4 and select 'OEM Install'. When Ubuntu has finished booting install the system as usual, you will be prompted for a temporary username and password.

When installation has finished, boot the system and log on with the temporary username and password you created earlier, you can now make any other alterations to the system that you want, for example installing extra software. When you're all done just double-click on the 'Prepare for shipping to end user' icon on the desktop and then shut down the machine, it's now time to take your image of the drive.

Next time the machine is booted the user will be asked to set up their account.

You may also find something useful in this man page

Solution 2

Have you had a look in the Ubuntu automated deployment guide?

Share:
17,956

Related videos on Youtube

user251447
Author by

user251447

Updated on September 18, 2022

Comments

  • user251447
    user251447 over 1 year

    I am using fog to install images in my office. To clone and deploy Windows images, sysprep is used to generalize the Windows and to make sure it loses all the unique information like names etc.

    Now I have to take image of Ubuntu on fog server and deploy it on 20 PCs. I am just wondering how to "sysprep" Ubuntu for this process.

  • flickerfly
    flickerfly over 9 years
    virt-sysprep appears to be most useful in virtual environments running on linux hosts. I won't work in a desktop deployment or with other virtual hypervisors like vmware and hyper-v.
  • bloudraak
    bloudraak over 6 years
    The problem with virt-sysprep is that it drags in a lot of packages that need to be removed afterward.