Better HN
topnewbestaskshowjobs
Log inSign up

gonzodaruler

49 karma · joined Feb 8, 2024 (2y ago) · 20 submissions

Submissions

1.

KVM Nested Virtualization Bug Hunting(cyberus-technology.de ↗)

2 points · by gonzodaruler · 2y ago · 1 comment

comment 2y ago · link · parent

Available now on github: https://github.com/cyberus-technology/virtualbox-kvm

3.

Nested Virtualization for the KVM Back End for VirtualBox(cyberus-technology.de ↗)

2 points · by gonzodaruler · 2y ago · 2 comments

comment 2y ago · link · parent

*

1 point by gonzodaruler 0 minutes ago | next | edit | delete [–]

> Of course, some day Virtualbox may support a KVM backend, just as virtualization tools are starting to support unified hypervisor backends on Windows and macOS. There's even an existing patch, though I do not know what the status is and whether or not it could ever be merged upstream.[3]

This is the official patch set for the VirtualBox KVM backend. Our plan is to support this for the near future. There are even packages for ArchLinux (AUR), gentoo and NixOS already if you want to test this.

comment 2y ago · link · parent

Since version 7.0, VirtualBox supports the NEM (Native Execution Manager) mode for other hypervisors. With the NEM, basically all hypervisors can be supported as backend.

comment 2y ago · link · parent

Sometimes, a picture says more than a thousand words: https://imgur.com/a/flar7CO

This is Intel SR-IOV graphics virtualization in action.

comment 2y ago · link · parent

This is definitively not expected. You could also try setting the CPU/Mem configuration via VBoxManage. Maybe you get a good error message then.

`VBoxManage modifyvm <vm_name> --cpus <number of cpus>`

`VBoxManage modifyvm <vm_name> --memory <amout of memory in MB>`

comment 2y ago · link · parent

A lot of this has changed in recent VirtualBox versions. USB3 and Webcam support is now part of the OSE release.

comment 2y ago · link · parent

Starting with VirtualBox 7, USB3 no longer requires the commercial extension pack but is part of the OSE release. See https://github.com/cyberus-technology/virtualbox-kvm/blob/de...

comment 2y ago · link · parent

Thanks. You can indeed use the extension pack with KVM Virtualbox, just make sure that you don't violate any license agreements.

comment 2y ago · link · parent

With this version of VBox, it's quite possble to pass a GPU to the VM. Have a look at https://www.cyberus-technology.de/products/hypervisor if you want to see a demo.

comment 2y ago · link · parent

The emulated hardware is basically the same as with stock VirtualBox. Only the interrupt contoller (local APIC) is emulated by KVM.

comment 2y ago · link · parent

You can use `VBoxManage --attach-vfio` if you want to experiment with pci passthrough. This is different from the Oracle `pciattach` call and does not require any support from the extension package.

comment 2y ago · link · parent

There is experimental support for VFIO PCI pass-through with VirtualBox-KVM, even for GPUs. Please have a look at https://www.cyberus-technology.de/products/hypervisor

comment 2y ago · link · parent

Yes. Don't expect too much though. 3D acceleration with Virtualbox is rather flaky (independent of using KVM).

comment 2y ago · link · parent

What you can configure in the GUI is an enlightenment that the guest will see. This is usually done to improve guest performance.

You can sill select these PV interfaces with VirtualBox-KVM, but the underlying hypervisor is different (kvm vs vboxdrv).

comment 2y ago · link · parent

It does.

comment 2y ago · link · parent

Running VirtualBox-KVM in a QEMU-VM with enabled nesting should work though.