LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-24-2007, 12:10 PM   #1
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Why is wifi Internet not working with VMWare 6.x and Linux kernel 2.6.22?


Several people on the VMWare forums have reported that they can't establish a wireless Internet connection via a Windows guest using VMWare WorkStation 6.x running on a Linux kernel 2.6.22. We're able to connect wirelessly to a LAN, but not to the Internet. Wired ethernet connections under the same configuration seem to work fine.


Does anyone have insight into this? Is there a kernel change that would affect bridge networking with a virtual machine when the host machine is connected wirelessly to the Internet?


I'd really like to get to the bottom of this, as it has kept me stuck at an older kernel for several months now. Normally that wouldn't be a problem, but there are several new kernel features that I'd really like to benefit from and can't.
 
Old 09-24-2007, 12:59 PM   #2
lx4svr
LQ Newbie
 
Registered: Sep 2007
Posts: 12

Rep: Reputation: 0
Correct me if I am wrong, but it sounds like you can connect to the local network with the guest using your wireless connection, but you can not reach the internet. If you have the guest use your NIC on the LAN, then both LAN and internet work. What about NAT, does it work both ways with NAT instead of bridging. I am currently running VMware workstation 6 on my laptop (SuSe), and I have never had any issues with my XP, Vista, or Sun10 guest connecting on either my eth0 or wlan1, but with more information I may have some ideas.

Last edited by lx4svr; 09-24-2007 at 01:02 PM.
 
Old 09-24-2007, 01:04 PM   #3
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by lx4svr View Post
Correct me if I am wrong, but it sounds like you can connect to the local network with the guest using your LAN but not with the wireless connection, but you can not reach the internet. What about NAT, does it work with NAT. I am currently running VMware workstation 6 on my laptop (SuSe), and I have never had any issues with my XP, Vista, or Sun10 guest connecting on either my eth0 or wlan1, but with more information I may have some ideas.
I'm using bridged networking. Yes, I can connect to the local network but can't reach the Internet. I tried NAT but got the same results.

Everything works fine as long as I stick with Linux kernel 2.6.20 or older.

Thanks for any thoughts you might have.
 
Old 09-24-2007, 03:40 PM   #4
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by lx4svr View Post
I am currently running VMware workstation 6 on my laptop (SuSe), and I have never had any issues with my XP, Vista, or Sun10 guest connecting on either my eth0 or wlan1, but with more information I may have some ideas.
What kernel are you running with SuSE? Thanks.
 
Old 09-27-2007, 10:54 AM   #5
lx4svr
LQ Newbie
 
Registered: Sep 2007
Posts: 12

Rep: Reputation: 0
From what I can tell, yes it sounds like it is the version of VMware is not compatible with your kernel. I am using the kernel version 2.6.18.2-34. I suggest to try using VMware workstation, or you may need to wait until a newer version of vmware-server is out. If not, then I guess that you may have to down-grade your kernel. Also you can try vmware-player, but you will not be able to create any new VM's with player.
 
Old 09-27-2007, 11:28 AM   #6
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by lx4svr View Post
From what I can tell, yes it sounds like it is the version of VMware is not compatible with your kernel. I am using the kernel version 2.6.18.2-34. I suggest to try using VMware workstation, or you may need to wait until a newer version of vmware-server is out. If not, then I guess that you may have to down-grade your kernel. Also you can try vmware-player, but you will not be able to create any new VM's with player.
Thank you for the information. I had suspected you were using a kernel prior to 2.6.22.

I'm already using Workstation for Linux 6.0 (and I've also tried 6.01). You are perhaps correct that there's an incompatibility with more recent Linux kernels, at least as far as wireless networking is concerned. So for now I'm using kernel 2.6.20, which works fine. I had wanted to use kernel 2.6.22, as it supports SLUB memory allocation but, since I need VMware more than I need the latest-and-greatest memory allocation algorithm, I'll wait for that.
 
Old 09-28-2007, 10:09 AM   #7
lx4svr
LQ Newbie
 
Registered: Sep 2007
Posts: 12

Rep: Reputation: 0
Sounds good. I would probably ask the VMware forums, and they may be able to give you more information.
 
Old 09-29-2007, 02:22 PM   #8
funderburg
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Rep: Reputation: 0
I may know how to fix this. Well, I fixed it for me anyway. Note: I never use wired connections so I'm not sure what this'll do beyond wireless.

I'm currently using wireless in bridged mode with VMware Workstation 6.0.1 build-55017 on Kubuntu Gutsy with kernel 2.6.22-12-generic.

First go the directory your vmware modules source directory. Mine's at /opt/vmware/lib/vmware/modules/source. Untar the vmnet.tar file.

Then go into the newly unpacked vmnet-only directory and apply this patch:

Code:
--- bridge.c.broken     2007-08-22 03:29:43.000000000 +0100
+++ bridge.c    2007-09-29 20:11:44.000000000 +0100
@@ -32,9 +32,7 @@
 #include <linux/tcp.h>
 #include <net/tcp.h>
 
-#ifdef CONFIG_NET_RADIO
-#   include <linux/wireless.h>
-#endif
+#include <linux/wireless.h>
 #include "vmnetInt.h"
 #include "compat_spinlock.h"
 #include "compat_netdevice.h"
@@ -765,11 +763,11 @@
 VNetBridgeIsDeviceWireless(struct net_device *dev) //IN: sock
 {
 #if !defined(CONFIG_NET_RADIO)
-   return FALSE;
+   return dev->wireless_handlers != NULL;
 #elif WIRELESS_EXT > 19
    return dev->wireless_handlers != NULL;
 #elif WIRELESS_EXT > 12
-   return dev->wireless_handlers != NULL || dev->get_wireless_stats != NULL;
+   return dev->wireless_handlers != NULL;
 #else
    return dev->get_wireless_stats != NULL;
 #endif
Then retar all that back into the vmnet.tar file and rerun vmware-config.pl

You'll know if it worked when you see something this in your /var/log/messages: "bridge-eth1: is a Wireless Adapter"
 
Old 09-29-2007, 09:17 PM   #9
daguerre
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Rep: Reputation: 0
Works!!
Finally. This one was killing me.
Spread this fix around, a lot of folks were knocked out of action with kernel 2.6.22-4 or so.
 
Old 09-30-2007, 11:24 AM   #10
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by daguerre View Post
Works!!
Finally. This one was killing me.
Spread this fix around, a lot of folks were knocked out of action with kernel 2.6.22-4 or so.
Fix worked for me, too. Thanks a million, funderburg.
 
Old 09-30-2007, 05:13 PM   #11
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Following on funderburg's work, Hauke-m has posted on the VMware forum a pre-patched vmnet.tar for VMware (Linux) 6.0.1. You can find the link in this thread, post no. 24: http://communities.vmware.com/message/761031#761031

He has also posted a link to a patch that permits wired as well as wireless bridged networking.
 
Old 10-01-2007, 04:52 AM   #12
funderburg
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by dhave View Post
Following on funderburg's work, Hauke-m has posted on the VMware forum a pre-patched vmnet.tar for VMware (Linux) 6.0.1. You can find the link in this thread, post no. 24: http://communities.vmware.com/message/761031#761031

He has also posted a link to a patch that permits wired as well as wireless bridged networking.
This is much more elegant solution I think. More of a razor blade solution instead of my sledgehammer solution.
 
Old 08-15-2008, 06:31 PM   #13
jiky1
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Smile

Quote:
Originally Posted by funderburg View Post
I may know how to fix this. Well, I fixed it for me anyway. Note: I never use wired connections so I'm not sure what this'll do beyond wireless.

I'm currently using wireless in bridged mode with VMware Workstation 6.0.1 build-55017 on Kubuntu Gutsy with kernel 2.6.22-12-generic.

First go the directory your vmware modules source directory. Mine's at /opt/vmware/lib/vmware/modules/source. Untar the vmnet.tar file.

Then go into the newly unpacked vmnet-only directory and apply this patch:

Code:
--- bridge.c.broken     2007-08-22 03:29:43.000000000 +0100
+++ bridge.c    2007-09-29 20:11:44.000000000 +0100
@@ -32,9 +32,7 @@
 #include <linux/tcp.h>
 #include <net/tcp.h>
 
-#ifdef CONFIG_NET_RADIO
-#   include <linux/wireless.h>
-#endif
+#include <linux/wireless.h>
 #include "vmnetInt.h"
 #include "compat_spinlock.h"
 #include "compat_netdevice.h"
@@ -765,11 +763,11 @@
 VNetBridgeIsDeviceWireless(struct net_device *dev) //IN: sock
 {
 #if !defined(CONFIG_NET_RADIO)
-   return FALSE;
+   return dev->wireless_handlers != NULL;
 #elif WIRELESS_EXT > 19
    return dev->wireless_handlers != NULL;
 #elif WIRELESS_EXT > 12
-   return dev->wireless_handlers != NULL || dev->get_wireless_stats != NULL;
+   return dev->wireless_handlers != NULL;
 #else
    return dev->get_wireless_stats != NULL;
 #endif
Then retar all that back into the vmnet.tar file and rerun vmware-config.pl

You'll know if it worked when you see something this in your /var/log/messages: "bridge-eth1: is a Wireless Adapter"
Hello,
someone can tell me how to apply this patch ? should I replace bridge.c's code by this code ? or make a new file in the vmnet-only folder, tar it, and rerun the vmware-config.pl ??

please tell me faster, this problm block me to make many test on my laptop

thanks
 
Old 08-16-2008, 06:44 AM   #14
funderburg
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by jiky1 View Post
Hello,
someone can tell me how to apply this patch ? should I replace bridge.c's code by this code ? or make a new file in the vmnet-only folder, tar it, and rerun the vmware-config.pl ??

please tell me faster, this problm block me to make many test on my laptop

thanks
Bearing in mind that this patch is now a year old, *wasn't the ideal solution*, the kernel has moved on a lot, and vmware has probably been updated by now, I'd rather not give you the exact command in case it doesn't work. If you feel brave run "man patch" to learn how to apply source patches.

Otherwise, yes, you're "correcting" the existing bridge.c. Just remove any matching lines with a "-" and add the lines that have a "+". Then rebuild the tar file and re-run vmware-config.pl
 
  


Reply

Tags
bridging, vmware, wireless



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
FC5 new kernel: D-Link DWL-650 wifi adaptor stopped working edantes Linux - Kernel 1 04-22-2006 03:44 AM
Working WiFi but no internet... help ! Tonyyates51 Linux - Wireless Networking 3 10-19-2005 03:21 PM
Debug Linux kernel in vmware (two machines in vmware)?? cyu021 Programming 0 03-30-2005 07:46 PM
Need Help getting Red Hat 9 Internet working, inside of Vmware 4.5. Host=Xp Pro Izonic Linux - Networking 1 06-25-2004 03:22 PM
vmware stopped working after a kernel upgrade bruno buys Linux - Software 2 06-21-2004 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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