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
28
votes
5 answers

How to launch qemu-kvm from inside a Docker container?

Assuming the host system already supports KVM, is it possible to create a docker image which contains some scripts to launch a VM (inside the container) with virsh and QEMU-KVM? We are looking into dockerize a script which launches a VM through…
int 2Eh
  • 525
  • 1
  • 5
  • 12
28
votes
5 answers

Running qemu remotely (via ssh)

I have a server that I am experimenting with, and sometimes I want to work from home so I installed the 'ssh daemon' (namely, 'sshd') and I can ssh to the server. This works fine. But when I try to run a virtual machine on the server with 'qemu', I…
Ramzi Khahil
  • 4,932
  • 4
  • 35
  • 69
26
votes
2 answers

QEMU - Code Flow [ Instruction cache and TCG]

I am trying to analyze the QEMU source code. I know its huge and till date there is no official documentation for it. My main areas of concern are the Instruction cache management and TCG operation. Any pointers to them would be helpful ?
Dexter
  • 1,299
  • 3
  • 20
  • 38
25
votes
11 answers

Android Studio emulator: ERROR: detected a hanging thread QEMU2 main loop

I use Android Studio 3.0.1 on Ubuntu 16.04. Yesterday, Android Studio popped up a message saying that there's an update available, and I always click those. It then notified me that it had successfully updated the emulator. My AVD worked perfectly…
fasti
  • 2,379
  • 3
  • 16
  • 9
25
votes
4 answers

How to emulate Raspberry Pi Raspbian with QEMU?

I'm trying to emulate a Raspberry Pi with the Raspian OS using QEMU. I've tried several approaches described on the internet but without any success. I figured out that I need to patch a Linux Kernel fitting the desired OS. In my case I chose…
Alex44
  • 3,597
  • 7
  • 39
  • 56
24
votes
2 answers

How to enable KVM on a Mac for Qemu?

I'm virtualizing a machine for the first time on my Mac with Qemu (for an university assignment, so it's not possible to change the tool). We have to compare some measurements between a VM running on KVM and one without KVM. I tried to start the KVM…
patreu22
  • 2,988
  • 4
  • 22
  • 31
24
votes
1 answer

Simple kernel won't boot in GRUB

I'm learning a bit of OS development from OSDev.org. I have a kernel and I'm trying to boot in GRUB Legacy (0.97) using qemu. However, when I type kernel 200+9, I get the message [Multiboot-elf, <0x100000:0x80:0x4008>(bad), entry=0x10000c] This is…
gsgx
  • 12,020
  • 25
  • 98
  • 149
23
votes
1 answer

What is the difference and relationship between "xx-softmmu" and "xx-linux-user"?

When build qemu from source code, I find for every CPU architecture, there are 2 options for target list: xx-softmmu and xx-linux-user. For example: x86_64-softmmu x86_64-linux-user I can't search the difference between two options. Could anyone…
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
21
votes
2 answers

How to add a new device in QEMU source code?

What could be the step wise approach to emulate/add a new device in qemu using QOM approach? What and where could be the changes with respect to DeviceState/BusState and other properties?
San
  • 905
  • 3
  • 16
  • 33
19
votes
8 answers

How can I execute MIPS assembly programs on an x86 linux?

Are there any command line interpreters or any other set of programs around for x86 linux in order to run MIPS assembly programs? I'd like to be able to write simple MIPS assembly programs and run them from the console on my local machine. I know of…
mmcdole
  • 91,488
  • 60
  • 186
  • 222
18
votes
1 answer

What is the difference between QEMU, KVM, Libvirt, and how to use with Vagrant? Are all 3 needed to work together?

I've used Vagrant with Virtualbox before but VB is not working on this computer so I thought I would try a different approach, but I can't quite make sense of this cluster of software, what their uses are individually and interdependently... I know…
user163831
  • 1,031
  • 3
  • 13
  • 25
18
votes
3 answers

How to emulate the Raspberry Pi 2 on QEMU?

Some time ago I emulated the Raspberry Pi following this article, but this approach has several problems: It is very slow. The display solution is limited to 800x600. You cannot emulate more than 256mb ram. Furthermore there is no emulation for…
Phidelux
  • 2,043
  • 1
  • 32
  • 50
18
votes
2 answers

Transforming qcows2 snapshot plus backing file into standalone image file

I have a qemu qcow2 disk snapshot dev.img that is based off a backing file dev.bak. How can I merge both into a standalone devplus.img, while leaving dev.bak as it is?
user2512377
  • 501
  • 1
  • 3
  • 9
18
votes
5 answers

libvirt: fetch ipv4 address from guest

I am looking for a solution to fetch the ipv4 address or other metadata of a VM running on qemu/kvm with libvirt? I've also looked into ovirt guest agent and qemu guest agent, but I was wondering if there's a better/easier way to fetch this…
Jochen
  • 1,853
  • 3
  • 20
  • 28
17
votes
3 answers

qemu vs qemu-kvm: some performance measurements

I conducted the following benchmark in qemu and qemu-kvm, with the following configuration: CPU: AMD 4400 process dual core with svm enabled, 2G RAM Host OS: OpenSUSE 11.3 with latest Patch, running with kde4 Guest OS: FreeDos Emulated Memory:…
bio2com2
  • 171
  • 1
  • 4