Solved

how do i install a os to a .img file

Posted on 2013-01-31
1
294 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now