Solved

how do i install a os to a .img file

Posted on 2013-01-31
1
301 Views
Last Modified: 2013-02-07
i want to install a clean os to .img file, how would i do that? i have a iso file which has the distro. can i use yum?
0
Comment
Question by:Kylo Ren
1 Comment
 
LVL 20

Accepted Solution

by:
Daniel McAllister earned 500 total points
ID: 38843869
The easiest way to do this is with a VM (virtual machine)... just make sure the "disk image" file is in a "raw" format that will fit on the eventual target media (e.g.: make the image file only 8GB for eventual burning to a DL-DVD).

As part of this solution, you can tell the VM manager (KVM or Xen, most likely) to perform the install using the ISO image of the install disk... also, you can RUN the OS in the VM and run yum to install updates and other packages.

When you're done creating the image, you'll want (need) to convert the disk from an ext4 (or similar) filesystem to an ISO-9660 one -- there are any number of tools available to do that.

I hope this helps!

Dan
IT4SOHO
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Choosing CentOS 16 108
Ubuntu Apache Webserver - File Permissions 5 59
how to configure linux OS using Ubuntu 7 58
Moving from Mcrypt to OpenSSL 18 45
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question