LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2022, 10:36 AM   #16
NewRH
LQ Newbie
 
Registered: Sep 2022
Posts: 18

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by michaelk View Post
When using Virtualbox bridge adapter the server will be on the LAN and receive its own IP address like a real device. I assume it is configured for DHCP. Are you using the correct ip address?

Can you connect successfully using ssh on the server itself as a regular user i.e
ssh localhost
I have now managed to mount the share on the client. I have added another IP address to the network interface of the server (as I could ssh the client, but not the server, I figured that the problem was there) and used the new IP address in the mounting process.
Do you have any idea what the problem with the original IP address might be? (it was assigned at the time of VM creation).
I believe that it is not configured for DHCP because there is no /dhcp directory under /var/lib
 
Old 10-03-2022, 11:30 AM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,746

Rep: Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925
Quote:
Do you have any idea what the problem with the original IP address might be?
There a many ways to configure the virtual machine and the system. Without providing any detailed information or answer questions I have no idea.

I have installed CentOS 7 many times on real hardware and virtual machines. Depending on how it was initially configured during the install the default is DHCP using network manager. If you are using network manager the dhclient lease is saved to /var/lib/NetworkManager. You can configure a static IP address using network manager or without network manager via the old /etc/sysconfig/network-scripts/ifcfg-xxxx scripts. Without network manager the dhclient lease file should be /var/lib/dhclient by default (I believe).

When you create a new VB virtual machine the network adapter defaults to NAT. This is basically a simple virtual firewall where the default is to accept all outgoing traffic but block all incoming. This could be why you could connect to the client from the server but not the reverse. With NAT the DHCP IP address range of the first virtual machine is usually 10.0.2.X/24 where the host is 10.0.2.2 and the guest is 10.0.2.15. If you switch the virtual machine to using a bridged adapter the guest will be connected to your physical LAN and if configured use its DHCP server. The guest will have a separate IP address from the host.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
solved NFS mount.nfs access denied by server while mounting fedora shafik Linux - Networking 0 10-04-2019 08:45 AM
Mount NFS error - mount.nfs: mount(2): Permission denied ndtatlive SUSE / openSUSE 1 09-20-2018 10:46 PM
mount.nfs: access denied by server while mounting (null) when mounting nfs shares into each other. weylyn1 Linux - General 5 12-06-2017 12:24 PM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration