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
17
votes
0 answers

"Failed to open QEMU pipe 'qemud:network': Invalid argument " Receiving this error with Android Studio when accessing ElasticSearch Server?

We are using Elastic Search for this project. I am trying to login to an app my group and I have made but I keep receiving errors. I see this error in the Logcat when I try to sign into my app on my emulator: E/netmgr: Failed to open QEMU pipe…
argoebel
  • 171
  • 1
  • 1
  • 5
17
votes
1 answer

How to resolve "Specify the 'raw' format explicitly to remove the restrictions." in qemu?

I am trying to run helloos.img on MACBOOK Pro, and even program works fine, it is showing Specify the 'raw' format explicitly to remove the restrictions. How to deal with this? Is this important?
LinconFive
  • 1,718
  • 1
  • 19
  • 24
16
votes
2 answers

qemu KVM kernel module no such file or directory

I am currently taking an operating systems class and I need to use qemu to run a small operating system that my professor provided. I am trying to use qemu within an ubuntu 12.04 virtual machine on virtualbox on my macbook air 5.2. I know the…
user1820145
  • 227
  • 1
  • 2
  • 4
15
votes
4 answers

Emulating Raspberry Pi 4 with QEMU?

I want to emulate Raspberry Pi 4 using QEMU, but I am not able to find any image for RPi4. I need a kernel with which QEMU can emulate a Cortex-A72.
Anwar Ghammam
  • 151
  • 1
  • 1
  • 5
15
votes
1 answer

How to produce a minimal BIOS hello world boot sector with GCC that works from a USB stick on real hardware?

I have managed to produce a minimal boot sector that works with QEMU 2.0.0 Ubuntu 14.04: .code16 .global _start _start: cli mov $msg, %si mov $0x0e, %ah loop: lodsb or %al, %al jz halt int $0x10 jmp loop halt: …
Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
15
votes
6 answers

How to cleanly exit QEMU after executing bare metal program without user intervention?

I am assembling a cross compiling unit testing rig for an ARM system and running the tests on a host machine with qemu-system-arm. Specifically, I'm using qemu to emulate the Stellaris LM3S6965 eval board as it contains a Cortex M3 processor like my…
15
votes
1 answer

Difference between -net user and -net nic in qemu

I am trying to boot a virtual machine with my a custom IP address using qemu-system-x86_64. Referring to qemu-system-x86_64's tutorials, I found this: -net nic[,vlan=n][,macaddr=mac][,model=type] [,name=name][,addr=addr][,vectors=v] …
jobin
  • 2,600
  • 7
  • 32
  • 59
15
votes
1 answer

Enable kvm on Ubuntu running on VirtualBox on Windows

I have a Windows machine with an Intel CPU (VMX Enabled on boot menu). I am running Ubuntu Guest on top of it using VirtualBox. I am running qemu on top of it to run another Guest OS, using kvm (the -enable-kvm option). I get the following error on…
Shehbaz Jaffer
  • 1,944
  • 8
  • 23
  • 30
15
votes
6 answers

How to solve "error while loading shared libraries" when trying to run an arm binary with qemu-arm?

I'm running Linux Mint 14 with qemu, qemu-user, and the gnueabi toolchain installed. I compiled test.c with arm-linux-gnueabi-gcc test.c -o test. When I try and run qemu-arm /usr/arm-linux-gnueabi/lib/ld-linux.so.3 test I get an error saying: test:…
David
  • 2,080
  • 5
  • 29
  • 44
15
votes
2 answers

Does qemu/kvm support ovf?

Does qemu/kvm support ovf? Is it able to boot existing ovf packages? I can not find any related info both in ovf standard and qemu/kvm website. Any helpful link on this? Thanks.
FaceBro
  • 787
  • 2
  • 13
  • 29
15
votes
1 answer

Debugging bootloader with gdb in qemu

There seems to be a problem with the Freedos bootloader. (It appears that the bootcode can't find the kernel in certain circumstances.) So I'm trying to debug the bootloader in qemu with gdb. Following the instructions found on several wiki and…
rhlee
  • 3,857
  • 5
  • 33
  • 38
14
votes
2 answers

How to determine when Docker containers (on an M1 MacBook) are running via qemu?

It has been mentioned that when employing x86_64 Docker images on an M1 Mac, when no ARM64 image is available, that container will start under qemu emulation for compatibility. (At the cost of performance.) Often times when I'm running a collection…
Craig Otis
  • 31,257
  • 32
  • 136
  • 234
14
votes
1 answer

Why can macos(x86) run docker arm container arm64v8/alpine?

I happened to find that my macos(x86) can run a docker container for an arm image arm64v8/alpine, but with the following warning: docker run -it arm64v8/alpine uname -a WARNING: The requested image's platform (linux/arm64) does not match the…
Feng Xi
  • 1,005
  • 2
  • 11
  • 30
14
votes
0 answers

Create a QEMU Bridge Using the Socket Networking Backend

I am trying to create a bridge to an interface in my host, much like the Virtualbox's and VMWare's bridge adapters, in QEMU, using a combination of socket networking and a Python library called Scapy (essentially, relying on WinPcap/Npcap on Windows…
falhumai96
  • 327
  • 2
  • 17
14
votes
1 answer

QEMU "-bios" vs. "-kernel" vs. "-device loader,file=..."

For background, I'm running bare-metal QEMU-4.1.0 on aarch64. There are several ways to get QEMU to load compiled code into memory. I'd like to understand what the underlying differences are, because I see very different behavior and the…
Lance E.T. Compte
  • 932
  • 1
  • 11
  • 33