TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Lume – OS lightweight CLI for MacOS and Linux VMs on Apple Silicon

309 点作者 GreenGames3 个月前
We just open-sourced Lume - a tool we built after hitting walls with existing virtualization options on Apple Silicon. No GUI, no complex stacks - just a single binary that lets you spin up macOS or Linux VMs via CLI or API.<p>Why we built Lume: - Run native macOS VMs in 1 command, using Apple Virtualization.Framework: `lume run macos-sequoia-vanilla:latest`<p>- Prebuilt images on <a href="https:&#x2F;&#x2F;ghcr.io&#x2F;trycua" rel="nofollow">https:&#x2F;&#x2F;ghcr.io&#x2F;trycua</a> (macOS, Ubuntu on ARM)<p>- API server to manage VMs programmatically `POST &#x2F;lume&#x2F;vms`<p>- A python SDK on github.com&#x2F;trycua&#x2F;pylume<p>Run prebuilt macOS images in just 1 step: lume run macos-sequoia-vanilla:latest<p>How to Install:<p>brew tap trycua&#x2F;lume<p>brew install lume<p>You can also download the `lume.pkg.tar.gz` archive from the latest release <a href="https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;lume&#x2F;releases">https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;lume&#x2F;releases</a>, extract it, and install the package manually.<p>Local API Server: `lume` exposes a local HTTP API server that listens on `<a href="http:&#x2F;&#x2F;localhost:3000&#x2F;lume" rel="nofollow">http:&#x2F;&#x2F;localhost:3000&#x2F;lume</a>`, enabling automated management of VMs.<p>lume serve<p>For detailed API documentation, please refer to API Reference(<a href="https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;lume&#x2F;blob&#x2F;main&#x2F;docs&#x2F;API-Reference.md">https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;lume&#x2F;blob&#x2F;main&#x2F;docs&#x2F;API-Reference....</a>).<p>HN devs - would love raw feedback on the API design and whether this solves your Apple Silicon VM pain points. What would make you replace UTM&#x2F;Multipass&#x2F;Docker Desktop with this?<p>Repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;lume">https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;lume</a> Python SDK: github.com&#x2F;trycua&#x2F;pylume Discord for direct feedback: <a href="https:&#x2F;&#x2F;discord.gg&#x2F;8p56E2KJ" rel="nofollow">https:&#x2F;&#x2F;discord.gg&#x2F;8p56E2KJ</a>

20 条评论

ammmir3 个月前
congrats on the open sourcing and launching! beyond the desire to run VMs in &quot;1 command&quot;, i don&#x27;t quite get the reasoning behind this project. could you elucidate? like, besides running macOS VMs, how is it different from lima, colima, and friends? the name lume is quite unfortunate.<p>the hard part about running VMs isn&#x27;t really how to launch them (well, ahem, i&#x27;m looking at you, qemu), but getting data in and out, and controlling them. some feature requests, if i may ;)<p><pre><code> # take screenshot # this should do the right thing(TM) and take a screenshot of the logged-in user session, which may not necessarily be the console lume screenshot &lt;vm name&gt; [-o &lt;file.png&gt; | -] # execute command lume exec &lt;vm name&gt; [--as-user &lt;user&gt;] &lt;command&gt; [args] # copy files in and out lume cp &lt;vm name&gt;:&lt;vm path&gt; &lt;local path&gt; lume cp &lt;local path&gt; &lt;vm name&gt;:&lt;vm path&gt; # run clone as new VM # this should appropriately roll the MAC address, IPs, and reseed any RNGs, of course lume run --clone &lt;clone name&gt; &lt;vm name&gt; </code></pre> Can you clone a VM while it&#x27;s running?<p>The ability to resume a VM within &lt; 1 second would be useful for on-demand workflows without waiting for a full VM bootup sequence, similar to how you can get a firecracker microVM into the state you want, snapshot it.. then clone as you wish, and resume back into the guest.<p>You may need to preinstall an agent (a la Parallel&#x2F;VMware Tools) to make sure this is seamless and fast.
评论 #42913337 未加载
评论 #42909939 未加载
oulipo3 个月前
Would this allow to run a near-native speed VM with a decent-speed Docker server inside, and thus allow to have an Orb-like speed for docker containers?
Khaine3 个月前
How does this compare to Lima[1] and Tart[2], which are similar?<p>Also, would it be possible to run BSDs with this?<p>[1] <a href="https:&#x2F;&#x2F;lima-vm.io" rel="nofollow">https:&#x2F;&#x2F;lima-vm.io</a><p>[2] <a href="https:&#x2F;&#x2F;tart.run" rel="nofollow">https:&#x2F;&#x2F;tart.run</a>
评论 #42909377 未加载
评论 #42909621 未加载
mightysashiman3 个月前
Would you mind educating me about use cases for having one or even multiple MacOS VMs on an apple silicon machine please?
评论 #42909725 未加载
评论 #42909201 未加载
评论 #42909472 未加载
评论 #42914046 未加载
评论 #42909556 未加载
评论 #42909727 未加载
评论 #42918003 未加载
评论 #42909221 未加载
评论 #42909202 未加载
评论 #42911483 未加载
joshlk3 个月前
Can you use to launch an Intel VM on Apple Silicone and visa versa? I’m interested in doing this so I can compile C++ applications for different architectures on MacOS. Do you know of any other “easy” methods?
评论 #42910808 未加载
评论 #42912158 未加载
评论 #42910171 未加载
评论 #42911356 未加载
zxcb13 个月前
I read GPU and USB passthrough somewhere and did not believe it
评论 #42909222 未加载
catskull3 个月前
Looks interesting! I’ve been playing with UTM to do aarch64 VMs and I even cooked up a little Sinatra server to do some AppleScript to reboot the VM and do some other things on the host. I’ll look at this as a more robust solution as to be completely honest, UTM has left a lot to be desired at least for virtualization.
bawana3 个月前
So will this ever be able to run a lightweight windows vm?
评论 #42910018 未加载
zombot3 个月前
I would be interested in running older macOS versions in a VM, but those would be x64-based and an Apple Silicon host is impractical for that.
stephenr3 个月前
This looks interesting but unless there&#x27;s a vagrant plugin to use it, I&#x27;m pretty unlikely to spend any serious time using it.
miles3 个月前
&gt; What would make you replace UTM&#x2F;Multipass&#x2F;Docker Desktop with this?<p>Just checked my list of VMs in UTM; 5 Linux (Ubuntu, Debian, and Fedora), 9 Mac OS X&#x2F;OS X&#x2F;macOS (versions stretching back from Tiger to Sequoia), and 10 Windows (XP through 11). Lume would need to support not only Windows but also emulation in order to consider a move.
wynemo3 个月前
It&#x27;s a good project, but it just has too few built-in images.
gcr3 个月前
great! how does this compare to orbstack?<p><pre><code> brew install orbstack orb # you&#x27;re now running in an ubuntu VM</code></pre>
评论 #42916578 未加载
dangoodmanUT3 个月前
would be nice if you can bind ports!
jppope3 个月前
not really stoked about the name since there are a couple other projects named lume:<p>- <a href="https:&#x2F;&#x2F;lume.land&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lume.land&#x2F;</a><p>The project looks cool though
Retr0id3 个月前
The title of this post took me about 3 attempts to parse, because &quot;OS&quot; is more strongly bound to Operating System in this context (but presumably it&#x27;s supposed to read as Open Source)
评论 #42908943 未加载
评论 #42908932 未加载
评论 #42909619 未加载
TekMol3 个月前
I wish it was possible to run a Debian VM on iOS.<p>For laptops, there are many nice options. But for tablets, the latest iPads are currently unmatched at under 600 grams for a 13&quot; tablet. So I would love to use one of those.
评论 #42908257 未加载
评论 #42908303 未加载
评论 #42908445 未加载
评论 #42908626 未加载
评论 #42908280 未加载
评论 #42911380 未加载
ricw3 个月前
Is macOS up to scratch to be used as a server these days? Last I checked it would always run into trouble &#x2F; randomly reboot &#x2F; become unavailable whenever a new OS update became available. Admittedly this is about 2 years ago.<p>If so, this would be great. Particularly to repurpose older macs.
评论 #42909024 未加载
评论 #42908492 未加载
评论 #42909623 未加载
mattbillenstein3 个月前
I know the Mac hardware is pretty trick, but man, I do most of my dev on Linux and have a Framework Laptop (AMD) running Ubuntu; it&#x27;s just really nice for dev stuff to work the same way it does on our production environment...<p>Also, the frequency and size and time to install MacOS updates - like these computers are blazingly fast from the cpus to the SSDs - after an update has downloaded, what could it possibly be doing that takes 30+ minutes to install? I&#x27;ve never had to wait for an apt-get upgrade that long.
评论 #42909820 未加载
评论 #42909878 未加载
keb_3 个月前
Name clash with the not very well known Lua library, you should strongly consider changing the name <a href="https:&#x2F;&#x2F;github.com&#x2F;rxi&#x2F;lume">https:&#x2F;&#x2F;github.com&#x2F;rxi&#x2F;lume</a>
评论 #42910608 未加载
评论 #42910595 未加载
评论 #42910575 未加载
评论 #42910821 未加载