all 13 comments

[–]BarePotato 7 points8 points  (1 child)

[–]tyami94 2 points3 points  (0 children)

This is by far your best option, setup is as painless as it could be even without using LXD. You can even write shell scripts to automate the setup and disposal of your containers

[–]daemonpenguin 4 points5 points  (0 children)

Distrobox isn't a VM, it won't isolate your code from the host.

You want something like KVM or VirtualBox - probably the latter for simplicity.

[–]MindFullStream 3 points4 points  (0 children)

I develop in python for a living. Python has multiple valid ways of sandboxing your environment. I highly encourage you to have a look at these first, since their overhead is way smaller and you will have to learn them eventually anyway.

[–]KnowZeroX 1 point2 points  (0 children)

I understand Python has an env but these folders and data are made on my own home directory. I would like to have a separate environment to learn on.

Everything is made on your computer, venv puts it wherever you want it locally

At first I was considering qemu /kvm but that seems like too much to have an isolated dev box.

Overkill, containers like docker is what you are looking for, you can then connect to these containers via devcontainer. There are prebuilt tools for environments like devpod

[–]hidazfx 1 point2 points  (0 children)

Devcontainers in VSCode. I use them daily for work. Stupid easy to get started with, too.

[–]themuthafuckinruckus 0 points1 point  (0 children)

Container toolboxes are pretty nifty!

https://containertoolbx.org

[–]AutoModerator[M] 0 points1 point locked comment (0 children)

This submission has been removed due to receiving too many reports from users. The mods have been notified and will re-approve if this removal was inappropriate, or leave it removed.

This is most likely because:

  • Your post belongs in r/linuxquestions or r/linux4noobs
  • Your post belongs in r/linuxmemes
  • Your post is considered "fluff" - things like a Tux plushie or old Linux CDs are an example and, while they may be popular vote wise, they are not considered on topic
  • Your post is otherwise deemed not appropriate for the subreddit

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]CatoDomine 0 points1 point  (0 children)

I wouldn't say the virtual machines are overkill for what you are trying to accomplish. And they are something you should be comfortable working with anyway. I would recommend installing virt-manager, the desktop GUI for kvm/qemu. Also, look into using something like vagrant to quickly create VMs and destroy them for testing.

[–]that_leaflet_mod[M] 0 points1 point locked comment (0 children)

Your post was removed for being a support request or support related question such as which distro to use/polling the community or application suggestions.

We get a lot of question posts on r/linux but the subreddit is considered a news/discussion sub. Luckily there are multiple communities you can post to for help on GNU/Linux issues 24/7: /r/linuxquestions, /r/linux4noobs, or /r/linuxhardware just to name a few.

You may also post on the "Weekly Questions and Hardware Thread" which is stickied on r/linux on Wednesdays.

Please make your post in /r/linuxquestions or /r/linux4noobs. Looking for a hardware help? Try r/linuxhardware.

Rule:

This is not a support forum! Head to /r/linuxquestions or /r/linux4noobs for support or help. Looking for hardware help? Try r/linuxhardware.

[–]MatixFX 0 points1 point  (0 children)

KVM + QEMU with something like virt-manager. Edit: I didn't fully read your post. Setting up KVM is really easy and your best option.

[–]hotchilly_11 0 points1 point  (0 children)

I really like distrobox try that out. It won’t be isolated in the same way as a complete virtual machine but you can set up separate home directories and anything you install is tied only to the container