LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 10-16-2009, 05:43 AM   #1
Cottonwoody
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Sun VirtualBox: Guest is Unable to Connect to Host By Hostname


Hi,

there is one similar thread but that one didn't help.

I cannot connect to my XP-Home Host by hostname. Guest is Debian (Knoppix). Cause I want to run an Asterisk on the guest, I have to use bridged network. I can reach every host by hostname (local and worldwide) except the own pc's XP Home. But I can reach it by it's ip address.

My router is a FBF 7170. It shows "xxxxx" as hostname for the XP Home host and sometimes "xxxxx (2)" and sometimes "PC-192-168-178-3" as hostname for the linux client.

I already have a workaround. I put the ip and hostname into my /etc/hosts. But that is really only a workaround. As soon as I'm changing the used pc I have to alter the hosts file. So it is not much better than to use the ip directly.

So I'm looking for a real solution only. Can anybody help?
 
Old 10-17-2009, 03:48 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
My guess is that you're using a little firewall/router device that
provides dhcp and dns services. If so, that's the place to check.

Apparently you have dynamic dns and the Windows host isn't properly
registering its hostname.
 
Old 10-17-2009, 12:19 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,221
Blog Entries: 3

Rep: Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437
Hi,

Just a shot, but what about your 'lmhosts' file?

The above link and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 10-17-2009, 03:45 PM   #4
Cottonwoody
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Many thanks for your answers.

Quote:
Originally Posted by carltm View Post
My guess is that you're using a little firewall/router device that provides dhcp and dns services.
It isn't a problem with the firewall and also not with the dns services. When I'm using NAT instead of Bridget Network everything works fine. And it is only the host system that is unreachable by hostname.
It could be a problem with the router which is a FritzBox 7170 (FBF). But I guess it is a problem with the Sun VirtualBox.

Quote:
Originally Posted by carltm View Post
Apparently you have dynamic dns and the Windows host isn't properly registering its hostname.
The Windows host is properly registering its hostname. I can see that in the FBF Menu.


Quote:
Originally Posted by onebuck View Post
Just a shot, but what about your 'lmhosts' file?
That is a file within the unreachable Windows host system, isn't it? I think that wouldn't help. Or am I wrong?
 
Old 10-17-2009, 05:07 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,221
Blog Entries: 3

Rep: Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437
Hi,

Quote:
Originally Posted by Cottonwoody View Post
<snip>

That is a file within the unreachable Windows host system, isn't it? I think that wouldn't help. Or am I wrong?
Be sure to setup the '/etc/hosts' along with the other hosts* files for your Gnu/Linux and others on the LAN.

Quote:
I already have a workaround. I put the ip and hostname into my /etc/hosts. But that is really only a workaround. As soon as I'm changing the used pc I have to alter the hosts file. So it is not much better than to use the ip directly.
I read your post as a problem with the IP on the Host system.

What are you meaning by the underlined statement above?

Last edited by onebuck; 10-25-2009 at 12:00 PM.
 
Old 11-13-2009, 11:31 AM   #6
Cottonwoody
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by onebuck View Post
What are you meaning by the underlined statement above?
Knoppix is used as a remastered live cd. So I'm testing with my notebook. But I'll finally use it with a different pc.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect Virtualbox XP Guest to MySQL on Ubuntu Host pabs111 Linux - Newbie 3 06-05-2009 02:28 PM
VirtualBox Raw Access, Windows Host, Linux Guest Guitarist88 Linux - Newbie 2 11-14-2008 04:41 PM
VirtualBox Networking (NAT) not working on XP host with Mandriva guest FreeRadical2600 Linux - Newbie 9 10-29-2008 08:12 AM
VirtualBox: I want to share files between Fedora 9 host and Windows XP guest. Iltbreg Linux - Networking 5 10-22-2008 05:03 AM
Ubuntu Host Virtualbox guest Networking weirdness ddales Linux - Networking 0 01-20-2008 02:24 PM


All times are GMT -5. The time now is 12:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration