问HN:为什么虚拟化问题仍未解决?

3作者: prmph8 个月前原帖
现在是2025年,虚拟化仍然是一个令人头疼的问题,即使是对于偶尔使用的人来说。 我使用的是MacBook Air M1作为开发笔记本,我只想要一个可复现的开发环境来运行Debian。 我的选择是:使用devcontainer,或者在VirtualBox、VMWare、Parallels、UTM等上使用虚拟机。 VSCode和Typescript时不时会出现问题,导致它们无法正常工作,我根本无法继续使用它们。不知道为什么,但我觉得在我的机器上,当出现某些特殊情况的组合时,它们内部总会出现奇怪的bug。使用devcontainer时,我认为VSCode仍然直接在我的机器上运行,但连接到容器,因此这对我来说并不是解决方案,我需要一个真正的虚拟机。 于是我首先尝试VirtualBox。在花了几个小时在虚拟机上安装Debian并让它正常运行后,不久虚拟机就变得非常缓慢。我所做的没有任何方法能够可靠地解决这个问题。我也无法让显示分辨率正常工作。我再次放弃了VirtualBox(我每隔几年就会尝试一次,忘记了为什么不使用VirtualBox)。 接下来,我想尝试VMWare,但发现它已经被博通收购。当我点击链接进入他们的页面时,我需要登录才能下载,但我看不到注册的方式。真是无奈。 然后,我尝试了Parallels。在成功运行Debian虚拟机后,我惊讶于它的流畅性。我正在试用期内,如果一切顺利,我不会有问题付费。然而,真是好得令人难以置信。我开始在虚拟机中随机失去互联网连接(奇怪的是只影响终端)。我看到默认的网络模式是共享网络。我在网上阅读指南,建议切换到桥接网络。在花费大量时间设置虚拟机的防火墙和其他安全配置,并切换到桥接网络后,我仍然遇到间歇性的连接问题,似乎现在更糟了。突然我又想起了为什么这么多年我都没有订阅Parallels。 感到沮丧,我最终放弃了。我苦涩地记得,UTM也有类似于VirtualBox的性能和屏幕显示问题。 那么还有什么选择呢?我真的无法在我的MacBook上物理安装双启动Linux(不考虑Asahi,因为我只想要Debian)。也许我可以注册一个云VPS来使用。或者直接购买新的AMD迷你PC并在上面运行Debian。无论如何,显然经过数十年的技术进步,虚拟化的故事仍然是一个令人苦涩的经历。
查看原文
It&#x27;s 20205, and virtualization is still a headache, even for casual use.<p>I use a MacBook Air M1 as my dev laptop, and I just wanted to have a reproducible dev environment running Debian.<p>My options: use devcontainer, or use a VM on Virtualbox, VMWare, Parallels, UTM, etc.<p>VSCode &amp; Typescript gets messed up every now and then, such that they don&#x27;t work and I simply can&#x27;t continue with them. Not sure why, but I think there are weird internal bugs in those that surface whenever there is some special combination of circumstances on my machine. With devcontainer I think VSCode still runs directly on my machine but connects to the container, so this is nto a solution for me, I need a real VM.<p>So I try VirtualBox first. After spending hours installing Debian on a VM and getting it running nicely, within a short time the VM slows to a crawl. Nothing I do reliably fixes this. I also cannto get the display resolution to behave properly. I give up on VirtualBox, again (I keep trying this every few years forgetting why I don&#x27;t use VirtualBox)<p>Next, I want to try VMWare, only to find out it is sold to Broadcom, and when I follow the link to their page, I&#x27;m supposed to log in to download, and yet I see no way to register. Oh well.<p>Next, I try Parallels. After getting a Debian VM running on it, I marbvel at how smoothly it works. I&#x27;m in the trial, but I&#x27;m not going to have a problem paying up if everything goes on well. Alas, it was too good to be true. I start to to have random loss of internet connectivity (weirdly affecting the terminal only) in the VM. I see that the default networking mode is shared networking. I read guides online suggesting to switch to bridged networking. After spending oodles of time setting up the firewall and other security configuration on the VM and switching to bridged networking, I&#x27;m still having intermittent connectivity issues. it seems they are even worse now. Suddenly I remember again why I don&#x27;t have a Parallels subscription after all these years.<p>Frustrated, I finally give up. I ruefully remember that UTM also has similar performance and screen display problems as VirtualBox.<p>So what options are left? I can&#x27;t really physically install a dual-boot Linux on my Macbook (Asahi notwithstanding, since I only want Debian). Maybe I could sign up for a cloud VPS and use that. Or just buy new AMD mini PCs and run Debian on those. Either way, it&#x27;s clear the virtualization story, after decades of supposed tech advancement, is still a bitter one.