rwxrob-dot/install/ubuntu/install-vagrant
2022-02-10 05:08:32 -05:00

19 lines
405 B
Bash
Executable File

#!/bin/bash
docker pull vagrantlibvirt/vagrant-libvirt:latest
echo '
Now add the following function to your ~/.bashrc:
vagrant ()
{
docker run -it --rm \
-e LIBVIRT_DEFAULT_URI \
-v /var/run/libvirt/:/var/run/libvirt/ \
-v ~/.vagrant.d:/.vagrant.d \
-v $(realpath "${PWD}"):${PWD} \
-w $(realpath "${PWD}") \
--network host \
vagrantlibvirt/vagrant-libvirt:latest vagrant "$@"
}
'