4

VirtualBox 的 KVM backend 版本

 7 months ago
source link: https://blog.gslin.org/archives/2024/02/09/11647/virtualbox-%e7%9a%84-kvm-backend-%e7%89%88%e6%9c%ac/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

VirtualBox 的 KVM backend 版本

看到「VirtualBox KVM Public Release (cyberus-technology.de)」這邊的討論,原文是「VirtualBox KVM public release」,專案則是在 GitHub 上的 cyberus-technology/virtualbox-kvm 這邊。

這個算是解決了 VirtualBoxLinux 上常遇到的問題:當使用 VirtualBox 時無法同時使用 KVM,像是 qemu-kvm 這樣的工具。

不過看起來是直接大改 VirtualBox,而不是補一個 extension 或是 plugin 的感覺,雖然說明現有的 guest OS 可以直接套用。

沒有 pre-compiled binary,需要自己編,而且目前的版本得用 Ubuntu 22.04 內的 GCC 11 編譯,裝了新版的 GCC 12 會有狀況:

Newer GCC versions (>= 12) might cause build issues.

另外目前的主要測試的平台還是以 Intel 為主,AMD 這邊是「會動」但沒有詳細測過:

Currently, Intel x86_64 is the only supported host platform.
AMD will most likely work too but is considered experimental at the moment.

然後在比較新的 Intel 平台上,Linux kernel 有些東西要開機參數調:

Starting with Intel Tiger Lake (11th Gen Core processors) or newer, split lock detection must be turned off in the host system. This can be achieved using the Linux kernel command line parameter split_lock_detect=off or using the split_lock_mitigate sysctl.

看到編譯參數裡面的 --disable-hardening,hmmm... 先繼續放著看看?

Related

在 QEMU/KVM 上跑 Mac OS X...

在「Running OS X Mavericks under QEMU with KVM」這篇看到的。 開頭就提到了目前的情況: Virtualizing OS X is a thing that can today be done very easily, with VMware and VirtualBox fully supporting it under OS X hosts. But what about virtualizing it using a bare metal hypervisor and QEMU? Under Linux? Finally I've got…

June 6, 2014

In "Computer"

Ubuntu 上跑 VirtualBox 連接 USB 裝置...

Ubuntu 10.10 系統內的 VirtualBox 是 OSE 版本 (Open Source Edition),先到 VirtualBox 官方網站下載對應的 deb 檔:「Download VirtualBox for Linux Hosts」,像我的電腦是跑 10.10 amd64 版本。 接下來是把系統內的 VirtualBox 移除: apt-get purge virtualbox 移除完畢以後將剛剛下載的 deb 檔安裝進系統:(後面的檔名自己變更) dpkg -i virtualbox-4.0_4.0.4-70112~Ubuntu~maverick_amd64.deb 然後把自己加到 vboxusers 這個 group 內 (我是直接改 /etc/group),改完後重新登入,然後: 在 Guest OS 關機狀態下,設定允許讓 Guest OS 使用的 USB 裝置。 將…

March 21, 2011

In "Computer"

Ubuntu 12.04 上用 KVM (CLI) 裝 FreeBSD

過年後在家裡弄了一台技嘉的準系統跑 Ubuntu 12.04,結果手上突然沒機器可以跑 porttools 測試,而這台機器平常也沒接鍵盤,就想直接跑 command line 的 KVM 裝 FreeBSD。其實知道方式後就很簡單,只是一開始沒弄懂花了不少時間... 首先是安裝 KVM,這部份用 apt-get install kvm 就可以拉下來裝好了。 真正要做的第一部是先用 qemu-img 建立 40GB 的 disk image (qcow2): qemu-img create -f qcow2 ~/vm/image.qcow2 40G 然後直接用 iso image 安裝 (抓 iso image 的事情也跳過去請各位自己來),設為 4 CPU (-smp 4)、1024MB RAM (-m 1024),並且透過 serial console 安裝 (-nographic…

February 18, 2014

In "Computer"

a611ee8db44c8d03a20edf0bf5a71d80?s=49&d=identicon&r=gAuthor Gea-Suan LinPosted on February 9, 2024Categories Computer, Linux, Murmuring, OS, SoftwareTags backend, kvm, linux, virtualbox

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Website

Notify me of follow-up comments by email.

Notify me of new posts by email.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)

Post navigation


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK