Questions tagged as ['qemu']

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?
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?

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 ...

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 ...

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. ...

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 ...
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:
- There is a port given in the output if I ...
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 ...
I am trying to run RISCV using Qemu on Ubuntu machine 18.04. For the same I followed below tutorials:
- https://risc-v-getting-started-guide.readthedocs.io/en/latest/linux-qemu.html
- https://github.com/riscv-admin/risc-v-getting-started-guide/issues/29#issuecomment-706944219
But after following all the steps, am facing the issue (Please look below for complete boot log):
[ 0.400573] Kernel panic - not ...
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 ...
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 ...
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 ...

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 ...

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 ...

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 ...
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 ...

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' ...
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 ...

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:
But none of them work. I have installed spice-vdagent
and check ...
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

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 ...
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 ...
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
...
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 ...
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 ...

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 ...

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"/>
...
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 ...
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:
On a fresh installation of Ubuntu 20.04 Desktop, I installed QEMU, KVM,
bridge-utils
andvirt-manager
with the following command:sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils ...