

Set-VMComPort -VMName -Number 2 -Path \\.\pipe\dbg1

On the VM in Hyper-V, set up a COM port using this PowerShell cmdlet: In the efidefault file on the P圎 server, add the following kernel parameter "console=ttyS1"

A serial console must be configured to allow choosing installation options.

On Linux distributions other than RHEL 6.x, similar steps can be followed to configure grub v0.97 to load Linux kernels from a P圎 server.Īdditionally, on RHEL/CentOS 6.6 keyboard and mouse input will not work with the pre-install kernel which prevents specifying installation options in the menu. On RHEL 6.x, the legacy grub v0.97 EFI bootloader can be used instead of grub2 as described here: P圎 Boot on Generation 2 Virtual Machinesīecause the PIT timer is not present in Generation 2 Virtual Machines, network connections to the P圎 TFTP server can be prematurely terminated and prevent the bootloader from reading Grub configuration and loading a kernel from the server. Until grub is fixed to use the EFI-supported timer, modify /boot/grub/nf, / etc/default/grub, or equivalent to have "timeout=100000" instead of the default "timeout=5". Grub Menu Timeout on Generation 2 Virtual Machinesīecause of legacy hardware being removed from emulation in Generation 2 virtual machines, the grub menu countdown timer counts down too quickly for the grub menu to be displayed, immediately loading the default entry. When creating the filesystem specify the number of groups to be 4096, for example: The ext4 format is preferred to ext3 because ext4 is more space efficient than ext3 when used with dynamic VHDX files. PS > New-VHD -Path C:\MyVHDs\test.vhdx -SizeBytes 127GB -Dynamic -BlockSizeBytes 1MB When creating the VHDX, use 1MB BlockSizeBytes (from the default 32MB) in PowerShell, for example:.To reduce the amount of real disk space usage of dynamic VHDX files, consider the following recommendations: Some Linux file systems may consume significant amounts of real disk space even when the file system is mostly empty. Tuning Linux File Systems on Dynamic VHDX Files This topic contains a list of recommendations for running Linux virtual machine on Hyper-V. Applies to: Windows Server 2022, Azure Stack HCI, version 20H2 Windows Server 2019, Windows Server 2016, Hyper-V Server 2016, Windows Server 2012 R2, Hyper-V Server 2012 R2, Windows Server 2012, Hyper-V Server 2012, Windows Server 2008 R2, Windows 10, Windows 8.1, Windows 8, Windows 7.1, Windows 7
