Questions tagged [qemu]
QEMU (short for "Quick EMUlator") is an open source machine emulator and virtualizer.
577
questions
2
votes
1
answer
568
views
qemu-system-sparc: shared memory between host and guest
All,
I've been looking into passing things between a host's shared memory and guest OS's shared memory, and have come across this link. I've been able to successfully reproduce the output shown at the ...
0
votes
1
answer
582
views
QEMU Win10 resolution change doesn't work when window resized
I have VM with Windows 10 as guest and would like to set up automatic resolution change when window (qemu integrated display or virt-viewer) is resized, but it doesn't work for me.
My virtual machine:
...
0
votes
0
answers
69
views
QEMU acting very weirdly
this is my first question on this website.
For a long time now I've wanted to make a virtual machine for gaming. Maybe not with a full single GPU pass through but I've wanted it to support OpenGL. It ...
0
votes
1
answer
337
views
IP address removed from docker0 bridge on QEMU/KVM virtual machine
I'm renting a virtualized server running Ubuntu 22.04 and I'm trying to run Docker containers within it. The server is virtualized with qemu-kvm.
Unfortunatly, the containers don't have network access....
0
votes
0
answers
43
views
print branch taken or not in qemu plugin
How to print branch taken/not taken if branch instruction in the qemu execlog plugin?
api.c does have a get_ms option but on using it it shows the error:
undefined symbol: get_ms
0
votes
0
answers
85
views
Qemu: How can I get a Bash?
I have a file system directory file/ and a kernel file zImage. At first, I converted the file system directory to SquashFS format.
I used the following command for this:
mksquashfs file file.squashfs
...
0
votes
0
answers
29
views
trace-pid file not being generated. Why?
I'm trying to generate the trace-pid file, but it isn't being generated. However instead of trace-pid file being generated, the entire output of that file is being printed on the terminal itself. Why ...
1
vote
2
answers
2k
views
USB passthrough to VM with maximum isolation from host
I'm thinking of experimenting with some USB devices in a virtual machine (preferably QEMU). For security reasons, I don't want to let them interact with the host.
Things I've tried:
Doing nothing ...
0
votes
0
answers
105
views
Tracing is disabled in my QEMU. How to solve that?
This was my configure command:
./configure --target-list=x86_64-softmmu --enable-kvm --enable-trace-backends=simple --disable-werror
The build is also successful.
But when I'm doing: sudo trace-cmd ...
0
votes
1
answer
249
views
How to fix configure error in QEMU?
I'm facing an issue with configuring QEMU for generating traces.
This is how my config.log looks like:
# Configured with: '/home/aananya/qemu-8.0.0/configure' '--target-list=x86_64-softmmu' '--meson=/...
0
votes
1
answer
769
views
Trying to script the install of qemue agent on cloud-int VM
I am currently using Proxmox to deploy some VMS. I am using a script supplied by here.
My current script is as such
#!/bin/bash
#Create template
#args:
# vm_id
# vm_name
# file name in the current ...
1
vote
1
answer
3k
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
232
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
269
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
271
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
429
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
1k
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
2k
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
149
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
206
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
627
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
567
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
544
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
348
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
2k
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 Linux 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/...
0
votes
0
answers
214
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 "...
1
vote
2
answers
1k
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?
2
votes
1
answer
1k
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
2k
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
197
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 ...
1
vote
1
answer
522
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, ...
1
vote
1
answer
282
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 ...
2
votes
0
answers
641
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 ...
4
votes
1
answer
2k
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
256
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
362
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
2k
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
2k
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
740
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
157
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
801
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
867
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
2k
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
217
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 ...
3
votes
1
answer
3k
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 \
.......
1
vote
1
answer
185
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
2
answers
1k
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
382
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
1k
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 ...
2
votes
0
answers
394
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 ...