User Controls

Is there a reliably way to convert raw .img to ISO?

  1. #1
    Sophie Pedophile Tech Support
    I have a distro that's made for VM, it comes in ova format in order to run it with QEMU-KVM, i have to extract the vmdk file qith the following operation.

    tar xvf distro.ova

    # Then convert the vmdk like so

    qemu-img convert -O qcow2 disk1.vmdk disk1.qcow2

    In order to run it. However i was wondering if there would be a way after altering the qcow2 file to convert it back to a raw img file and perhaps use the DD utility to transfer the filesystem and boot record to an ISO that can later be used to create a bootable DVD or USB again. Basically what i want is to customize the distro, then re-release it as an ISO file.

    Would that be possible? I've looked into it for a bit and it doesn't seem to be the case, however i figured i'd ask here just to make sure.
  2. #2
    aldra JIDF Controlled Opposition
    I assumed img and iso were the same format

    for what you want to do though - when you boot a lunix iso it will typically load the currently-running operating system into RAM so if you make changes to it and restart, the ISO is untouched. I would expect if you want to update the OS you'd then need to dd the ramdisk back to the iso or to a different iso.
  3. #3
    AngryIVer African Astronaut [my jade controlled morrigan]
Jump to Top