Questions tagged [qemu]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
50 views

Copy data from inside KVM virtual machine to host file system

Is possible to copy data from inside of Virtual machine running on KVM/QEMU to physical host machine?
0
votes
1answer
64 views

Cannot guest ip addresses of guests

I use kvm and libvirt and cannot get the ip address from the host: The list from each of the guests is empty: virsh domifaddr guest1 Name MAC address Protocol Address -----------...
1
vote
0answers
114 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 ...
0
votes
0answers
76 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 ...
0
votes
0answers
45 views

Buildroot x86_64 EFI doesn't run in qemu

I'm trying on Ubuntu 18.03 to run my buildroot build, target pc_x86_64_efi. I can see the GRUB screen, but when I choose Buildroot to start, then I can only see the not blinking cursor. What is wrong?...
0
votes
0answers
61 views

Linux kernel on ppc64le: vmlinux equivalent in arch/powerpc/boot/

When I run self compiled kernel on ppc64le on QEMU with vmlinux, it works (instructions from https://github.com/linuxppc/wiki/wiki/Booting-with-Qemu): wget -c https://openpower.xyz/job/initramfs/job/...
3
votes
3answers
828 views

virt-manager: KVM is not available

I'm running Arch Linux and have been running into trouble trying to use QEMU/KVM on virt-manager, and a similar root problem is likely to address my issues while using the similar gnome-boxes. ...
0
votes
1answer
63 views

Open qcow2 image on debian remote server remotely

I recovered a vmware image from an inaccessible server after converting it to qcow2, now it is on a remote debian server (kimsufi) and as it is 64GB I can't download it to my small pc. I read that I ...
0
votes
0answers
144 views

How to convert a list of VMDK files into a qcow2 or img file which have the same size

I've just configured the passthrough on my ubuntu / I9 9900k / nvidia geforce RTX 2080 ti machine. Now I'm converting the VMware virtual machine VMDK files (created from the conversion of a physical ...
0
votes
1answer
82 views

Forward Windows 10 “Windows” To X11

Let's assume that I have a Windows 10 VM running under Qemu, there is a way to forward to X11, the windows application. Something like I start the virtual machine, and I can see only the program ...
1
vote
0answers
352 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 ...
0
votes
1answer
185 views

How to pass USB port through to qemu with chroot

I created a chroot environment with qemu to get a x86 linux kernel to run on a Raspberry Pi 3. Do you know how to pass the USB port through when running sudo chroot /home/pi/chroot-stretch-i386/ /bin/...
0
votes
0answers
39 views

Running Virtual Machine with 640x480 and 16-bit color depth

To run a very old windows game in a virtual machine on ubuntu i have to run on windows xp with a resolution of 640x480 and 16-bit color depth. i can change that manually every time i start the vm but ...
1
vote
1answer
501 views

Why does my QEMU/KVM virtual machine not start after CentOS 7.7 update?

After an automatic update of CentOS to version 7.7 on Sep 17 2019 my QEMU/KVM virtual machines do not start when I reboot the hypervisor server. Trying to start the VM by hand gives this error: # ...
1
vote
0answers
66 views

qemu error: mmap stack: Out of memory

I'm trying to use alpine linux aarch64 on my x86-64 linuxhost like this: chroot ./rootfs qemu-aarch64-static /bin/sh I then reach the prompt and start using it. Sometimes (randomly), I get an error ...
0
votes
1answer
32 views

propagate virtualized Ethernet interface link status from qemu guest to host

Is it possible to propagate Ethernet interface link status from guest to host, i.e if one does ip l set dev eth0 down in guest, then something is triggered in host? virsh domif-getlink <domain> &...
0
votes
1answer
26 views

Can qemu-system-x86_64 boot a luks volume?

Lets say I have a computer with 2 bootdrives. I install Ubuntu to one and Debian to the other, and I encrypted both during installation. I only specify two different distributions to help distinguish ...
0
votes
0answers
44 views

prepare aarch64 alpine image on x86-64 linux

My goal is to run a simple script on my linux x86-64 to create an pre configured alpine image for aarch64 (rpi3b+). I managed to do it quite successfully for a raspbian, using system-nspawn and qemu-...
6
votes
1answer
328 views

KVM/QEMU/libvirt image path suggestion file system and mount options

As simple KVM server I've got to store raw and qcow2 images on special path like: /kvm-storage I want to know what's the best practices for file system and mount options to set this path for achieve ...
1
vote
1answer
175 views

Set L2 cache for QEMU qcow2 disk in virsh XML

In the QEMU commandline you can set a L2 cache for a disk using l2-cache-size=10M This option is not supported in Virsh XML but it should be able to use the XML element <qemu:commandline> but I ...
0
votes
0answers
164 views

Nvidia GPU Passthrough error 43 - Arch Linux , Threadripper

I have gone through a lot of articles and tutorials but I can't seem to figure it out. My setup is Arch Linux 5.2.11-arch1-1-ARCH, Qemu 4.1.0, Libvirt 5.5.0 Threadripper 2950X with 2 GPUs 1060 and ...
0
votes
0answers
97 views

Double Vpn in Qemu/KVM. One in host and another in guest. What network card setting to use for hidint the second VPN?

My goal is to have one VPN setup on host, the one that my ISP see. And another in Guest. The second one should go through the first vpn, hiding it. Just like using Tor Browser on top of VPN(ISP see ...
0
votes
0answers
18 views

QEMU relative performance without hardware / kernel level support:

Is the performance of qemu-system-x86_64 better than, say, qemu-system-arm when run on x86_64 as an unprivileged user? (no hardware / kernel level virtualization support). How does it relate to other ...
1
vote
0answers
157 views

How to set Rx Queue = N in linux / in Qemu / KVM?

I have configured 8 multiple queues on my CentOS VM box (running on KVM). <interface type='direct' trustGuestRxFilters='yes'> <source dev='ens113f0' mode='passthrough'/> <model ...
3
votes
1answer
88 views

PLATFORM variable for qemu / system-nspawn

I'm customizing a Raspbian installation using qemu, i.e.: systemd-nspawn -q --bind /usr/bin/qemu-arm-static -D $MOUNTPATH /bin/bash << EOF DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND ...
0
votes
0answers
38 views

Transfer files between host and guest using virtio-serial

I have a Windows 10 guest with very limited network access (limited by Check-Point VPN firewall) which I access through the spice viewer. But I need to transfer files to/from the guest. I tried to ...
0
votes
0answers
69 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
191 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-...
0
votes
0answers
9 views

Forward incoming packets on Hotspot wireless interface to Qemu and not on the default motherboard ethernet port

I am using Qemu to test my Ethernet MAC hardware IP. I am using ubuntu 18.04 LTS server as a hotspot. My qemu runs on Ubuntu and I have an internet access on Qemu. I want to access internet, ...
3
votes
1answer
86 views

QEMU 3.1.1 failed to build

[OS=Linux Mint 19.2] I'm trying to build this version of QEMU so I can experiment with 3D acceleration. But every time I try the build, it always fails. Here are my configuration parameters: ./...
0
votes
0answers
199 views

Strange memory allocation in W10 KVM guest using balloon memory

My Win10 guest use 3.2GB when it just booted when setting a low "CurrentMemroy" in then KVM/QEMU virt-config-XML file for the guest: <memory unit='GiB'>4</memory> <currentMemory unit='...
1
vote
2answers
69 views

How to clone physical system into a virtual machine?

I have a full system installed on my PC. (Arch Linux on a laptop) I need to test, edit, tweak this system (bootloader too) in a safe way because it is my workstation. Is there a way to easily** ...
0
votes
0answers
159 views

qemu shared disk

I try to create a disk that is shared between the host and VMs. For that I did following: qemu-img create -f raw src.img 15G sudo mount -o loop ./src.img /media/cdrom sudo losetup -l sudo mkfs -txfs ...
-1
votes
1answer
2k views

Network not working in a QEMU/KVM virtual machine running Arch linux

I have installed Arch Linux in a KVM/QEMU virtual machine using the virt-manager program. However, network inside the VM is not working. My host system has Ubuntu 18.04 and I am using a Wi-Fi based ...
1
vote
1answer
875 views

Win10 guests high KVM host CPU usage

Some time ago it was noticed that Win10 1803 WM's would give high CPU usage on the host e.g. 25%, even though client CPU usage 0%. It was solved by having these settings in your virt XML file: <...
0
votes
0answers
26 views

How do I show the build configuration of qemu?

I like to build qemu like this: user@host:~/qemu-4.1.0-rc2$ ./configure --enable-virtfs --enable-libusb Assuming I don't want to keep the source directory (or the generated config.status), is there ...
0
votes
1answer
794 views

QEMU/KVM - Ubuntu VM guest freezes as soon as mouse is moved

I'm trying to boot some new Linux virtual machines (Ubuntu) via QEMU/KVM. They boot up fine up until the point where I move my mouse on the screen (VNC connection). When I do, the display freezes and ...
1
vote
0answers
423 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
48 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 ...
2
votes
1answer
2k views

Error “qemu-system-x86_64: warning: host doesn't support requested feature” when installing Kali using qemu on Linux mint

First I installed qemu and kvm and then Created an image using... sudo qemu-img create -f qcow2 debian.img 15G ...and when tried to load the iso file... sudo kvm -hda debian.img kali-linux.iso -m ...
0
votes
2answers
1k views

QEMU doesn't respect the boot order when booting with UEFI (OVMF)

Using qemu-system-x86_64, I want QEMU to start a virtual machine with a drive and a few virtual cdrom drives and floppy drives attached. I need it to automatically boot from the first virtual cdrom ...
1
vote
1answer
502 views

How to mount a virtual floppy disk into a virtual machine?

I'm using qemu-system-x86_64 to start a virtual machine, but I absolutely can't figure out how to mount a virtual floppy disk (vfd file) into it. If I want to mount an iso, that is easy: -drive "...
0
votes
1answer
187 views

Unknown protocol type 'file' error when creating new virtual machine with virt-manager

I'm trying to create a CentOS virtual machine in Debian Buster using virt-manager with QEMU/KVM. I had installed it with: $ grep -o 'vmx\|svm' /proc/cpuinfo $ sudo apt install qemu-kvm libvirt-...
0
votes
0answers
47 views

In qemu using gzip return unexpected end of file gzip

When i download a file in /dev/sda1, and qemu -device file=/dev/sda1,format=raw to boot with it, gzip -d return unexpected end of file gzip. However, in my host machine, tar -xf it works fine. So ...
0
votes
0answers
46 views

How to make qemu mount a host NFS partition

I want to the VM mount my host /dev/sda1(ext4) as the root device, so i can both mount /dev/sda1 on host AND on VM. I expect when i change something via host in /dev/sda1, the VM will also detect that....
0
votes
0answers
76 views

systemd works on one machine, identical service/target files fail on another

I am new to systemd. I am trying to set up systemd so that it will start what effectively is an unattended kiosk application: Start only after Postgresql is loaded, start after my single named user ...
0
votes
1answer
41 views

“qemu-img”: overwriting a running OS?

Is it possible that I would issue a: qemu-img convert -f qcow2 -O raw sles12_3_custom.qcow2 /dev/sda while the original SLES11 is running? So I would overwrite a SLES11 OS, while it is running (...
0
votes
0answers
51 views

Connecting to a QEMU instance with FireFox over a tap interface

I'm running a webserver in a QEMU instance, but I cannot verify that everything is working as intended without being able to connect to the server with my web browser (firefox). I have configured a ...
1
vote
1answer
50 views

With KVM/Qemu is it possible to fake a complete disk layout for the guest?

What I am wondering is whether a QCOW2 (or any other format really) would allow me to fake a physical extent to the extent that I could mix and match files as backing store and partitions. That is to ...
1
vote
0answers
58 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 2 3 4 5 13