Questions tagged [qemu]

QEMU (short for "Quick EMUlator") is a free and open-source hosted hypervisor that performs hardware virtualization.

Filter by
Sorted by
Tagged with
0
votes
2answers
2k views

QEMU doesn't respect the boot order when booting with UEFI (OVMF)

Using qemu-system-x86_64, I want QEMU to start a virtual machine with a drive and a few virtual cdrom drives and floppy drives attached. I need it to automatically boot from the first virtual cdrom ...
1
vote
1answer
691 views

How to mount a virtual floppy disk into a virtual machine?

I'm using qemu-system-x86_64 to start a virtual machine, but I absolutely can't figure out how to mount a virtual floppy disk (vfd file) into it. If I want to mount an iso, that is easy: -drive "...
0
votes
1answer
234 views

Unknown protocol type 'file' error when creating new virtual machine with virt-manager

I'm trying to create a CentOS virtual machine in Debian Buster using virt-manager with QEMU/KVM. I had installed it with: $ grep -o 'vmx\|svm' /proc/cpuinfo $ sudo apt install qemu-kvm libvirt-...
0
votes
0answers
52 views

In qemu using gzip return unexpected end of file gzip

When i download a file in /dev/sda1, and qemu -device file=/dev/sda1,format=raw to boot with it, gzip -d return unexpected end of file gzip. However, in my host machine, tar -xf it works fine. So ...
0
votes
0answers
52 views

How to make qemu mount a host NFS partition

I want to the VM mount my host /dev/sda1(ext4) as the root device, so i can both mount /dev/sda1 on host AND on VM. I expect when i change something via host in /dev/sda1, the VM will also detect that....
0
votes
0answers
84 views

systemd works on one machine, identical service/target files fail on another

I am new to systemd. I am trying to set up systemd so that it will start what effectively is an unattended kiosk application: Start only after Postgresql is loaded, start after my single named user ...
0
votes
1answer
44 views

“qemu-img”: overwriting a running OS?

Is it possible that I would issue a: qemu-img convert -f qcow2 -O raw sles12_3_custom.qcow2 /dev/sda while the original SLES11 is running? So I would overwrite a SLES11 OS, while it is running (...
0
votes
0answers
59 views

Connecting to a QEMU instance with FireFox over a tap interface

I'm running a webserver in a QEMU instance, but I cannot verify that everything is working as intended without being able to connect to the server with my web browser (firefox). I have configured a ...
1
vote
1answer
52 views

With KVM/Qemu is it possible to fake a complete disk layout for the guest?

What I am wondering is whether a QCOW2 (or any other format really) would allow me to fake a physical extent to the extent that I could mix and match files as backing store and partitions. That is to ...
1
vote
0answers
61 views

Can I interpret Grub2's post-MBR gap?

While setting up a RAW disk image for use in a QEMU-based virtual machine, I became frustrated because QEMU would load GRUB but then GRUB would not load a menu of OSes to boot into. I've come to the ...
4
votes
0answers
118 views

QEMU shared folder performance problem

I've got a Windows 10 virtual machine running on Ubuntu 18.04 host (QEMU 2.11). I've created a shared folder with the command line parameters -netdev type=user,id=smb0,smb=/mnt/ntfs,restrict=on -...
0
votes
1answer
67 views

Unable to locate package spice-vdagent in debian 9.9

There is another, self-answered, question with this title but there are several differences and the answers there did not work for me. My host is Debian 9, and so is my guest. I am not running a live-...
1
vote
0answers
18 views

How to “plug” a Qemu VM into host

I want to connect a QEMU iOS guest vm (using the new method of getting ios in qemu) to my host mac so that the guest is recognised as if it was an iphone plugged in via a cable. Is this possible?
0
votes
0answers
101 views

How to hide the titlebar for qemu-system

I am running QEMU via a shell script. I am not using a desktop environment, just a tiling window manager. Every time I launch a virtual machine, I need to press Ctrl+Alt+M to hide the titlebar. ...
1
vote
0answers
541 views

Qemu-kvm using virt-viewer vs remote-viewer

Host: Ubuntu 18.04 Guest: Ubuntu 10.04 I started a virtual machine with the following command line: qemu-system-x86_64 G.qcow2 -m 4096 -smp 4 -no-acpi -enable-kvm \ -name system76 -device ...
1
vote
1answer
320 views

No kvm related group, but module exists

I have installed qemu from source and /dev/kvm and kvm-intel module exist. However, there is no kvm or libvirt group in order to add users. $ grep virt /etc/group $ grep kvm /etc/group $ $ ls -l /dev/...
1
vote
1answer
703 views

nat configuration for qemu-kvm guest and host networks

Under an Ubuntu 18.04 host, I have set-up an Ubuntu 10.04 guest VM from a cloned HD. The VM fires up fine, I can ssh into it from the host, but it fails to communicate outside of the host. My ...
3
votes
1answer
370 views

How can I get sound from a Boxes VM?

I am running an Ubuntu 18.04.2 LTS VM on a PureOS 8.0 host, running GNOME Boxes 3.30.3 and a QEMU session broker. The VM has spice-vdagent 0.17.0 installed. I cannot get audio in the VM to play. I ...
1
vote
1answer
183 views

libvirt will not start VMs with “error: Invalid value '+cpu' for 'cgroup.subtree_control': Invalid argument”

On one workstation I have, libvirt has stopped working; it'll no longer start VMs: $ virsh --connect qemu:///system 'start westerley-pool' error: Failed to start domain westerley-pool error: Invalid ...
0
votes
0answers
563 views

How to configure the VGA mode on a qemu kvm guest?

Host: Ubuntu 18.04 64 bit Guest: Ubuntu 10.04 64 bit Virtualisation: Qemu-kvm > qemu-system-x86_64-spice --version QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.14) I tried both: qemu-...
0
votes
1answer
299 views

How to print dmesg output to host machine from qemu guest vm

Command Here is what I am doing # Step 1. In host machine $ qemu-system-x86_64 \ -enable-kvm -nodefaults -nographic -L /usr/share/qemu \ -m 8G -smp 4 -boot c \ -netdev user,...
1
vote
1answer
1k views

How to clone a single partition from a HD to a qcow2 disk image for use in qemu-kvm?

Edit (1&2): I cloned my working OS (powered off, HD mounted on USB drive, > dd if=/dev/sdc1 of=/data/system.img The original SSD is as follows: > sfdisk -d /dev/sdc # partition table of /...
0
votes
0answers
38 views

Compilation error on an old version of QEMU to support AFL

AFL requires the version v2.10.0 of QEMU to be able to work on close source binaries. However, on the compilation on QEMU i get the following error: In file included from /root/afl-2.52b/qemu_mode/...
0
votes
0answers
20 views

How can I setup qemu networking in vm box

Basically I have quemu running debian malta mips firmware and I want to be able to reach it from outside network and reach internet from inside. I tried bunch written articles like here and here and ...
1
vote
0answers
240 views

qemu kvm VM needs to access Internet by bridging wifi

I have some Qemu KVM virtual machines (CentOSs and Debians mostly) and my host is an Ubuntu. I configured the VMs networks with virtio virbr0, and I also made it work by creating a virtual interface, ...
1
vote
0answers
150 views

How to update libvirt to passthrough md-clear?

There are new 4 CVE CVE-2018-12130 CVE-2018-12126 CVE-2018-12127 CVE-2019-11091 Debian stretch kernel is vulnerable https://security-tracker.debian.org/tracker/CVE-2018-12130 Even if you get a ...
0
votes
0answers
493 views

libvirt: Permission denied for disk volume file

I'm trying to create a qcow2 volume with libvirt+qemu in a custom volume pool, then consuming that volume in a new domain. When trying to create the volume, I get an error from qemu-system-x86_64: ...
0
votes
0answers
556 views

Yocto “Failed to run qemu: Could not initialize SDL(x11 not > available)”

So I've got Yocto on a local build server, coz who wants that massive build chewing up their workspace amirite? Host and Server are Arch Linux 4.19.44-1-lts Anyway I am just running up the example ...
0
votes
0answers
1k views

How to set up functional private network bridge on qemu/kvm?

System My host is running Fedora 29, and my internet connection is wifi. Note that I am using X.org, not wayland; the SDL option in qemu doesn't work on wayland, and the curses option has trouble ...
1
vote
0answers
162 views

How to start X server in Debian Wheezy mips running on qemu?

I created a debian mips virtual machine by downloading qcow2 images from here. I then started the virtual machine by qemu-system-mips \ -m 256 \ -M malta \ -kernel vmlinux-3.2.0-4-4kc-malta \ -hda ...
1
vote
0answers
70 views

Spice Server Codec problem

I compiled(make) spice server source with option '--enable-gstreamer=0.10.36'. But As a result of debugging, I've found that 'default_video_codecs' still shows 'spice: mjpeg'. I want to know what ...
0
votes
1answer
60 views

rpmbuild qemu.spec without test [duplicate]

I am using qemu by compiling qemu.spec. I often run the command 'rpmbuild -ba qemu.spec' because I am changing the source frequently, but it seems to take a long time to complete because of the test ...
0
votes
0answers
110 views

Qemu multiple VM not working

I am using centos 7.4 on the host machine & using qemu 2.6. Below is the command I am using to bring up the VM's . When I bring up the VM individually it just works fine, only when I bring up both ...
2
votes
1answer
352 views

Understanding how virt-install connects the Ethernet interface in host machine with the Ethernet interface in the quest?

I installed Debian virtual machine with virt-install in a way that guest got one Ethernet interface named vnet0: $ virsh domiflist git-server Interface Type Source Model MAC ---------...
0
votes
1answer
212 views

qemu-system-x86 --enable-kvm Windows 2k12 R2 stuck at windows logo

I am having an issue with kvm-qemu. Host: Ubuntu Guest OS is win2k12 R2. When the VM is booted, some times it get stuck at windows log or it pass the windows log & get stuck at a black screen. I ...
0
votes
1answer
130 views

Boot failure with virtualized Windows 7

Ingredients: Running system w/ LinuxMint (main system) and other OS's among which is an old Windows 7 image. System boots via GRUB2 into Ubuntu, Windows with no issues. Here is the system's partion ...
2
votes
1answer
40 views

Finding performance bottlenecks on Red Hat server hosting KVMs with QEMU?

As a side task I administer a RHEL 7 server used as an internal KVM host. Now it runs eight VMs which, but for one, are idle most of their time, or at least not doing anything at all resource ...
1
vote
0answers
265 views

Qemu/KVM with hardware OpenGL rendering

I've seen that support for hardware accelerated rendering is getting mature in Qemu now but I'm confused about the best way to set it up, or if it's worth it compared to VMWare's 3D support. For ...
2
votes
0answers
174 views

QEMU: How to convert -net flags into -device & -netdev

I'm trying to emulate Raspberry Pi via QEMU and the following works for me: qemu-system-arm \ -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" \ -boot c \ -cpu arm1176 \ -drive "...
1
vote
1answer
230 views

Transparent x86 emulation using QEMU on Raspbian

I'm trying to setup transparent x86 emulation on Raspbian according to this tutorial: https://wiki.debian.org/QemuUserEmulation. The issue is that after enabling multiarch and running sudo apt-get ...
0
votes
0answers
74 views

“Disk I/O error” when trying to run OS via QEMU on Pi

I am trying to run Windows 98 on QEMU on my Pi using a project I found here: https://www.hackster.io/314reactor/windows-98-wrist-watch-15ecfd . When I run qemu-system-i386 -localtime -cpu 486 -m 96 -...
-1
votes
1answer
118 views

KVM-QEMU virtualization platform issue with creating guests of red-hat based distributions

I do use virtualization a lot , and of course my favorite tool is kvkm-qemu. However I am extremely frustrated with it lately, all my attempts to create a redhat based virtual machine with centos,...
0
votes
0answers
19 views

Create libvirt vm with a default network bridge

I'm currently trying to use a generic xml file to create virtual machines. My problem is that I cannot tell which adapter is present in the host system but I need a network bridge using the "default" ...
0
votes
0answers
148 views

Is there a security issue running libvirt-qemu as root to set rights on mounted host folder?

I'm trying to set up a server with 2 vms, which should be in productive mode later. I want to access some folders on the host, like log files and the webserver data folder, but the data on the host is ...
0
votes
0answers
56 views

Shrinking a qcow2 image when it contains an APFS filesystem

I'm not having much luck re-shrinking a qcow2 image; it contains an APFS filesystem and I suspect this is the issue. Has anyone successfully done this? I did zero out the free-space as usual and have ...
-7
votes
1answer
368 views

Does Docker work with VirtualBox but not with KVM/QEMU?

Docker can creat virtual machines to be used as nodes in swarms. The machine drivers contains VirualBox but no KVM/QEMU. Does it mean that virtual machines created by KVM/QEMU can't be used as ...
-1
votes
1answer
123 views

QEMU command line hard disk

I've installed Windows 10 as guest. Everything is OK. But I would like to use my physical hard drive (/dev/sdc) with files. When I start the virtual machine only shows 'Booting from hard disk'. I use ...
-1
votes
1answer
469 views

Is KVM a hypervisor?

https://en.wikipedia.org/wiki/Hypervisor#Classification says QEMU is type 2 hypervisor, and KVM can be both type 1 and 2 hypervisor: The distinction between these two types is not always clear. ...
2
votes
1answer
146 views

How can I not give a virtual graphics card at all to your VM and have the console on serial?

Stéphane Chazelas wrote that Can I start Debian on a text virtual console in a virtual machine? You could also not give a virtual graphics card at all to your VM and have the console on serial. ...
0
votes
1answer
511 views

QEMU VM has no IP

I tried to run a VM on QEMU, but the VM is up without an IP address associated with eth0. I configured the bridge and tap interface on the host, and I can see that: brctl show bro bridge name ...

1 2
3
4 5
13