LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-01-2008, 01:33 PM   #1
pvandyk2005
LQ Newbie
 
Registered: Jun 2008
Distribution: Slackware 12.1
Posts: 29

Rep: Reputation: 15
How to connect a Qemu box to my network


Hello guys

I've got one virtual box(windows) managed with Qemu in my slack(12.1). My problem is regarding network connection of the virtual box.

In my case i have one secondary ip on my eth0 192.168.1.1/24 and my virtual box 192.168.1.2/24. Somehow i need to bridge them

If someone already tried or have a nice how to regarding this issue please give me a tip.

thank you!
 
Old 07-02-2008, 05:30 AM   #2
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
I could add network to Qemu, but it creates an alternative net area, something like 10.0.0.0/8 with:
User Mode
VLAN = 1

It creates the network and adds some kind of DHCP server on this virtual network, so your emulated W$ should find it out easily.
 
Old 07-02-2008, 06:54 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Try ans see if these pages help you get your QEMU guest networked:
http://alien.slackbook.org/dokuwiki/...slackware:qemu
http://alien.slackbook.org/dokuwiki/...=slackware:vde

It works - I use this on a daily basis because QEMU virtual machines are where I build and test all my packages.

Eric
 
Old 07-02-2008, 09:13 AM   #4
webaware
Member
 
Registered: Nov 2007
Location: Australia
Distribution: Fedora FC-9 x86-64+i686,CentOS 5.2 i686
Posts: 58

Rep: Reputation: 16
G'day, I haven't checked out Alien Bob's approach yet (quick look and it looks good), but you might also want to check out Wikibooks which just uses bridged networking.
 
Old 07-03-2008, 12:31 PM   #5
pvandyk2005
LQ Newbie
 
Registered: Jun 2008
Distribution: Slackware 12.1
Posts: 29

Original Poster
Rep: Reputation: 15
i did it. it's working and to be very onest is.... nothing to do.... just to enable dhcp on that virtual box and qemu will assign some ip. Connection is already bridged with my lan.

thanks for help guys.
 
Old 07-04-2008, 08:15 AM   #6
webaware
Member
 
Registered: Nov 2007
Location: Australia
Distribution: Fedora FC-9 x86-64+i686,CentOS 5.2 i686
Posts: 58

Rep: Reputation: 16
Aha, so you had specified an IP address on your guest OS's NIC, and have now changed it to DHCP so that it functions using QEMU's user mode networking. Just note that it isn't full networking (ping won't work, for example, and incoming connections are blocked unless you redirect them through another port) but for most purposes that's just fine.
 
Old 07-04-2008, 11:21 AM   #7
pvandyk2005
LQ Newbie
 
Registered: Jun 2008
Distribution: Slackware 12.1
Posts: 29

Original Poster
Rep: Reputation: 15
yeah... UDP , icmp packets are droped. But this could be fixed easy.

thanks a lot for help guys.

P.S. I love this forum
 
  


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
Cannot connect to FC5 box on several network services ethics Fedora 2 04-02-2006 03:25 PM
XP Box won't connect to internet thru RH9 Box (firewall/dhcpd), it can only ping fire Rhapsodic Linux - Networking 4 07-10-2004 03:02 PM
Need help configuring an old linux box with wireless interface connect to network itrap2003 Linux - Wireless Networking 3 06-25-2004 12:50 PM
setting up a home network, unix/win2k box to connect with xp system Cher Linux - Networking 7 03-11-2004 01:41 AM
can't connect from my linux box to rest of network renman Linux - Networking 1 08-24-2003 03:29 PM

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

All times are GMT -5. The time now is 08:29 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
Open Source Consulting | Domain Registration