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
1 vote
0 answers
25 views

QEMU virtual machine taking more memory than allocated?

I checked with htop why the PC stopped responding and why the OOM killer had to kick in, and I see my virtual machine that was allocated 2046 MB of RAM taking up 6627 MB of RAM. What is this and how ...
  • 11
1 vote
0 answers
23 views

QEMU emulating two CPU archs

As I know, x86_64 Linuxes are capable of running x86 programs. I wonder if it would be possible to emulate it using QEMU. I am using proot and hoping to proot into such said system.
  • 25
0 votes
0 answers
11 views

how to add an image file as usb to qemu that keeps changes?

I am adding an .img as usb in qemu running linux. When I try to mount and write to it (e.g. create a file), it works as expected and content is written. However the data isn't saved in the .img file. ...
0 votes
1 answer
15 views

QEMU: where is dhcp configuration file for vmnet-shared

When I run virtual machine and attach vmnet-shared IP address is assigned from DHCP Question: Where do I find dhcp default configuration file on MacOS?
1 vote
0 answers
8 views

Libvirt, Qemu VM problem with keyboard

I am building a system comprised of Linux 5.9.18 and Busybox. I am able to get a shell open. But, my keyboard does not work. I am using libvirt with Qemu. My kernel config is configured as the ...
  • 31
1 vote
1 answer
9 views

Using libvirt with Qemu and cannot load kernel?

I am editing the relevant VM's XML file with the following parameters: <kernel>../Downloads/linux-5.19.8/arch/x86_64/boot/bzImage</kernel> <initrd>../obj/initramfs-busybox-x86....
  • 31
0 votes
0 answers
13 views

virt-manager/QEMU: How to toggle keyboard focus between virtual machine and main machine

I'm using dwm for both my main machine and the virtual machine, similar to how L_Ctrl + L_Alt changes the keyboard focus to the main machine (so mod-key combinations work in the main machine), is ...
  • 11
0 votes
0 answers
8 views

Default folder sharing by virt-viewer in Windows client

Following online instructions, I have been able to share a linux host folder with a windows guest launched using virt-manager - QEMU. However, every time I connect the folder is disconnected -virt-...
0 votes
0 answers
13 views

virt-install / virsh create tries to launch VM after install

I am trying to create a script to simplify the process, by which I can create a paravirtualized vm. When my script reaches the part, where it creates the vm, it freezes, because it apparently tries to ...
0 votes
0 answers
16 views

How to choose other nameserver for qemu VM

This question could be more general if use "qemu" as a variable name for application. My host machine is inside a local private network with NAT firewall to Internet. Its IP is, let us say, ...
  • 998
0 votes
1 answer
25 views

Windows10 VM won't boot after Linux host reinstall

There are two SSDs in my setup, one where the OS is installed and another where the qcow2 files for the VMs are stored. After formating and installing Kubuntu on the first drive and setting everything ...
  • 1
2 votes
1 answer
26 views

Emulating ARM v8 to run DietPi in qemu for userspace software

I can't seem to get DietPi to boot on a generic ARM 64 bit virt machine in qemu. I'm using the Raspberry Pi ARMv8 64-bit DietPi image (for Raspberry Pi 4). What am I missing/need to change to get ...
0 votes
0 answers
39 views

Network routing through veth0 / bridge for userspace QEMU VM?

I would like to filter and capture traffic from a virtual machine. This VM must run in userspace. Capturing requires root, I know (though I hope to minimise root activity needed later). The easiest ...
  • 7,896
0 votes
1 answer
69 views

virsh list throw error 'Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory'

I have built the latest libvirt repo. But I am unable to connect to libvirtd using virsh command in Ubuntu 22.04. I think it is trying to connect to Modular driver daemons instead of monolithic ...
  • 177
1 vote
0 answers
104 views

How to enable 'devices' controller support in grub?

I am running ubuntu 22.04 with virt-manager installed, when I run virt-host-manager I get QEMU: Checking for cgroup 'cpuset' controller support : PASS QEMU: Checking for ...
0 votes
1 answer
81 views

Redirect USB device in KVM while guest is running

I have two USB Redirector devices in my KVM, created using virt-manager: <redirdev bus="usb" type="spicevmc"> <alias name="redir0"/> <address type=&...
  • 131
0 votes
0 answers
104 views

QEMU/KVM (qemu:///system) VM has no network connection (could not obtain IP address via DHCP); works in user session

Today I somehow cannot get my VMs on Virt/QEMU to connect to network. At last try I have Linux Mint client and it fails to connect via DHCP. Wired connection is present, I was able to disable and ...
1 vote
1 answer
51 views

Virt Manager: Windows vm don't see any networks

Recently I have installed QEMU + Virt Manager so I can run some windows programs without leaving my linux. And I got stuck on network. I have the default network with source set to NAT and device ...
1 vote
1 answer
270 views

cloud-init does not work for Ubuntu 22.04 images

I'm testing cloud-init for Ubuntu 22.04 images, So I first downloaded the cloud image from: https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img Then I create ...
  • 51.6k
1 vote
1 answer
320 views

Trying to install Kali Linux on QEMU-KVM (using virt-manager) fails on no display

maybe someone here could help. I'm trying to install the bare-metal ISO of Kali Linux on virt-manager. The iso boots to the installation menu, but choosing graphical installation fails on no display ...
0 votes
0 answers
28 views

Trying to emulate Debian etch arm guest inside amd64 host

Well, I deleted my last question due to a lack of details. The point is that I'm trying to compile a C program using very old libraries for which I don't have the source. I discovered some time ago ...
  • 101
1 vote
1 answer
857 views

qemu warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]

I'm tying to install Ubuntu 22.04(guest) on Ubuntu 20.04(host) with Intel® Core™ i3-1115G4. I installed qemu, qemu-kvm, bridge-utils and added my user to kvm group. But the run command, qemu-system-...
  • 111
0 votes
0 answers
24 views

network interface qemu doesnt start from enp1s0

I am building an image using yocto and I am using QEMU to emulate this image. with tap network, I am able to SSH to qemu, however, the interface always starts at enp4s0 instead of enp1s0. This is the ...
0 votes
0 answers
8 views

Creating a new GuestVM using libvirt shows deleted GuestVM's file system

I have destroyed an existing GuestVM using virsh command and I recreated a new GuestVM using virsh. This time I am seeing my new GuestVM has all the changes I have made to the old GuestVM(which is ...
  • 177
0 votes
1 answer
25 views

QEMU reset VM without libvirt

How to reset VM by QEMU without libvirt? I need to reset VM in VDSM hook "before_vm_start" Thanks!
0 votes
0 answers
39 views

Intel RDTSC Timing Spoofing

I am trying to mask my QEMU/KVM, and I'm currently at the RDTSC Timing and I found this code: static int handle_rdtsc(struct kvm_vcpu *vcpu) { printk("[vmkernel] handling fake rdtsc from ...
1 vote
1 answer
22 views

PCI Passthrough via OVMF; No Video Output

I've been following the Official Arch Linux Guide (https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF) and everything has been working exactly how it should be, but once I start the VM the ...
0 votes
0 answers
16 views

How to use gphoto2 to access emulated mtp on QEMU NetBSD guest

I was able to emulate a usb-mtp device in How to emulate usb-mtp device with virt-manager? but when I try to access the folder share/device with gphoto2 in debug mode it hangs and I get: ...
  • 1
0 votes
0 answers
16 views

How to change mounted user/group id for filesystem mounted using libvirt

I'm running a MacOS guest on Ubuntu host, using https://github.com/kholia/OSX-KVM. hypervisor: KVM, emulator: qemu, managed by libvirt. I have added this to the configuration that I import using virsh ...
  • 101
0 votes
0 answers
23 views

Pass undetected USB device to QEMU

I have a CP Plus attendance reader that I want to pass to Windows virtual machine. When I connect the device. I get the following message in dmesg [ 372.884498] usb 1-1: new high-speed USB device ...
  • 101
0 votes
0 answers
7 views

Can libvirt/qemu set the enoX number as if it were a physically numbered hardware port?

Recent Linux distributions use Predictable Network Interface Names (from udev) which states that "device names [like eno1] incorporate firmware or BIOS-provided index numbers for onboard devices.&...
  • 231
0 votes
0 answers
80 views

Spice not authorized in QEMU on Ubuntu

I am running Ubuntu 22.04 LTS and I installed virt-manager, created a windows 10 vm and hopelessly trying to connect two usbs to the vm the error I get is spice-client-error-quark: Could not redirect [...
0 votes
2 answers
146 views

How to bridge ethernet interface running dhcp server

A workstation has eth0 interface running as a dhcp server with the following settings auto eth0 iface eth0 inet static network 10.0.0.0 address 10.0.0.1 netmask 255.0.0.0 gateway 10.0.0.1 ...
0 votes
0 answers
26 views

libvirt and hotswappable single USB port with virt-manager - almost there?

Description USB not visible on Debian guest. I cannot see anything obvious from the logs but because I do not have much virtualisation experience I assume I missed a step in the configuration, ...
0 votes
0 answers
49 views

Sound working on Virt-manager but not in Virt-viewer

I'm trying to use Virt-viewer with a Windows 10 guest VM on an Arch Linux host machine. Sound works fine when I use the Virt-manager viewer but does not work in Virt-viewer. Is there something simple ...
  • 3
0 votes
0 answers
35 views

Cannot use mouse in virt-manager with GPU passthrough

I am currently unable to use my mouse in my Windows 10 VM using qemu in virt-manager. I tried removing my GTX 1050 Ti from the VM and my mouse began to successfully work again. The mouse did appear to ...
  • 1
0 votes
1 answer
33 views

How to emulate usb-mtp device with virt-manager?

I am trying to emulate an mtp device with virt-manager. I see at https://qemu-project.gitlab.io/qemu/system/devices/usb.html that usb-mtp,rootdir=dir as in -device usb-mtp,rootdir=dir could be used to ...
  • 1
0 votes
1 answer
35 views

Qemu - How to specify HDD file

I'm trying to install ESXI on qemu a VM. During the installation I don't see esxi.qcow2 file size being increased. I'm not sure if its writing to the disk file or not. esxi.qcow2 file size is still ...
0 votes
0 answers
126 views

Passing USB device to QEMU/KVM doesn't work

I'm trying to run Zoneminder server using KVM/QEMU virtualization. I'll have more services on the server. I would like to have camera network completely isolated. I'm trying to passtrough USB Ethernet ...
  • 1
0 votes
1 answer
31 views

qemu-system-i386: Could not load snapshot for icount replay

I'd like to use QEMU for recording/replaying execution. However, the replaying does not work as described in the manual: $ qemu-system-i386 \ -icount shift=auto,rr=record,rrfile=record.bin,rrsnapshot=...
1 vote
1 answer
479 views

kvm uefi boot into UEFI shell

I use kvm and qemu and ovmf to set up a vm. while I config it to boot on UEFI,it runs into UEFI shell. My VM xml is following: <domain type="kvm"> <name>win7-2</name> &...
0 votes
0 answers
100 views

KVM : virtio better?

I found many articles about changing to virtio, but I don't know the reason. Does virtio have higher performance?
0 votes
2 answers
897 views

Cannot start KVM machine on arch after update

I'm having trouble with a VM I was using yesterday. After using, I closed the guest and updated my host machine (arch linux). Today I turned on the host and tried to turn on my guest and this message ...
0 votes
0 answers
747 views

Can't boot Windows 10 in QEMU, only flashing cursor

I'm trying to do a Windows 10 install on qemu, but I only get a quick Windows logo flash and then I'm stuck on a flashing cursor (I left it running for 10+ minutes and it didn't work). On top I see ...
  • 16.7k
0 votes
2 answers
465 views

How to open Virt-manager VM from command line?

My system is Arch Linux 5.17.9 running i3wm. I am trying to start a VM which is configured in Virt-Manager and Qemu. I have tried the command, sudo virsh list --all this brings up the installed VMs ...
  • 3
2 votes
0 answers
1k views

Virt-Manager internal error: process exited while connecting to monitor

Arch Linux I created a qcow2 on the other drive using Virtual Manager. I'm trying to use another drive for my VMs, but when I try to create a new VM from an ISO, I get: Traceback (most recent call ...
0 votes
2 answers
670 views

I'm trying to run a Debian 11 VM on my CentOS 7 Home Server, but get hit by this issue with virt-install

See below, the issue im having when trying to run virt-install on its own. Same issue when I try with all the config I plan to use: /usr/lib/python2.7/site-packages/requests/__init__.py:104: ...
5 votes
1 answer
253 views

Why CentOS converts ATA bus to scsi bus?

I use libvirt + qemu to boot a VM with a disk with IDE bus device in libvirt: <disk type='network' device='disk'> <driver name='qemu' type='raw' cache='none' io='native'/> <source ...
  • 53
0 votes
0 answers
128 views

Peripherals lag on KVM/QEMU

I've been using a virtual machine for a development environment and for gaming, but I can't troubleshoot why my keyboard lags a little bit while using a virtual machine every time I use the terminal ...
2 votes
0 answers
216 views

Can't boot arm64 cloud image with qemu

I first downloaded ubuntu-22.04-server-cloudimg-arm64.img, then I started it with qemu qemu-system-aarch64 -m 2G -M virt -cpu max -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -drive if=none,file=...
  • 51.6k

1
2 3 4 5
19