Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

How to share Internet connection from Windows Virtual Machine to Mac OS?

Article ID: 5557 
Last Review: Sep,30 2009
Author: Daria Taranova
Last updated by: Daria Taranova APPLIES TO:
  • Parallels Desktop for Mac 4.x

Symptoms


I have a device which allows to connect to Internet, but it only has drivers for Windows. How can I share Internet connection from Windows Virtual Machine to Mac OS?

Resolution

1. Connect the modem to USB port on Mac OS X computer.

2. Start Parallels Desktop (do not launch the virtual machine yet) and click on Parallels Desktop  -> Preferences -> Networking in the top menu. Select Host-only networking connection type and change DHCP scope to be:
Start address [192.168.0.128]
End address [192.168.0.254]


Apply settings




3. Go to Mac OS X System Preferences -> Network, choose 'Parallels Host-Only' adapter and change the settings to be:
Router: 192.168.0.1
DNS server: 192.168.0.1
Search Domains: leave blank




NOTE:
It is possible to automate applying and reverting these changes using Apple script file (See Additional recommendations below).

4. Click on Configure button on the virtual machine’s window and switch to Network Adapter pane. Set the adapter to work in Shared Networking regime



5. Click ‘+’ (plus) button below the list of resources to add the second Network Adapter. Configure it to use Host-Only connection. Apply changes hitting OK.



6. Start the virtual machine and connect the modem to it. For this purpose click on Devices in Parallels Desktop top menu -> USB and check the necessary modem. ‘Welcome to the Found New Hardware Wizard’ dialog will appear.



7. Cancel it and put modem installation CD in the CD/DVD-Rom. It should welcome you with device installation wizard. If it does not, please, go to Start -> My Computer and launch installation from CD/DVD-ROM.

8. Install drivers for the device in the virtual machine.

NOTE:  To install drivers correctly you should add correspondent exceptions to Firewall if it is activated on Windows side and check the rules in Mac OS X Firewall if switched on.

9.  Since modem complete installation, new Network connection should appear in Start -> Control Panel -> Network Connections applet. Right-click the correspondent connection and choose Properties -> Advanced. Enable “Allow other network users to connect through this computer’s Internet connection” option. In the “Home networking connection:” drop-down list select the network adapter which was previously set to Host-only.

10. If all the steps were taken exactly as instructed, there should be shared Internet connection possible between virtual machine and Mac OS X computer through Windows modem.


NOTE: Steps 3 and 4 above should be used only in Parallels Desktop 4.0 for Mac. If you have Parallels Desktop 2.X or 3.0 for Mac please use the following steps:

3. In Mac OS open System Preferences -> Network

4. Edit settings for 'Parallels Host-Guest' adapter as below:
Configure: Manually
IP address: any in range 192.168.0.128-192.168.0.254
Subnet Mask: 255.255.255.0
Router: 192.168.0.1
DNS server: 192.168.0.1
Search Domains:  leave empty

Additional recommendations

A. It is strongly advised to apply settings listed in pp. 2 and 3 before using the Windows modem and erase them right after. This helps to avoid conflicts in network configuration. The most comfortable way to do it is to use Apple  Script files:

 http://download.parallels.com/stuff/enable_host_script.scpt
- to apply configuration

 http://download.parallels.com/stuff/disable_host_script.scpt - to revert changes

B. To stop using virtual machine modem connection you should click on Devices in Parallels Desktop top menu -> Network Adapter -> Shared networking. Since this time the virtual machine will use standard network cable attached to Mac OS.

C. For proper work of Apple Script it is required Universal Access option to be switched on. Starting the script for the first time you will see a message explaining how to enable Universal Access.

Known issues

If you unplug the  modem from USB port while it is in use in virtual machine, it won’t be recognized any more, even though you plug it in back. To get it working again you need to either reboot the virtual machine or to plug the device in another physical USB port on your Mac.
Keywords: share Internet connection


Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products