2

FreeBSD 的 Firecracker 支援

 1 year ago
source link: https://blog.gslin.org/archives/2022/10/29/10935/freebsd-%e7%9a%84-firecracker-%e6%94%af%e6%8f%b4/
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

FreeBSD 的 Firecracker 支援

Colin PercivalFreeBSD 能夠支援 Firecrack:「Announcing the FreeBSD/Firecracker platform」,成為 LinuxOSv 以外的第三個支援的作業系統。對應的 patch 在「amd64: Add FIRECRACKER kernel configuration」這邊可以看到。

接下來是反過來,要送一些 patch 進去 Firecracker,讓他支援 FreeBSD:

Now that FreeBSD supported Firecracker, there was one more thing to do: Make Firecracker support FreeBSD.

看起來是基於之前在 2020 年的 patch (但當時沒被整進去) 再修改:

Alejandro Jimenez contributed patches two years ago, but they were never merged. Some of his code ended up in the linux-loader project (which Firecracker uses); but I spent a few weeks digging through his thousand lines of changes to figure out which went into linux-loader, which still applied cleanly to Firecracker, and which I had to rewrite from scratch — a task made more difficult by the fact that Firecracker is written in Rust, and I had never used Rust before! Nevertheless, I was eventually successful, and opened a PR with updated patches which I hope to see merged into mainline Firecracker in the upcoming weeks.

看起來兩邊都有 patch 要做才能支援,目前看起來 Firecracker 這邊沒動作了,大概是沒什麼動力...

Related

AWS 的 Firecracker 技術 (安全的 Container?)

AWS 放出來的 open source 專案 Firecracker,也就是在 AWS 內打造安裝的 container 環境所使用的技術:「Firecracker – Lightweight Virtualization for Serverless Computing」。 依照說明,看起來是利用 crosvm (KVM-based) 但讓他更輕,啟動 image 的時間更快,達到跟 container 類似的效果: High Performance – You can launch a microVM in as little as 125 ms today (and even faster in 2019), making it ideal for many types…

November 28, 2018

In "AWS"

Gnash

以前在 FreeBSD 上是透過 Linux Emulator 跑 Linux 版的 Flash Plugins,但由於 Adobe 不願意授權 FreeBSD 使用這種方式執行,所以 FreeBSD 就從 ports 把 linux-flashplugin* 移除掉了。(參考 Linux flash plugin 從 ports 中移除 這篇) 於是在 FreeBSD 上要看 Flash 就只剩下 Gnash 這個東西了,問題是這東西 ports 做的非常爛,光是要讓他「能動」就要兩個 patch: 由於不知名原因,有時候在 options 選單選了 PLUGIN 後,WITH_PLUGIN 這個變數還是不會被設定,這造成不管怎麼裝,Firefox Plugin 一直不會裝進去。我的解法是在 /usr/local/etc/ports.conf (這是因為我有裝 sysutils/portconf) 直接硬設 WITH_PLUGIN=true。…

November 8, 2006

In "Browser"

FreeBSD 的 portconf 新功能...

1.5 版的 portsconf 只能處理等號形式: lang/php5*: WITH_FPM=yes 前幾天發現這對於某些設定很難處理,所以就在 ports/181119 送出 patch,讓 portconf 可以處理 += 的用法,讓設定更彈性。 結果發現作者就順便把去年十月的 ports/172355 債也還掉... 去年十月這個 pr 早就處理 += 需求,還修正變數名稱需要支援 - 與 + 的問題。

August 13, 2013

In "Computer"

a611ee8db44c8d03a20edf0bf5a71d80?s=49&d=identicon&r=gAuthor Gea-Suan LinPosted on October 29, 2022Categories Computer, FreeBSD, Murmuring, OS, SoftwareTags firecracker, freebsd, os, patch

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