Share VPN for Windows 7 Host running Ubuntu VMplayer with Cisco AnyConnect VPN - networking

I've attempted to search the forums for any insight on whether this is possible or not with no luck. I have a Windows 7 Host Machine running an Ubuntu 10.04 Virtual Machine with VMware Player. When I am not connected to the VPN my Ubuntu VM can access the internet using NAT bridging by bridging the VMware Network Adapter 8 connector to the Wireless Adapter in the Windows Network Connections dialog. If I connect to my company's VPN on the Windows host using Cisco AnyConnect VPN without changing any other settings, the VM can access the internet but cannot reach any intranet machines.
Is it possible to share this single host VPN connection with the Ubuntu VM?
If so, how can I configure the VMware Player or bridged connections to achieve this?
Thanks in advance for any help!

You have to open new Network Adapter.
For do that ;
1. Right Click on Your Virtual Machine
2. Under the table of "Hardware" tab click on "Add..." button
3. Choose "Network Adapter" and press "Finish" button
4. Choose your new Network Adapter.It will be add with new numb under your last network adapter.
5. From right side of the page , choose 'Bridged" in "Network connection" tab
6. Check "Replicate physical network connection state"
7. Click on ok
8. Run your vpn on your main OS and then run your Virtual Machine
9. Enjoy :)

We have a draytek router and use the Windows VPN client on the host. Its possible this may be dependent on the type of VPN and possibly how its configured IE security etc but certainly for this type of simple setup, the following works for me.
You should be able to share a VPN on the Host with the Guest by using NAT instead of Bridged mode:
The steps I use are as follows:
Connect to the vpn from the host and verify it's accessible
View the settings for the VM
Select 'Network Adapter' from the Hardware list
Under 'Network Connection' Select the option 'NAT: Used to share the host’s IP address'
Once the VM has started or applied the settings, the VPN should now be accessible from the guest.

It turns out this is not possible. You can't share the VPN connection between host and vm.

Related

How Do I Remote Desktop to a VMWare Windows 10 VM, not the base machine?

I have a PC running Windows 10. On that PC I have VMWare hosting a Windows 10 VM. I can run the VM without issue from the local machine. The VM has a typical Windows PC Name, different from the base machine.
When I try to make a Remote Desktop connection from a different PC to the VM using the VM PC Name, it connects to the base machine. I can see the VM running on the base machine and control it.
I need to be able to run several VM's on this base machine and then use RDP to run remote desktop sessions on the VM's.
Other configuration info:
The VM Network is configured as NAT and I have followed the instructions here
(https://kb.vmware.com/s/article/1018809)
If I change to Bridged for the Network then I can ping my other PC from the VM if I set up a
fixed IP address - nothing if I try DHCP but that may be due to company network constraints.
In Bridged mode, I can't ping back to the VM from my other PC. (Edit: fixed, this was just Network Discovery and Firewall settings)
I need this system running on Windows 10 as our IT department doesn't want to support my application (even though they agree to it being used) which means I can't go to a Windows Server option. Also, the VM's need to be Windows 10 for application compatibility.
All the equipment under test is in the same LAN subnet and on a single, dumb switch.
Any help would be appreciated.
Launch the menu item VM > Settings.
Search the start menu for command prompt from within the virtual machine. Enter ipconfig in the prompt and search for a value following the IPv4 Address. Record this address for later use.
Now select the menu item Edit > Virtual Network Editor.
Select the NAT network type and then choose NAT Settings.
From this new prompt, click Add to include a new port forwarder.
Enter the following information: Host Port: 9997, Type: TCP, Virtual machine IP address: Enter the IP you recorded in Step 2.
note: This port number is 3389 by default, Save any open prompts so the configuration changes can take place.
The final step is to enable RDP connections from within the operating system itself.

Cannot establish network link between host and VM on Hyper-V

I'm having trouble creating a network link between my Hyper-V host machine and its VM (both are running Windows 10).
I created an virtual external switch for both the host and VM so that both can access the internet and download programs and Windows updates, but I could not get them to communicate with each other directly. My research told me to create a virtual internal switch in Hyper-V and then have the devices be able to access each other that way (presumably by doing something like typing \\host_machine_IP\c$ into an explorer window once the network connection had been made). But once I created the virtual internal switch and assigned static IP address to both the host and VM on it, I still could not ping the host from the VM, or vice versa.
Am I missing a step? Let me know what more details you guys need.
By default you would have Windows Firewall blocking your communications until you confirm network profile to be other than Public. Try selecting a home\work network location profile via Control Panel > Network and Sharing canter. Or disable the firewall on the machine you try connecting to. Otherwise you should have no communication problem with the setup described, provided the subnet is the same for both machines.

Connect to vmware guest when there is no internet connection

I had set up virtual machine with debian 7 guest on my windows 7 laptop and was using it for developing a website. Now I do not have internet connection on my laptop. Is it possible in a same way connect to the guest as usual by ftp and remote mysql?
When I had internet doing ifconfig in guest, showed me the ip of it smth like 192.168.0.107, which I used to connect to guest from host. Now the some command does not show any ip, instead it shows UP BROADCAST MULTICAST
thanks
Host side
Add another network in [Virtual Network Editor], a custom VMnet4, having static NETWORK_ADDRESS 192.168.78.0/24
Check option to [Connect host virtual network adapter to this network] to ON
Check option to [Use local DHCP ... ] to be OFF ( prefer static-IP addresses here )
Guest side
Add another VirtualNIC, attached to VMnet4, with static IP_ADDRESS 192.168.78.100
Once done,
your Dev/Test-LAB will work inside this sand-box-ed environment, be the laptop connected to an external world or not.

Connect to server in vmware player while host is not connected to a network

I am using VMWare Player 3.1.0 on Host OS Windows 7 Professional 64-bit. My guest is is SUSE Linux ES 10. My guest OS (SUSE) runs JBoss App Server which I access from host using HTTP. I used a "Bridged" connection to set up all this.
My problem:
When I am connected to network on the Host (using wired network adapter) I can connect to the http server on the Guest OS and browse the application. However, when I am disconnected from the network on Host (unplugged the wire), I cannot access to the guest OS app server and browse the application. I use the guest OS ifconfig command to find out ip address of the guest OS. This ip address does not change whether connected or disconnected. I have even tried using Wireless Data card, but that does not work either.
I have tried "NAT" as well as "Host Only" connection and rebooted the guest but it does not work either. I think for some reason the guest OS can only recognize the physical network card (which is disconnected).
I need to run this machine (my laptop) independently of the network because I use this for demo and need to be able to connect from my host OS to Guest OS.
I am not sure I understand exactly what you are trying to do, but I do know setting up a working NAT configuration will offer you the most flexibility.
Click the networking icon and select settings, Select NAT.
Follow these steps on your Unix OS
cd /etc/sysconfig/network-scripts
Make a backup of your ethernet adapter configuration
cp ifcfg-eth0 ifcfg-eth0.bak
Next modify the settings to look like the following:
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="What ever was here on your system"br/>
NM_CONTROLLED="yes"
ONBOOT="yes"
Save your changes
Restart your network adapters
/etc/init.d/network restart
Try nslookup www.google.com
You should now be able to connect back and forth from your Windows Host and Linux guest.
theJay28
-p.s. I had screenshots, but I do not have the 10 points yet to post images.
I figured that the solution is to restart the VM after making the changes to the NetWork setting on the VMWare. I selected Network for the VM as "Host Only" shutdown the VM and started it again. After that I was able to do what I wanted to do (i.e. browse the web application on guest from the browser in the host machine) without connecting the host to the network.
So key to the solution in my case was to make the network changes and restart the VM.
Any comments suggestions welcome...

adding Virtual PC 2007 to host network

I am using Virtual PC 2007 with Windows xp Pro as the Guest.
Is it possible to add the Virtual PC to the network of the guest PC and to the domain of the Guest PC?
I enabled NAT shared networking but that only allows internet access on the guest..
Thanks
This shouldn't be a problem when you add the guest to host's physical adapter:
In the settings for your VM, go to Networking and instead of "Shared networking (NAT)", select the NIC that's connected to the network on your host (e.g. "Realtek RTL8116 Gigabit Ethernet", or whatever your NIC is; this is equivalent to VMWare's Bridged Mode). That way, the guest will appear as a real computer on your network, and will work like a physical box on the network.
IIRC, MS VPC bypasses the default Windows firewall on the host, so only the guest's firewall applies; for other FW products, you may need to enable something like "permit packets not destined for this host".
Just to add to the above answer-
1.
Inside the Local Area Connection
Properties- VM Network Services Driver
wasnt installed without which the NIC
option wont appear in the Virtual
machine Network Adapter Configuration.
I reinstalled the Virtual PC and that
entry Virtual Machine Network
Driver appeared.
2.
Another helpful resource-
http://blogs.msdn.com/virtual_pc_guy/archive/2007/01/15/fixing-broken-virtual-networking.aspx
Shouldn't be a problem as long as you can connect to a domain controller from the virtual computer.
If you know the IP address of a domain controller, try to ping it. Then try to ping it using the computer name, to see if name resolution is working correctly. What happens when you join a domain using Control Panel | System. Do you receive an error message?
I have not used Virtual PC, only VMWare workstation on Linux, so I do not know how the networking setup is on Virtual PC. On VMWare, you can choose between bridged and NAT networking for a virtual machine. I have been able to set up Windows guest computers as members of a windows domain using both kinds of network setup.

Resources