LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   QEMU - problem (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/qemu-problem-4175455644/)

smdaudhilbe 03-26-2013 07:04 AM

QEMU - problem
 
Hi,

In my project, I need to work with QEMU, but for the first step when I tried to download QEMU my machine throughs error like this...

cot@boss:~$ sudo apt-get install qemu
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
qemu : Depends: qemu-system (>= 0.12.5+dfsg-2) but it is not going to be installed
E: Broken packages


What does it mean...? Whether my hardware is not supporting..?

Mine,

Processor : Pentium Pro, and I am using my system with 2 GB RAM

If you say yes to the reason...

Kindly share me suggestions, to proceed further, to another VM elsewhere...

Thanks in advance

goumba 03-26-2013 07:18 AM

It has nothing to do with hardware.

What distribution?

Try running aptitude install qemu-system and that will likely tell you why it cannot install qemu-system and therefore why it cannot install qemu. It's likely a broken or missing dependency.

gradinaruvasile 03-26-2013 08:29 AM

Distro/version? sources.list?

smdaudhilbe 03-26-2013 09:05 AM

FYI

Please refer http://en.wikibooks.org/wiki/QEMU/Installing_QEMU

goumba 03-26-2013 09:18 AM

That doesn't really help us help you.

smdaudhilbe 03-29-2013 12:14 AM

QEMU - problem
 
Hi,

I installed qemu, but unable use it...whether I may need extra patches to apply...?

FYI, my system will not support KVM,

$ egrep '(vmx|svm)' /proc/cpuinfo

I had not got any output for this...

Hence, I planned to use qemu as emulator, but when I type

cot@boss:~/Desktop/Project3backup/qemu$ qemu --help
bash: qemu: command not found

Hence I am not able to run this command too


cot@boss:~/Desktop/Project3backup/qemu$ qemu -cdrom ubuntu-12.10-desktop-i386.iso -m 256

even I try to test, whether my qemu correctly installed or not, I am not getting the required result

cot@boss:~$ qemu-system-i386
qemu-system-i386: pci_add_option_rom: failed to find romfile "efi-e1000.rom"
VNC server running on `::1:5900'


after this output nothing happens...


Please help me in this, if I miss anything...

gradinaruvasile 03-29-2013 01:37 AM

What did you expect to happen?
Have you tried to actualy connect to the localhost VNC server with a VNC viewer to see the VM's graphical output?

qemu is command line you know, it has no graphical interface built in.

If you need a graphical interface, you should install it separately. There are a few available - aqemu, virt manager etc.
I use virt-manager, it has many options (including docked console view) and it works really well once you get the hold of it.

PS for video qxl is the best option, and make sure you use spice channel if you want graphical interface in the guest and screen resize/copy+paste support.
Other than that, 256 MB wont work with Ubuntu live cd if you want to run the desktop, you need at least 512 MB and i have doubts about the ability to run Unity on virtualized environment without 3d support (maybe fallback mode will work).

smdaudhilbe 04-10-2013 01:51 AM

Friends,

This problem drives me mad...

cot@boss:/optt/qemu$ qemu -hda disk.img -cdrom ubuntu-12.10-desktop-i386.iso -boot d
bash: qemu: command not found

what is happening there...?

gradinaruvasile 04-10-2013 02:49 AM

Quote:

Originally Posted by smdaudhilbe (Post 4928696)
Friends,

This problem drives me mad...

cot@boss:/optt/qemu$ qemu -hda disk.img -cdrom ubuntu-12.10-desktop-i386.iso -boot d
bash: qemu: command not found

what is happening there...?

You dont have qemu installed...?

smdaudhilbe 04-10-2013 03:20 AM

Hi,

I done this,

1) downloaded Qemu version 1.4.0

$ tar -zxvf qemu-1.4.0.tar.gz
$ cd qemu-1.4.0

$ ./configure –target-list=i386-softmmu

$ make

$ sudo make install


$ qemu-system-i386 --version
QEMU emulator version 1.4.50, Copyright (c) 2003-2008 Fabrice Bellard

but when I try this, it fails

$ qemu -hda disk.img -boot d -cdrom ./ubuntu-12.10-desktop-i386.iso -m 512
bash: qemu: command not found


$ qemu-system-i386
qemu-system-i386: pci_add_option_rom: failed to find romfile "efi-e1000.rom"
VNC server running on `::1:5900'

As per your advice I installed virt-manager too...but still problem persists...

What I am lagging?

smdaudhilbe 04-10-2013 03:21 AM

Hi,

I done this,

1) downloaded Qemu version 1.4.0

$ tar -zxvf qemu-1.4.0.tar.gz
$ cd qemu-1.4.0

$ ./configure –target-list=i386-softmmu

$ make

$ sudo make install


$ qemu-system-i386 --version
QEMU emulator version 1.4.50, Copyright (c) 2003-2008 Fabrice Bellard

but when I try this, it fails

$ qemu -hda disk.img -boot d -cdrom ./ubuntu-12.10-desktop-i386.iso -m 512
bash: qemu: command not found


$ qemu-system-i386
qemu-system-i386: pci_add_option_rom: failed to find romfile "efi-e1000.rom"
VNC server running on `::1:5900'

As per your advice I installed virt-manager too...but still problem persists...

What I am misssing?

gradinaruvasile 04-10-2013 08:35 AM

Maybe...?
Code:

qemu-system-i386 -hda disk.img -boot d -cdrom ./ubuntu-12.10-desktop-i386.iso -m 512
Note that this wont do anything visible since it runs in the background and you need a vnc viewer or spice client to connect to it.

Virt-manager is, on the other hand, visual in nature and it uses qemu as backend.

smdaudhilbe 04-16-2013 03:35 AM

QEMU - problem
 
Hi friends,

At last I found solution to this big problem....

I installed VNC viewer as per suggestions.

Everything works fine now...


All times are GMT -5. The time now is 04:15 PM.