910901 - How to access samba shares via host-only adapter?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.