Re: NFS mount from VM -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/13/2018 11:26 AM, Bob Goodwin wrote:
> On 08/13/18 13:53, Rick Stevens wrote:
>> On 08/13/2018 10:08 AM, Bob Goodwin wrote:
>>> I have an Fedora 28 computer with Fedora 27 running in virtual manager.
>>> My NFS server refuses its connection although the Fedora28 computer
>>> itself connects routinely. Ping and ssh can connect to the NFS server
>>> from the VM. Stopping Firewalld and setenforce 0 in the VM make no
>>> difference.
>>>
>>> NFS exports is:
>>> [bobg@ASRock-J3455M ~]$ cat /etc/exports
>>> /home/exports
>>> 192.168.1.0/24(rw,sync,insecure,no_root_squash,no_subtree_check)
>>>
>>> Can anyone suggest what I might have wrong?
>> The VM is probably on the 192.168.122.0/24 network (that's the default
>> virbr0 network set up by libvirt--check via "ip addr show" on the VM)
>> and your export is only to the 192.168.1.0/24 network so NFS mount
>> requests from 192.168.122.0/24 are rejected by the server.
>> ----------------------------------------------------------------------
>> - Rick Stevens,
> +
> 
> That's the problem, everything in the VM shows up as 192.168.122.whatever.
> 
> Normally my router assigns the addresses. How do I fix this? will it
> need a fixed address? The computer it is living in is 192.168.1.83 and I
> assumed, out of ignorance of this default, it would be the same.

Using the default NAT networking used in libvirt causes libvirt (well,
actually dnsmasq) to act as the DNS server for the VMs.

You can change to using a different network model for the VM (choose the
macvtap tied to your host's NIC). My host machine has two NICs, so I'd
have to choose macvtap on eno1 or enp4s0, depending on which network I
want it on. Have a look at this wiki page:

https://wiki.libvirt.org/page/Networking#Bridged_networking_.28aka_.22shared_physical_device.22.29

----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-           Vegetarian:  Old Indian word for "lousy hunter"          -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/7IEDS4G4HAR3IDHUD52NUNUBWBELVGDU/



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux