Questions tagged [qemu]

QEMU is a generic and open source machine emulator and virtualizer

QEMU is a generic and open source machine emulator and virtualizer.

When used as a machine emulator, QEMU can run OSes and programs made for one machine (e.g. an ARM board) on a different machine (e.g. your own PC). By using dynamic translation, it achieves very good performance.

When used as a virtualizer, QEMU achieves near native performances by executing the guest code directly on the host CPU. QEMU supports virtualization when executing under the Xen hypervisor or using the KVM kernel module in Linux. When using KVM, QEMU can virtualize x86, server and embedded PowerPC, and S390 guests.

References:

2489 questions
3526
votes
77 answers

Why is the Android emulator so slow? How can we speed up the Android emulator?

I have got a 2.67  GHz Celeron processor, and 1.21  GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android Emulator should start fairly quickly on such a machine, but for me, it doesn't. I have followed all the…
Andrie
  • 3,451
  • 3
  • 16
  • 3
136
votes
3 answers

What are the differences between QEMU and VirtualBox?

Recently, I found out that there is the QEMU project. I've used VirtualBox before, and I know about Xen and VMWare. What are the differences between QEMU and VirtualBox? Should I stick with VirtualBox? In which cases is QEMU better?
Pavlo
  • 1,594
  • 2
  • 15
  • 30
81
votes
3 answers

What's the differences between Xen, QEMU and KVM?

I know QEMU is used by Xen, and KVM is a fork of QEMU. So, KVM includes that Xen adds to QEMU ? What is the name ? Thanks
Xorax
  • 1,644
  • 2
  • 18
  • 18
75
votes
8 answers

How to convert flat raw disk image to vmdk for virtualbox or vmplayer?

I have some old images of old Linux filesystems in flat file format. they can be used by Bochs, but I need to run them with Virtual Box. Virtual Box cannot use images in this format, so I need to convert these images from flat file to .vmdk file…
okutane
  • 13,754
  • 10
  • 59
  • 67
48
votes
4 answers

How to use qemu to run a non-gui OS on the terminal?

I want to run some programs on the High Performance Computer (With 8-core processor) in my department. Now I use that machine with ssh using terminal. The machine has Red Hat linux installed on it. But my programs need to run on Solaris. I use…
MetallicPriest
  • 29,191
  • 52
  • 200
  • 356
45
votes
7 answers

Why would you use the ternary operator without assigning a value for the "true" condition (x = x ?: 1)

In the Android open-source qemu code I ran across this line of code: machine->max_cpus = machine->max_cpus ?: 1; /* Default to UP */ Is this just a confusing way of saying: if (machine->max_cpus) { ; //do nothing } else { machine->max_cpus =…
RickNotFred
  • 3,381
  • 2
  • 24
  • 26
41
votes
6 answers

How to debug the Linux kernel with GDB and QEMU?

I'm new to kernel development and I would like to know how to run/debug the linux kernel using QEMU and gdb. I'm actually reading Robert Love's book but unfortunately it doesn't help the reader on how to install proper tools to run or debug the…
E-Kami
  • 2,529
  • 5
  • 30
  • 50
37
votes
3 answers

How to create a QEMU ARM machine with custom peripherals and memory maps?

I am writing a code for Cortex-M3 cpu and I am performing unit testing using qemu-arm binary. For now everything works just fine. But I am wondering If I am able to test whole system using qemu-system-arm? I mean, I want to write custom "machine"…
mucka
  • 1,286
  • 3
  • 20
  • 36
37
votes
5 answers

How to switch to qemu monitor console when running with "-curses"

When passing "-curses" option to qemu, qemu displays the emulation window as default. So, how can I switch to the monitor console from the emulation window? If using graphical interface, switching between emulation window and monitor console can be…
pusam
  • 403
  • 1
  • 4
  • 5
34
votes
3 answers

What's a good source to learn about QEMU?

What book or website would you recommend to learn about QEMU? I'd like to see some usage examples as well as how to use the APIs.
mxg
  • 1,337
  • 1
  • 12
  • 15
32
votes
3 answers

Using Vagrant to set up a VM with KVM/qemu without VirtualBox

I'm getting started Vagrant and want to use it with KVM/qemu (and the Virtual Machine Manager GUI), instead of installing VirtualBox. So I first installed Vagrant: $ vagrant --version Vagrant 1.9.1 $ vagrant box list There are no installed boxes!…
rahuL
  • 3,330
  • 11
  • 54
  • 79
31
votes
3 answers

How to shut down Android emulator via command line

I am unable to stop the emulator from command prompt gracefully. I am using Linux Ubuntu v10.04 (64-bit) and Android v2.3 (API 9 - Gingerbread). I started emulator using its snapshot. Now my concern is to shut down the running instance of Emulator…
Sam
  • 361
  • 1
  • 3
  • 6
31
votes
3 answers

Changing the Android emulator locale automatically

For automated testing (using Hudson) I have a script that generates a bunch of emulators for many combinations of Android OS version, screen resolution, screen density and language. This works fine, except for the language part. I need to find a way…
Christopher Orr
  • 110,418
  • 27
  • 198
  • 193
29
votes
8 answers

Speed up Android emulator

I read on many other topics that the Android emulator starts really slow. Indeed, it takes +15 mins to start. However, on my machine is slow even after that. The 'phone' responds with a 3-4 seconds delay and everything has a huge lag. Is there any…
Blaise
  • 293
  • 1
  • 3
  • 4
29
votes
3 answers

redirect QEMU window output to terminal running qemu

Im trying to debug the boot sequence of a linux kernel with qemu, the command i'm running is: qemu -serial stdio -kernel -hda -append "root=/dev/sda terminal = ttyS0" During boot all the kernel messages are…
yonigo
  • 987
  • 1
  • 15
  • 30
1
2 3
99 100