Windows 10: Internet exclusively on a Linux virtual machine?

Discus and support Internet exclusively on a Linux virtual machine? in Windows 10 Network and Sharing to solve the problem; I have Windows 10 and run Linux on a virtual machine in VMware. Is it possible to set it up so my internet traffic only runs through the Linux VM and... Discussion in 'Windows 10 Network and Sharing' started by skeen, Apr 9, 2016.

  1. skeen Win User

    Internet exclusively on a Linux virtual machine?


    I have Windows 10 and run Linux on a virtual machine in VMware.
    Is it possible to set it up so my internet traffic only runs through the Linux VM and not through Windows? I figure this would be a good setup for security.

    :)
     
    skeen, Apr 9, 2016
    #1
  2. phillipjones macon, Apr 9, 2016
    #2
  3. Windows Defender

    MS Virtual Agent instructed me to return to the Windows Defender settings and click on Add Exclusion. When Windows Defender displays the item(s) that I have selected to exclude, click on the one that I want to release from exclusion. A button is then
    displayed ("Remove" I believe)... click on that button and the exclusion is retracted.
     
    RickO#1000, Apr 9, 2016
    #3
  4. Kari Win User

    Internet exclusively on a Linux virtual machine?

    I do not know if that is possible in VMware. In Hyper-V that is very simple, you just need to unselect Allow management operating system to share this network adapter in Virtual Switch Manager for your external virtual switch:
    Internet exclusively on a Linux virtual machine? [​IMG]


    • Selected = host and virtual machines have Internet connection
    • Unselected = virtual machines have Internet connection, host not
     
  5. The one problem that will bring is not being able to receive the normal security and other patches by way of the Windows Update function despite offering an isolated from web host OS. VMware's Workstation 12 Player notes indicate the "Host-only" type network option for private networking between host OS and VMs being one option.

    The help topics can be looked over at VMware Workstation 12 Player for Windows Documentation Center

    The VMtools installed on the host OS are what are configured for the options available with more seen in the Configuring Network Connections links.
     
    Night Hawk, Apr 10, 2016
    #5
  6. jimbo45 Win User
    Hi there
    Should be simple in VMWARE

    Set the Windows VM Internet connection up via the Linux machine - use the Linux machine as the gateway or a Proxy server for the Windows machine. (The fact that the Linux VM is a Virtual machine doesn't matter -- works just like it would if it were a physical machine).

    That way you still have Internet access on both machines but controlled Internet access on the Windows VM. This way you can still get access to services like Windows update and if you want to run say OUTLOOK as an email client on the Windows VM.

    I use EXCEL a lot with data taken from the web so if you want to do that type of activity on the Windows machine you will have to let it have some Internet capability --controlling it via the Linux machine makes decent sense.

    (What's the HOST OS you are running these VM's on -- you'll need to enable Bridged / NAT networking if using VMWARE).

    I'm actually messing around with ESXi at the moment but I'll gfet back with more details later on setting the Internet access up from the VM's.

    Do the VM's also need to be accessed remotely OUTSIDE your LAN -- I.E from the "public Internet" at large --that's another issue and creating a VPN might be best for that scenario.

    Please though specify your HOST OS is and what VM software you are using e.g VBOX / VMWARE / HYPER-V / KVM etc.

    Edit : Sorry - I see you are using WINDOWS as HOST

    -- OK still the same thing - just treat the Linux VM exactly as if it's a separate REAL machine on your network. Give it a FIXED IP address on your own network (you can use DHCP for the rest of the network - most routers etc allow you to specify some fixed IP addresses and start DHCP from say 192.168.0.10 or whatever.

    Then apply PROXY to IE / Edge on Windows while allowing relevant Internet access to the VM machine -- simply use BRIDGED /NAT in the VMWARE settings.

    If you even DISABLE Internet access in the Windows machine you'll still have it on the VM.


    Cheers
    jimbo
     
    jimbo45, Apr 10, 2016
    #6
  7. KVM is mostly 32bit from their main description. KVM

    The question for skeen is which kernel as far as 32bit or 64bit OSs are being planned since that isn't specified so far. Both Hyper-V default in the 64bit Windows will support the 32bit/64bit Windows VM(s) if that is what you have for 10 there as well as the 32bit/64bit Linux VM(s). As for ESXi that would be the VMware vSphere Hypervisor app there.

    For the 10 side you can also download the Windows Live Essentials 2012 mail app to see mail imported from an outlook.com account or any older Windows Live Mail account formerly seen at live.com or Live Hotmail. That was brought out for 8 initially as a replacement for the Windows Mail app.

    As for isolating the VM as far as web access disabling the physical network adapter in the Device Manager while leaving the Virtual Network adapter enabled should only only the VM to connect. Then a fast trip into the DM to see the physical adapter enabled temporarily again would allow for the Host OS updates.

    Once tended to you would simply disable that again used only for periodic manual checks while disabled the bulk of the time. I think this would be the type of set up you are looking for since the host OS still has to initially have a working connection in order to get the VM to connect. The thing to add here is that the Hyper-V feature only allows for one VM to run at a time while VMware's Workstation Player can have two or three running simultaneously depending on the overall host resources and how much memory is allocatted per VM.

    Even on the second mini tower case I access remotely here that sees a 7 upgraded to 10 VM project I ended replacing the pair of 2gb dimms with a new pair of 4gb dimms to max that out to avoid seeing the "out of resources" error when not having enough physical memory installed. Found that one out fast years back when trying to run multiple VMs with the VM Player.


    Internet exclusively on a Linux virtual machine? [​IMG]
     
    Night Hawk, Apr 11, 2016
    #7
  8. jimbo45 Win User

    Internet exclusively on a Linux virtual machine?

    Hi there

    I think the OP just wants to run W10 as HOST and the Linux OS as GUEST. Running KVM isn't actually easy anyway.

    I think the simplest solution is the one I outlined -- in your Router assign a fixed IP address for the Linux VM, Enable Bridge or NAT networking in your VM software, disable Internet settings in Windows (via Firewall / IE settings / other browser settings) and job done.

    In IE it's even simpler -- just disable the automatic settings -- then add manual addresses like 1.0.0.10 for gateway / DNS server etc -- then you won't get Internet on IE.

    Should be similar settings on Edge / FF/Chrome -- Firewall is probably the easiest way to block Internet from the HOST (Windows) anyway. Allow the Linux VM with the specific IP address through.

    Your router also might have settings that allows IP addresses through and blocks others. That would be even easier still.

    BTW if you can run the VM's in the background you can logon to the VM remotely without even needing an account on the HOST --that's how a lot of Virtual Servers work.

    Host Only Networking will probably disable the Virtual network adapter for Internet access so I suspect this method will fail unless your VM can use the Physical hardware network adapter -- ands of course this doesn't stop the HOST(Windows) from accessing the Internet which I gather is what you want to do.

    Cheers
    jimbo
     
    jimbo45, Apr 11, 2016
    #8
  9. The desired goal is avoid any Host-only type network deal and the actual goal would be to set up a private vm test network to find out how to work out the VM only type network. Unchecking the auto detect for network settings in Windows as well as disabling the Windows not VMware network adapter item in the Network & Sharing?Network connections would be a start. You might actually need a separate VM to act as the network gateway much like how a router works.

    Regarding vSphere here's the Managing Hosts in vCenter Server section that may be an option. Another item of interest in regards to VMware would be the option to add or remove the Host virtual network adapter while maintaining the VM network configuration. Enabling, Disabling, Adding, and Removing Host Virtual Adapters

    That applies to both Windows and Linux host OSs.
     
    Night Hawk, Apr 12, 2016
    #9
  10. jimbo45 Win User
    Hi there.

    Assuming you are using VBOX or VMWARE as your Virtual Machine software - disabling the network adapter in the HOST would fail as then the Virtual Network adapter in the VM would be "Non Functional" --unless you could access the hardware adapter directly.

    I had the reverse on a Linux host with a USB 3 wireless adapter which the Linux Host failed to get working -- however when this was attached to the Windows host in the VM and the windows driver loaded it worked and the windows VM could access the Internet whilst the host had no access.

    I don't think you could do this with the built in LAN adapter -- both VBOX and VMWARE will only load drivers for Removable hardware (usually connected via a USB port).

    Esxi or HYPER-V might do it though via Passthru.

    Fiddling around with Wifi adapters on Linux is usually a messy task - and it's touch and go whether they work or not- whereas the ethernet ones invariably work -usally Broadcomm or Intel adapters.

    Cheers
    jimbo
     
    jimbo45, Apr 12, 2016
    #10
  11. Well there actually two Physical as well as two Virtual network adapters you have to consider. The first of course are found in the Device Manager if you have a nic card installed in particular as well as the Virtual adapter since the VM needs a physical representation. Then you have the adapters you find in the Network & Sharing Center that are actually both the software adapters that can disabled individually without effect of one on the other! That's where you knock out the Windows adapter with a fast right click to disable while not having any effect in the DM as far as how the Virtual adapter will still connect. In fact while having problems connecting on the remote pc where 7 cannot connect by ethernet but only by the usb WiFi adapter the 10 VM at the time was still able to get online without issue!

    The VM would access the nic card instead that was only in use when booted on the 10 physical side of the dual boot there. Once I reconfigured 7 to the WiFi adapter when that was plugged back in both were then able to connect. When first built back in 2013 the 7 Pro case was intended to be a portable Lan party type deal having the carrying handle on the case for fast set up on the fly as well as being able to move it from room to room without worry.

    Once 10 came along however I was need in a second pc for test purposes. Two physical OSs requiring two different types of connections and the VMs on WS 12 can be run from the 7 side without the WiFi adapter even being plugged in to see 7 totally cut off. I would think the same could done elsewhere to see the host OS configured wireless and then simply unplug the wireless while the VM is configured for hard wire. Or you could reverse things having the VM set up for WiFi with the host unplugged.
     
    Night Hawk, Apr 5, 2018
    #11
Thema:

Internet exclusively on a Linux virtual machine?

Loading...
  1. Internet exclusively on a Linux virtual machine? - Similar Threads - Internet exclusively Linux

  2. Windows 11 in a Virtual Machine on a Linux server

    in Windows 10 Gaming
    Windows 11 in a Virtual Machine on a Linux server: I have been looking through all of the licensing pages on Microsoft site and can not find the correct information on what licensing I should buy to be able to install a Windows 11 Operating System in a Virtual Machine on a Linux server. The Windows version and hypervisor does...
  3. Windows 11 in a Virtual Machine on a Linux server

    in Windows 10 Software and Apps
    Windows 11 in a Virtual Machine on a Linux server: I have been looking through all of the licensing pages on Microsoft site and can not find the correct information on what licensing I should buy to be able to install a Windows 11 Operating System in a Virtual Machine on a Linux server. The Windows version and hypervisor does...
  4. Running Linux with a virtual machine inside Windows 10 machine

    in Windows 10 Ask Insider
    Running Linux with a virtual machine inside Windows 10 machine: Hi and question: If I run a virtual machine inside my windows 10 machine, does all the telemetry, keystroke logging, etc. still happen while inside the VM? Example: If I run Linux Mint in a VM with Windows 10 as the host computer, does Windows (Microsoft) get all the...
  5. Virtual Machine

    in Windows 10 Installation and Upgrade
    Virtual Machine: So, I'm here to ask if using Windows in a VM virtual Machine Legal? Its cause I am not getting accurate answers. https://answers.microsoft.com/en-us/windows/forum/all/virtual-machine/c2e9e1fa-15e4-4532-9864-d114aa139b86
  6. Virtual machine and Windows subsystem for Linux

    in Windows 10 Installation and Upgrade
    Virtual machine and Windows subsystem for Linux: Once I enable Virtual machine and Windows subsystem for Linux and install Ubuntu from app store on Window 10 home 2004 the laptop screen is having some flickering issues. The issue got resolve if I disable these two. If anyone experience the issue, please suggest the...
  7. Virtual machine to run linux

    in Windows 10 Ask Insider
    Virtual machine to run linux: Windows is not my main OS. I use it for work and I'd like to install openSUSE (or any other distribution) on a virtual machine to use while I do office work on Windows. What are my options? submitted by /u/C8H10N4O2montreal [link] [comments]...
  8. Antivirus exclusions for System Center Virtual Machine Manager and managed hosts

    in AntiVirus, Firewalls and System Security
    Antivirus exclusions for System Center Virtual Machine Manager and managed hosts: https://support.microsoft.com/en-us/help/3119208/recommended-antivirus-exclusions-for-system-center-virtual-machine-man When I enter "\\?\Volume{a8ca23f4-9f6c-404c-8b82-b8ea1c0ba18a}\" in my policy I recieve an error: [ATTACH] Please help with the correct valid format or...
  9. virtual machine

    in Windows 10 Virtualization
    virtual machine: I want to build an oracle VM. I have a new PC with UEFI I am not used to. It is set to the old BIOS and secure boot is disabled. I found virtualization by searching and chose to change virtualization from disabled toe enabled. Is this what I should have done to use Oracle's...
  10. Download ready-to-use Linux virtual machines from OSBoxes

    in Windows 10 Virtualization
    Download ready-to-use Linux virtual machines from OSBoxes: Download ready-to-use Linux virtual machines from OSBoxes http://www.osboxes.org/ 48441