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
0
votes
1 answer

Boot parameters in qemu

I'm new at kernel programming and trying to do a "Hello World" example. I added the following code to init/main.c in start_kernel() #ifdef HELLO printk("Hello World"); #endif Now to my question. How do i define HELLO in the boot parameters…
nist
  • 1,706
  • 3
  • 16
  • 24
0
votes
1 answer

taskset inside qemu virtual machine not working as expected

I am emulating qemu for linux x86-64. In qemu virtual machine, I am using taskset -c 0 prc1 & taskset -c 1 prc2 & taskset -c 2 prc3 & taskset -c 3 prc4; to simultaneously issue 4 processes and bind them to four cores (prc is short for process).…
user984260
  • 3,401
  • 5
  • 25
  • 38
0
votes
1 answer

qemu: delvm causes image corruption

I am using qemu-0.14, as a part of marss cycle-accurate simulator http://marss86.org/~marss86/index.php/Home. When I use delvm for deleting a snapshot, it corrupts the whole image. After it, the image no longer boots. Is there a solution to it (a…
user984260
  • 3,401
  • 5
  • 25
  • 38
0
votes
0 answers

In Termux Qemu cannot open internet, while limbo can open it running the same virtual machine

I downloaded many virtual machines and used with qemu, all of them cannot run internet when running with qemu commands in termux. But If I use Limbo emulator then internet work with no problem. Hi developers, I am above ground level in linux, but…
Awwaad
  • 1
  • 1
0
votes
0 answers

How can I start multiple virtual machines using QEMU and how to specify each VM to run on a specific core?

I am trying to run multiple virtual machines on the same host using QEMU with KVM acceleration. I am also trying to get each virtual machine to run on a specific CPU cure. For example, I want to allocate two cores for VM0 and have it run exclusively…
MUAS
  • 519
  • 1
  • 7
  • 20
0
votes
1 answer

How to distinguish different threads in multithreaded programs in QEMU?

I want to use QEMU to run a multithreaded program, and I want to record the execution path of each thread in QEMU without modifying the source code, represented by the first address of the basic block. However, I have found that even in the QEMU…
Arashimu
  • 1
  • 1
0
votes
0 answers

Running a Yocto system built with kas on qemu

I have a Yocto-based Linux system that is built using kas, or more accurately kas-container. The system is meant to run on an embedded device and it works there. The purpose of this system is to run an application that consists of several middleware…
TheAG
  • 287
  • 1
  • 4
  • 10
0
votes
0 answers

SDDM on Wayland crashes in test mode

I am trying SDDM on Wayland in a VM but I am not able to get it to work. My system maybe is a little unusual: The host is a Mac Mini (old one - Late 2012) on which I run Ubuntu 23.04 On this I run QEMU/KVM and a VM with Arch Linux and refind as…
j.karlsson
  • 618
  • 4
  • 14
0
votes
1 answer

Is there a way to get the configuration options of QEMU?

Progams such as vim or gdb can give me their configuration options which is convenient to recreate a build with the same features somewhere else. Does QEMU have something similar, or is there any way (no matter if hackish or so) to get the same…
永劫回帰
  • 652
  • 10
  • 21
0
votes
0 answers

Errors when install QEMU from source code

When I want to install QEMU from source code, I followed this article's recommended method of installation Emulating CXL Shared Memory Devices in QEMU.when I started to make ,errors happened. [1117/2990] Compiling C object…
0
votes
0 answers

Can I obtained guest instruction with QEMU plugin or other means?

I want to obtained the guest instructions while QEMU emulating. Is it possible to do such a task? Why I have this problem is that i want to obtain the load/store instructions and read the reg and mem data. I know there is a related problem from…
xwt1
  • 1
0
votes
0 answers

Android Studio Emulator: Device is not Play Protect certified

I just migrated from Windows to macOS and downloaded Android Lollipop 5.0 ARM emulator with Google API. When I run one of my project that is using some Google Services I get this notification which is new to me. What is the exact meaning of this and…
0
votes
0 answers

Trouble Booting Custom Kernel with QEMU: dracut-initqueue timeout waiting for /dev/sysvg/root

I am trying to boot a custom Linux kernel using QEMU and encountering an issue where the boot process hangs with a dracut-initqueue timeout. I compiled the kernel using a .config file from a Fedora VM and also copied the initrd.img from the same…
0
votes
0 answers

Error loading shared library libgcc_s.so.1: Not a directory (needed by ./bin/busybox

I want to run a busybox with qemu-arm-static file busybox is output: bin/busybox: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-arm.so.1, corrupted section header size And when I use…
yujie lu
  • 11
  • 1
0
votes
0 answers

Is UEFI returning a false memory map or has QEMU an error?

I have a bootloader written with UEFI. I use -m 100M when running QEMU and I excpected to have about 100M of memory when using BS->GetMemoryMap(); But I got about 350M which is weird. Following is the code I used to get the memory map: static…