• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

how do i install a os to a .img file

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
Kylo Ren
Asked:
Kylo Ren
1 Solution
 
Daniel McAllisterPresident, IT4SOHO, LLCCommented:
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

Independent Software Vendors: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now