Solved

how do i install a os to a .img file

Posted on 2013-01-31
1
302 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubuntu Apache Webserver - File Permissions 5 77
Internal CA server 6 93
Unix Help with:  mailx -s 17 59
DB2 9.7 Grant Execute SP 4 16
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

733 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