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

Use libvirt firewall zone for nfs in vagrant #328

Closed bocekm closed 3 years ago

bocekm commented 4 years ago
bocekm commented 4 years ago

This needs more investigation:

Related: https://lukas.zapletalovi.com/2020/01/setting-a-firewalld-zone-for-libvirt-network.html

pvalena commented 4 years ago

Wow, thanks for investigation!

This is probably some hardening on libvirt side, which should be handled by 'vagrant-libvirt' plugin.

On Fedora is the default provider (also shipped with Fedora, thus tested).

pvalena commented 4 years ago

(I'll bring up the issue on vagrant-libvirt.)

jackorp commented 3 years ago

(I'll bring up the issue on vagrant-libvirt.)

Is there any update concerning this? Otherwise, I think we can merge this.

pvalena commented 3 years ago

I haven't found anything that would concern vagrant-libvirt provider, specifically.

From Fedora POV, I've tested it (but I already had it enabled previsouly) and I'm unable to verify it works, as NFS breaks for me with this Vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box = "fedora/34-cloud-base"
  config.vm.synced_folder ".", "/vagrant", type: "nfs"

  config.vm.provider :libvirt do |libvirt|
    libvirt.nested = false
    libvirt.memory = 2048
  end
end

Could you verify? If it works for you, feel free to merge it.

jackorp commented 3 years ago

Verified, it does work. I'll merge it. Thanks!