LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2016, 03:29 PM   #1
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Rep: Reputation: 6
Your help need running TFTP on Guest OS of Virtualbox.


Hi

I am trying to run TFTP between two Guest OS ( CentOS 7 ) on virtualbox but I have not been able to do the tftp from the client to the server. I can connect between two server using ssh, I tested the tftp on the server itself and I can put and get files locally. Netstat show the udp ports 69 is open and listening on the server but everytime I try to tftp from the client I get the following message on the server

in.tftpd:WRQ from 192.168.1.2 filename test
in.tftpd:tftpd:read: No route to host


I can ping between the two Guest OS but why it is giving No route to host.

There are two network card on the Guest OS. One is running as NAT and the other is running as internal network. The Guest server and Guest client communicate using internal network IP.

Thank you for your input.
 
Old 01-11-2016, 06:40 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,310

Rep: Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213
Guessing it is a subnet issue maybe. What are the ip configs?

Guess it could be permissions. Can anything else access the host tftp server?
 
Old 01-11-2016, 10:33 PM   #3
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,688

Rep: Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714
Quote:
Originally Posted by ratotopi View Post
Netstat show the udp ports 69 is open
netstat can't show that. Most likely the firewall prevents you from accessing port 69. Use firewall-cmd list-ports to check, and firewall-cmd add-port 69/udp to open the port.
 
Old 01-12-2016, 10:16 AM   #4
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Original Poster
Rep: Reputation: 6
It is in the same 192.168.1.0/24 subnet and firewall is not running. I am trying to create TFTP server on virtualbox Guest OS running Centos 7. Netstat shows tftp is open to all.

Last edited by ratotopi; 01-12-2016 at 10:26 AM.
 
Old 01-12-2016, 10:55 AM   #5
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Original Poster
Rep: Reputation: 6
I did the tcpdump on the server and it showed the client unreachable - admin prohibited, so I knew I was not looking into the client side I made the changes and the tftp worked . Thank you
 
Old 01-13-2016, 06:08 AM   #6
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,688

Rep: Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714
Quote:
Originally Posted by ratotopi View Post
It is in the same 192.168.1.0/24 subnet and firewall is not running. I am trying to create TFTP server on virtualbox Guest OS running Centos 7. Netstat shows tftp is open to all.
Even though you have solved this, let me say again: Netstat doesn't show whether a given port is reachable from outside. It only shows that there is a process listening on that port.
In your case, my guess is that the tftp daemon is listening on port 69 on all IP addresses, which leads you to think that it's open for all.
 
Old 01-13-2016, 06:08 AM   #7
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,688

Rep: Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714Reputation: 1714
Quote:
Originally Posted by ratotopi View Post
I did the tcpdump on the server and it showed the client unreachable - admin prohibited, so I knew I was not looking into the client side I made the changes and the tftp worked . Thank you
Can you share your changes? Other people with similar problems would benefit from knowing what you did.
 
Old 01-13-2016, 09:48 AM   #8
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Original Poster
Rep: Reputation: 6
@berndbausch I know Netstat doesn't show whether a given port is reachable from outside. It only shows that there is a process listening on that port.
This is what I did on the client side to make tftp work

firewall-cmd --permanent --zone=public --add-source=192.168.1.0/24
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Running Out of Win7 VirtualBox Guest Disk Space tronayne Linux - Virtualization and Cloud 10 10-29-2015 11:05 AM
How secure is windows XP running as a virtualBox guest on a Slackware 12.2 host garyg007 Slackware 13 07-06-2015 06:54 PM
Access server running on localhost on host system through virtualbox guest OS Jean-Luc Besson Linux - Virtualization and Cloud 3 05-15-2012 04:19 PM
Host Fedora14, Windows 7 is running as Virtualbox guest- Mic is not working on Guest mwaheed Linux - Virtualization and Cloud 1 10-20-2011 01:51 PM
DVD writers will not mount in Linux Mint 9 running as VM guest in VirtualBox Stuart Stein Linux - Virtualization and Cloud 0 09-06-2010 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:53 PM.

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