Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-05-2006, 08:32 PM   #1
Registered: Aug 2004
Distribution: Ubuntu 16.04 lts desk; Ubuntu 14.04 server
Posts: 342

Rep: Reputation: 31
Question qemu--getting Samba networking going


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,

I found this howto at
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?

Old 01-07-2006, 07:59 PM   #2
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32

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...
Old 01-08-2006, 02:47 PM   #3
Registered: Aug 2004
Distribution: Ubuntu 16.04 lts desk; Ubuntu 14.04 server
Posts: 342

Original Poster
Rep: Reputation: 31
Thumbs up


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
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
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM
Samba Networking With XP Floyd770 Linux - Networking 2 03-03-2005 11:23 AM
Networking with Samba linux-rulz Linux - Networking 10 02-21-2005 03:05 PM
help networking and with samba limiter Linux - Networking 0 10-06-2003 11:45 PM
Samba Networking esael Linux - Networking 3 10-26-2002 03:02 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration