Questions tagged as ['qemu']

QEMU is a cross-platform processor emulator.
Score: 0
Sharing files between Ubuntu and Windows in Qemu?
do flag

I use Qemu and Virtual Machine Manager to run Windows 10 from my Ubuntu. I can share data between the two systems by redirecting a USB stick. Is there an easy way to share a small amount of data without a USB stick?

Score: 1
Cloonix avatar
No login prompt on console Ubuntu 20.04.3 LTS (running on qemu Synology)
it flag

With one of the last Ubuntu updates I can't login on console anymore, because I'm getting no login prompt.

I'm running Ubuntu 20.04.3 LTS on a Synology Virtual Machine and try to connect to the console via the web interface. I only see some kernel messages.

I tried to press Ctrl+Alt+F1 / Ctrl+F1, but no success. I guess the web interface doesn't send these special key combination correctly.

Any ideas?

Score: 0
Ubuntu 20 LTS. How to adjust serial-getty@ttyAMA0.service timeouts?
cn flag

I am running the ARM64 build of Ubuntu 20.04 under QEMU. ~50% of the time the boot process reports this:

[ TIME ] Timed out waiting for device /dev/ttyAMA0.
[DEPEND] Dependency failed for Serial Getty on ttyAMA0.

which means there is no login prompt in the QEMU terminal. SSH access is then required to start the daemon manually:

$ sudo systemctl start serial-getty@ttyAMA0.service

How can I fix this? And w ...

Score: 0
qemu adding a non bootable floppy raw format image into an existing virtual machine
es flag

This is the issue: I created a floppy image which I want to add to an existing virtual machine. I added the disk from the virtual machine manager but when I boot the vm I get this error:

Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions.

I found many threads about how to remov ...

Score: 0
Weird Network slowness on qemu vms
in flag

I've created two qemu VMs using below command. Both VMs are on virbr0 bridge.

qemu-system-x86_64 \
  -drive "file=bionic-server-cloudimg-amd64.img,format=qcow2" \
  -drive "file=${user_data},format=raw" \
  -device rtl8139,netdev=net0 \
  -enable-kvm \
  -m 2G \
  -netdev bridge,br=virbr0,id=net0 \
  -serial mon:stdio \
  -smp 2 \
  -vga virtio;

IP of first vm is 192.168.122.76 and for second one is 192. ...

Score: 1
QEMU Guest hat not initialized the display (yet) | Ubuntu 21.10 arm64
in flag

Actually I have a problem by using qemu on my Windows 10 to built an Ubuntu arm64 Image. I creating the qemu VM with packer, it works fine, but it still hang after typing the boot parameters.

After starting my Packer, I getting Popup qemu Display with following error:

-> Guest has not initialied the display (yet) <-

I trying some Quemu arguments for Display setting, but it still not work hopefully  ...

Score: 0
dman avatar
Qemu how to get a port for VNC and stop the terminal?
jp flag

Using Ubuntu 20.04, I am starting my Ubuntu server with:

qemu-system-x86_64 \
  -enable-kvm \
  -cpu host \
  -smp 11 \
  -drive format=raw,file=/mnt/kvm-guests/work.img,if=virtio \
  -net nic,model=virtio,macaddr=ec:8d:2c:f3:2a:7c \
  -net tap,ifname=tap2,script=no,downscript=no \
  -runas kvmuser \
  -nographic \
  -m 30000 &

How do I make it to where:

  1. There is a port given in the output if I ...
Score: 0
Daniel Mccullock avatar
QEMU Package Missing
cn flag

Our open source project has been using Github Actions to run an Image builder. We are using Ubuntu latest and we have two deps that get updated which are qemu and qemu-user-static. Up until a couple of days ago this was working but now it seems the packages it was and is still trying to request is missing from the repository. The packages are http://azure.archive.ubuntu.com/ubuntu/pool/main/q/qemu/qemu_4 ...

Score: 1
rushi47 avatar
Unable to boot RISC-V with Qemu on Ubuntu 18.04
cn flag

I am trying to run RISCV using Qemu on Ubuntu machine 18.04. For the same I followed below tutorials:

But after following all the steps, am facing the issue (Please look below for complete boot log):

[ 0.400573] Kernel panic - not  ...
Score: 0
Calyo Delphi avatar
qemu+kvm, unhelpful virt-install --location error
pr flag

I have fought with qemu and virt-install to no avail, and I am completely stuck with an unhelpful error message that gets me absolutely nowhere.

FIRST, some necessary system configuration:

Base metal operating system is Ubuntu Server 20.04 LTS. No desktop environment. VM operating system will be Ubuntu Server 18.04 LTS. No desktop environment.

I have a 60GB LVM at /dragonode that I intend to use as  ...

Score: 0
flyinggreg avatar
Virt-manager missing architecture types
id flag

I am running 21.10 with virt-manager 3.2.0. I have installed: qemu-system-aarch64 qemu-system-i386 qemu-system-x86_64-microvm qemu-system-arm qemu-system-x86_64 qemu-system-x86_64-spice

dpkg -l | grep qemu-system:

    ii  qemu-block-extra                           1:6.0+dfsg-2expubuntu1.1                   amd64        extra block backend modules for qemu-system and qemu-utils
ii  qemu-syst ...
Score: 0
MrCalvin avatar
Manually download multipass VM images
cn flag

Not sure if multipass run VMs locally or in the cloud, but if it is running locally is must download e.g. qemu2 images first. Can one download these image manually? Is there a simple URL to e.g. Ubuntu 20.04 LTS?

(Just wanna test something in 20.04 and wanna spin up a VM quickly on my current running KVM/QEMU hypervisor and it would really be easy if I could get my hands on a pre-made Ubuntu qemu ...

Score: 0
Ubunut 21.10 IPv6 only KVM/qemu VM With CloudInit: no ping / ssh possible
pl flag

I am running Proxmox and i have a Ubuntu 21.10 VM with only a public IPv6 address that is setup with CloudInit (using ubuntu-21.10-server-cloudimg-amd64-disk-kvm.qcow2).

So no IPv4 address.

When i try to ping or SSH from my home pc (IPv6 works) i am not getting a respond and cannot login. When i create a VM with AlmaLinux IPv6 only this works.

The IPv6 address is pushed with CloudInit and i can see tha ...

Score: 2
Availability of liburing in Ubuntu 20.04
ng flag

I am building qemu with --enable-linux-io-uring option on Ubuntu 20.04, which requires liburing. But if I tried to install packages liburing1 and liburing-dev using apt, I was told "E: Unable to locate package liburing-dev or liburing1". I checked Ubuntu package official website, these packages are really not shown under focal distribution. So I wanna 1) confirm that packages liburing1 and liburing-dev ...

Score: 0
Cannot install build dependencies of qemu: "you have held broken packages"
ng flag

When I run

sudo apt-get build-dep qemu

on a ubuntu 20.04 machine, I got the following errors:

Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have  ...
Score: 1
Corey avatar
oz-install failed with message "qemu-system-x86_64: warning: host doesn't support requested feature"
cn flag

I was using oz-install to automize the generation of raw images, below are my config files.

corey.tdl

<template>
   <name>corey_x86_64</name>
   <description>CentOS 7 template</description>
   <os>
      <name>CentOS-7</name>
      <version>789</version>
      <arch>x86_64</arch>
      <install type='url'>
        <url ...
Score: 2
Which package is pango that is needed to compile Qemu with --enable-gtk enabled?
ng flag

I'm compiling Qemu with --enable-gtk enabled. .configure gives me the following error messages:

Run-time dependency gtk+-3.0 found: NO

../meson.build:1042:2: ERROR: Could not generate cargs for gtk+-3.0:
Package pango was not found in the pkg-config search path.
Perhaps you should add the directory containing `pango.pc'
to the PKG_CONFIG_PATH environment variable
Package 'pango', required by 'gdk-3.0' ...
Score: 0
wynxel avatar
Qemu thunderbolt audio device freezes on windows guest
cn flag

I have Ubuntu 20.04 hosted on HP elite book G8 (i7 1185G7) and Windows 10 guest through kvm. I need to connect a Thunderbolt audio device (Presonus Quantum) to windows. I did it using a virtual machine manager (found an audio device using lspci and added it to the machine in VM manager). I installed the official device driver in windows and the device is recognized and working. However, the audio devic ...

Score: 0
Copy & paste does not work between host and guest ubuntu, spice installed
ng flag

I have a QEMU VM, both the host and guest OS being ubuntu 20.04. I wanna enable copy & paste function between the host and guest. I have read the answers of following two thread:

  1. How can I copy&paste from the host to a KVM guest?

  2. https://unix.stackexchange.com/questions/109117/virt-manager-copy-paste-functionality-to-the-vm

But none of them work. I have installed spice-vdagent and check ...

Score: 1
AnonymousWebHacker avatar
Export or convert files [ovf - mf - vmdk] to img
vn flag

An exported VM of which I have 3 files.

  • os.mf
  • os.ovf
  • os-disk1.vmdk

I want to convert this to a * .img image

Score: 0
Does Ubuntu expressly not use printf for output at boot? Can it?
ng flag

This question occurs to me when I am trying to have the guest Ubuntu OS display boot messages in QEMU VM (like [ 2.34567890123] ... and [ OK ] ....). Here I have a QEMU VM, both the host and guest being Ubuntu 20.04. To display guest's boot messages in host's console (i.e., command line that starts qemu), I set some lines of the guest's /etc/default/grub file as follows:

GRUB_TIMEOUT_STYLE=menu
GRUB_T ...
Score: 0
mgw avatar
QEMU/KVM single file from Ubuntu host's shared folder not available in Windows guest
cn flag
mgw

I'm at a loss with the following setup:

My Ubuntu server runs a native QEMU/KVM based Windows 10 (no Virtualbox or alike!). Two folders of the server are shared with the Windows guest. Everything is fine but one single file that doesn't show up in the Windows guest. Moving or copying this file into another (shared) folder followed by a restart of the guest doesn't help. The file's attributes are ide ...

Score: 0
Divija Gogineni avatar
Failed to connect socket /tmp/nvme_server: No such file or directory : QEMU
ph flag

I am trying to create a VM using qemu with following command:

./qemu-system-x86_64 -hda /home/user/ubuntu-test.img -m 8G -smp 4 -monitor stdio -serial pty -chardev socket,path=/tmp/nvme_server,nowait,id=nvme_server -chardev socket,path=/tmp/dma_server,nowait,id=dma_server -device nvme_ctrl,serial=deadbeef,cmb_size_mb=1024,chardev=nvme_server,dmadev=dma_server -gdb tcp::12345 -D my.log --enable-kvm
 ...
Score: 0
Divija Gogineni avatar
How to login into VM from host which is a remote server?
ph flag

My host machine is a remote server on which I created a VM using qemu. I created the VM using the following command:

./qemu-system-x86_64 -hda /home/divija/images/xenial-server-cloudimg-amd64-disk1.img -cdrom /home/divija/images/ubuntu-16.04.6-server-i386.iso -m 8G -boot d -smp 4 -monitor stdio -net user,hostfwd=tcp::2222-:22 -net nic

I see the result:

QEMU 2.9.91 monitor - type 'help' for more i ...
Score: 0
Vahid Alimohamadi avatar
shrink ext4 boot partition inside qemu image
nl flag

I need to reduce my bootable qemu image (which downloaded from glance) virtual size from 12G to 2G:

$ qemu-img info w.img
image: w.img
file format: raw
virtual size: 12 GiB (12884901888 bytes)
disk size: 1.67 GiB
$ sudo virt-df -h w.img
Filesystem                                Size       Used  Available  Use%
w.img:/dev/sda1                           11G        1.4G        10G   13%
w.img:/dev/sd ...
Score: 0
'Your Network is probably not using the DHCP protocol' while installing ubuntu on a virtual machine (turned out to be host machine difference)
za flag

I'm now installing Ubuntu 20.04 on a virtual machine using qemu (I've done this 2-3 times before). But this time I'm getting this message:

Your Network is probably not using the DHCP protocol. Alternatively, the dhcp server may be slow or some network hardware is not working properly.

I'm doing this remote from home so I can't set the network to my host for DHCP now. Is there any way I can make the hos ...

Score: 2
qemu failed to passthrough a tpm device
cf flag

Hi i'd like to install windows 11 on kvm.

I have tpm enabled on my system. ubuntu 21.04 (qemu 5.2+dfsg-9ubuntu3.1)

ls -ls /dev/tpm*

0 crw-rw-rw- 1 root root  10,   224 Sep 25 18:18 /dev/tpm0
0 crw-rw-rw- 1 tss  tss  253, 65536 Sep 25 18:18 /dev/tpmrm0

the w11 xml file contains the passthrough code:

<tpm model="tpm-tis">
  <backend type="passthrough">
    <device path="/dev/tpm0"/>
  ...
Score: 0
FAK avatar
Trying to install Windows 7 PE Lite on KVM Qemu but it goes straight to: "Press esc in 4 sec to skip startup.nsh or any other key to continue."
cn flag
FAK

I am trying to install a Windows VM on Qemu in ubuntu using Virt Manager, but it gives me the below screen:

enter image description here

And when I type exit, it will take me to the below screen:

enter image description here

Please suggest a fix.

Score: 0
jabroni avatar
Give static IP's to multiple QEMU Virtual Machines
cn flag

my networking knowledge on linux is pretty limited and I have been trying to assign static IP addresses to each of my VM's as they need to communicate with one another.

I have been reading some networking QEMU documentation regarding TUN/TAP interfaces, as well as configuring br0 with qemu-ifup and qemu-ifdown. However, I've just recovered from completely losing my wifi connection. So I have deci ...

Score: 0
Fazle Rabbi avatar
Guest can't access internet in KVM NAT
hu flag

Guests can't access internet in KVM NAT network. Guest can't ping host, the home router and other hosts on the lan but can't access website or ping DNS like 1.1.1.1 or 8.8.8.8

Step to reproduce:

  1. On a fresh installation of Ubuntu 20.04 Desktop, I installed QEMU, KVM, bridge-utils and virt-manager with the following command: sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils ...