Tuesday, August 9, 2011

converting .iso to .img to be used by opennebula

I initially created a blank img file using the following command
$qemu-img create -f qcow2 ubuntu.img 3G
this will create ubuntu.img file with size 3G
then to install ubuntu from the .iso to the .img file which is created in the previous step, use the command:
$ qemu -m 512 -hda ubuntu.img -cdrom /home/eman/ubuntu-10.04.2-desktop-i386.iso -boot d
where /home/eman/ubuntu-10.04.2-desktop-i386.iso is the path of .iso file.
problems during installation:
if the message

pci_add_option_rom: failed to find romfile “pxe-rtl8139.bin”

appears in the terminal, then use the following command to solve it:
$ sudo apt-get install kvm-pxe



1 comment:

  1. qemu -m 512 -hda ubuntu.img -cdrom /home/eman/ubuntu-10.04.2-desktop-i386.iso -boot d
    when i execute this command i got the following error message

    No command 'qemu' found, did you mean:
    Command 'qtemu' from package 'qtemu' (universe)
    Command 'aqemu' from package 'aqemu' (universe)
    qemu: command not found

    ReplyDelete