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
0 answers

Issues with starting a virtual machine using virsh without intializing virt manager

I am having problems with starting a virtual machine using virsh. When I do virsh list --all, I see the VM named "ubuntu20.04" and it's state if shut off. Then I do virsh start ubuntu20.04 and get this error: error: Failed to start domain…
0
votes
1 answer

What is the difference between the drive argument with and without device a argument?

I am trying to understand the difference between these two drive arguments: -drive file=drive.qcow2 -device virtio-blk-device,drive=hd -drive file=drive.qcow2,if=none,id=hd The first pattern boots (Debian) fine with qemu-system-(i386, x86_64,…
0
votes
1 answer

Why does linking a gpu freeze QEMU in Ubuntu

I am running a Ubuntu on a workstation with 2 GTX 1070 and I5 7400 CPU, I have QEMU installed and I have an old windows 10 vm I tried to link the GPU by adding the PCI link hardware in virt-manager GUI, and restored windows vm (from a saved state)…
Weed Cookie
  • 103
  • 3
0
votes
1 answer

`virsh -c qemu:///session list --all` lists VMs created in `QEMU/KVM` connection, but misses VM from `QEMU/KVM User session` of Virt-Manager

# virsh -c qemu:///session list --all lists only VMs created in QEMU/KVM connection (system !), but misses VM I've created in QEMU/KVM User session in GUI of Virt-Manager. Why? From below I unserstand I'm using correct syntax of the command: Migrate…
Alex Martian
  • 129
  • 5
0
votes
1 answer

How is this even possible?

This must be a glitch in the Matrix. Right? Let me explain. I have some automation that converts a qcow2 image into a raw image before uploading the resulting raw image to an S3 bucket (in AWS). Prior to Friday, this automation was specifically…
dmas174
  • 3
  • 2
0
votes
1 answer

Run script after booting Alpine netboot

I have download alpine netboot distribution from this url: https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86/alpine-netboot-3.16.1-x86.tar.gz I have run a virtual machine with qemu this way: qemu-system-i386 -m 256 -kernel boot/vmlinuz-lts…
Bob5421
  • 319
  • 3
  • 8
  • 16
0
votes
0 answers

Share a host folder to an alpine image running in qemu

I have try to run an alpine Linux in an emulated environment this way: $ wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86/alpine-netboot-3.16.1-x86.tar.gz I have untar the archive and run: qemu-system-i386 -m 256 -kernel…
Bob5421
  • 319
  • 3
  • 8
  • 16
0
votes
0 answers

Why would a KVM/Qemu VM, running successfully on a new host, get stuck "Paused" after a few minutes?

I used virsh commands to backup a Xubuntu 22.04 VM on an Ubuntu 20.04 machine and restore it on an Ubuntu 18.04 machine. The VM starts up successfully, but after a few minutes of running apt updates it hangs up in "Paused" state and after a forced…
0
votes
1 answer

VM: Can I detect that my virtualmachine is being paused?

Is there any signal or something that could allow me (guest OS) to recognize that my virtual machine is being paused in KVM/Qemu before it gets paused? It's important for me to not depend on option to enable communication between host<->guest in…
0
votes
1 answer

Bridging wan interface using macvtap - no connection to host

So I have an ubuntu server with 1 WAN interface with a public ip address. I would like to bridge this interface so that the qemu guest vm will use the same interface. I used the guide…
chegov
  • 1
0
votes
2 answers

How to resize kvm vm host

KVM Host Environment:- # cat /etc/issue Welcome to openSUSE 13.2 "Harlequin" - Kernel \r (\l). # /usr/bin/qemu-system-x86_64 --version QEMU emulator version 2.1.3 With the below commands i have resized the VM host virsh destroy vm1 qemu-img resize…
0
votes
1 answer

Running QEMU VM, Windows Host. Need to increase RAM for Guest VM

Running guest Ubuntu VM on Windows Host (QEMU). Installed a lot of libraries here in Ubuntu and much scared too "break" vm. Need to increase RAM for Guest VM. Tried to google the thing out, but there no clear solution for me yet. Kindly advise
jNc
  • 1
0
votes
1 answer

Qemu VM freezes when using Tap interface on Windows

When I try TAP Interface the qemu, the VM freezes, not sure why. But with -netdev user it doesn't freeze but can't connect to the VM at all. I tested using ESXi and Centos 7 both VM freezes when using Tap interface. Centos 7 VM starts fine but when…
user630702
  • 495
  • 10
  • 32
0
votes
0 answers

Qemu - Cannot connect to Guest

I'm running Qemu on Windows and I can't connect to the ESXi guest and can't ping the host network gateway from the ESXi guest. I disabled all other network interface on Host machine except the internet connecting Ethernet interface. I've spent like…
user630702
  • 495
  • 10
  • 32
0
votes
1 answer

What capabilities do you lose when turning off COW on a qcow2 file?

I run a small internal cloud utilizing 3 redundant, live migration capable Ubuntu/Qemu/KVM hosts with ~30 mixed OS VMs. The Pool volumes are BTRFS and before any of you give me crap about it: this is small shop, utility is more important than…
Frobozz
  • 173
  • 8