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

Clipboard sharing is not working, but the screen resolution resizing is, after I setup "spice-guest-tools" on a win 11 VM

I'm running Kubuntu on the host. I've installed a VM using QEMU/KVM and virt-manager. The VM OS is Windows 11 Pro. I've setup "spice-guest-tools" on the VM, and setup "spice-vdagent" on my host. I have the channel for the spice guest…
TxTechnician
  • 318
  • 1
  • 11
0
votes
0 answers

Emulating QSPI NOR Flash in QEMU

I am trying to emulator a QSPI NOR Flash from TI in QEMU. I have create a m25p80 flash device and a basic QSPI controller to control the serial flash. I already wrote successfully to the nor flash via the ssi_transfer function. But I did not see any…
Dong Lam
  • 3
  • 3
0
votes
1 answer

Why does the stack pointer need to be set for EL1 configuration?

Im studying some bare metal code for raspberry Pi, in particular this code for a QEMU emulation. It goes down from EL3 to EL1, but why need the sp_el1 need to be set for EL1 configuration from EL2 and again in EL1 the sp is set? If i remove any of…
Angel Ruiz
  • 39
  • 5
0
votes
0 answers

pthread_mutex_init return EOPNOTSUPP(95) with qemu aarch64

I have tried to run with qemu-aarch64 process. And I see that the pthread_mutex_init return EOPNOTSUPP(95) Maybe qemu-aarch64 makes a problem and I should debug that process into real aarch64 machine?(how can I do that?)
Polo1990
  • 89
  • 3
0
votes
1 answer

cloud-init didn't work with my self-built kernel image

When I use qemu to boot my VM with official kernel image and initrd dowmloaded from ubuntu official webset, it works well, but when I build the kernel from source, and replace the kernel image with my own built one (the initrd was still the official…
Myrfy
  • 575
  • 4
  • 11
0
votes
1 answer

Realtime RAM access to qemu guest

For the purpose of studying, I want to have full access to the physical memory of the guest QEMU in real-time mode. The "pmemsave" command freezes the guest OS. Is there a way for me to somehow map the physical memory to a Linux partition in order…
Artorios
  • 1
  • 1
0
votes
0 answers

How to emulate a firmware image file using qemu

I could see that this file was a firmware image compiled by arm. The image is a bootloader image, and I tried emulating it through qemu, but the error below occurred. How can you solve it? Wrong image type 5, expected 2
object404
  • 15
  • 1
  • 5
0
votes
0 answers

How can I use cross-compile (arm64) in x86 centos7 linux

I am using x86 centos7 linux. I want to use cross-compile to arm64 in docker but I can't use docker buildx --platform because of the low Kenel version (centos7) What should I do? I've searched about QEMU, docker to solve this problem but I can't…
jinhoekim
  • 1
  • 2
0
votes
1 answer

pthread_mutex_init failed while using qemu aarch-64

I tried to emulate aarch64 binary using qemu , I copy all the libraries that this binary depend on. and run it with chroot : chroot . ./qemu-aarch64-static ./myProcess The problem is that I see in log that pthread_mutex_init (implement in so file )…
python3.789
  • 164
  • 9
0
votes
0 answers

pcie passthrough in libvert failing through port multiplier, unknown header type 127

Trying to use 4x pcie Coral TPU accelerators(for object and voice recognition in home assistant) through a pcie port multiplier board(convert a 4x slot into four 1x slots) Without the multiplier board they pass through and function as expected. When…
0
votes
0 answers

Creating Windows VM in KVM/QEMU using GNOME Boxes from a Backed-Up OS

Hello Stack Overflow community, I'm looking for guidance on how to create a Windows virtual machine using KVM, QEMU, and GNOME Boxes on a Linux system. I have recently migrated my Windows and applications from one hard drive to another using a…
allah
  • 1
0
votes
0 answers

Can I open OP-TEE using QEMU-KVM instead of TCG

Can I open OP-TEE using QEMU-KVM without trustzone CPU emulation instead of TCG? I add enable-kvm option and turn off trustzone CPU emulation in QEMU command (Since KVM doesn't support trustzone) As expected, it can't boot. But it seems the BL1…
0
votes
0 answers

error while booting linux using busybox and qemu

I have been trying to build kernel using busybox and qemu by following this tutorial (https://gist.github.com/ncmiller/d61348b27cb17debd2a6c20966409e86) but after booting i am getting this error [ 1.521955] Kernel Offset: 0x33c00000 from…
0
votes
0 answers

Does QEMU RISCV system emulation emulate tlb cache?

I have been playing around with this blog-post https://colatkinson.site/linux/riscv/2021/01/27/riscv-qemu/ and after booting up the machine with this command: qemu-system-riscv64 \ -machine virt \ -cpu rv64 \ -m 1G \ -device…
0
votes
0 answers

what is the unixio socket for swtpm

I followed the information about qemu with tpm simulation from the arch wiki https://wiki.archlinux.org/title/QEMU#Trusted_Platform_Module_emulation I also checked the previous section. If I now try to create the module I got the following…
MaKaNu
  • 762
  • 8
  • 25