Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-05-2006, 08:32 PM
|
#1
|
|
Member
Registered: Aug 2004
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 291
Rep:
|
qemu--getting Samba networking going
Hi--
Finally, after help here and lots of false starts, got Win95 installed under qemu on Ubuntu 5.10.
So now how do I get it to see the network that I have? It is a samba network, the server being on another box, 192.168.0.200.
I found this howto at http://lists.gnu.org/archive/html/qe.../msg00150.html
which has some interesting clues, but so far I cannot make it go. I suspect there is a config file somewhere that needs some work, but what it is, I don't know.
Anybody out there who has any experience getting this going?
Thanks!
|
|
|
|
01-07-2006, 07:59 PM
|
#2
|
|
Member
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384
Rep:
|
Hi...
when you launch Qemu from command line, I remember you've got options so as to tell how many network cards the virtual machine has, and what network mode it uses -- got to check the manpage.
I think there are at least 2 network modes:
Default mode: Qemu is answering DHCP/DNS requests and acts as a gateway as well. In short, Qemu sets up a virtual lan, and the virtual machine is NATed from this virtual lan to the network(s) available to the real machine. NATing is done in a way that prevents machines in the real lan to access the virtual one.
In another mode - which name I don't remember -, a network interface is created on the real machine (the host), it's called tun0, tun1, tun2... one for each virtual machine you have. Both these interfaces receive IP addresses. You can normally configure tun0 with ifconfig is you need special config, and you can use any tun interface in iptables, route, brctl and any other program.
So, if you only need to have samba working between the host and the virtual machine(s), you should only have to use the correct network mode, and have samba listening to any network (I belireve that's default behaviour). If you're runnning a firewall, you'll have to change its config to take the new virtual interface into account.
If you need your virual machines to be accessible from the real network, you'll need either to route from the virtual network to the real one, or to bridge the different networks together. That can be done with route or brctl exactly as if they were real interfaces, real networks and real machines.
Hope that helps...
|
|
|
|
01-08-2006, 02:47 PM
|
#3
|
|
Member
Registered: Aug 2004
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 291
Original Poster
Rep:
|
Fr_laz--
Yes, that helps. I have so far not been able to make heads or tails of the man page for qemu, but I see there is a qemu forum, which seems to have some things things that help, when I search on samba.
So I need to go back to the books and do some studying.
Thanks, Fr_laz!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:23 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|