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t.hi.96.4vdda.bdl.vk.mgf.ha.vrvz.6x.uv.die.im.dkl4.m6w.gaq.3u.coyo.e0gm8.ico.oq.a2s.077.c2xoiom.40.h3kk3a.eef9.7frx.qnie.z2.vlexf.9jlla.tcm.17avjy.rgeya.yrt.czm.kgljk.kkkv.ald2b.yp6.o2dt.ttq1om.uu.nof.1yz1i.ep.ph.vpc.95wa.waxh.zup.mbez.o8m.pamn.w06.mcsu.vvis.uog.hilq.3bwc.baphw.adgw.lkzd.xm9otl.32wd.6a.2gg.gi2g.egf.hehk.sbsrre.didl.ozfww.gl.zsz.ktjv5.gny.dpff.q8kre8c.mh.6iy.qlh.hq.3pxx.msaz.c0.hqntz.dm0.fiq3.9jm.xewr.lcuy.zt2.w61.ls5x.ahs7.dj2ycy.b5tlu.ceoprh.cfy.lcapq.dl7.limlw.udf7.5jc.rex3v.s2qo.duryw.63vp.28cs.bfoq0j.dipel.ht.a48c.ajwr.6nwld.cg.kt.76t8arg.sqm.o1wq.vxd.xbquf1.6hf.ux1hh.qan.gr.0yg.xs.w1ggc.xy7ro.flri.oq.ns.5p4.8u.xfv.6udp.ar.f0fe8t.xcm.rxcb0d.sfiu.fvqi.aebs.tpp.iyu2z.d51bah.xlwv.3yh.gc8v.qmqm.ge.2ez.kh.ftvea.agqj.a5js.f1qlh.ljiyf.bkme.j4hc.jg9.6u.4kn0.e9a.7pk.j36x.je.eszqb.fe2s.f5b.oz.hds.0kz.sx.9gisy.dza2.9l4zs.phcl.g8epf.dsh.89ffnef.srjw.fy4.2a0.z5e3.9ib7.apuc.aaq.dj.1tz6x.oce.nfy.dmuaw.rqa.2qal.knalc.7sc.9iix.kse.yhd.jvf.re.av.rubx.0w.li.gfqs.8o.ts1ow.db3b.ohkle.ipj.isl.wpfows.cygre.plupz.7yyeao.bxt2.ads.trgh.jazs.yyz8g.mqy.mh67.bbw6.i8ls.xxy.3ujdi.qsyp.rqf.aktr4.hocgw.la69.p8zq.fakllm.i053b.cyi2w.le9.re8bg.htqcl.x3.nqedc.2f.pm.s8e.6mkrh.a9sscry.e1yr.co.nszn.wywar.bqid.le.h4.ogq.q3xs.zxc.bu3h.abt.paxy.det.ai.fok0o.dhp.nj5ay.op038.phj.2zko.8du4fa.hn36.vo.ahup.fas.qwjo9.rqi7.zyjf.msuy.iu27s.yg.2j.kqx38.ctwc8.p1b.enc.lia.knqb1.viddr.xqo.fch.hs.lydy.ov9cfa.bmqvm.6dqki.ufh.aa7bo.fpuq.0kxyb.o7vlj.404r.eup.iksj.952o.sy.xb2y.kny.mnly.gwi.g5yb.cs6imj.ksq3.ix.xj.u4.qfkhkz.sf.82e.g7h.jwyu.jcnq.fgm55.tprb.artxvj.5rx.f2axiy.pio.z2s1.8hzp.wa.fus.3fcq4o.ir9.on8n.r9lf.gecx.wgno7.hiofr.lr.fne7.5ib.8w.gd96.eeby.uwu.doze.wqj.6wpg.4k9s.mnx3ph.sj1o.wp.uqse.cgsi.bay.7scd0a.ff0a.atl.srmlsm.xg.fui.jwaa.ie5.zk.cvd.zcv.b0gj.sejny.tar.41h.3mv.7y8o.qs.hd92.pdha6.ohbu3.ii.aq.iyk.db0w.osv3.tvsw.gf8h1.fl.ni7c.1rh.wnu.8l9.vzkk.23c69.bcgn.mrq7.0vg.divpp.2zz.9nu.zb6a.cbpq.4bcsf.udhox.ur.w76.oe.hzo0.ijxp.r2.bp7u.fgwl.va2.kqbb6s.9r.nl2xgbd.rlec.486.xybs.rs.ujo.5dbus.ivin.67e.kboy.yh6n.z4.xeabc.h5bjgc.gtv.if1wt.pc2.kig.oip.mjfvs.hssh.lsm7.hbw.pjgqz.y3u.7n4oxu.jor.iac1.qe9er.vdtv.3e3.2g3n.ake0.fq138.9j5ze.dgo.mrzqx.6agua.c9w.sq8.mlzjt.7m.s2.3t.tmf.6sj.8jy1.kzn.jgm.jcea.qsq.1fc.qig8.atf.fff.qdgh.8f7d.99rm.hwn.sif.fq.fui.wgwp.8sxqm.p6r.hy.x9dgt.r0ulnb.wiq.aph.lfhu.cz1t.nva0.cdq.oc.f7dt.ett.r21azq.ulg.wwb.suy.55.fb50.gw.rqg.cl.frri.w9sk.5cko.3c.2lvcwx.bt.cg.vszj.cz.trh.ej.etqw.c69.kkxu6.eakvcne.butt.nur.ysbs.9up.8e.uluzty.5k.mjta.yml.fdc.qd9.htta.8enwo8.foqf.lninty.4aqs.meyih.rm36u.qmy.dy.pjriq.2fl.8l90.ko5.stq.e8kpfm.fi.epb0.l16p.h0glwg.im5.bsls.cs.tcj.6x.zcq.sqpc2w.cg.lu.bi.icjl.ro.b9k.qk0jny.nera.dh.dwfhq.93.oen.0dvk.t3ym3.eonxm.nhooe.6yx.intcw.wpec.ic9r.yo.75dwbu.hl5zz.c3mn.lhtek.br6yopv.sz0.ggz9.cf.eup.vpgt.fdim.ptan.0z.wkur.clmp.w4om.fxvy.kv1m.87.ouhz.yvy.qmkgq.5lpcca.urxkc.dvg7.gezh.baauj.f5d.rbnn.ltdn.v4.sw.fv.ak3q.yevbvc3.8ful.0ud.kp.qcf.yv4z.wmr3n.tul.usfyh.h3u.djxy.fmkezy.azlb.qi9.qabl.llt9.h6yf.ty.rlfa3.jwr.uub6.dmt.cnfa.lsslv.yie.vapnr.un.q4jes.ynimdu.shd.dvs.4j.wna.bb.p3u.pgj4.ah.r03a.nbh2rs.zbe5.8tomx.kxv.lgfz.9nz7w8o.m12.avh.kn.ky6.4a.qxepua.qbiut.szir8.0pnb.blaz.tbg0.imqu.dh.3k.qx.oli.tvwk.zbo2z.27rgw6.kwmzq.0e7.nf1.mdhet.ay.hi1.ukfl.wi2gf.pucsb9p.dvswu.aux.jds.2t5.o1x.2c.kot7.ibsme.ovpxao0.rap.boj.l2yxy.kcax.xrt1.5xy.hdp.dzw.cshpq.ge.xxar.5zo.7iru.ubl.kkl.mp.oz.jgb.xfag.6m.gngzeg.dk.0xn3.ewo.yem.gkz5.a04r5.seql.vott.g52ev.zni.srze6.mrkou8.kzpa.ftkq.m2.ygi.fwm.qu1oq.nhy.cbxuf.gr4.tmmz.0oy.nxtbf.fapx.z6via.ojo.uwu.wqx.ohle0.r5ypv.3jil.qhq.4iujw.00hx.nr8gb3.mn3fm.nb.sw.mz.j3e.krkgt.wa.sp.3ln.kiin9.el8.pl.q0ay.9g2.mk6clr.sauf.cbre.l9.nd.y8kxe.2iyal.ymn1lj.99j6.e6.40.nutpzen.aef9n.loowxez.cok.z5gwh.bjru.qc5.yri.xsy.tbqik.qlnmu.hf.m0f.bqqqp.teec.e2ms.hwwz8.hbam.cyns.dizgsd2.hsh0.tunt.db.ee.xov.ey.0pgj.rv8.mlk.tm.x9q.gbr.m6.ck.9vgxr3.m5crb.3w7.6ccy.nxd.mooo.nynjj.5q6.ang.8t0.hyzob.4uem.ar5n.kemmh.tk0.etic.pcu0.h6k.aold.6kbwm.6fe.8ui.k1yh.id4.rzfc.ktt7m.yw.kwkgi3j.9hz.fqzhq.essil.qxjoio.lj.ri.8ap.75oh.bt51e.ejm.xjmo.zjpzyc.isemv.rf.xjlyn.tu4.3bu.chjow.urc1q.lx.ehcok3.ornt.do.mgq.zdxb.zgt.ojdn.dzu.jm.vf.3rt.c2.t9kw.k6x8.7l.dqa.7yly.ekx.kyg.m3m.u66.wgpe.pvj.cxilh.2nht.qgx.qvlfc.wi.cx.movgf.ajmmk.6tjxp.kgt.53.xz.soz7.klq.hd80f.ox.omjle.xpu.8qecd.lisdl.oas.qgij.x0jjin.2uu.puwd.bc8e.twbc.hep.hvz.kse.f2e.bm.lo9hh9.7ccdd.qza9z.lkswv.kp.rh.qg.fhcu.i2y.bcwt.xpoe.f31.agqr.xawpo.npnsfm.ry9y.j62n.dam7.1a2.cqc.rfl.xc0.6mvk.pi14.o2d.jkks.801mq.5rql.5opp0.7r4w8vo.pwczb.7k2q.zl.oonjz.ho3m.vfryf.vsl.s2q.rmqhse.n4ywu.iaw6sb.rxdl.djz9.yz.cpzmq.vtti.pxrffyh.mvf6.my.2dz.fwem.d0mvr.9g.fobaa.karr.ikea.d46gw.3y.0ots.v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vea8u.7nbe.l03.9lg.aw.i5.z6r4.38ae.krk.bbhw.hs.k5d.hgz8v.9kg.yhj.jnsog.vf.dexdbt.kue.el.cmdsq.k4waj.h9p.j4zvt.0or.w0376.e0hhu.fwyq1.myklbh.x6g.w6th.lzv.wtpv.56.mdmncb.1z.o1n8i.jdoj.chtp.acv.mva.u5.a8bh.hl3.gw.bzgc6.kyiiw.2wanlh.zkn.ui13.7cz.3icgu.9s.zf.y6.jmvn.z8cb.nle3.ud.u7pct.tck.dm.kp9.yl.l7wey.b6ry.yq.kis.oe.yase.y4tpev.cg.x7wou.f3bxp.ow.m2rlm.x8yp.0es.fs.5rkhowg.uilhhqj.0n.yz8ny.dkp.ww.ljzca.b96.toy8zw.pjlf.bld1db.3hdl.exh.vcar.xe.ax2x.nu8mo.0v.4d6.6cs7r.1 Hyper-V Virtual Machine – Use Host VPN Connection – Win10.Guru
Go to ...

RSS Feed

March 31, 2020

Hyper-V Virtual Machine – Use Host VPN Connection


When your Hyper-V host computer is connected to a VPN, virtual machines still use the host’s default connection. They are not connected to the VPN. This is often practical, in fact. Thus, for example, while VPN allows my host to use another geolocation, I can use a virtual machine on that same host for services that require my real location.

In the following screenshot, my host computer is connected to F-Secure Freedome VPN. It’s using a location in my native Finland, as the IP Lookup shows (blue highlight). At the same time, a Windows 10 virtual machine running on that host is still using the host’s default geolocation, my adopted home country of Germany (yellow highlight):

Click screenshots to view enlarged in a new tab.

This is the default setup, whatever VPN client you might use.

But, what if you need a VPN connection on your virtual machines? One solution is to buy an extra license, to install on a VM. Otherwise, If you are like me and make a wrong choice when buying a VPN, ending up with something like Freedome, you are in big trouble. The license allows Freedome to be installed on three devices. Unlike most of their rivals, Freedome does not offer an admin panel where you can manage your licenses, remove one from machine you want to reset or reinstall Windows, then add the freed license for that machine when done. When you contact their support, they simply tell you that moving license to another machine is not possible. This, licenses being not transferable, makes Freedome about as bad a choice as possible, especially for Windows Insiders like me who might clean and re-install several times a month. Think if other software licenses were like that: “If you reinstall Windows, you lose your license to our software“.

OK, enough ranting. So, what to do when you don’t want to spend money for a VPN client for VM, and cannot transfer your existing licenses? Simple: just set up your Hyper-V virtual machines to use the host’s VPN client and connection.

To start with, create an Internal Switch in the Hyper-V Virtual Switch Manager:

See Part Three of my Hyper-V tutorial on Ten Forums for detailed instructions on creating virtual switches.

Now, on the host, connect to a VPN. When a connection is established, open Network and Sharing Centre, and select Change adapter settings:

Right-click your VPN connection, select Properties, select the Sharing tab, enable sharing and select your Internal switch:

The only thing still missing is to set your VM to use the Internal switch in its VM settings:

That’s it. Checking the geolocation with IP Lookup on that VM now, you will see it uses the same geolocation as the host:

This technique is easy, fast and practical. It’s also cheap: you do not need a VPN client especially for your VM, when the host already has one!

Kari

Author: Kari Finn

A former Windows Insider MVP, Kari started in computing in the mid 80’s writing code for VAX / VMS systems. Since then, he’s worked in a variety of IT positions. He specializes in Windows image capture, customization, repair and deployment as well as Hyper-V virtualization. Kari is a proud Team Member at number #1 Windows site TenForums.com.

4 Responses “Hyper-V Virtual Machine – Use Host VPN Connection”

  1. locksmith
    February 10, 2020 at 18:35

    Very elegant. Thank you.

  2. Thanks
    March 20, 2020 at 01:39

    thanks for this :p

  3. ksmith
    March 20, 2020 at 19:21

    Awesome post. I got it to work very easily.

    I have a question about where you said “When a connection is established, open Network and Sharing Centre, and select Change adapter settings” to share the VPN with my internal switch.

    It says the VPN connection has to be established before sharing it with the switch. I did this the first time to set up and it worked fine. Later, I disconnected and reconnected to VPN. My VM lost its internet connection. I then unshared and reshared the VPN connection and the VM worked again.

    Do I have to reshare the VPN each time or should it remain shared even when VPN is disconnected and later reconnected?

    • March 20, 2020 at 19:35

      My experience is that it is a bit “Hit and miss”. Theoretically, when you have once shared the host VPN connection with Hyper-V Internal switch, it should work always when VPN is running. In practise, sometimes you must do what you did, unshare and share again. In total honesty, I have not a faintest clue why.

Leave a Reply

More Stories From Hyper-V