Hyper-V: Skirtumas tarp puslapio versijų
Jump to navigation
Jump to search
1 eilutė: | 1 eilutė: | ||
+ | = 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 (virtualio 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 = | = Windows XP Guest = | ||
13 eilutė: | 31 eilutė: | ||
* [https://support.microsoft.com/en-us/topic/hyper-v-integration-components-update-for-windows-virtual-machines-that-are-running-on-a-windows-10-or-windows-server-2016-based-host-bd22f4f6-feec-89f4-8a1d-405076ff4222 This update provides Hyper-V integration components to virtual machines] | * [https://support.microsoft.com/en-us/topic/hyper-v-integration-components-update-for-windows-virtual-machines-that-are-running-on-a-windows-10-or-windows-server-2016-based-host-bd22f4f6-feec-89f4-8a1d-405076ff4222 This update provides Hyper-V integration components to virtual machines] | ||
+ | |||
+ | = Ubuntu = | ||
+ | |||
+ | apt get-install linux-azure | ||
[[Category:Windows]] | [[Category:Windows]] |
12:56, 18 kovo 2024 versija
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 (virtualio 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