LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to connect a Qemu box to my network (https://www.linuxquestions.org/questions/slackware-14/how-to-connect-a-qemu-box-to-my-network-652874/)

pvandyk2005 07-01-2008 01:33 PM

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!

emi_ramo 07-02-2008 05:30 AM

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.

Alien Bob 07-02-2008 06:54 AM

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

webaware 07-02-2008 09:13 AM

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.

pvandyk2005 07-03-2008 12:31 PM

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.

webaware 07-04-2008 08:15 AM

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.

pvandyk2005 07-04-2008 11:21 AM

yeah... UDP , icmp packets are droped. But this could be fixed easy. :)

thanks a lot for help guys.

P.S. I love this forum :)


All times are GMT -5. The time now is 11:46 PM.