• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Can you allow the host to use the VM network connection?

Joined
Mar 23, 2011
Messages
1 (0.00/day)
Likes
0
#1
Okay, I'm using Windows 7 and XP mode, with a Verizon card because my crappy DSL got shut off... That catch is that the x64 drivers are not signed, so I cannot use the card in 7, but I can use in in XP via Windows VPC (how I am accessing this)... I am wondering if I can share the card from XP Mode into 7??? I looked in network places and the 'host' does not show up at all, so I really have no idea where to get started on this if it is even possible.

EDIT: I am going to try the steps MS provides for getting the card to work in 7 here: http://social.technet.microsoft.com...e/thread/d5b4340a-70d4-4eab-9a6e-50088a56d2ef I will post back letting everyone know how is goes.
If you use a VM...

this is possible although not immediately obviously useful. My situation was one where the vm os was able to change settings on a wireless network adapter which allowed me to pick up the signal at a useable strength. The host could not do this. So I was in the weird situation where the vm os - backtrack - had internet but the host - osx 10.6 - did not. Annoying.

Easily corrected as follows:
1. connect the vm to the network, in my case this was wireless so wlan0
2. set up the vm so that is has a local network with the host, make sure the host can ping the vm. In my case this meant enabling eth0 in the vm
3. set up ip forward and iptables masquerade rules on the vm.
4. change the default route of the host to be the vm local ip
5. enjoy the vm network via the host


now I imagine some readers will want more detail on ip forward and masquerade with iptables but there are a lot of tutorials out there for this stuff. It depends on the vm os but if you are using linux then

ip forward with:
$ echo 1 > /proc/sys/net/ipv4/ip_forward

iptables rules something like this
iptables -t nat -A POSTROUTING -s $PRIVATE -o eth0 -j MASQUERADE

{clearly $PRIVATE is your private subnet, set the rules up to run at ifup}

:)
 
Last edited:

Easy Rhino

Linux Advocate
Joined
Nov 13, 2006
Messages
14,414 (3.53/day)
Likes
4,275
System Name VHOST01 | Desktop
Processor i7 980x | i5 7500 Kaby Lake
Motherboard Gigabyte x58 Extreme | AsRock MicroATX Z170M Exteme4
Cooling Prolimatech Megahelams | Stock
Memory 6x4 GB @ 1333 | 2x 8G Gskill Aegis DDR4 2400
Video Card(s) Nvidia GT 210 | Nvidia GTX 970 FTW+
Storage 4x2 TB Enterprise RAID5 |Corsair mForce nvme 250G
Display(s) N/A | Dell 27" 1440p 8bit GSYNC
Case Lian Li ATX Mid Tower | Corsair Carbide 400C
Audio Device(s) NA | On Board
Power Supply SeaSonic 500W Gold | Seasonic SSR-650GD Flagship Prime Series 650W Gold
Mouse N/A | Logitech G900 Chaos Spectrum
Keyboard N/A | Posiden Z RGB Cherry MX Brown
Software Centos 7 | Windows 10
#2
that is pretty damn clever.