Questions tagged [qemu]
QEMU (short for "Quick EMUlator") is an open source machine emulator and virtualizer.
538
questions
1
vote
1
answer
34
views
aarch64 VM; amd64 host; "invalid accelerator kvm"
I have an ARM64 machine, which I want to emulate as a VM on my desk for testing. This will be the first time I'm emulating ARM64 on an AMD64, I'm clueless, and I went fumbling for hints.
I found one ...
0
votes
0
answers
47
views
QEMU not saving CPU Pinning for a virtual machine
I installed a Windows 10 and Windows Server 2019 virtual machine under my Rocky Linux 9.1 KVM hypervisor. My plan for this setup is to practice system administration, and I'd like to be able to run ...
0
votes
0
answers
34
views
Can I mount an empty qcow2 image?
I am trying to mount my image.qcow2 to nbd device on my linux machine using the following command:
guestmount -a test.qcow2 -i --ro /mnt/test_qcow/
but I get the following error:
guestmount: no ...
0
votes
0
answers
16
views
virtfs works in standalone QEMU, but not in Yocto-qemu
I need to mount a folder (or whatever) to a filesystem in qemu. mounting FAT worked in Poky, but not on our custom image. So... I tried virtfs, because it looks promising. Again I used Poky as a ...
0
votes
0
answers
46
views
(QEMU) -audio coreaudio,model=sb16 doesn't create sound card for guest
I'm trying to create an Alpine virtual machine on MacOS (macos host) and I want to be able to play sound from my QEMU VM. I have tried the config listed in the title as well as "-audiodev driver=...
0
votes
0
answers
117
views
How to tunnel all traffic of a QEMU VM through a Proxy?
I'm trying to make a VM in which all its traffic goes through a proxy (like a tor proxy or any other ip/port proxy). I've found this article showing that it is possible in command line, however I'm ...
1
vote
0
answers
262
views
virt manager does not let me remove Display spice
I try removing spice in Qemu virt-manager and I keep getting
Error Removing Device: unsupported configuration: Spice audio is not supported without spice graphics
Traceback (most recent call last):
...
0
votes
1
answer
21
views
QEMU unclear id option
What is id option. I have no idea what it is and there are no results about it.
For example from Arch Linux wiki
qemu-system-x86_64 -nic user,id=nic0,smb=shared_dir_path disk_image
What is id=nic0 ...
0
votes
0
answers
36
views
All Windows 11 nics bridged to windows qemu
how can i bridge all network interfaces from my windows-11 install to the guest system???? I use the windows qemu client.
For now use this command with 1 nic in guest, but that do not help me.
qemu-...
0
votes
0
answers
77
views
How to execute a riscv64 binary on qemu-system-riscv64?
I want to run a simple hello world program compiled for riscv64 machine on qemu. I have qemu-system-riscv64 and the riscv64-linux-gnu-gcc toolchain installed.
Is there sequence of command line steps ...
0
votes
1
answer
132
views
How to set different dynamic IP address for each QEMU VM?
(Warning, предупреждение, попередження, avertissement (and whatever your language is): English is not my primary language. I wrote this through a translator).
I need to run about 7 virtual machines ...
0
votes
1
answer
46
views
Cannot create QEMU virtual disk through command line
My problem when making a QEMU virtual disk is that it doesn't let me create it.
I discovered this when I wanted to install Windows 98 build 1702 on QEMU and load QEMU through the command line.
I ...
0
votes
0
answers
62
views
Port forwarding between Host and QEMU VM
I am accessing a host using a SSH over a VPN. That host have a VM on QEMU which I deploy using virt-manager. The host and VM are able to communicate. The VM have a Apache Webserver running. I am able ...
0
votes
1
answer
317
views
/sys/firmware/efi/efivars mount point does not exist on artix (QEMU on arch) EFI variables are not supported on this system
I'm trying to install artix on a virtual machine before I install it on actual hardware. I'm using QEMU.
When trying to install grub via
grub-install --target=x86_64-efi --efi-directory=/boot/efi --...
0
votes
0
answers
57
views
"Error Loading operating system" on QEMU
The Windows 2000 Professional virtual machine is essentially installed on VMWare Workstation Pro, when I convert the VMDK file to QCOW2 or run the VMDK file directly using Virt-Manager, it shows "...
0
votes
0
answers
238
views
QEMU (with virtmanager) boots to uefi shell when trying to install windows 11
I'm trying to make a windows 11 qemu VM on my arch linux install but when I start it it shows:
this
what can I do to make it boot normally into the windows installer with UEFI and secure boot?
0
votes
1
answer
134
views
QEMU: Executing guest program in foreground
I use QEMU to run a Windows 10 virtual machine (VM) on an Ubuntu host. My goal is to programmatically instruct the VM to run a specific GUI program in the foreground, as if the user had started the ...
0
votes
0
answers
550
views
KVM | QEMU (including virt-manager) issue with Linux host single GPU passthrough for macOS guest has blank screen
Okay folks! What needs to known in advance is that my initial VM solution has a working installation with a macOS Ventura guest on a Kali/Debian Linux host prior to extending the baseline ...
1
vote
0
answers
80
views
QEMU in Linux container connected to over SSH
I have been trying to use QEMU to get a VM (CentOS) running hosted in a container that I use a Putty SSH session to connect to. It seems I have issues with the serial input. I am using this command ...
0
votes
0
answers
132
views
How can you route traffic from a QEMU VM to a Wireguard interface on Linux?
I am developing a CTF platform and I need to separate and isolate my VM's from each other. My problem lies in how Qemu VM connects to a bride (let's call it br0) which in turn somehow has to forward ...
1
vote
1
answer
188
views
QEMU User Mode Networking bypass the VPN on Windows
On Windows, I am using a simple VPN to access content blocked in my country. When this VPN is running, it seems that all the Internet traffic is going through it: web browser, mail client, CURL, ...
0
votes
0
answers
131
views
qemu-system-x86_64: Failed to execute /init (error -8) - converting a docker image into a bootable ISO
I'm currently trying follow these steps to convert an instance of the busybox image into a bootable ISO. However, I seem to have reached a blocker at the "Now we can check if what we did so far ...
1
vote
1
answer
67
views
QEMU startup zoom automation
Each time I start QEMU I do the same series of clicks: View->Zoom to fit, and then grab the corner of the QEMU window and drag to zoom about 2.5 times. Can this be automated so qemu just starts ...
1
vote
0
answers
230
views
Allow a QEMU VM access to the internet, while blocking access to LAN
Host OS: Arch linux
I have read the qemu and libvirt documentation regarding networking but still cannot get this to work. I am trying to set up a Linux virtual machine for general use that has access ...
2
votes
0
answers
237
views
Can I get more screen resolution options for a QEMU virtualized Windows using a VirtIO graphics card?
When virtualizing e.g. a Windows 10 installation with QEMU and using the default graphics card (with no command line option set), it shows up as a "Microsoft Basic Display Adapter", and one ...
0
votes
0
answers
115
views
QEMU guest internet access
I have read many documentation and threads but could not figure out how to allow the guest machine to access the internet.
Below is the command for creating the guest Alpine Linux machine on MacOS ...
1
vote
1
answer
112
views
Setting up the EFI Shell in Qemu to allow for Http requests
I am developing an UEFI App that will need to perform a GET request through http.
As a start up point, I want to make sure my setup is working properly so that the http requests can actually go ...
0
votes
1
answer
191
views
How to work with QEMU snapshots/savevm in a way that is predictable like virtual box?
Q: is there a way to have a running QEMU vm, where i have the option to (online or offline) save a restore-point as I go?
long text with investigation, alternatives already examined and small rants:
I'...
0
votes
0
answers
442
views
QEMU: slow network performance with virtio_net driver
I'm running KVM/QEMU 7.2.0 with Linux for both host and guest (kernel 6.1.6 on x86_64). For the virtual networking, I'm using bridge device on host to which guest attaches its NIC as tap device:
-...
2
votes
1
answer
91
views
How to connect standalone QEMU sessions to libvirt user-session?
I would like to have qemu started machines running in user space, but during development I would like to issue commands to it using virtsh. (note, this is not because I need virtsh, but the QEMU ...
1
vote
0
answers
52
views
Graphic glitches in virt-manager win-xp guest
I'm having graphical issues with my windows XP guest in virt-manager. I haven't done any extensive testing, but at the moment I have only encountered it inside the game 3D Pinball Space Cadet (which ...
0
votes
1
answer
137
views
How to get failure cause of qemu-img?
qemu-img just quits with error code 1, and no mention of what was the actual problem.
i'm running the very first command from their docs: https://wiki.qemu.org/Documentation/CreateSnapshot#...
1
vote
1
answer
143
views
Why QEMU gives "Permission denied" when trying to commit to a snapshot?
I'm running QEMU in full emulation mode with a QCOW2 image with -snapshot
I can make changes to the machine, and when i terminate the instance, the QCOW2 image is still on the original state.
But if I ...
1
vote
1
answer
435
views
QEMU + KVM (Keyboard, Video and Mouse) what are my options?
I'm using QEMU with KVM (kernel based virtualization) and I want to connect my virtual machines to my physical KVM (keyboard, video and mouse) switch.
GPU passthrough would be an option but I don't ...
0
votes
0
answers
126
views
Use DHCP server from local network for guest system
I have a host system connected to with eth0 interface to the local network. Host system get network config from DHCP server that runs in this local network.
I want to test PXE related configuration of ...
0
votes
1
answer
270
views
How to let qemu acquire memory dynamically?
My command to start qemu looks like this:
$ qemu-system-x86_64 \
-name guest=win10 \
-m 4830196K \
-enable-kvm \
-drive file=win10.img,format=raw,index=0,media=disk,if=virtio \
.......
0
votes
0
answers
218
views
qemu/uefi: disable uefi http boot
I have working system where a qemu, with uefi, starts and eventually boots through dhcp/tftp pxe.
Before it does so, it first tries the more modern http boot, however its timeout is very long.
The ...
1
vote
1
answer
82
views
Confusion about NTFS compression and `du` on ZFS (was: How to *really* disable NTFS compression?)
I am using ZFS with compression+dedup on my host system and use Qemu/KVM for virtualization. I wanted to let ZFS do it's job and disable Windows 10's NTFS compression feature (both, CompactOS and NTFS ...
0
votes
0
answers
47
views
When I add a certain argument to my qemu command, it stops input
When I put -smp 2 as an argument in my qemu command line command, input doesn't get registered.
qemu-system-x86_64 -m 2048M -cpu 486 -smp 2 -hdd 'mylittle.qcow2' -display cocoa -cdrom 'some.iso' -fda '...
0
votes
2
answers
429
views
Virtualised Windows 11 under virt-manager (QEMU/KVM) can't find USB SSD storage drive
My virtualised Windows 11 under virt-manager (QEMU / KVM ) can see the USB wireless mouse, but cannot see the USB SSD storage device.
I took a check from the inside of Windows 11, in Disk Management ...
0
votes
1
answer
110
views
How to check QEMU virtual machine filesystem without the user password
I'm doing a couple of tests of Ubuntu autoinstall using cloud-init. In order to do so, I am following an example that's presented in the Autoinstall QuickStart page. In the given example, the ...
1
vote
1
answer
506
views
Boot physical win10 disk in QEMU
https://www.tenforums.com/virtualization/179771-using-physical-disk-kvm-qemu-windows-vm.html?__cf_chl_tk=z_c4bUjts37uHd66EhURNiy75Wla6ioAk1ettZofip4-1670079604-0-gaNycGzNCH0
this got me the farthest ...
1
vote
0
answers
163
views
KVM/QEMU Extra mouse features
I have Windows 11 VM running on a Debian host. I am using virt-manager to configure and use the VM.
Does anyone know how to get the mouse back/forward buttons and horizontal scroll to work when ...
1
vote
1
answer
527
views
Deprecated pc-speaker option in Qemu
I'm trying to invoke Qemu from Linux, using the pc-speaker option, but when I do it, I get the following warning message:
'-soundhw pcspk' is deprecated, please set a backend using '-machine pcspk-...
1
vote
0
answers
186
views
HDA audio in Qemu for FreeBSD 14
I just installed Qemu in my Linux, and created a virtual machine, and installed FreeBSD 14 on it.
I just enabled HDA audio in the Qemu command line (as seen below), but it doesn't work in the virtual ...
0
votes
0
answers
76
views
How to make KVM guest to boot correct root partition?
have been having trouble booting the proper root partition. After creating a guest with virt-install root partition sits inside Extended, thus I decided I will create a new primary and copy root ...
0
votes
1
answer
198
views
Windows VM works from QEMU CLI but produces BSOD from virt-manager
Overview
I have a Windows 7 virtual image that I can successfully spin up using the following qemu command in the terminal:
qemu-system-x86_64 -m 4096 -boot d -enable-kvm -smp 2 -net nic -net user -...
1
vote
1
answer
211
views
Qemu zoom to fit shortcut or cli switch?
I'm using qemu regularly and I find myself in the need to toggle or switch "Zoom to fit" on and off. From the menu bar, under the option "View" we got all kinds of options, like &...
0
votes
0
answers
183
views
"could not open /dev/tap0" error when trying to bring up a VM with isolated network
I am trying to bring up a VM that should be on an isolated network (on a mac M1).
The command I am using is:
qemu-system-x86_64 \
-accel tcg \
-m 2048 \
-drive file=alpine.qcow2,media=disk,...
0
votes
0
answers
93
views
Visual Studio Installer won't start in qemu Arm64 Windows guest
I've successfully installed an emulated arm64 windows guest and some applications just refuse to start, they spin on one thread and nothing happens.
The setup:
host is x64 Windows 11 ( 21H2 - 22000....