Hyper-V
Jump to navigation
Jump to search
Diegimas
Powershell admin teisėmis:
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
Virtualaus switcho sukūrimas ir konfigūravimas
New-VMSwitch -Name vSwitch -SwitchType Internal Get-NetAdapter # paleidžiam ir pažiūrim koks IfIndex, pas mane rodo 39 New-NetIPAddress -IPAddress 192.168.100.1 -PrefixLength 24 -InterfaceIndex 39 New-NetNat -Name Nat-Switch-Outside -InternalIPInterfaceAddressPrefix 192.168.100.0/24
Priskiriam "vSwitch" virtualiai mašinai (edit virtual machine settings etc...)
Port forwardas
Porto 22 (ssh) forwardas į išorę (220) portą
Add-NetNatStaticMapping -NatName Nat-Switch-Outside -Protocol TCP -ExternalIPAddress 0.0.0.0/24 -ExternalPort 220 -InternalIPAddress 192.168.100.10 -InternalPort 22
Guest OS (virtualioje mašinoje) nustatome ip
ip: 192.168.100.10/24 gw: 192.168.100.1 dns: 1.1.1.1, 8.8.8.8
Windows XP Guest
- Diegimas panaudojant XP mode atvaizdą
- Hyper-V Integration Services 6.3.9300.16384 ISO SHA256: d1037fd8e788ce8ed0df16ec21f057e74512d5b3d551cc9396c7ae95dccba10f
Windows Vista
- Windows Vista x64 SP2
- Hyper-V Integration Services 6.3.9300.16384 ISO SHA256: d1037fd8e788ce8ed0df16ec21f057e74512d5b3d551cc9396c7ae95dccba10f
Windows 7
Ubuntu
apt get-install linux-azure