Skip to content

Instantly share code, notes, and snippets.

@michaelgugino
Created September 26, 2018 12:55
Show Gist options
  • Select an option

  • Save michaelgugino/94cc9efac3ab60c57493451a3e654f75 to your computer and use it in GitHub Desktop.

Select an option

Save michaelgugino/94cc9efac3ab60c57493451a3e654f75 to your computer and use it in GitHub Desktop.
Bazel:
I couldn't get the pod provided to actually work, so I built my own:
https://gist.github.com/michaelgugino/257519b9e2c3804c8b291a13726e6a9e
In hind sight, the pod provided might actually work, given the following:
Before attempting to run docker/podman command, ensure you mkdir .cache/ and
chmod 777, otherwise pod won't be able to write in that directory and things
break.
Rest of bazel instructions work.
# Running the installer
Prerequisites) If you're on Fedora, you'll need to patch your system to ensure
you have the latest selinux-policy, otherwise qemu-system will fail with AVC
when trying to creating instances. This might apply to other distros as well.
1) Follow all steps in the libvirt readme, including how to setup libvirt and
dnsmasq.
2) When configuring what domain and networks to use, you must ensure that
you give them *new* values. If you already have a libvirt network such as
"default", don't attempt to reuse it or it's subnet. Similarly, if you
already have a libvirt domain configured, you'll want to create a new one.
Example file
https://gist.github.com/michaelgugino/d0dec0b87d7a6fe2783ee80ef3ec0ba5
3) If the installer fails for some reason, like you didn't set your network stuff
properly and you need to try again, you need to cleanup all the artifacts
terraform left all over your system. I wrote a small script for this:
https://gist.github.com/michaelgugino/782d53934027f588f91403ee58306c3c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment