developer-portal / content

Content for the Fedora Developer Portal
https://developer.fedoraproject.org/
GNU General Public License v2.0
106 stars 250 forks source link

Vagrant with libvirt and static ip addresses #402

Open tuupola opened 2 years ago

tuupola commented 2 years ago

The instructions at page Vagrant with libvirt support installation will not work if using distro installed vagrant-libvirt and static ip addresses. Problem can be fixed by telling vagrant-libvirt to use qemu:///system instead of qemu:///session as the connection.

Vagrant.configure("2") do |config|
  config.vm.provider :libvirt do |libvirt|
    libvirt.qemu_use_session = false
  end
end

Tested with fresh install of Fedora 34 (Workstation Edition). For more information see https://github.com/vagrant-libvirt/vagrant-libvirt/issues/1389-

pvalena commented 2 years ago

Hello, thanks for the report!

Yes, you're right, at this point there's no support for that, but hopefully it will be fixed soon. https://fedoraproject.org/wiki/Changes/Vagrant_2.2_with_QEMU_Session

Let's add a note into the guide for now.