Minimal Vagrant script to generate fully usable Debian VMs for personal computing

天大地大妈咪最大 提交于 2020-12-15 06:51:30

问题


During the past years, I configured several Debian VMs for personal usage, using either VirtualBox or Vmware. However, I am not a sysadmin, nor do I operate any servers.

Instead, my main usage of VMs is to install "throwaway programs" or "untrusted programs" that I do not want to pollute my host system, and I definitely need a full graphical environment within these VMs.

Unfortunately, this setup has always been a painful manual process, and I always have to lookup several sites to find out how "guest extensions" and "shared volume" need to be configured. Without "guest extensions" and "shared volumes", those Debian VMs would be pretty much useless for me.

Moreover, all this "research work" felt like wasted time, because once I got everything working, I knew that future versions will be completely different.

Another pain in the ass are kernel updates of my host system (Ubuntu). In the past, I had several kernel updates that broke VirtualBox, which forced me to repeat those installations.

I also feel that clicking through the Debian installer, choosing partitions and configuring a login password is a waste of my time. I do not want any fancy installer, instead I want a Debian OS that "just works" without configuring annoying stuff like "shared folders" and "screen locking" again and again.

So my question is: I am an average developer who is not specialized in infrastructure or VMs, nor do I want to become an expert in this subfield. Using Vagrant, how can I script a Debian VM that "just works" without going through painful configuration settings again and again?

来源:https://stackoverflow.com/questions/65010496/minimal-vagrant-script-to-generate-fully-usable-debian-vms-for-personal-computin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!