LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-02-2010, 05:00 PM   #1
Aldebaran
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 13.1
Posts: 72

Rep: Reputation: 15
Wireless in Virtual Box


Ive been trying to run Slackware in Virtual Box. But my problem, aside from my english, is that i cant seem to be able to bring my wireless network over to my virtual pc.
My PC is a Lenovo Ideapad S10-3.

Im currently running another operating system, but my aim is to be able to run Slackware with everything working.

I dont know where to start.

brgds
 
Old 07-02-2010, 05:38 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

It should work just fine:

1. Define a virtual interface (the default is probably Am79C973; any of the supported virtual network adapters should work).

2. Use NAT mode (again, there are many choices which should work, but use the default: NAT).

3. Configure port forwarding on any service you would like to access from outside your VM (i.e. any services you want to "export" from the VM).

4. Configure your virtual interface like you normally would configure any interface.

Voila! Done.

It should be fairly straightforward. Again: choose defaults whenever possible (wait until you've got everything working before you start experimenting with other alternatives).

These links give more details:

http://www.virtualbox.org/manual/ch06.html

http://cheznick.net/main/content/vir...access-via-nat

'Hope that helps .. PSM

PS:
You're a big star, aren't you?

At least in Taurus

Last edited by paulsm4; 07-02-2010 at 05:40 PM.
 
Old 07-02-2010, 07:06 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
VM's interact with the host. You don't use wireless on the VM. It has a virtual NIC. That virtual nic connects through a Virtual router to the host network.
 
Old 07-02-2010, 08:20 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Uh, Jefro - that's what I just said.

Didn't I ?

Aldebaran -

It's really fairly easy. Just look at the links I sent you (or Google for alternate links you might prefer).

Please post back with any specific questions you might have.

And, above all - have fun!
 
Old 07-03-2010, 02:43 PM   #5
Aldebaran
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 13.1
Posts: 72

Original Poster
Rep: Reputation: 15
Ok. First of all: Thanks for quick and informative replies.

As far as I understand the Virtual box takes my wireless card, "translates" it and presents it to my virtual machine as one of the cards listed as adapter types. This means my virtual Slackware will not recognize the wireless card as the same type as is in the laptop.

This again mean I have to install the kernel drivers, if they`re not already present, to the cards listed in Virtual box adapter types.

I know this probably isn`t technically correct, but have I managed to get the basic hang of it?

brgds

ps: Aldebaran is indeed a big star. My favorite
 
Old 07-05-2010, 06:54 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
As far as I understand the Virtual box takes my wireless card, "translates" it and presents it to my virtual machine as one of the cards listed as adapter types. This means my virtual Slackware will not recognize the wireless card as the same type as is in the laptop.
Yeah, that is right. One of the main ideas behind virtual machines is that they don't have any interaction with anything real.

Quote:
This again mean I have to install the kernel drivers, if they`re not already present, to the cards listed in Virtual box adapter types.
That's right. My experience is that the virtual cards are generic enough that almost any modern distro has the right drivers right out of the box.

Quote:
I know this probably isn`t technically correct, but have I managed to get the basic hang of it?
I think you've got the hang of it quite nicely.
 
Old 07-05-2010, 12:47 PM   #7
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
As far as I understand the Virtual box takes my wireless card, "translates" it and presents it to my virtual machine as one of the cards listed as adapter types.
Basically correct. In reality, there are TWO network adapters: your "real" adapter (which happens to be a wireless NIC), and your "virtual" NIC.

Quote:
This means my virtual Slackware will not recognize the wireless card as the same type as is in the laptop.
Yes, because your virtual NIC is a *separate* NIC.


Quote:
have I managed to get the basic hang of it?
Yes, indeed

PS:
This is also basically what Jefro was trying to say. But the relationship between your virtual NIC and your physical interface can come in any of several "flavors":

a) NAT mode (this uses a virtual router, like Jefro said)
b) Bridged mode (in this mode, your virtual NIC is on the same subnet as your physical NIC. Here, you have a virtual "bridge" instead of a virtual "router")
c) Host-only (here, there is *no* network communication between your virtual NIC and "the real world")
d) Etc (there are other variations, depending on your specific configuration and specific needs)

'Hope that helps .. PSM

Last edited by paulsm4; 07-05-2010 at 12:53 PM.
 
Old 07-05-2010, 01:24 PM   #8
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
The host OS (probably WinBloze) passes wireless networks to the guest via a virtual Ethernet device. Therefore, it's eth0 that you need to configure in the guest OS, not any wireless network device as would be the case with a host OS.
 
Old 07-05-2010, 02:59 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I tried to make it simple.


You don't use wireless on the VM. The VM has a virtual NIC. That virtual nic connects through a Virtual router to the host network.


Just install your VM application. Set VM properties to NAT. Install your OS. (some OS's may need a driver for virtual nic).

Let it rip.

The Virtual machine has a software router to transfer your VM's data to your hosts nic.
 
  


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
unable to auto mount 'shared folder' iin Suse 11.2 virtual machine using Virtual Box marvinudy Linux - Virtualization and Cloud 1 02-03-2010 02:29 PM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM
Fedora 10--on Virtual Box (wireless) cnotejunebug Fedora 2 01-11-2009 10:46 AM
Virtual Box Blackbar Linux - Software 1 06-05-2007 07:25 PM
Virtual Box. Removing a shared folder inside virtual xp. glore2002 Linux - Software 2 05-20-2007 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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