Live data from Hacker News

Developing inside a virtual machine

blog.disintegrator.dev

1–10 of 147 posts

Re: Developing inside a virtual machine

#3
is there a way to forward usb/serial ports from my local machine to the dev container?

maintaining consistent firmware development environments using containers is a great idea, and current solutions involving proxying the compiled binary work well for flashing quickly, but switching back and forth between UART and Serial Debug is always more convenient when the IDE can handle it all

Re: Developing inside a virtual machine

#5
I do something similar but using WSL on Windows. But something I really, really hate is dealing with special certificate handling required to pass the corporate Zscaler proxy. I think it works somewhat transparent on the Windows host, but repeating the setup in every VM is such a pain.

Re: Developing inside a virtual machine

#6

is there a way to forward usb/serial ports from my local machine to the dev container? maintaining consistent firmware development environments using containers is a great idea, and current solutions involving proxying the compiled binary work well for flashing quickly, but switching back and forth between UART and Serial Debug is always more convenient when the IDE can handle it all

I've done linux/arm yocto development from VMs. The best solution to pass usb/serial was still VMWare the last time I had to.

Re: Developing inside a virtual machine

#8
post #7

I have used a Virtual Box VM with a Ubuntu guest for years and it has worked great. It's as close to the VM's in prod you can get.

I used to do that, but now that all of our microservices are dockerized every microservice has its own docker container

Vscode supports remote containers, so everyone in the org just develops INSIDE a replica of the prod container

All containers run remotely on enormous machines with 800+ GB of RAM and 8+ GPUs

It’s trivial to share environments now because you just open the project and the dev container starts up and installs all the deps, devcontainer.json is just a few kb so just check it into git

Engineering, DevOps, Data science all use this setup, push around your devcontainer.json and everyone gets the same GPU accelerated dev environment with near unlimited RAM and hundreds of CPU cores, none of this hardware is local so you can code on the balcony/beach on your MacBook Air, light and easy to travel with.

We put VMs in the same country as our staff so latency has never been an issue

This is the dev setup I’ve wanted for ages, and it’s a joy to use

Re: Developing inside a virtual machine

#10
post #5

I do something similar but using WSL on Windows. But something I really, really hate is dealing with special certificate handling required to pass the corporate Zscaler proxy. I think it works somewhat transparent on the Windows host, but repeating the setup in every VM is such a pain.

Given how much you hate it, any chance you documented how you did it?
Post reply on HN