Questions tagged [qemu]
QEMU (short for "Quick EMUlator") is a free and open-source hosted hypervisor that performs hardware virtualization.
1,078
questions
0
votes
0
answers
9
views
QEMU/KVM connection drops immediately after starting up virtual machine with GPU passthrough
I have a Windows 10 virtual machine with GPU passthrough in Virt-Manager. Recently it has suddenly started to crash the QEMU/KVM connection it is connected to, as in spontaneously disconnecting. Is ...
0
votes
1
answer
30
views
Does running a VM typically affect host input lag?
I'm running a Windows 11 VM via qemu/libvirt on my Fedora 40 (Plasma Wayland) host. The VM is configured to use a passthrough GPU, 25% of my cores (6), and 25% of my memory (16GB). For input it has a ...
0
votes
0
answers
29
views
Is my characterisation of KVM and QEMU accurate?
I usually write essays on topics I am studying to help my understanding. Below are excerpts from my study of Virtualisation. I would like comments from real professionals on their accuracy.
KVM is ...
0
votes
1
answer
43
views
Which Linux kernel config options are required to get QEMU virtio to work?
I am currently trying to boot a QEMU VM with a virtio-blk hard disk and I am failing. I cannot seem to get the kernel to recognize the virtio device.
I am on a linux-6.1.97 source tree and ...
0
votes
1
answer
32
views
can't boot linux distro I made
I need some help, because when I boot my initramfs.img and my bzImage in qemu it boots normally. but then it just goes:
[ 34.354852] dracut: FATAL: iscsiroot requested but kernel/initrd does not ...
7
votes
4
answers
637
views
Simulate slow disks in KVM to see effect of LVM cache in test setup
I'm setting up a Linux system in KVM (QEMU) to test the effect of adding a writeback LVM cache on a fast disk in front of a logical volume that resides on a set of very slow disks (a RAID1 LV). This ...
1
vote
0
answers
39
views
I am following a video on setting up Qemu/KVM. Setting up of tuned, I am having a problem with missing parameters. How can I correct these errors?
In setting up Qemu and KVM: I received the following notification.
I have seen several others with this same problem,
but I have not been able to find a post with a resolution to implement.
$ sudo ...
2
votes
1
answer
139
views
Not working break in for loop in bash script for mounting a VHD
I'm not an experienced programmer. So maybe it's obvious for you why the break command in this script does not terminate the loop, but I can't see what is causing the problem. I want to use the script ...
0
votes
1
answer
28
views
How I can sniff network from host to quest that uses wifi usb device?
I want to achieve this:
I have a Linux guest VM using QEMU, using directly a USB Wi-Fi stick via USB passthrough.
In the meantime, using wireshark, I want to sniff the network data from it. In my ...
1
vote
1
answer
49
views
USB device not detected upon quest when I usb passthrough using qemu
I run an Ubuntu Iso as:
#!/bin/bash
MEM_SIZE=4096
qemu-system-x86_64 \
-accel kvm \
-cpu host \
-m ${MEM_SIZE} \
-M q35 \
-bios /usr/share/ovmf/OVMF.fd \
-device qemu-xhci \
-usb -device usb-host,...
0
votes
0
answers
25
views
PCI Passthrough PCI Slot Reference Change
I'll do my best to explain this as its confusing. I have Qemu/Virtual Machine Manager on my host PC. I created an Ubuntu VM and assigned two PCI slots (which are physical network cards) to it within ...
0
votes
0
answers
10
views
How do I solve the booting issue with qemu vexpress-a9 zImage?
I'm studying about the boot loader.
I aim to build the Linux kernel and boot the zImage on qemu-system-arm. First, I installed a cross-compiler for vexpress-a9. Using crosstool-ng, I installed arm-...
0
votes
0
answers
37
views
is it possible to boot into luks encrypted raw disk image with qemu/libvirt/virtualbox?
Done dd of my luks encryted drive, now im courious if its possible to create libvirt/quemu guest and attach that luks encrypted raw image and run it as is? Actually I have Fedora 38 on it with several ...
0
votes
0
answers
28
views
Why I see different cpu-migrations from top and perf stat?
New to system performance analyze.
I am curious on how CPU affinity affect kvm virtual machine.
So I try to bind vm's vcpu to physical cpu to improve vm's performance.
find the pid of the vm(ecs-...
-1
votes
1
answer
162
views
How do I physically pass a USB device to a QEMU VM
I've been trying to use a Linux QEMU virtual machine for USB driver development. I wanted to use USB passthrough but when I check the USB device in the VM, it shows some kind of generated product id ...
0
votes
0
answers
61
views
USB passthrough in Android emulator on MacOS M1 failing to acquire exclusive access
I am trying to get my Android emulator to see the Wi-Fi dongle or my Ethernet dongle connected over USB to the Macbook Pro M1. I tried the following methods:
Command:
./emulator -avd MyTestEmulator -...
1
vote
0
answers
33
views
QEMU, Debian VM doesn't boot after shutdown on M1
On M1, I 'm trying to run a Debian 12 VM.
After the installation process, whether configured using a deb_preseed.cfg (within the Automated Install) or through the GUI configuration, it fails to run (...
0
votes
1
answer
82
views
How to start a qemu virtual machine and from the host, execute some commands to finally shut it down
I'm deploying virtual machines with qemu. Installed OS is Debian with linux kernel debian 6.8.11-amd64.
The way I deploy a vm is directly with qemu-system command (i.e no vm manager).
In a command ...
0
votes
1
answer
30
views
libvirtd not starting after unsuccessful GPU passthrough
I attempted to follow this guide on Ubuntu 22.04:
https://wiki.gentoo.org/wiki/GPU_passthrough_with_libvirt_qemu_kvm
I didn't need to change my BIOS or my Kernel, and I skipped the step involving the ...
0
votes
0
answers
24
views
OpenRC not starting services
For testing purposes, I need a quick way to generate a root filesystem to use for booting freshly built Linux kernels. I've been doing this by using Docker to create a filesystem and then transferring ...
0
votes
0
answers
26
views
Can I use $USER enviroment variable inside qemu.config?
I am installing my first KVM/QEMU based virt manager.
As per the instructions on Arch Wiki, one needs to change the config file of qemu.config.
sudo vim /etc/libvirt/qemu.conf
I used vim to edit the ...
0
votes
0
answers
49
views
How do I properly chroot from a amd64 artix VM into a mounted aarch64 armtix OS image?
I want to chroot into an armtix (aarch64) OS image inside an artix VM.
I copied qemu-aarch64-static into the mounted /usr/bin
and then tried to chroot into the mounted image.
It works, however, most ...
0
votes
0
answers
21
views
How can I create a VM in virt-manager that can access the internet through the host but can't even see the host or other devices on the LAN?
I want to be able to create multiple VMs for testing purposes -- questionable websites, files that could be infected with a virus, etc.
I want to make sure these VMs should be able to access the ...
1
vote
1
answer
105
views
How to place a qemu vm in background (it means that it should run between the processes but nothing should be shown on the screen)
I would like to run the qemu vm that you see below runs between the processes,so I don't want to see any monitor,graphic,terminal window,nothing should be shown on the screen.
/usr/local/bin/qemu-...
0
votes
0
answers
11
views
Understanding the flash translation layer - SSD emulation
Can anyone suggest me a blog/article on how to get an NVMe simulation environment up and running? I'm basically looking at using NVMe as an emulated device in Qemu and tracing the read, write and stat ...
-1
votes
2
answers
488
views
Use .qcow2 VM file format for VirtualBox
VirtualBox, supports several other file formats, but no .qcow2 format for the time being.
The Virtmanager, in turn supports the current open source .qcow2 format, but not the outdated .qcow format.
...
-1
votes
2
answers
121
views
Limiting the file size of .qcow2 files [closed]
Qcow 2 files are an open source file format for virtual machines. In my opinion, unlike .vmdk files, they do not offer the option of specifying a maximum file size. This means that they can constantly ...
0
votes
0
answers
35
views
Converting a virtual machine a standalone directory hosted on Ubuntu
A software platform I'm responsible for requires a minimal Ubuntu distribution with software that is partially integrated with the OS and uses TTY terminals. We've typically contained the OS in a ...
0
votes
0
answers
63
views
How to let two qemu instances access each other under the same network? The host is Windows 11
The first instance is:
.\qemu-system-x86_64.exe -cpu IvyBridge -smp 4 -m 4096 -nic user,hostfwd=tcp:127.0.0.1:10022-:22 D:\vm1.qcow2 -accel whpx
So the network backend is user mode network of qemu, ...
0
votes
0
answers
56
views
QEMU/KVM: capturing keyboard shortcuts by the guest operating system
I have installed QEMU/KVM on my Ubuntu and created a new VM.
When trying to switch apps using Alt+Tab or "Show Applications" using Windows key it is captured and interpreted by the host OS ...