Questions tagged [qemu]

QEMU stands for "Quick EMUlator" and is a processor emulator that relies on dynamic binary translation to achieve a reasonable speed while being easy to port to new host CPU architectures.

185 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
568 views

KVM: What is stored in var/lib/libvirt/qemu

My Question is "What is stored in the /var/lib/libvirt/qemu folder?" Is this used as somekind of backup folder ? Backgroundinformation: I have a Debian Server with a running KVM installation(+libvirt)...
4
votes
0answers
384 views

Convert qemu syntax to virt-install or virsh xml

I have parameters for qemu-system-x86_64, which attach unix socket as interface into VM: qemu-system-x86_64 -chardev socket,id=char1,path=/tmp/sock0,server \ -netdev type=vhost-user,id=...
4
votes
0answers
2k views

Libvirt & USB Hub Passthrough

I have a virtual machine which I wish to have a USB Hub and all of its devices allocated to a virtual machine. The Hub in question is a USB hub which itself is plugged into one of the ports on the ...
3
votes
1answer
2k views

QEMU versatilepb default network adapter

I'm using qemu to emulate a raspberry pi. I'm starting qemu like this: qemu-system-arm -kernel ./qemu-rpi-kernel/kernel-qemu-4.1.13-jessie \ -cpu arm1176 -m 256 -M versatilepb \ -append "...
3
votes
0answers
1k views

Qemu packer ssh failed connection reset by peer

I am trying to get packer to create a qemu/kvm image. I feel like it should be fairly straightforward but my build keeps failing on ssh. Here are the relevant files template.json: { "builders": [ { ...
3
votes
0answers
2k views

QEMU USB passthrough is not working

I stuck at getting USB passthrough working with Windows 8.1 guest OS on Ubuntu Server 14.04. I started by installing qemu using the Ubuntu Documentation (https://help.ubuntu.com/community/KVM). The ...
3
votes
0answers
2k views

virt-install fully automated install

I'm looking into ways of installing/deploying a VM completely automated (no user interaction). So far I have tried QEMU and virt-install along with QEMU. The issue with qemu is that injecting ...
3
votes
1answer
314 views

KVM QEMU looses USB devices

I have a KVM Qemu setup. I'm mapping a USB device to a VM running windows vista. I get the device mapped, and all is well for some time. Suddenly the device disappears in Vista. If I do "lsusb" in ...
2
votes
0answers
66 views

kvm virtualization, slow io in windows guest (with virtio drivers) on ubuntu host and HP 360 Server with P440 RAID controller

Problem: Very slow IO in Windows Guest vs Host Hardware: HP 360 G9, 2 x 10 cores Xeon CPU, 128GB Ram, 4 x 4TB SAS HDD, Raid 10, P440 Controller (with 2GB cache and battery) Host: Ubuntu 20.04 Server, ...
2
votes
0answers
680 views

Cloud Init with Flatcar Linux — Configuration not applying when passing custom file?

I'm using Telmate's Terraform provider for Proxmox and trying to deploy Flatcar linux virtual machines using Cloud Init by passing files via cicustom. Based on their example, I have crafted the ...
2
votes
0answers
164 views

iotune qemu/KVM total_iops total_bytes limits

I have created some qemu/KVM virtual machines on SSDs. The host has ~6 SSDs. 1 is being used for the OS, and each of the other SSDs has two VM guests. I'm using iotune to limit the capabilities of ...
2
votes
0answers
439 views

Repeated loss of network connectivity to QEMU/KVM/virt-manager VM

I'm having frequent network connectivity failures under the QEMU/KVM/virt-manager stack on openSUSE Leap 15.1. I have a single VM running a software firewall, which is losing connectivity every few ...
2
votes
0answers
101 views

Making custom Kernel configuration changes with debian-installer in QEMU

I am installing Debian10 (armhf) on a virtual machine in QEMU, like this: Download this netboot/initrd.gz Download this netboot/vmlinuz Create an empty disk image with: qemu-img create -f qcow2 ...
2
votes
0answers
451 views

QEMU-KVM bug: guest interface locks up a core with soft interrupts

Bug: I have a qemu-kvm on Ubuntu (host 14.04.5 LTS 3.13.0-95; cannot upgrade; , guest Ubuntu 18.04.03 LTS 4.15.0-65) Guest has two network interfaces, directly (VEPA) connected to two separate host ...
2
votes
0answers
375 views

How to fully emulate VM hardware?

How do I fully emulate, pass through, or spoof all the hardware for a virtual machine? I want to set up a few guest VMs in such a way that they do not have any special drivers or odd hardware info. ...
2
votes
0answers
2k views

XP KVM stuck at “Booting from Hard Disk”

Just to see if it could be done (and if so, move other physical XP machines to VM environments), I took the hard drive out of a decommissioned laptop, captured a WIM of it, and applied it to a QCOW2 ...
2
votes
0answers
894 views

Kernel panic when booting qemu virtual machine

I usually install template virtual machines on a dedicated server and then copy the disk to other production servers. It has worked for years and still works today in all cases but one. I have ...
2
votes
0answers
2k views

Route QEMU VM traffic through hosts VPN

tl;dr Host connects via VPN to the internet and a VM on this host doesn't go through this VPN (but it should). I think the network config isn't quite correct. The host The host (arch Linux) connects ...
2
votes
0answers
588 views

KVM/QEMU: cannot attach-device (disk) to a live domain

I'm trying to add a new disk to a running guest/domain (Win10) I succeed in using virsh attach-disk... --live and also using virsh attach-device.. --config But using: virsh attach-device SRV13 /tmp/...
2
votes
0answers
2k views

KVM/QUEMU guest slow disk performance

I'm really confused of QEMU/KVM behavior. I have a server - about 100GB RAM, 2 CPU - 6 core + HT, and three HDDs - one for root, and two for BTRFS-mirror for virtual machines (HGST HDN724030ALE640 if ...
2
votes
2answers
489 views

Booting from firmware-based PCI RAID controller in SeaBIOS

I had a server running Windows 2003 that resided on a RAID5 array formed by Promise FastTrak SX4100, which I thought was hardware-based because of its dedicated processor and buffer memory and its ...
2
votes
0answers
2k views

Linux KVM QEMU Host with high CPU load

I have a machine running Ubuntu 16LTS with KVM/QEMU for a hypervisor. It has 1 guest running right now (A Ubuntu Server) that is using less than 1% of it's CPU and about 100MB of the 1000MB RAM ...
2
votes
0answers
1k views

Proxmox/KVM: Can not clone VM

I would like to create a clone of a KVM machine - yesterday I was able to create a clone of the same machine within some minutes. Now it takes hours and is still stuck an "0%": create full clone of ...
2
votes
1answer
382 views

vlan qemu: guest listening from other guests

I'm trying to simulate a little network of 3 machines using QEMU where a machine (deb1) is directly connected with the host and the other 2 machines (deb2, deb3): Host ...
2
votes
0answers
1k views

qemu-img VHD to raw image convert results in bad geometry:

Is anyone else able to reproduce this? Using StarWind V2V Image Converter on Windows, I'm able to get a valid disk.img file, so the source image.vhd is clean (pulled down from rackspace). Is this a ...
2
votes
0answers
652 views

Force libvirt to pass always the same device number to the guest on USB device reconnection

I have a HP plotter connected with a USB cable to a debian server through a USB hub. On the server there is a virtualized Windows XP. Everytime I reboot the plotter a different device number is ...
2
votes
0answers
1k views

libvirt / kvm guests take very long time to start after host reboot

Host system is CentOS 6.5 x86_64. I have setup an Ubuntu guest by following this wiki. The guest works, but: if I reboot the host, it takes a very long time (about 30 minutes on the last reboot) ...
2
votes
0answers
1k views

What could cause linux to reboot even though panic is not set

Bit of context. Few VM's running on KVM (SmartOS), using kernel 2.6.32.7 have been rebooting. Nothing in the Qemu/KVM logs to suggest it's a Qemu issue. Unfortunately while testing kdump i discovered ...
2
votes
0answers
512 views

Why is qemu issuing a DHCP discover after it receives a DHCP offer

I'm having some trouble seting up network on qemu. I'm trying the easy option (user). The qemu command I run is this: ./qemu-xilinx/arm-softmmu/qemu-system-arm \ -M xilinx-zynq-a9 -m 1024 -...
2
votes
0answers
2k views

virtualbox to qemu but results in no bootable device qemu

I use vagrant to create my development vm. I exported the vmdk to vdi, and then convert the vdi to img. cd virtualbox_dir/test_vm VBoxManage clonehd test_vm.vmdk raw.vdi 0% ..... 100% qemu-img ...
2
votes
1answer
1k views

Installing and running a guest OS on KVM-qemu with only serial console access

I am trying to installing a bsd distro with virt-installer. With a Linux distro I used this: virt-install -n debian -r 1024 --vcpus=1 --accelerate -v --disk /var/kvm/installation-disks/debian.img,...
1
vote
0answers
51 views

Share data via QEMU and NFS with Mac host (OSX Catalina) and Linux Guest (Ubuntu 20.04)

Story so far We recently migrated from Linux laptops to Macbook Pro laptops (company IT no longer supports native Linux laptops with VPN, so it's all Macbook/OSX devices for us). However, all of our ...
1
vote
1answer
53 views

How to get internet/networking on QEMU for OpenWrt under Windows?

I would like to run a Internet-capable OpenWrt-Box on a Windows10 Machine using QEMU. I have tried this command: "c:\Program Files\qemu\qemu-system-aarch64.exe" -m 1024 -smp 2 -cpu cortex-...
1
vote
0answers
14 views

What triggers a “*** Guest State ***” register dump from the linux kernel?

Prefix: There is no kernel crash. Something, rarely, is triggering Guest State, Host State, Control State register and other debug variable dump to kernel log. The system in question is running many ...
1
vote
0answers
55 views

Correct SELinux labels for a kvm/qemu user session VM shared folder

I am trying to set up a shared folder using the 9p protocol for a kvm/qemu VM that runs on the user session (so the qemu process runs as me, not as root). Mounting the shared folder in guest works ...
1
vote
0answers
36 views

How to change Libvirt Job type from 'Cancelled' to 'None'?

After I abort a live migrate, the Job type has changed to 'Cancelled', which makes me unable to migrate again. So,If some libvirt api (or QMP) can help me to change the Job type from 'Cancelled' to '...
1
vote
0answers
75 views

Virsh Console Can't Access to rhel VM (a pty console, instead of serial console)

the pty console: <console type='pty'> <target type='virtio' /> <alias name='console1'/> </console> no output when I exec the command virsh ttyconsole vm_name the log (...
1
vote
0answers
85 views

Running Windows in QEMU with LVM causes very slow disk acess

I have the problem, that whenever I try to run Windows within QEMU, it seems that disk access is becomming very slow after a short while. Surprisingly both access to the disk from within the VM as ...
1
vote
1answer
57 views

Correctly installing / configuring locally built qemu / libvirt

On Ubuntu 18.04, the default installation of qemu is something like version 3, and I needed virtiofs which has built-in support in later versions. So I uninstalled the qemu and related packages, ...
1
vote
0answers
173 views

How to connect host only to network bridge with QEMU VMs on linux host

I have a bridge working for qemu. I am able to start multiple copies of the same machine and they can network together. I am not interested in connecting to the outside internet. This is all on ubuntu ...
1
vote
1answer
165 views

Options to forward vm to internet via ssh tunnel

Want to give vm in qemu/kvm internet access but only via a port i can forward to ssh tunnel. qemu -> host (already established) ssh tunnel on port 8083 -> ssh proxy -> www ports for browsers ...
1
vote
1answer
611 views

Proxmox & Packer: VM quit/powerdown failed during a Packer build. Anyone have any ideas why?

I am trying to create a Proxmox VM template using Packer. However I am getting a Proxmox error saying Build 'proxmox' errored: Error converting VM to template, could not stop: VM quit/powerdown failed ...
1
vote
0answers
304 views

How can I enable 2D/3D Acceleration with QEMU?

I have a KVM Server running Virtualizor on CentOS 7.6 . When I try to enable 2d/3d acceleration I'm getting the below error message. There was an error while starting the new VPS error: Failed to ...
1
vote
0answers
251 views

Qemu kvm virsh xml config for emulating PPC (PowerPC) guest VM on debian x86_64 host

When I try to save with virsh edit a qemu config with domain qemu (KVM not supported on x86_64 host when running PPC guest) and machine either g3beige or 40p (any other I can try?) with emulator qemu-...
1
vote
1answer
477 views

RHel 7 converted with qemu-img fails with dracut error at boot

I'll have to migrate several computers from Hyper-V to VmWare. I would like to use qemu-img because is command line and I could create an script. Conversion works fine for Windows but is not working ...
1
vote
0answers
92 views

How to check the cache mode of a qcow2 image?

Say I converted an image to writethrough cache mode with this command: qemu-img convert -t writethrough -O qcow2 in-image.qcow2 out-image.qcow2 How can I check/verify the cache mode of the image?
1
vote
1answer
226 views

qcow2 image: ERROR refcount block 69 is outside image

I have this backup.qcow2 image which was working fine in my kvm/qemu virtual machine before. When I attach it to another virtual machine, Windows recognizes the disk but fails to read partitions. The ...
1
vote
0answers
442 views

Static IPv4 in QEMU

I'm fairly new to QEMU and am 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 -...
1
vote
1answer
2k views

Nested Virtualization KVM: entry failed, hardware error 0x7

I have a VM on a host and want to create another VM within the existing VM (nested). Host: opensuse Tumbleweed, kernel 4.19.7, 96 CPUS Intel-Xeon, 256GB RAM (nested virt enabled in kvm) L1 VM: ...
1
vote
0answers
2k views

Proxmox: how to access a ZFS volume directly through guest?

That may sound like a strange use case, but is there a way to access a ZFS volume directly through an LXC container or a Qemu VM with Proxmox? I'd like to have incremental backups pushed to my guest ...