Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all 4211 articles
Browse latest View live

Qemu Backport: virtio-pci: fix use of a released vector

$
0
0
Hi,

I'm running Ubuntu 24.04.1 LTS with QEMU 1:8.2.2+ds-0ubuntu1.2 and running into this QEMU issue which results in the KVM VM crashing on boot:

https://gitlab.com/qemu-project/qemu...d263f1d22507c0

Would it be possible to get this backported into the QEMU Packages for Ubuntu 24.04?

Much appreciated,

prk.

LXC Ubuntu container packages for installation

$
0
0
I've created many instances of Ubuntu images using the LXD CLI and experimented with them. However, when it comes to configuring these system containers I'm a noob.
I had thought that when inside a container, that I could use apt-get for instance, to install packages.
For instance, I'd like to have GCC and net-tools installed in my container but there appears to be no internet access back through my host adapter.
I've done google searches for this kind of thing and looked at the doc but nothing specifically addresses my problem which seem fundamental.
Obviously I'm missing something here. Can anyone direct me to documentation or examples to get me rolling?
Should I be using the lower level tools i.e. lxc-* or can I use the lxc commands in the CLI (LXD) to accomplish what I'm trying to do?
Thanks a lot in advance.

VirtualBox dkms

$
0
0
:-k

Hello!

I do not know what I could do now.

Does anyone know what to do?

-Rachel
Attached Images

Ubuntu VM Screen flickering

$
0
0
I am running Ubuntu as a Virtual Machine in Virtualbox with a host machine Manjaro OS.


The screen on the VM flickers especially when I move it to the corners.


I have read something about disabling Wayland but I don’t know how to do that and whether it is something you do in the host or guest OS.

[ubuntu_mate] VM Shutsdown Host

$
0
0
I have a request from a neighbour to build a win10 machine - all the machine is used for is to play microsoft solitaire collection and use email (I assume outlook). I plan to build a ubuntu mate 22.04 machine and have a win10 qemu/kvm machine running inside. I have asked the question before re launching the VM automatically at start-up so it appears as if the PC is a win 10 machine (user non-tech 80 year old who knows nothing about PCs). My question here is, can I have a script on the host that will shut the host down when the user shuts down the win10 vm? On a number of machines I 'look after' for various neighbours, who use ubuntu without any virtualisation, I run a script at shutdown that backs-up and updates their PC - the script includes the lines:

sudo apt --yes update
sudo apt --yes upgrade
sudo apt --yes autoclean
sudo apt --yes autoremove


and eventually

shutdown -h now

If I can write a script that will shut down the host when the VM shutsdown it would be nice to include these lines so the ubuntu host is updated without any user intervention.

[ubuntu] Installation of linux mint in virtual box

$
0
0
Since long I'm using Linux Mint in Oracle VM. But since up-gradation of Ubuntu to 24.04, it was running slow and shut down of machine was not smoothly like earlier. Therefore, I installed Linux Mint afresh. But now whenever I start the virtual machine every time it boots from the iso disc which is abnormal. Even Guest Additions also couldn't be installed. How to fix it?

No VoIP after starting a VM on VirtualBox

$
0
0
Hello everyone,

I’m an apprentice at my company, and as mentioned above, one of our employees is no longer able to make calls via the browser(3CX). It rings, but as soon as they pick up, there’s no sound in either direction. While 3CX isn’t working, other audio sources and video chats are working fine.
I’ve already tried reinstalling VirtualBox and opening the necessary ports, but nothing has helped so far. The problem only occurs when VirtualBox is running and a VM is launched.

The employee is using Ubuntu 22.04.4 LTS and VirtualBox 6.1.50_Ubuntu r161033. The VM's are W10 and W11.

Has anyone had similar experiences and can offer any advice?

Best regards

Virtual Ubuntu 24.04 LTS on UTM on iMac24 has no WiFi

$
0
0
I am trying to install WiFi drivers on my iMac24 for Ubuntu.

I have the internet on the machine via an Ethernet adapter over a thunderbolt bridge so all packages are up to date.

In fact, I started with the UTM image for 22.04 then updated all packages and then allowed it to upgrade to 24.04 (which then also needed package updating).

as a result there was no opportunity to select the third party drivers for media and WiFi.

1. How do I find out which WiFi card I am using on the Mac?

2. How do I then install the drivers to recognize the WiFi card.

All my searching poiints me to using "lspci | grep Network" but this returns an empty result.

Any help appreciated.

Geoff

VM Networking Issue

$
0
0
I have an Ubuntu guest running on a Proxmox host. After a recent update, it can no longer reach the local network. It gets an address and route via dhcp, but then is unable to ping the gateway. When pinging the hypervisor's address, it drops a large percentage of packets.

Everything was working well on the system until a reboot, so I suspect it was an automated update that has caused the issue.

Any ideas?

Ubuntu 24.04 inVMWare Workstation 17.6 says virtualization not supported

$
0
0
Hi

I have VMWare Workstation 17.6.0 that has Ubuntu 24.04 installed. This VMWare Workstation is installed on Windows 11 (Host). Virtualization (VT-x) is enabled on the host (Windows 11). In VMWare, when trying to create a device in Android Studio (2024.1.1), Android Studio complains that hardware virtualization is not supported.

HTML Code:

"Unfortunately, your computer does not support hardware accelerated virtualization" along with
"Your CPU does not support required features (VT-x or SVM)"

Any ideas on how to get VMWare Workstation to recognized that the Window host has the virtualization enabled?


Thanks...

NetworkManager-wait-online.service Causing Delays - How to Resolve?

$
0
0
Hello everyone,
Hello everyone,
I'm currently running Ubuntu and experiencing a significant delay during startup due to the NetworkManager-wait-online.service, which seems to hang for around 2 minutes waiting for network connectivity. However, I don't need the system to wait for network connections during boot.
I've tried disabling the service using the following commands:
sudo systemctl disable NetworkManager-wait-online.service
sudo systemctl mask NetworkManager-wait-online.service


But even after disabling and masking the service, the delay remains when I reboot the system, and the service seems to continue running as if I hadn't disabled it.

Thanks a lot

Added kvm.rules, now my server won't boot

$
0
0
Hi all,
I've been trying to run a qemu for several days, and running into the error "qemu-system-x86_64: failed to initialize kvm: Permission denied". At first, I thought it was a simple permission error, but I'm in the kvm group.

I spent all morning reading through different forums and posts addressing this issue; In the end, I did the following:
1. I created "/etc/udev/rules.d/99-kvm.rules" with contents:
KERNEL=="kvm", GROUP="kvm", MODE="0660"
2. I restarted the libvirtd service -- systemctl restart libvirtd

Now, on the next reboot, the boot drive and filesystem aren't mounting. Do you have any recommendations?

Thank you for your time

[ubuntu_studio] QEMU: Attempting to access CD-Rom - "unsupported configuration"

$
0
0
Running QEMU Virtual Machine Mgr. with Windows, and my MS Office program, since upgrade OS / Virtual Box to QEMU, wants my CD-Rom to verify installation. With CD in tray, I see it on Ubuntu v22.04 side, and in Virtual Mgr / IDE CDROM select it, but it shows ....

"Errors were encountered changing permission for the following directories:
/media/Stephen/OFFICE10
Errno 1 Operation not permitted
Errno 30 Read Only File System

It is very likely VM will fail to start up"

Click OK and this pops up;

"Error changing VM configuration:
unsupported configuration:
storage type 'dir' requires use of storage format 'fat' "

Yet it accepts source path: /home/stephen/Downloads/ISO/virtio-win-0.1.100.iso
How do I get around this limitation? Any ideas?
Thanks!

[ubuntu] Problem with AMD SEV-SNP and Linux kernel 6.11 and QEMU 9.1.5

$
0
0
Hi everyone,

Sorry to bother you here, but does anybody know the solution to the problem of booting an SEV-SNP VM with Linux kernel 6.11 on the host and QEMU 9.1.5. The kernel is downloaded and installed from here.
Ubuntu used is 24.04.1 LTS

QEMU command:
qemu-system-x86_64 -enable-kvm \
-smp 4 \
-m 8192M,slots=5,maxmem=10240M \
-cpu EPYC \
-machine q35 \
-no-reboot \
-netdev user,id=vmnic \
-device virtio-net-pci,disable-legacy=on,iommu_platform=true,netdev=vmnic \
-drive if=pflash,format=raw,unit=0,file=[COLOR=var(--color-prettylights-syntax-storage-modifier-import)]$OVMF_CODE
,readonly=on \
-drive if=pflash,format=raw,unit=1,file=[COLOR=var(--color-prettylights-syntax-storage-modifier-import)]$OVMF_VARS[/COLOR] \
-drive file=./ubuntu-base.qcow2,if=none,id=disk0,format=qcow2 \
-device virtio-scsi-pci,id=scsi0,disable-legacy=on,iommu_platform=true \
-device scsi-hd,drive=disk0 \
-machine confidential-guest-support=sev0 \
-object sev-snp-guest,id=sev0,cbitpos=51,reduced-phys-bits=1 \
-nographic \
-monitor pty \
-monitor unix:monitor,server,nowait


I have bult the QEMU from the official QEMU repo (master branch) and used the instruction from this repo. But I get this error:
qemu-system-x86_64: kvm_set_user_memory_region: KVM_SET_USER_MEMORY_REGION2 failed, slot=2, start=0xffc84000, size=0x37c000, flags=0x2, guest_memfd=-1, guest_memfd_offset=0x0: Invalid argument

I have also tried QEMU 9.1.0 but I get the same error.

Thanks.

Kind regards,
Danko

[ubuntu] blender 4.x is working using 24.10 under virtualbox not under 24.04 host

$
0
0
Hello,

using ubuntu 24.10 under virtualbox, I tried to install blender found under the repos. I wasn't expecting it to work due to the fact that blender 4.x is not working under my 24.04 host due to the following errors:
Quote:

./blender
EGL Error (0x3009): EGL_BAD_MATCH: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a valid surface).
Warning: Unsupported platform as it supports max 0 SSBO binding locations
EGL Error (0x3009): EGL_BAD_MATCH: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a valid surface).

Blender quit
I tried also using the command:
Code:

MESA_GLSL_VERSION_OVERRIDE=460 MESA_GL_VERSION_OVERRIDE=4.6FC ./blender
which resulted in the following error:
Quote:

Warning: Unsupported platform as it supports max 0 SSBO binding locations

Blender quit
Under 24.10 inside vb is working fine though!

The graphics card is an old amd evergreen.

Regards!

Will t-pot work properly, if the vps doesn't accept nested virtualization via the SVM

$
0
0
First, I have installed Windows, on the vps, but in order for the t-pot to work on Windows, Docker Desktop had to be installed.
In order for Docker Desktop to work properly, the vps, has to have nested virtualization via the SVM flag enabled. Unfortunately, the vps stuff said, the nested virtualization via the SVM flag is disabled on their vps, and they can not start it. So I can not use t-pot on Windows, via the vps in discussion, because Docker Desktop can not work without virtualization via the SVM flag. After that, I have installed Ubuntu server on the vps . Considering the the vps can not enable virtualization via the SVM flag, will I be able to use t-pot on Ubuntu, considering that t-pot can not work on Windows withoud Docker Desktop, and Docker Desktop can not work on Windows if on the vps virtualization via the SVM flag, it is not turned on.

Ubuntu Desktop 22.04 VM won't recognize Pixel 8 connected over USB

$
0
0
I have 1x Ubuntu 22.04 Desktop VM running on my Vsphere 8.X server. I've connected 1x pixel 8 phone to the server, and assigned it to the Ubuntu 22.X VM (via settings/Add New Device/Add Host USB Device/Google Pixel 8) and a USB controller 3.2 (via settings/Add New Device/USB Controller).

However, the Ubuntu VM does not recognize the Pixel 8 device. I have installed ADB drivers on my Ubuntu VM and the latest Android Studio. USB debugging has been enabled on the Pixel 8 phone and "Default USB configuration" has been set to "File Transfer/Android Auto".

The command "adb devices -l" doesn't show any connected devices. The lsusb command also doesn't show the phone.

The dmesg logs shows several USB power related issues:

[ 323.296213] usb 1-4-port1: unable to enumerate USB device
[ 326.805265] usb 1-4.1: new high-speed USB device number 42 using xhci_hcd
[ 326.889604] usb 1-4.1: device descriptor read/64, error -71
[ 327.166404] usb 1-4.1: device descriptor read/64, error -71
[ 327.343481] usb 1-4.1: new high-speed USB device number 43 using xhci_hcd
[ 330.833247] usb 1-4.1: device descriptor read/all, error -71
[ 330.833350] usb 1-4-port1: attempt power cycle
[ 334.637667] usb 1-4.1: new high-speed USB device number 44 using xhci_hcd
[ 334.650037] usb 1-4.1: device descriptor read/8, error -71
[ 334.793019] usb 1-4.1: device descriptor read/8, error -71
[ 334.986757] usb 1-4.1: new high-speed USB device number 45 using xhci_hcd
[ 340.078126] usb 1-4.1: device descriptor read/8, error -110

Using Ubuntu host GPU in Windows VM

$
0
0
I have a pc with an i5 12400 processor with virtualization capacity but no video. Host system is Ubuntu Studio 24.10. I installed a Windows 10 virtual machine using Qemu with VMM. I have a 12gb 3060 Nvidia GPU in the system. Is it possible to allow the Windows VM to use the Nvidia GPU without crashing the system or will I need to upgrade my processor to one that has video? No PCI slot empty for another GPU...
That is alll because I wanna run some graphic apps that has no Linux editions... I'm fairly new to Linux, making my best to switch...

Thanks,

Andre

Can I keep using Virtualbox?

$
0
0
I've heard that Virtualbox is no longer recommended and instead I should use kvm+qemu+libvirt+virt-manager.

However, these seem to require some prior reading and setting up, while I'm already somewhat familiar with virtualbox and it is dead simple to set up. Don't throw things at me please :), but currently I'm just not in the mood to spend some time on tinkering and learning.

Are there any important reasons NOT to continue using VBOX? or is this kvm+qemu+libvirt+virt-manager stack just the currently cool kid? In the latter case I guess it should be safe to still use Vbox for now and return to kvm+qemu+libvirt+virt-manager later.

Note: If this matters, I'm a home user and I want Ubuntu Desktop guest on an Ubuntu Desktop host.

AppArmor messing with KVM

$
0
0
I installed a new Ubuntu Server 24.04.

I try to create a VM with the following command :
Code:

virt-install --import --name my-vm --memory 3072 --vcpus 2 --cpu host --disk /usr/lib/libvirt/images/my-vm/disk.qcow2,format=qcow2,bus=virtio  --os-variant=ubuntu24.04 --graphics spice --noautoconsole
But I get the following error :
Code:

Starting install...
ERROR    internal error: cannot load AppArmor profile 'libvirt-24b161d1-591e-4105-95d8-b666979c04d0'
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start my-vm
otherwise, please restart your installation.

In the logs, I can see :
Code:

Oct 24 18:51:30 main-server libvirtd[120558]: internal error: cannot load AppArmor profile 'libvirt-5185dc02-c828-4c16-8b48-9deeaca23945'
Oct 24 18:51:30 main-server libvirtd[120558]: internal error: Child process (LIBVIRT_LOG_OUTPUTS=3:stderr /usr/lib/libvirt/virt-aa-helper -c -u libvirt-24b161d1-591e-4105-95d8-b666979c04d0) unexpected exit status 1: virt-aa-helper: error: /usr/lib/libvirt/images/my-vm/disk.qcow2
                                              virt-aa-helper: error: skipped restricted file
                                              virt-aa-helper: error: invalid VM definition

Code:

$ ls -la /usr/lib/libvirt/images/my-vm/
total 580
drwxr-xr-x 2 libvirt-qemu kvm  4096 Oct 23 18:34 .
drwxr-xr-x 3 libvirt-qemu kvm  4096 Oct 23 18:13 ..
-rw-r--r-- 1 libvirt-qemu kvm 374784 Oct 23 18:34 cidata.iso
-rw-r--r-- 1 libvirt-qemu kvm 197248 Oct 23 18:33 disk.qcow2
-rw-r--r-- 1 libvirt-qemu kvm    51 Oct 23 17:57 meta-data
-rw-r--r-- 1 libvirt-qemu kvm  1037 Oct 23 18:08 user-data


I tried to add the following to :
- /etc/apparmor.d/local/usr.lib.libvirt.virt-aa-helper
-
Code:

  /usr/lib/libvirt/images/**/*qcow2 rwk,
  /usr/lib/libvirt/images/my-vm/disk.qcow2 rwk,

And restart AppArmor, but it changes nothing.

I even tried to set complain mode :
Code:

aa-complain /usr/sbin/libvirtd
And nothing changes.

I started to think that AppArmor was not even the cause but then I simply tried to set
Code:

ecurity_driver = "none"
in /etc/libvirt/qemu.conf... And it works.

At this point I must confess that I am running out of ideas...
Viewing all 4211 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>