Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Debian Linux installed as a VMWare guest.

I want to create an .iso (or .img) from this installation, from which I can create a server installation.

How can I achieve this?

share|improve this question
    
What have you tried so far? Have you looked online or tried VMWare documentation? –  Drew Khoury Aug 26 '13 at 10:13
    
Also, what is the purpose of this iso image? Should it just be a complete backup of the system, or should it be able to be used as an customized installation image, or ...? –  Isaac Aug 26 '13 at 10:40
    
Yes, I looked online but failed to get a solution. The purpose of the .iso is to use it as an installation image. –  Adrian Rosca Aug 26 '13 at 12:05
    
If this is an installation image why not just use a VMware Template? Or is this to install on a physical host? –  t1nt1n Aug 27 '13 at 13:27

1 Answer 1

up vote 1 down vote accepted

The way I've always done this is just the same way I backup my real world Linux partitions. Linux has dozens of ways to do this but you'll want something which is capable of restoring to different hardware (so anything which does an EXACT disk image isn't going to work). One solution which will is:

http://clonezilla.org/

If you want to use clonezilla, here is a tutorial: http://www.dedoimedo.com/computers/clonezilla.html

It basically works exactly the same in a VM as it does on a physical machine. You'll need to mount the image to your VM using the hardware setup screen in VMWare to simulate having a boot disk in at bootup.

To use an image file in the virtual machine, follow these steps:

  • On the host computer, create an ISO image of your installation CD. Save the ISO image file in any location accessible to your host. For best performance, place this image on the host computer's hard drive.

  • With the virtual machine powered off, open the Configuration Editor (choose Settings > Configuration Editor), and select the virtual CD-ROM device.

  • On Linux host machines, change the Device Type to CD-ROM image and enter the path and filename of the ISO image.

  • On Windows host machines, select Use ISO image, then browse to the image file and select it.

  • Power on the virtual machine.

share|improve this answer
    
Do you have a link to some documentation on how to create a clone of a Debian VMware guest? –  Adrian Rosca Aug 27 '13 at 7:07
    
I've updated the answer with more details on the cloning process. –  krowe Aug 27 '13 at 13:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.