forked from openeyes/oe_installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hyperv_setup_help.txt
26 lines (16 loc) · 1.38 KB
/
hyperv_setup_help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
******************************************************************************************************
Experimental Hyper-V support
----------------------------
This is currently in an alpha stage and no support is available. These notes are for anybody that
wishes to continue the work
/////////////////////////////////////////////////////////////////////////////////////////////////////
To configure a NAT switch in Hyper-V, run the following commands in an administrative power shell:
******************************************************************************************************
New-VMSwitch –SwitchName “NATSwitch” –SwitchType Internal
New-NetIPAddress –IPAddress 172.16.0.1 -PrefixLength 24 -InterfaceAlias "vEthernet (NATSwitch)"
New-NetNat –Name VMSwitchNat –InternalIPInterfaceAddressPrefix 172.16.0.0/24
Add-NetNatStaticMapping -NatName “VMSwitchNat” -Protocol TCP -ExternalIPAddress 0.0.0.0 -InternalIPAddress 172.16.0.2 -InternalPort 80 -ExternalPort 8888
Add-NetNatStaticMapping -NatName “VMSwitchNat” -Protocol TCP -ExternalIPAddress 0.0.0.0 -InternalIPAddress 172.16.0.2 -InternalPort 22 -ExternalPort 2222
Add-NetNatStaticMapping -NatName “VMSwitchNat” -Protocol TCP -ExternalIPAddress 0.0.0.0 -InternalIPAddress 172.16.0.2 -InternalPort 3306 -ExternalPort 3333
To enable Linux Virtual Tools:
# apt-get install linux-tools-virtual linux-cloud-tools-virtual