Questions tagged [qemu]

QEMU (short for "Quick EMUlator") is a free and open-source hosted hypervisor that performs hardware virtualization.

380 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
708 views

Ptrace: Function Not Implemented in GDB Installed on Multiarch/Qemu-User-Static Arm64v8/Alpine Docker Container

I want to debug an aarch64 ELF using GDB installed on an arm64v8/alpine docker on my x86_64 16.04 Ubuntu VirtualBox, which itself is installed on my Mac. In particular, to set up the docker I use the ...
1
vote
0answers
451 views

How to enable local network access to a VM using QEMU/KVM and Virtual Machine Manager

I've been spending all day trying to solve this little puzzel. I've got a Ubuntu 20.04 lts. I've installed QEMU/KVM and Virtual Machine Manager on it. I'm trying to create a VM that have direct access ...
1
vote
1answer
152 views

QEMU/KVM libvirt filter not working

I have a VM using the default QEMU/KVM virtual network NAT adapter. Host is running Ubuntu Desktop 20.04. Guest is running Windows 10. I have setup a simple libvirt filter to block access to my Local ...
1
vote
0answers
90 views

unable to initialize libusb: -99 under QEMU emulation of Raspberry PI

I ran raspberry pi emulation with the following command $QEMU_EXE \ -kernel qemu-rpi-kernel/kernel-qemu-4.4.34-jessie \ -cpu arm1176 \ -m 256 \ -M versatilepb \ -append "root=/...
1
vote
2answers
119 views

xen and the support for spice GL

To make a long story short,I tried to pass through my two kinect 2 devices from ubuntu 20.04 to a two qemu / kvm virtual machines,where on the first one I have also passed through my RTX 2080 ti and ...
1
vote
0answers
32 views

Why is .qcow2 image larger (+1920000 bytes) after resising the image via `qemu-img resize --shrink`?

I created 20 GiB .qcow2 image for my virtual machine. Next I installed Ubuntu 20.04 on it. The system uses ~8 GiB, so I decided to shrink the image to 10 GiB using the following command: # qemu-img ...
1
vote
0answers
188 views

Qemu SPARC boot panic on Solaris

I want to boot Solaris8 SPARC version by Qemu. $ qemu-system-sparc64 -boot d -cdrom SOL_8_204_SPARC.iso -net nic -net user -m 2048 But it shows this error: OpenBIOS for Sparc64 Configuration device ...
1
vote
1answer
122 views

Why does my USB device disapear when I pass it to a qemu virtual machine?

I have a realtek wireless dongle that I want to pass to a qemu virtual machine. When I start the VM, the usb device shows up on both the host and in the guest as expected (shows up in lsusb, under /...
1
vote
0answers
2k views

virbr0 package not installed - qemu/kvm

I am trying to test a custom kernel configuration using qemu/kvm when I do $ virsh --connect qemu:///system net-start default this is the output i get. error: Failed to start network default error: ...
1
vote
0answers
2k views

Boot iso in qemu-kvm virt-manager

Can an iso boot in qemu-kvm / virt-manager? Have bootable usb stick. The iso will make any usb stick bootable the same way. Can not boot iso in kvm-qemu / virt-manager. In virt-manager the iso ...
1
vote
1answer
385 views

Run QEMU with graphical output from Tty

I found out that you can run MacOS from Linux with QEMU and that worked already with my main Linux install but I want a second install that only has Tty "running" in the background (so I can ...
1
vote
1answer
1k views

Dependency issues in the installation of Qemu

I would like to install QEMU in my virtual machine Debian 10. But I get the following errors. How can I fix them? root@debian:~# apt-get install qemu-system-arm Reading package lists... Done Building ...
1
vote
0answers
753 views

Windows 10 VM ignores QXL video memory changes

[Linux Mint 19.3 host, UCA Stein PPA for QEMU v3, Windows 10 v2004 guest] I'm trying to allocate more video RAM to my Windows 10 VM. I've always done this via virsh, changing these line: <video> ...
1
vote
0answers
350 views

PCI passthrough stopped working in (K)ubuntu 20.04 guest, but only after login

I have been using KVM/QEMU for GPU passthrough successfully for over a year now. In my case, I was passing an GTX1070 to linux and an AMD RX480 to Windows. When my Arch installation got messed up, I ...
1
vote
0answers
296 views

Add more PCI slots to Virtual Machine

I am running a VM using kvm to simulate a network switch. I need to simulate a lot of links, so all of them are using a PCI connection. If I attach 27 or more interfaces I get an error. Here is the ...
1
vote
0answers
199 views

How to prevent sound getting distorted when adding an USB passthrough for my controller to a KVM/QEMU virtual machine?

I created a virtual machine with aqemu and the sound was working properly in the vm. Then under Media -> Computer Ports -> Add USB Port I added a passthrough for my mixer connected via USB. After ...
1
vote
1answer
959 views

Mac os X does not boot if emulated with qemu/kvm on the WSL2

I've enabled the KVM support on my WSL2 subsystem which run on top of my Windows 10 64 bit and I tried to boot mac os X. It's a shame that it didn't work because this error : root@DESKTOP-N9UN2H3:/...
1
vote
0answers
443 views

Connecting iOS devices to KVM guest

I'm trying to connect an iPad to a MacOS guest via KVM. The MacOS guest runs fine, PCIe passthrough to a K4000 also works. OS is Fedora 31, 5.5.10-200.fc31.x86_64. Libvirt/virsh is 5.6.0, QEMU is qemu-...
1
vote
0answers
151 views

USB Support in Qemu User Mode Emulation

I have a CLI program compiled for x86_64 for which I have no source code (a firmware programming utility). I would like to run this on a Raspberry Pi. The program runs fine using Qemu user mode ...
1
vote
0answers
483 views

Guest has not initialized the display (yet)

I'm trying to emulate a raspberry pi using an x86 system and qemu. I'm trying to launch it like: $ qemu-system-arm -kernel ~/Downloads/kernel-qemu-4.19.50-buster -cpu arm1176 -m 256 -M versatilepb -...
1
vote
0answers
205 views

SSH server not booting in Packer QEMU Debian VM

I'm using Packer to boot a pre-installed Debian Buster image on QEMU to provision it for deployment, but whenever Packer boots the image it is unable to connect over SSH. The Debian image is the ...
1
vote
0answers
111 views

Ubuntu 16.04: How to get libx86emu x86emu-demo to work?

Does anyone know how to get libx86emu x86emu-demo to work? https://github.com/wfeldt/libx86emu Test.bin 00000000 55 8B EC 51 C7 45 FC 00 00 00 00 8B 45 FC 50 E8 00000010 09 00 00 00 83 C4 04 33 ...
1
vote
0answers
194 views

How to to access /sys/bus/usb/devices/ from qemu with AppArmor enabled? ("Cannot Open File" and "Cannot read serial from...")

I'm trying to access an USB device with AQEMU. For this I have added an USB port in the media options. But when starting the virtual machine I'm getting these errors: AQEMU Warning [..] >>> ...
1
vote
0answers
112 views

QEMU networking: Host to Guest

I want to connect a host(Debian 10 VM) to a qemu-guest (Debian on aarch64 ARM). I used to debootstrap tool to install a Debian root file system. Then I installed the qemu-user-static device on my host....
1
vote
0answers
573 views

QEMU: cannot run commands with non-root user

when I try to run any qemu-system-x86_64 command, even --help, nothing happens (I check ps and there is nothing running in the background). As soon as I run the command with sudo, everything works. My ...
1
vote
0answers
209 views

qemu-bridge-helper assign the same ip to all VMs

I am trying to have the VMs appear on the external local network with unique ips as if they were a separate regular computer on the local network. I was able to do that with one VM. However, when I ...
1
vote
0answers
2k views

Mounting read only snapshots of qcow2 images

I'm looking for a way to mount a read only snapshot of a qcow2 disk image so I can back up files from it. Based on the manpages for qemu-nbd a command like the following ought to work: qemu-nbd -x ...
1
vote
1answer
433 views

User mode qemu and KVM

When running user mode qemu for target x86 on a target x86 (or just target arch = host arch), will qemu use KVM, transfer control to the directly to the CPU or will it be interpreting the instructions....
1
vote
0answers
333 views

Failing to get vfio working on fedora - GPU passthrough qemu kvm

I am trying to setup a windows vm with gpu passthrough using qemu-kvm-vfio. I have been following the following guide to enable vfio to intercept the driver upon boot: https://laketide.com/setting-up-...
1
vote
0answers
2k views

KVM, qemu, libvirt no internet connection (or dhcp) on NAT

I have configured (using virt-manager) a NAT network with dhcp as follows: <network> <name>default</name> <uuid>dbbdc0dd-20d8-41df-aadb-d8a106170c2b</uuid> <...
1
vote
1answer
183 views

how to properly halt linux system when exiting init

In Qemu, I'm starting a linux VM where init process (PID 1) is bash. It is working : I can use bash after boot. But when I quit bash with a exit or CTRL+D I got a kernel panic. Kernel panic - not ...
1
vote
0answers
162 views

Can I interpret Grub2's post-MBR gap?

While setting up a RAW disk image for use in a QEMU-based virtual machine, I became frustrated because QEMU would load GRUB but then GRUB would not load a menu of OSes to boot into. I've come to the ...
1
vote
0answers
25 views

How to "plug" a Qemu VM into host

I want to connect a QEMU iOS guest vm (using the new method of getting ios in qemu) to my host mac so that the guest is recognised as if it was an iphone plugged in via a cable. Is this possible?
1
vote
0answers
585 views

qemu kvm VM needs to access Internet by bridging wifi

I have some Qemu KVM virtual machines (CentOSs and Debians mostly) and my host is an Ubuntu. I configured the VMs networks with virtio virbr0, and I also made it work by creating a virtual interface, ...
1
vote
0answers
581 views

Qemu/KVM with hardware OpenGL rendering

I've seen that support for hardware accelerated rendering is getting mature in Qemu now but I'm confused about the best way to set it up, or if it's worth it compared to VMWare's 3D support. For ...
1
vote
0answers
95 views

Shrinking a qcow2 image when it contains an APFS filesystem

I'm not having much luck re-shrinking a qcow2 image; it contains an APFS filesystem and I suspect this is the issue. Has anyone successfully done this? I did zero out the free-space as usual and have ...
1
vote
0answers
54 views

Own boot parameter in Linux kernel gives no outprint (Homework)

The task is to write a own boot parameter in the linux kernel that activates printk under the kernel initiation. The Linux kernel version that is edited is 4.16.7 (buildroot 2018.11.2) and my ...
1
vote
0answers
232 views

qemu user networking: forward non-localhost guest IPs to the host

I'm running a qemu VM in user networking mode and I'd like to be able to access forwarded ports from the host. Something like the following works well. -netdev user,id=t0,hostfwd=tcp::9992-:9992 ...
1
vote
0answers
1k views

Qemu-user : get memory maps while debugging remotely

I am trying to get the memory map of a process I am debugging remotely (peda pull request link), the process is ran with qemu-user, for example: qemu-arm -L /usr/arm-linux-gnueabihf/ -g 1234 ./ch47 ...
1
vote
0answers
87 views

Corrupt display observed via VNC with TrueOS on QEMU

I am trying to run TrueOS v17.12x64 on QEMU but got corrupted display immediately after booting to GUI: I am just going with the ordinary graphics setup. Here's my domain file: <graphics type='...
1
vote
1answer
1k views

Bridge network stop working with kvm/qemu

2-3 months ago I followed this article https://brooks.sh/2017/12/22/configuring-kvm-on-clear-linux/ to setup bridge network for kvm/qemu guest ubuntu. My Host os is ClearLinux. However the guest OS ...
1
vote
0answers
337 views

QEMU over ssh without using vncviewer

It seems that when I want to run qemu-system-x86_64 on a node via ssh -Y, I have to connect to the guest via VNC. So, here is an example: [mahmood@rocks7 ~] ssh -Y compute-0-0 [mahmood@compute-0-0 ~] ...
1
vote
0answers
458 views

Static IPv4 in QEMU

I'm attempting to provide static IP addresses to the network interfaces while bringing up the QEMU images via command line. The command is like below: qemu-system-x86_64 -smp 2 -hda disk.img -net nic,...
1
vote
0answers
417 views

How to setup qemu networking for web app server on guest?

I am trying to setup a simple test system emulated under qemu. Problem is I seem unable to connect to web applications using the standard command line because applications usually listen to a well ...
1
vote
0answers
724 views

Accessing disk features in a QEMU/KVM VM

I recently setup a QEMU virtual machine with KVM running on Debian. The guest OS is FreeNAS (based on FreeBSD). I have given the guest access to a physical hard-disk on the host (not just a partition)....
1
vote
0answers
419 views

How to insert a module in qemu where module is in guest system?

I am running qemu first time so I don't have much knowledge of it. I am having a kernel module hello.ko and I want to insert it in kernel using insmod in an OS running in qemu and this module is ...
1
vote
1answer
315 views

Arch Linux - get no ipv4 on vm's

I have since some days a problem with my network connection on every vm. It doesn't matter whether Windows or Linux. My host system based on Arch Linux with interfaces configured by systemd-networkd. ...
1
vote
0answers
389 views

qemu guest is bypassing host's firewall

I've got a Ubuntu host running several virtual machines using qemu-kvm. Every guest should use our local DNS server, so I blocked outgoing DNS requests using ufw on the host machine: sudo ufw deny ...
1
vote
0answers
205 views

QEMU Deb9 guest graphical install fails to get DHCP reply during install

My goal is to setup a few QEMU/libvirt based guests using a bridge interface on the host so each guest-VM has a DHCP assigned IP address on my LAN network. I have successfully setup and used less ...
1
vote
0answers
893 views

connect qemu/kvm(managed by virsh) VM to an existing tap device

I'm using virsh to manage my qemu/kvm VMs. Problematic VM has the following interface configuration: <interface type='bridge'> <mac address='52:54:00:92:f7:f8'/> <source bridge='br-...

1 2
3
4 5
8