LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-21-2012, 10:50 AM   #1
hamidi2
Member
 
Registered: Aug 2012
Posts: 61

Rep: Reputation: Disabled
910901 - How to access samba shares via host-only adapter?


hi
using virtualbox, i've nat adapter and host-only adapter. host is Windows 7, guest is Ubuntu 10.10.
how can i access samba shares?
i could use bridge instead of nat before, and i had no problem. i could handle samba shares with ease. but now I HAVE FORCED TO SWITCH TO NAT. so please don't suggest me to still use bridge. just let me know is it possible to access samba shares via host-only adapter? is yes, how?
i've heard that i CAN'T access samba shares via nat, is it right?
but they say it's not a problem to use host-only adapter or Internal Network as well as nat.
also let me know what's the difference between Internal Network and host-only? i just needed a way to access guest via host. so i added a host-only adapter for this purpose.
anxiously waiting for any useful reply.
thx
 
Old 11-21-2012, 12:13 PM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
I am also trying to solve the same pb for a long time, but couldn't succeed, however sharing what I concluded so far:
First thing is that both host and guest should be in same network domain i.e both OS should know each other using their hostnames or FQDNs. Ping each other using IPs will not help at all. Are you using any domain name service on your guest OS? If yes, then first start a communication between both OS and then you can install Samba on guest OS and can access Unix folders i.e. guest data from Windows though Samba or network shares.
On the other hand, just for sake of any data transfer, you can use software such as WinSCP. But that will also need networking between both OS.
 
Old 11-22-2012, 01:30 AM   #3
hamidi2
Member
 
Registered: Aug 2012
Posts: 61

Original Poster
Rep: Reputation: Disabled
thank u 4 sharing ur experience.
both OSes may see each others by ping (host and guest), but u say it's not enough.
i don't know how to setup a DNS on the Ubuntu guest. i'm not so familiar with Linux yet. but i expect there be a way not to require this, although u say that it's required. when i don't refer to any name, neither in host nor in guest, why it must be required?! i know that samba shares may be available via host-only adapter, but i don't know how to setup this. i don't know why NAT must not work. but it's not a problem while i've to use host-only adapter for another purpose too.
so the main question gets:
how to setup samba shares through host-only adapter?
 
  


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
SAMBA Configuration - Cannot access SAMBA Shares Gyrogypsy Linux - Newbie 7 04-09-2012 11:47 PM
Unable to see shares on samba server - no authentication access desired (open access) neoelf Linux - Networking 1 06-14-2009 04:18 PM
can not access samba shares from a VIRTUAL samba server using smb4k nass Fedora 0 12-13-2008 05:39 AM
Samba shares only visible using IP address but not host name louie1961 Linux - Networking 5 09-28-2008 09:59 AM
can't access samba shares from xp hemp4fuel Slackware 20 07-09-2003 02:28 AM


All times are GMT -5. The time now is 05:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration