Questions tagged [qemu]
QEMU is a cross-platform processor emulator.
464
questions
0
votes
0
answers
42
views
booting from qemu with self-made bare minimum OS
I wrote a minimal OS to boot from in nasm.
org 0x7C00 ;because the OS is loaded at address 0x7C00
bits 16 ;because we start in 16 bit mode
main:
hlt
.halt
jmp .halt
times 510-($-$$) db 0
dw ...
0
votes
1
answer
31
views
"libvir" not found in "sudo apt install libvir"
I want to install Qemu on ubuntu 22.04 following this tutorial
However, when I enter sudo apt install libvir I get
E: Unable to locate package libvir
Does anyone know whats wrong with my system? (I ...
-1
votes
0
answers
44
views
QEMU on arm host
I have Orange Pi 5 Plus running Orangepi5plus_1.0.8_ubuntu_jammy_server_linux6.1.43.img
Linux orangepi5plus 6.1.43-rockchip-rk3588 #1.0.8 SMP Sat Feb 3 00:04:38 CST 2024 aarch64 aarch64 aarch64 GNU/...
0
votes
0
answers
12
views
Possible to copy directory of local packages into qemubuilder?
I am looking at isolating my pbuilder scripts a bit further, it does explicitly say it does not support bindmounts. But is it possible to not bindmount but copy an entire directory into the image ...
0
votes
0
answers
83
views
Installing macvtap on Ubuntu 23.10
I am trying to install a virtual machine by virt-install and it seems there is some problem by configuring macvtap interface:
virt-install --noautoconsole --name fgvm --memory 4096 --vcpus 4 --virt-...
0
votes
0
answers
50
views
UTM Ubuntu22.04 of arm64 Booting Configuration Issue
I'm facing an issue with UTM in MacBook with M2 chips while running the arm64 version of Ubuntu 22.04(from https://cdimage.ubuntu.com/jammy/daily-live/current/). I install this iso image in UTM as ...
0
votes
0
answers
66
views
AMD 7800XT GPU passthru Virt-manager Ubuntu 22.04LTS dont properly work
Intro:
Hello,
I have two GPUs, one NVIDIA 3060 and a AMD 7800XT. I would like to have the nvidia to the host itself, and passthru the amd GPU to a W11 VM in virt-manager. I have already did the ...
0
votes
2
answers
74
views
How to allow user to SSH-connect to VM deployed on host without access to host itself
I have an UbuntuOS host (let say, 150.15.15.15) and another UbuntuOS virtual machine (192.168.7.2) deployed on that host. I want to configure SSH-tunnel on host so that remote user can connect to VM ...
0
votes
1
answer
281
views
Trying to share a directory, that is located in another hard drive connected to my computer, with a Windows 10 guest on QEMU/KVM
I'm using Ubuntu 23.10 and Virtual Machine Manager 4.1.0.
When I try to add the directory that is located on another hard drive in Virtual Machine Manger, I get the following error: "Error ...
0
votes
0
answers
223
views
VirtualBox vs Qemu/KVM performance - Ubuntu 22.04 guest on top of Ubuntu 22.04 host
I'm currently using Virtualbox in Ubuntu 22.04 for VMs running also Ubuntu 22.04. I'm not using it for games, so no need for PCI passthrough. Only web browsing or some P2P network transfers. My ...
0
votes
1
answer
418
views
Can I passthrough GPU into kvm without using vfio/iommu?
Most of the tutorials I have seen are based on IOMMU to implement GPU passthrough. However, is there a way to bypass the IOMMU? My kernel is 5.15.126
Update 1:
From libvirt.org I found that
a <...
0
votes
1
answer
24
views
Small window starts to appear after boot up
It starts to appear after boot. I did feel a bit of slowness when I use the machine.
Using Lunar, any idea how to check it, remove it, fix whatever is going on.
0
votes
0
answers
358
views
Attempting to use LibVirt with QEMU on Ubuntu 22.04 without KVM
My understanding is that I can use LibVirt and QEMU on Ubuntu 22.04 without having to use KVM. In order to do this I'm using the following commands:
#!/bin/bash
sudo apt-get -y update && sudo ...
2
votes
2
answers
5k
views
How do I install qemu on Ubuntu 23.10?
I performed a minimal install of Ubuntu 23.10 on a typical desktop PC (x64). I've made no changed to /etc/apt/sources.list from the default. I want to set up some VMs, so I typed:
sudo apt install ...
0
votes
0
answers
80
views
Multipass with QEmu driver: how to access usb camera
on my Asus rog laptop with ubuntu 23.10 I installed the ROS (robot os) image from multipass, as explained in this official guide https://ubuntu.com//blog/ros-development-on-linux-windows-and-macos .
I ...
0
votes
0
answers
134
views
im trying to install flatpak on qemu utm ubuntu mac m1 jammy but i get errors
When I install flatpak (attempt to) I get these errors:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
...
0
votes
0
answers
346
views
How to connect via SSH to different Qemu instances
I want to connect from my local laptop to remote desktop (let say 170.170.70.70) with two Qemu instances started with parameters (most parameters skipped, I left only those that differs)
qemu-system-...
0
votes
0
answers
190
views
Why can't I set "modprobe vfio enable_unsafe_noiommu_mode=1"?
Running Ubuntu 22.04 with kernel 5.15.0-83 inside a QEMU VM:
guest$ sudo modprobe vfio enable_unsafe_noiommu_mode=1
guest$ cat /sys/module/vfio/parameters/enable_unsafe_noiommu_mode
N
It's not ...
0
votes
0
answers
559
views
"Enable Shared Memory" option missing from Virtual Machine Manager
There's an option in Virtual Machine Manager to share your memory. It's called "Enable shared memory". See #2 below:
This option is missing in my instance of QEMU under Virtual Machine ...
0
votes
0
answers
172
views
Guest VM with window OS failed to installed on ubuntu 22.04 host
I am trying to create VM with window OS on ubuntu 22.04 host. My installation crashed with blue screen and the error is "system exception thread not handled". VM created successfully on ...
1
vote
0
answers
170
views
Ubuntu 22.04 LTS Bridged networking host DNS not working after reboot
I seem to have a bit of an odd situation here. I just setup bridged networking on my Ubuntu desktop using nmcli, and everything was great until I rebooted. I set it up so that the bridged network ...
0
votes
0
answers
533
views
Soundless QEMU/VM win11
I'm pretty much a novice when it comes to using LiGNUx and I've just gone through a painstaking process in order to get a Windows 11 virtual machine working with a totally legit ISO file without ...
0
votes
0
answers
18
views
Synchronise interface names attached to IP addresses between host Ubuntu and QEMU guest Ubuntu
I've set up a second bridge on QEMU using a bridge named virbr1. In my host OS I have:
virbr1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.1 netmask 255.255....
0
votes
0
answers
243
views
How to load my Linux kernel from a different load address i.e. any manually specified address?
I booted the Ubuntu cloud image(https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64-disk-kvm.img) from qemu. I cloned qemu from https://gitlab.com/bwidawsk/qemu. git branch is * ...
0
votes
0
answers
192
views
Will the recently-released AMD Epyc 4th Gen CPU support be added to the qemu package in 22.04?
I noticed that Qemu has added a feature to support AMD Epyc 4th Genoa CPU.
However, upon checking the change log up to qemu1:6.2+dfsg-2ubuntu6.11 in the Ubuntu 22.04 (jammy) Repo, I found that the ...
0
votes
0
answers
577
views
Autoinstall Ubuntu Server 22.04: Block probing did not discover any disks big enough to support guided storage configuration
Context
After running the the below bash script to auto-install an Ubuntu server 22.04 on Qemu using virt-install, I get the error:
Block probing did not discover any disks big enough to support ...
0
votes
0
answers
21
views
print branch taken or not in qemu plugin
How to print branch taken/not taken if branch instruction
in the qemu execlog plugin?
api.c does have a get_ms option but on using it it shows the error:
undefined symbol: get_ms
0
votes
0
answers
164
views
How to specify from which Numa node the kernel should boot from?
I have booted ubuntu os using qemu and assigned two NUMA nodes to it.Each NUMA node 0 has 4cpus and 3GB memory whereas NUMA node 1 has no cpus and 3GB memory. The kernel is booted using NUMA node 0. ...
0
votes
1
answer
86
views
Can't use --mode in virsh shutdown
Any mode gives me:
error: unsupported flags (0x4) in function qemuDomainShutdownFlags
Is there a package I'm missing?
1
vote
0
answers
799
views
qemu: drive with bus=0, unit=0 (index=0) exists
I am trying to enable trace events using the trace-file on option in qemu.
When I executed the following command:
sudo qemu-system-x86_64 -drive format=raw,file=/var/lib/libvirt/images/ubuntu-box1-vm-...
1
vote
1
answer
378
views
Stuck on the 'Try or Install Ubuntu' screen when booting Ubuntu in qemu emulator on Linux server. How do I troubleshoot?
I am unable to boot ubuntu ISO Image from qemu on Linux Server.
Aim : I am trying to boot a ubuntu virtual machine from qemu emulator on Linux server.
I tried the following commands.
qemu-img create -...
0
votes
0
answers
188
views
Why does the Size increase but not Free space in cfdisk?
I'm running ubuntu in a VM on Unraid. I have increased the VM's capacity with:
qemu-img resize path/to/raw/img/vdisk.img +100G
After restarting I can see in the UI that the space has been allocated, ...
0
votes
0
answers
86
views
virt-install doesn't create .img file on Ubuntu 22.04
In Ubuntu 14.04 virt-install of kvm ISO used to create .img automatically in location /var/lib/libvirt/images/ but in Ubuntu 22.04 even though vm installation was successful, the .img file didn't get ...
0
votes
1
answer
257
views
Invalid YAML: inconsistent indentation: addresses: [192.168.1.120/24]
In my host Ubuntu 22.04 Desktop, I'm creating 2 bridges for eth0-br0 and eth1-br1.
br1 needs LAN access from the host machine 192.168.1.120/24 to the guest machine 192.168.1.1/24.
I haven't been able ...
0
votes
0
answers
258
views
Docker Desktop: How to make it exit completely?
Question: How do I make Docker Desktop and all of its associated processes exit on command?
Context:
I'm running Kubuntu 22.04 and using Docker Desktop for some local development.
When I close Docker ...
0
votes
1
answer
113
views
libvirt-kvm and libvirt shows up as login profiles on Kubuntu 23.04
Last night, I want to install Qemu on my Kubuntu 23.04.
I found this article to follow along to install Qemu on my computer:
Install and Use Qemu on Ubuntu
After reboot my pc, I notice libvirt-kvm ...
0
votes
0
answers
212
views
Trying to get Internet working on a new W11 VM installed with QEMU and Virtio
I'm a slightly more experienced Linux noobie :-)
So I have
a new Ubuntu 22.04 server I installed XFCE4 and the ubuntu desktop
Installed QEMU/KVM virtmanager
Installed Win11 with virtio drivers using ...
1
vote
0
answers
100
views
Automatically spawning a clean Ubuntu 22.10 installation in Qemu?
After having manually set up an Ubuntu 22.10
Installation
sudo apt install spice-vdagent # To allow copy paste into QEMU Ubuntu
sudo apt-get install qemu-kvm
cd ~/Downloads
Then one can manually ...
1
vote
2
answers
501
views
SGX Drivers are not showing with QEMU VM
I am trying to setup Ubuntu 20.04 VM with QEMU on Ubuntu 22.04, the VM is up but /dev/sgx_enclave is not present inside VM,
When I checked the EPC size, it returned "There are zero EPC sections&...
0
votes
1
answer
261
views
Mouse scroll wheel works selectively in Ubuntu VM
I'm getting an odd issue in my Ubuntu 22.10 virtual machine running in Proxmox.
My mouse is a Razer wired mouse that's showing up in Ubuntu as "VirtualPS/2 VMWare VMMouse"
In Settings > ...
1
vote
1
answer
1k
views
How to install qemu-kvm on kinetic when package not showing up in apt?
I'm going around in circles trying to install qemu so I can run a lxd vm.
lxd gives me the error
Error: Failed instance creation: Failed creating instance record:
Instance type "virtual-machine&...
0
votes
1
answer
409
views
Converting Ubuntu-Minimal 22.04 cloud image from .img file to VirtualBox .vdi disk image
I'm trying to use Ubuntu-Minimal 22.04 pre-built cloud image in VirtualBox. I've dowloaded .img file which (according to file util) has QEMU QCOW2 Image (v2) so I'm trying to convert it using qemu-img ...
0
votes
0
answers
97
views
remote-viewer swapping monitors at each restart
I've setup a machine with Ubuntu 22.04 that should run an old Windows XP (because we need that old and obsolete version of windows, so don't tell me that I have to upgrade to something new, it's not ...
0
votes
1
answer
956
views
How to install QEMU on Ubuntu Server?
All the info I can find do something like this:
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients
But when executing it shows it will install a LOT of packages that are for systems with ...
1
vote
0
answers
27
views
How do I move my default virtual bridge to my NIC team
I'm new to Ubuntu and I've been asked to spin up a host server for some VMs. My Ubuntu 22.04 server OS is installed and I have my hypervisor installed and working. I can even create VMs that can ...
0
votes
1
answer
3k
views
How do I install virtio GPU guest drivers for ARM/aarch64 Ubuntu virtual machine
I am using qemu (UTM) to run a Ubuntu virtual machine on an Apple Silicon device. The guest operating system is the ARM/aarch64 version of Ubuntu 22.04.
I would like to be able to use virtio to allow ...
0
votes
1
answer
280
views
QEMU+KVM: Two errors after running virsh list --all, seems to be permission error
after running virsh list --all, I get the following errors:
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
This is ...
4
votes
0
answers
912
views
Unable to start QEMU VM with SDL display due to Apparmor: cannot load AppArmor profile 'libvirt-32963ecb-fd2f-454c-93a6-c818af618ba4'
I am trying to run my virtual machines in virt-manager using SDL as my display, rather than a spice server.
The VMs boot flawlessly with spice but when I switch its display to SDL I get the following ...
0
votes
0
answers
1k
views
ubuntu22.04 pkcs11-tool --module /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so -L gemalto gemplus token not recognized
I'm trying to present a virtual smartcard to a ubuntu virtual machine. But the smartcard isn't recognized by the vm. Although an Almalinux 9 vm does recognize the virtual smartcard.
I'm using libvirt'...
3
votes
0
answers
229
views
Screen locked on desktop resize (aarch64 virtual machine)
I use Ubuntu 22.10 (and used all previous versions) in various environments, mostly virtual machines. I just ran into a new unexpected and annoying behavior on aarch64 (64-bit Arm).
When I resize the ...