On Sat, 16 Nov 2019 at 14:50, Patrick O'Callaghan <pocallag...@gmail.com> wrote:
> This is quite embarrassing, but I'm banging my head against a wall and > hoping other eyes will spot some obvious mistake. > > I have an F31 guest (fedora30) running in QEMU/KVM on an F31 host > (Bree). I want to mount a host directory via NFS in the guest. I set > this up a long time ago and it has worked through several Fedora > releases without issue, but in a fit of spring cleaning I did a fresh > install of F31 rather than my usual update, so of course now it doesn't > work. Clearly I did something right back in the day and have now > forgotten what it was. > There have been changes to NFS, particularly, NFSv4, but also some measures to make it less insecure. Meanwhile, 9p is widely used to share files between VM guests and hosts (mostly because it needs fewer host resources), see: https://www.linux-kvm.org/page/9p_virtio which gives an example for Fedora 15. https://wiki.qemu.org/Documentation/9psetup looks more current. It begins with kernel config, which should not be needed with Fedora. http://blog.allenx.org/2015/07/03/virtio-9p-note may also be helpful. https://unix.stackexchange.com/questions/240281/virtfs-plan-9-vs-nfs-as-tool-for-share-folder-for-virtual-machine has some pros and cons for NFS versus 9p in a production environment, but several years old now. Unless you have a specific need for NFS it may be better use of your time to configure 9p passthru. > The guest can ping the host and ping the wider Internet, so basic > connectivity works (this is via a NAT-style connection). The host can > ssh into the guest. > > Firewall setup on the host: > [poc@Bree ~]$ firewall-cmd --list-all > home (active) > target: default > icmp-block-inversion: no > interfaces: enp3s0 > sources: > services: dhcp dhcpv6-client dns libvirt mdns mountd nfs nfs3 plex > rpc-bind rsyncd samba samba-client ssh > ports: > protocols: > masquerade: no > forward-ports: > source-ports: > icmp-blocks: > rich rules: > > And on the guest: > [poc@fedora30 ~]$ sudo firewall-cmd --list-all > home (active) > target: default > icmp-block-inversion: no > interfaces: enp1s0 > sources: > services: dhcpv6-client mdns samba-client ssh > ports: > protocols: > masquerade: no > forward-ports: > source-ports: > icmp-blocks: > rich rules: > > Guest ip: > [poc@fedora30 ~]$ ip addr > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN > group default qlen 1000 > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > inet 127.0.0.1/8 scope host lo > valid_lft forever preferred_lft forever > inet6 ::1/128 scope host > valid_lft forever preferred_lft forever > 2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel > state UP group default qlen 1000 > link/ether 52:54:00:ca:07:30 brd ff:ff:ff:ff:ff:ff > inet 192.168.122.156/24 brd 192.168.122.255 scope global dynamic > noprefixroute enp1s0 > valid_lft 2893sec preferred_lft 2893sec > inet6 fe80::2e77:5bc1:d19a:6045/64 scope link noprefixroute > valid_lft forever preferred_lft forever > > and routing: > [poc@fedora30 ~]$ ip route > default via 192.168.122.1 dev enp1s0 proto dhcp metric 100 > 192.168.122.0/24 dev enp1s0 proto kernel scope link src > 192.168.122.156 metric 100 > > [poc@Bree ~]$ ping fedora30 > PING fedora30 (192.168.122.156) 56(84) bytes of data. > 64 bytes from fedora30 (192.168.122.156): icmp_seq=1 ttl=64 time=20.1 ms > ... > > Exports on the host: > [poc@Bree ~]$ sudo exportfs > /home/Media 192.168.0.0/16 > /home/poc/Shared > vm-* > /home/poc/Shared > fedora* > > But from the guest: > [poc@fedora30 ~]$ showmount -e bree > clnt_create: RPC: Unable to receive > > What am I missing? > > poc > > > _______________________________________________ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org > -- George N. White III
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org