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
3
votes
1 answer

IBRS suffix of CPU models in QEMU

What is the difference between the IBRS suffix and no-suffix CPU models in QEMU? Which one should I choose?
user2965433
  • 190
  • 10
3
votes
1 answer

How can I forward ports in user-mode QEMU without conflicts?

I'm running Linux under QEMU as part of a test suite for a Python script that does some privileged operations. Running a full virtual machine is important to me, because: I do not want to require sudo access to run tests later it will be easier to…
Chris Hunt
  • 171
  • 1
  • 8
3
votes
1 answer

qemu-kvm guest OS can access host using bridge, but cannot access other devices on same network

I want to run a qemu-kvm guest with Debian 9 as its OS on a Debian 10 host. The host is connected to the local network, and I would like the guest to be "visible" to the local network as if it were a regular device connected directly to the network.…
ngj
  • 133
  • 1
  • 4
3
votes
1 answer

macos qemu tap can't ping bridge ip address?

I want to install qemu on macos and use a tap device in the vm. Below is my step. install qemu brew install qemu install tuntap, after installation, I can see tap devices in /dev/tapX brew install tuntap create a bridge sudo ifconfig bridge0…
Gary Allen
  • 181
  • 1
  • 7
2
votes
0 answers

Making custom Kernel configuration changes with debian-installer in QEMU

I am installing Debian10 (armhf) on a virtual machine in QEMU, like this: Download this netboot/initrd.gz Download this netboot/vmlinuz Create an empty disk image with: qemu-img create -f qcow2 hda.qcow2 8G Run the debian-installer in QEMU…
2
votes
1 answer

RHel 7 converted with qemu-img fails with dracut error at boot

I'll have to migrate several computers from Hyper-V to VmWare. I would like to use qemu-img because is command line and I could create an script. Conversion works fine for Windows but is not working for Linux Red hat 7 Target vmware is an ESX Note:…
Uh Trog
  • 103
  • 3
  • 10
2
votes
1 answer

(QEMU) Setup Windows 10 VM on a thinly-provisioned LVM device with discards (a.k.a. trim)

I'm trying to set up a Windows 10 VM using QEMU and I want to use a thinly-provisioned LVM volume and be able to "retrim" the drive in Windows. I created the device with: -drive index=0,media=disk,if=virtio,format=raw,file=/dev/vg0/myvol, But when…
2
votes
3 answers

Create iPXE UEFI bootable image for QEMU/Libvirt with custom next-server and filename

I can create a VM with libvirt/qemu to boot in UEFI mode. I know that it does iPXE by default, but I want to create/modify a iPXE image in order to override filename and next-server properties. How can I do such thing? EDIT: I tried the…
djuarezg
  • 131
  • 1
  • 2
  • 8
2
votes
0 answers

QEMU-KVM bug: guest interface locks up a core with soft interrupts

Bug: I have a qemu-kvm on Ubuntu (host 14.04.5 LTS 3.13.0-95; cannot upgrade; , guest Ubuntu 18.04.03 LTS 4.15.0-65) Guest has two network interfaces, directly (VEPA) connected to two separate host physical interfaces. A program running on guest…
Alec Matusis
  • 191
  • 1
  • 2
  • 8
2
votes
1 answer

QEMU - how to setup vlans after they have been deprecated and removed

Until I updated my OS, I could launch VMs with the following network configuration: -net nic,vlan=0,model=virtio,macaddr=${MAC1} -net bridge,vlan=0,br=${BRIDGE1} \ -net nic,vlan=1,model=virtio,macaddr=${MAC2} -net bridge,vlan=1,br=${BRIDGE2} In…
user3125731
  • 347
  • 5
  • 9
2
votes
1 answer

Setup a qemu KVM (Proxmox) with 8 cores but 16 threads

The goal is to give one VM max. 8 virtual cores, but still have 16 threads in this VM. Reason for this is SQL Licensing because it is licensed per Core, so that on a physical machine with 8 hardware cores, you would only have to license 8 cores and…
Andreas
  • 21
  • 1
2
votes
1 answer

How to create a bridge / tun tap under linux inside /etc/network/interfaces?

I need to create a network bridge for my qemu virtual machines under linux . I'm reading manpages, official documentations and tutorials but I still find impossible to understand the steps. For example ( from https://wiki.ubuntu.com/KvmWithBridge…
yep
  • 21
  • 1
  • 2
2
votes
0 answers

How to fully emulate VM hardware?

How do I fully emulate, pass through, or spoof all the hardware for a virtual machine? I want to set up a few guest VMs in such a way that they do not have any special drivers or odd hardware info. The core issue is that I have applications which…
Max Power
  • 129
  • 2
2
votes
0 answers

XP KVM stuck at "Booting from Hard Disk"

Just to see if it could be done (and if so, move other physical XP machines to VM environments), I took the hard drive out of a decommissioned laptop, captured a WIM of it, and applied it to a QCOW2 disk. It fails to boot. It's stuck at "Booting…
2
votes
1 answer

Q: Unable to create 'live' snapshot of running KVM using virsh

I was kindly directed to here, Serverfault from Stackoverflow to pose my question. I'm running the following command on a RHEL7 hypervisor to create a live backup (disc image) of a running kvm, which is running a production docker service in the…
Rick Epoch
  • 21
  • 3