Hyper-V: Skirtumas tarp puslapio versijų

Iš Žinynas.
Jump to navigation Jump to search
(Naujas puslapis: = Windows XP = * [https://superuser.com/questions/1230652/get-official-windows-xp-virtual-machine-for-hyper-v Diegimas panaudojant XP mode atvaizdą] * [https://archive.org/dow...)
 
 
(nerodoma 4 tarpinės versijos, sukurtos to paties naudotojo)
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 (virtualioje mašinoje) nustatome ip ==
  
= Windows XP =
+
ip: 192.168.100.10/24
 +
gw: 192.168.100.1
 +
dns: 1.1.1.1, 8.8.8.8
 +
 
 +
 
 +
= Windows XP Guest =
  
 
* [https://superuser.com/questions/1230652/get-official-windows-xp-virtual-machine-for-hyper-v Diegimas panaudojant XP mode atvaizdą]
 
* [https://superuser.com/questions/1230652/get-official-windows-xp-virtual-machine-for-hyper-v Diegimas panaudojant XP mode atvaizdą]
 
* [https://archive.org/download/Hyper-V_vmguest/vmguest.iso Hyper-V Integration Services 6.3.9300.16384 ISO] SHA256: d1037fd8e788ce8ed0df16ec21f057e74512d5b3d551cc9396c7ae95dccba10f
 
* [https://archive.org/download/Hyper-V_vmguest/vmguest.iso Hyper-V Integration Services 6.3.9300.16384 ISO] SHA256: d1037fd8e788ce8ed0df16ec21f057e74512d5b3d551cc9396c7ae95dccba10f
 +
 +
= Windows Vista =
 +
 +
* [https://archive.org/details/Windows_Vista_SP2_x64.iso Windows Vista x64 SP2]
 +
* [https://archive.org/download/Hyper-V_vmguest/vmguest.iso Hyper-V Integration Services 6.3.9300.16384 ISO] SHA256: d1037fd8e788ce8ed0df16ec21f057e74512d5b3d551cc9396c7ae95dccba10f
 +
 +
= Windows 7 =
 +
 +
* [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]]

Dabartinė 12:56, 18 kovo 2024 versija

Diegimas[keisti]

Powershell admin teisėmis:

 Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart

Virtualaus switcho sukūrimas ir konfigūravimas[keisti]

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[keisti]

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[keisti]

ip: 192.168.100.10/24
gw: 192.168.100.1
dns: 1.1.1.1, 8.8.8.8


Windows XP Guest[keisti]

Windows Vista[keisti]

Windows 7[keisti]

Ubuntu[keisti]

apt get-install linux-azure