在某些灾难恢复试用场景中表现不佳后,我放弃 Virtual Box 是否错误?
好的,所以我开始了一段将所有开发转移到虚拟机中的旅程,Virtual Box 似乎是最好的选择。所以我安装了它并安装了 Ubuntu 并设置了我的开发环境,经过一些调整后它就像广告中那样工作了。是的,我对自己说,这是好东西!但值得庆幸的是,在我全神贯注于推进开发之前,我决定模拟一些计算机灾难,看看 Virtual Box 是否可以处理它并且仍然可靠。长话短说,我没有留下深刻的印象。几天后,我开始意识到 Virtual Box 的生活需要不断调整网络设置、命令行维护以及手动覆盖 IP 地址/DNS 地址/网络适配器设置等。我搜索了一些网络设置内容,发现大量帖子中的人们都遇到了网络相关问题(并且没有真正的解决方案)。此外,快照(与磁盘映像分开存储)使用起来很麻烦,需要付出大量的努力、小心和命令来恢复正确的虚拟机版本。最后我认为这比它的价值更麻烦。这很遗憾,因为理论上 Virtual Box 可能是一个很棒的产品。当你第一次安装并使用它时,感觉非常棒!但是,如果我无法随时在任何计算机上以最小的努力可靠且一致地将虚拟机恢复到正确的状态,那对我来说就没有好处。
那么,其他人可以验证我的发现吗?或者保证 Virtual Box 确实按预期工作,并指出我太愚蠢而没有意识到的事情?
OK, so I began a little journey to move all of my development into virtual machines, and Virtual Box seemed like the best choice to pursue. So I get it installed and install Ubuntu and get my development environment set up, and after some tweaking it works as advertised. Yay, I think to myself, this is GOOD STUFF! But, thankfully, before I got too engrossed in pushing forward with development, I decided to simulate some computer disasters and see if the Virtual Box could handle it and still be reliable. Long story short, I am not impressed. After a few days I started to realize that life with Virtual Box would require constant network setting tweaking, command line maintenance, and manually overriding IP addresses/DNS addresses/Network Adapter settings etc. I did some searching about the network settings stuff, and found tons of posts with people having networking related issues (and no real solutions). Also, the snapshots (which are stored separately from the disk image) are a pain in the ass to use, and a lot of effort and care and command lining needs to be taken to recover the right version of the VM. In the end I decided that it was more trouble than it was worth. Which is sad, because in theory Virtual Box could be a great product. And the very first time you install it and use it, it is great! But if I cannot reliably and consistently recover the VM in the correct state with minimal effort on any computer at any time, its no good to me.
So, can anyone else verify my findings? Or vouch that Virtual Box really does work as intended, and point out what I'm too stupid to realize?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您运行的是哪个版本的 VirtualBox?如果快照是 PITA,那么您可能正在运行 3.1 之前的版本。他们最近添加了快照分支(也许是四个月前?),这使得不需要弄清楚如何手动复制图像文件。坦率地说,如果您这样做,那么这就是真正的 PITA,而且 VMWare 更容易。
我对 VirtualBox 最大的不满是,您无法将虚拟机及其及其快照和分支移动到另一台 PC。我知道的唯一方法是导出虚拟设备,然后导入它。虽然在硬盘崩溃后恢复 TeamCity 安装让我松了口气,但我仍然感到沮丧的是,我丢失了导出虚拟设备之前的所有快照历史记录。
但总的来说,我还是很喜欢VirtualBox。正如您提到的,我没有遇到任何网络设置问题。
Which version of VirtualBox are you running? If snapshots are a PITA, then maybe you're running a version before 3.1. They added snapshot branching fairly recently (like four months ago, maybe?) which precludes the need for figuring out how to manually copy the image files around. And frankly, if you're doing that, then yes it's a real PITA, and VMWare is way easier.
My biggest beef with VirtualBox is that you can't take a VM and move it, plus its snapshots and branches to another PC. The only method I know of is to export a virtual appliance, and then import it. Although I was relieved to recover my TeamCity installation after a hard disk crash, I was still bummed that I had lost all history of my snapshots up to the point where I exported the virtual appliance.
But overall, I still really like VirtualBox. I haven't had any issues with network settings as you have mentioned.