Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform plugin for VirtualBox #3

Open
davidnewcomb opened this issue Aug 18, 2020 · 2 comments
Open

Terraform plugin for VirtualBox #3

davidnewcomb opened this issue Aug 18, 2020 · 2 comments

Comments

@davidnewcomb
Copy link

It would seem the next logical step!

I've been hunting around for one and there seems to be about 3 projects on the go. None of them seem to be in any kind of state for me to use! You know how it goes!

Terraform plugins are written in Go and there isn't an official plugin for VirtualBox yet. I was investigating how much work I'd need to do and so far I have: learn Go, learn your thing, learn Terraform plugins. It seems you are most of the way there already, so how about it?

@namaggarwal
Copy link

Hey @davidnewcomb did you follow up on this ? Did you find a better one ? I am thinking of writing a terraform provider for virtual box.

@davidnewcomb
Copy link
Author

No I didn't unfortunately.

I had wanted to be able to create linked clones from a particular snapshot, start them up, wait for them to get their new ip address and fully start up to the tty login, then take a running snapshot. I implemented it all in bash and python.
VirtualBox is really flaky and can be a bit funny about things happening at the same time sometimes, so I had to implement a VirtualBox mutex for certain operations so only one could run at a time ...and lots of that kind of thing.

There isn't an awful lot of "catch error retry after blar seconds" in the scripts, so they carry a certain amount of general acceptance that you going to get a certain amount of VirtualBox failures when all those clones are in a load balanced work pool and are being reset every couple of minutes.

I couldn't help feeling that offloading of the VirtualBox management to terraform could have simplified the whole thing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants