https://github.com/cloudwithdan/vagrant-toolbox
Container ready Vagrant Libvirt in your desired distribution.
https://github.com/cloudwithdan/vagrant-toolbox
Last synced: 4 months ago
JSON representation
Container ready Vagrant Libvirt in your desired distribution.
- Host: GitHub
- URL: https://github.com/cloudwithdan/vagrant-toolbox
- Owner: cloudwithdan
- Created: 2024-08-22T21:50:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T10:28:37.000Z (almost 2 years ago)
- Last Synced: 2026-02-13T04:31:36.599Z (4 months ago)
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vangrat libvirt containerized
## Build the container
```sh
podman build -t localhost/vagrant-container-fedora:latest -f Dockerfile.(fedora || ubuntu || almalinux) .
```
## Create a ~/.local/bin/vagrant-(fedora || ubuntu || almalinux)
```sh
#! /bin/env bash
podman run -it --rm \
--env LIBVIRT_DEFAULT_URI \
--volume /var/run/libvirt/:/var/run/libvirt/ \
--volume ~/.vagrant.d:/.vagrant.d \
--volume $(realpath "${PWD}"):${PWD} \
--workdir "${PWD}" \
--privileged \
--net host \
--security-opt label=disable \
localhost/vagrant-container-fedora:latest
```