4
CruN
147d

Can VMs be a good coding environment?

Comments
  • 6
    With gpu passthrough why not, eh only if your PC can handle two OS's running at the same time without lag.
  • 2
    @jonas-w cool I'll find that out soon tho VMs usually seem to run well enough so ig we will find out
  • 1
    tldr; Yes you can, and it works well.

    note: I use gpu-passthrough

    I've recently started coding via a VM. I wanted a solution where I could separate my development work and all of the processes that use system resources could be turned off while I was gaming.

    I have one set up as a DB server and one as my main development VM which has my IDE installed.

    Overkill maybe, but why not.
  • 1
    @CruN would also look at how to make the Disk for the VM faster, because that can be a culprit
  • 2
    Qubes OS is an example that it can work to do the Main stuff in a VM
  • 1
    @jonas-w got it
  • 4
    I've been exclusively developing on a VM for like 2 years now. Not one running on my machine, instead it's hosted in the company network.

    Initially we used RDP to connect to it, but that's fairly awful.
    But IDEs offer remote development a lot of the time (clion and vscode do).
    So I run vscode on my local machine but all the files, the compiler and the terminal I open are on the remote VM and its all tunneled through ssh.
    Quite a nice solution to be honest
  • 1
    virtualbox has gone to shit, graphics support is garbage and I have seen networking fail. Vmware seems to be a better solution as it has decent graphics support. I have seen other devs use the windows 10 vm and they said it was fine. If you turn on the win 10 vm then you cannot run a vm inside windows anymore. It is because the win 10 hypervisor is type 0 I think.

    I had so many issues with virtualbox I stopped using it completely. Now running linux and windows on separate computers.
  • 1
    @Demolishun I've been using hyperv which seems to run well,
  • 0
  • 2
    if you use vscode there is an awesome extension that lets u ssh into the vm and use it as the environment
  • 0
    @coffeeholic oh that's sick
  • 0
    @coffeeholic what's it called
  • 2
  • 1
  • 0
    Why not just use dockers with volume mount.
Add Comment