LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-06-2009, 02:08 PM   #1
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
networking hard-disk to vbox


i cant exactly say what i want, i miss all terms. i will just try:
i got a PC with dual-boot (debian-lenny and sid). On both i got VirtualBox installed, most of the guests are linux and on each is one Windows-OS.

I want to learn about networking under those circumstances. I had a very short look in samba and ssh (another thing i heard about is vnc).

One of you knows a very easy tutorial on networking from host to virtualbox. If possible step by step (and really easy :-) ).

All the info i find is bout setting up the samba-"server", but i wouldnt even know how to reach it from the "client" (epecially the windows-side is laying in complete darkness...)

sorry, thats all i can say, im just looking for how-to`s (or if one might help, but i wont be able to answer qualified questions atm).

greetings
 
Old 10-07-2009, 01:25 AM   #2
khodeir
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 243

Rep: Reputation: 33
Quote:
All the info i find is bout setting up the samba-"server", but i wouldnt even know how to reach it from the "client" (epecially the windows-side is laying in complete darkness...)
Testing your samba configuration

You want to test your samba configuration for users Ahmed run the following command

#smbclient -L //debianserver -U Ahmed
 
Old 10-07-2009, 01:27 AM   #3
khodeir
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 243

Rep: Reputation: 33
Quote:
One of you knows a very easy tutorial on networking from host to virtualbox. If possible step by step (and really easy :-) ).
plz see this link here
 
Old 10-07-2009, 05:18 AM   #4
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
thanks, but not exactly what i was looking for:
a)really easy, not advanced and b) a How-to set it up,step by step,not how to integrate it into an existing network c) how to reach it from vbox-guest:windows (or linux)

I`ll check the google-results if i may find something.
greetings
 
Old 10-07-2009, 05:38 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Networking between virtual machines, the host and other computers on the LAN and thence, via the gateway, to the Internet is possible.

The first thing to think about is whether you want the virtual machines to have their own addresses on the LAN or whether you want them to use the host as a "NAT"ting router. Using the host as a "NAT"ting router (VirtualBox default) means that other computers on the LAN cannot initiate communication with the virtual machines so they cannot be servers on the LAN. This is the same as when you connect to the Internet via a "NAT"ting router, the usual setup; computers on the LAN cannot be used as servers on the Internet (unless you configure the router to do port forwarding).

Once you have got the IP stuff set up the way you want it you can start working on networking services such as setting up Samba on the (Linux) host to share files with Windows guests/clients or setting up NFS on the the (Linux) host to share files with Linux guests/clients or setting up DNSmasq on the host to provide DNS services to the hosts or ... ssh or ...

Regards a Windows computer accessing a file system served by Samba, from the Windows perspective it is just like any other shared drive.

EDIT: at the IP level, you also need to decide whether you want to use DHCP or not. It's probably easier not to unless any of your computers may also be connected to other LANs which se DHCP, for example a portable computer.

Last edited by catkin; 10-07-2009 at 05:41 AM.
 
Old 10-07-2009, 05:59 AM   #6
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
thanks a lot,
(though its not easy to understand it completely :-) )

Quote:
The first thing to think about is whether you want the virtual machines to have their own addresses on the LAN or whether you want them to use the host as a "NAT"ting router. Using the host as a "NAT"ting router (VirtualBox default) means that other computers on the LAN cannot initiate communication with the virtual machines so they cannot be servers on the LAN. This is the same as when you connect to the Internet via a "NAT"ting router, the usual setup; computers on the LAN cannot be used as servers on the Internet (unless you configure the router to do port forwarding).
Yesterday i stumbled over some info and added a second network-adapter in the network settings:
host-only-adapter with the name vboxneth0
I was able to reach the guest from the host and vice-versa with ssh :-)
(when i just replaced the NAT i didnt have got internet in the guest no more. Another choice gave me access from host to guest, but not the other way around).

i got a question according to this:
Quote:
Once you have got the IP stuff set up the way you want it
it needs to be set-up in virtualbox-settings (like i did above) or the hosts /etc/network/interfaces or in the guest?

thanks again, your explanation is excellent, but i will need to read a bit in addition to understand it completely.
greetings

edit: i guess its important: from the host i only may connect to the net via pppoeconf.

Last edited by j1alu; 10-07-2009 at 06:04 AM. Reason: typos and additional info
 
Old 10-07-2009, 06:23 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
I understand it is hard to explain exactly what you want to do when you are learning and that many people like to learn by experimenting ... but (!) we can't tell you how to do it without knowing what you want to do!

Using versions of VirtualBox after 2.1 there are no changes required to networking on the host (you can forget about tap and tun and bridging if you have stumbled upon them during your researches). There are changes to be made to the network adapter (NIC) configuration for the virtual machines; this is done using VirtualBox on the host and each OS running as a guest has to configure its NIC in exactly the same way an OS running on real hardware has to configure its NIC. This may be by DHCP or by fixed configuration -- of IP, netmask and default gateway (and DNS servers on Windows; on Linux, DNS server configuration is usually done in /etc/nsswitch and /etc/resolv.conf).

One of the things that is very hard when you are learning this stuff is that so many pages on the Internet are cook-book "how to", whereas you thirst to understand what all the pieces are and how they fit together. Sometimes Wikipedia is good for that. The most helpful resource I found as an introduction to (TCP/IP) networking was Microsoft's MCSE book but that is not AFAIK available free on the Internet

To master this stuff you need to understand what IP, NAT and DNS are. Good tools for troubleshooting are ifconfig (ipconfig on Windows) ping (by name and by IP address), nslookup and maybe traceroute.
 
Old 10-07-2009, 10:45 AM   #8
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by catkin View Post
I understand it is hard to explain exactly what you want to do when you are learning and that many people like to learn by experimenting ... but (!) we can't tell you how to do it without knowing what you want to do!

Using versions of VirtualBox after 2.1 there are no changes required to networking on the host (you can forget about tap and tun and bridging if you have stumbled upon them during your researches). There are changes to be made to the network adapter (NIC) configuration for the virtual machines; this is done using VirtualBox on the host and each OS running as a guest has to configure its NIC in exactly the same way an OS running on real hardware has to configure its NIC. This may be by DHCP or by fixed configuration -- of IP, netmask and default gateway (and DNS servers on Windows; on Linux, DNS server configuration is usually done in /etc/nsswitch and /etc/resolv.conf).

One of the things that is very hard when you are learning this stuff is that so many pages on the Internet are cook-book "how to", whereas you thirst to understand what all the pieces are and how they fit together. Sometimes Wikipedia is good for that. The most helpful resource I found as an introduction to (TCP/IP) networking was Microsoft's MCSE book but that is not AFAIK available free on the Internet

To master this stuff you need to understand what IP, NAT and DNS are. Good tools for troubleshooting are ifconfig (ipconfig on Windows) ping (by name and by IP address), nslookup and maybe traceroute.
Ok, a "bit" of stuff i got now, ssh works (so far) and i gotta move on. Its a bit more than a bit :-)

I use wikipedia to check the terms and my books (mainly wikipedia), but for me the problem is the other way around:
the info i get is mainly documentation, but i cant find how-to`s.
(+i`m more of an experimenting one, not that much of a reader when it comes to the pc. with networking that way doesnt seem to work :-) )

thanks for your hints, ill check all that and it will keep me buisy for a while.
 
  


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
Copy of IBM Server hard disk data to Another USB External Hard disk mazharcdn Linux - Server 2 09-02-2009 12:41 AM
Upgrading VBox 2.0.2 on Fedora 9 to VBox 2.0.6 fcquayso Linux - Newbie 2 12-10-2008 04:44 PM
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:17 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