Skip to content

Instantly share code, notes, and snippets.

@dragon788
Last active June 17, 2020 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragon788/0a9599fabf1cdd8166f7da8a0ffc300c to your computer and use it in GitHub Desktop.
Save dragon788/0a9599fabf1cdd8166f7da8a0ffc300c to your computer and use it in GitHub Desktop.
Crostini libvirt tips and tricks

libvirt tweaks for Crostini

Important bits

sudo apt install virt-manager # includes libvirt/virsh/etc

curl -L https://vagrantup.com/whatever/vagrant-version.deb
sudo dpkg -i vagrant*.deb

For the vagrant-libvirt plugin you may need to use an alternate ruby/vagrant path in the call to install the plugin.

Environment variables to put into .bashrc

VIRSH_DEFAULT_CONNECT_URI The hypervisor to connect to by default. Set this to a URI , in the same format as accepted by the connect option. This environment variable is deprecated in favour of the global LIBVIRT_DEFAULT_URI variable which serves the same purpose. LIBVIRT_DEFAULT_URI The hypervisor to connect to by default. Set this to a URI , in the same format as accepted by the connect option. This overrides the default URI set in any client config file and prevents libvirt from probing for drivers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment