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.

QEMU has two operating modes:

  • User mode emulation

In this mode QEMU runs single Linux or Darwin/Mac OS X programs that were compiled for a different CPU. System calls are thunked for endianness and for 32/64 bit mismatches. Fast cross-compilation and cross-debugging are the main targets for user-mode emulation.

  • Computer emulation

In this mode QEMU emulates a full computer system, including peripherals. It can be used to provide virtual hosting of several virtual computers on a single computer. QEMU can boot many guest operating systems, including Linux, Solaris, Microsoft Windows, DOS, and BSD 1; it supports emulating several hardware platforms, including x86, x86-64, ARM, Alpha, ETRAX CRIS, MIPS, MicroBlaze, PowerPC and SPARC.

Source: wikipedia

637 questions
0
votes
1 answer

How to pass-through multiple USB devices with the same Vendor- and Device-ID in QEMu/Libvirt?

I have three identical USB devices on my VM host that I would like to pass-through to a VM: I can pass-through only one device as they all have the same vendor- and device-ID, the element in the VM libvirt XML file look like this: ...
MrCalvin
  • 354
  • 1
  • 6
  • 18
0
votes
0 answers

Linux bridge leaking traffic of shutdown vms

I've a linux bridge (br0) setup with netplan as the following: version: 2 renderer: networkd ethernets: eno1: dhcp4: no dhcp6: no bridges: probr: interfaces: - eno1 macaddress: ab:cd:ef:01:02:03 …
Andrew
  • 21
  • 2
0
votes
1 answer

QEMU - (Index=0) exists

I'm getting this index=0 exists error when I try to run qemu with this specific lines: Command: qemu-system-x86_64 ` -cpu "Penryn-v1" ` -boot order=c,once=d ` -m 4096 ` -smp 2,sockets=2,cores=2,threads=2,maxcpus=8 ` -drive file="F:\Maquinas…
0
votes
1 answer

QEMU-KVM, drbd and corosync - VM's doesn't work after reboot

On Debian 9.6 I've got QEMU-KVM Virtualisation. After electricity problems this machine just shut down. After switching it on again I can't start any VM because of this error: error: internal error: process exited while connecting to monitor:…
fnsq
  • 11
  • 1
  • 3
0
votes
1 answer

Windows VM suddenly run very slow in KVM/QEMU

I have several times experience a Windows VM suddenly start to run extremely slow, seems mostly related to slow storage IO. Seen this in different versions, but in this particular case is Win10 LTSC 1809 This happens whatever storage configuration I…
MrCalvin
  • 354
  • 1
  • 6
  • 18
0
votes
1 answer

How to configure hugepages on CentOS Stream 9

I need to reserve 12288 hugepages for QEMU/KVM virtual machines. I followed the guide in 3 easy steps to configure hugepages in RHEL/CentOS 7/8 but it looks like in CentOS Stream 9 the configuration file /etc/sysctl.conf is not for manual edit any…
0
votes
1 answer

How to set SELinux boolean using custom policy?

I know that SElinux booleans can be set via setsebool like this: setsebool -P virt_qemu_ga_read_nonsecurity_files 1 But I want to set this boolean virt_qemu_ga_read_nonsecurity_files using custom SELinux policy. Is it even possible? How can I do…
Oleg Neumyvakin
  • 629
  • 6
  • 16
0
votes
2 answers

Permissions of /dev/null wrong in KVM guest

My host node is RHEL7 running KVM from the 'updates' repo. On the host node, the permissions for /dev/null are: crw-rw-rw-. 1 root root 1, 3 Dec 18 04:45 /dev/null In an Alpine KVM guest (5.14, but same behavior on other versions), the permissions…
tater
  • 1,445
  • 2
  • 10
  • 12
0
votes
1 answer

QEMU - after dist-upgrade of Debian host, win10 guest state lost

I'm running a headless Debian host with a win10 guest that I seldomly login to via vnc. Last week I upgraded Debian from Buster to Bullseye, and that also upgraded QEMU from v3.1 to v5.2 (and libvirt jumped from 5.0 to 7.0). Of course, my due…
zenlord
  • 232
  • 2
  • 9
0
votes
1 answer

How to enable external access to the Virtual machine on private link?

I would like to benchmark virtual networking of KVM-QEMU. For this purpose, I connect two servers (server 1, and server 2) with one wire. I use server 1 to run the QEMU VM and I want to access this VM from server 2. Here's the overview of the…
Mehrshad
  • 103
  • 5
0
votes
1 answer

QEMU freezes at "Booting from Hard Disk..." with -nographic

A QEMU VM, both the host and guest OS being Ubuntu 20.04. QEMU 6.1.0 is compiled without any special parameters. The guest was installed from a downloaded iso image of Ubuntu server. If I start the VM using qemu-system-x86_64 -hda ubuntu.qcow -m…
zzzhhh
  • 101
  • 2
0
votes
0 answers

Loading a KVM guest with static IP using XML file

I have an XML template for the image I am loading on KVM using ansible. For now, the image loads without IP. I would like to know if there is a way to add static IP on the XML template so that my VM loads with static IP on eth0 interface. I tried…
ranji
  • 21
  • 6
0
votes
0 answers

VLAN QEMU Hypervisor bridge without host ip

I'm using debian 10 with kvm/qemu as hypervisor. You can ignore the bond... I created X VLAN Tagged and created a bridge on that tagged vlan. auto bond0 iface bond0 inet manual slaves eno1 eno2 bond-mode 4 auto bond0.10 iface…
Wulf
  • 69
  • 7
0
votes
1 answer

Migration Fails in Qemu with error `Unknown ramblock "mem1", cannot accept migration`, while it exists on the source

I'm trying to migrate a VM in QEMU, after I hotplug memory to my VM I cannot migrate it and I face with Unknown ramblock "mem1", cannot accept migration‍‍ while this name is ok and it really exists on the source of migration. The Parameters on the…
Navid Nabavi
  • 101
  • 1
0
votes
1 answer

SLES 11 PV VM on KVM

I have SUSE 11 SP4 VM, initially it was working on Xen in PV mode. Now I am moving it to KVM. My usual approach is to netboot any Linux in target VM, mount root of target OS, chroot and rebuild initramfs, then reboot VM into target OS. SLES 11 SP4…
kab00m
  • 498
  • 3
  • 10