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
$ sudo apt-get install kvm-pxe
$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
qemu -m 512 -hda ubuntu.img -cdrom /home/eman/ubuntu-10.04.2-desktop-i386.iso -boot d
ReplyDeletewhen 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