Supported Linux and FreeBSD virtual machines for Hyper-V on Windows
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
Hyper-V supports both emulated and Hyper-V-specific devices for Linux and FreeBSD virtual machines. When running with emulated devices, no additional software is required to be installed. However emulated devices do not provide high performance and cannot leverage the rich virtual machine management infrastructure that the Hyper-V technology offers. In order to make full use of all benefits that Hyper-V provides, it is best to use Hyper-V-specific devices for Linux and FreeBSD. The collection of drivers that are required to run Hyper-V-specific devices are known as Linux Integration Services (LIS) or FreeBSD Integration Services (BIS).
LIS has been added to the Linux kernel and is updated for new releases. But Linux distributions based on older kernels may not have the latest enhancements or fixes. Microsoft provides a download containing installable LIS drivers for some Linux installations based on these older kernels. Because distribution vendors include versions of Linux Integration Services, it is best to install the latest downloadable version of LIS, if applicable, for your installation.
For other Linux distributions LIS changes are regularly integrated into the operating system kernel and applications so no separate download or installation is required.
For older FreeBSD releases (before 10.0), Microsoft provides ports that contain the installable BIS drivers and corresponding daemons for FreeBSD virtual machines. For newer FreeBSD releases, BIS is built in to the FreeBSD operating system, and no separate download or installation is required except for a KVP ports download that is needed for FreeBSD 10.0.
The goal of this content is to provide information that helps facilitate your Linux or FreeBSD deployment on Hyper-V. Specific details include:
Linux distributions or FreeBSD releases that require the download and installation of LIS or BIS drivers.
Linux distributions or FreeBSD releases that contain built-in LIS or BIS drivers.
Feature distribution maps that indicate the features in major Linux distributions or FreeBSD releases.
Known issues and workarounds for each distribution or release.
Feature description for each LIS or BIS feature.
Want to make a suggestion about features and functionality? Is there something we could do better? You can use the Windows Server User Voice site to suggest new features and capabilities for Linux and FreeBSD Virtual Machines on Hyper-V, and to see what other people are saying.
Источник
Поддерживаемые виртуальные машины Ubuntu в Hyper-V
область применения: Windows Server 2022, Azure Stack хЦи, версия 20H2; Windows сервер 2019, hyper-v server 2019, Windows Server 2016, hyper-v server 2016, Windows Server 2012 R2, Hyper-V Server 2012 R2, Windows 10, Windows 8.1
Следующая схема распределения признаков показывает функции в каждой версии. Известные проблемы и способы их решения для каждого распространения перечислены после таблицы.
Условные обозначения таблицы
Встроенные в систему LIS включены в состав этого дистрибутива Linux. Пакет скачивания LIS, предоставленный корпорацией Майкрософт, не подходит для этого распространения, поэтому не устанавливайте его. Номера версий модулей ядра для встроенных LIS (например, как показано в лсмод) отличаются от номера версии в пакете скачанных пакетов LIS, предоставленных корпорацией Майкрософт. Несоответствие не означает, что встроенное в LIS Обновление устарело.
(пусто) — функция недоступна
Компонент | Windows Версия операционной системы сервера | 20.04 LTS | 18.04 LTS | 16.04 LTS | 14.04 LTS |
---|---|---|---|---|---|
Доступность | Встроено | Встроено | Встроено | Встроено | |
Основные сведения | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Windows Server 2016 Точное время | 2019, 2016 | ✔ | ✔ | ✔ | |
Сеть | |||||
Кадры крупного размера | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Добавление тегов и магистрали виртуальной ЛС | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Динамическая миграция | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Статическая Вставка IP-адресов | 2019, 2016, 2012 R2 | ✔ Примечание 1 | ✔ Примечание 1 | ✔ Примечание 1 | ✔ Примечание 1 |
vRSS | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Сегментация TCP и разгрузка контрольной суммы | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
SR-IOV; | 2019, 2016 | ✔ | ✔ | ✔ | |
Хранение | |||||
Изменение размера VHDX | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Виртуальное подключение Fibre Channel | 2019, 2016, 2012 R2 | ✔ Примечание 2 | ✔ Примечание 2 | ✔ Примечание 2 | ✔ Примечание 2 |
Динамическая Архивация виртуальных машин | 2019, 2016, 2012 R2 | ✔ Примечание 3, 4, 5 | ✔ Примечание 3, 4, 5 | ✔ Примечание 3, 4, 5 | ✔ Примечание 3, 4, 5 |
Поддержка TRIM | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
WWN ДЛЯ SCSI | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Память | |||||
Поддержка ядра PAE | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Настройка зазора MMIO | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Динамическая память Hot-Add | 2019, 2016, 2012 R2 | ✔ Примечание 6, 7, 8 | ✔ Примечание 6, 7, 8 | ✔ Примечание 6, 7, 8 | ✔ Примечание 6, 7, 8 |
Всплывающие подсказки динамическая память | 2019, 2016, 2012 R2 | ✔ Примечание 6, 7, 8 | ✔ Примечание 6, 7, 8 | ✔ Примечание 6, 7, 8 | ✔ Примечание 6, 7, 8 |
Изменение размера памяти среды выполнения | 2019, 2016 | ✔ | ✔ | ✔ | ✔ |
Видео | |||||
Устройство, относящееся к Hyper-V | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Разное | |||||
Пара «ключ — значение» | 2019, 2016, 2012 R2 | ✔ Примечание 5, 9 | ✔ Примечание 5, 9 | ✔ Примечание 5, 9 | ✔ Примечание 5, 9 |
Немаскируемое прерывание | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Копирование файлов с узла на гость | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Команда лсвмбус | 2019, 2016, 2012 R2 | ✔ | ✔ | ✔ | ✔ |
Сокеты Hyper-V | 2019, 2016 | ✔ | ✔ | ✔ | ✔ |
Транзитный/ДДА PCI | 2019, 2016 | ✔ | ✔ | ✔ | ✔ |
Виртуальные машины 2-го поколения | |||||
Загрузка с помощью UEFI | 2019, 2016, 2012 R2 | ✔ Примечание 10, 11 | ✔ Примечание 10, 11 | ✔ Примечание 10, 11 | ✔ Примечание 10, 11 |
Безопасная загрузка | 2019, 2016 | ✔ | ✔ | ✔ | ✔ |
Примечания
Статическая Вставка IP-адресов может не работать, если Диспетчер сети настроен для конкретного сетевого адаптера Hyper-V на виртуальной машине. Чтобы обеспечить гладкую работу статического внедрения IP-адресов, убедитесь, что диспетчер сети полностью отключен или отключен для определенного сетевого адаптера через его файл ifcfg-ЕСКС .
При использовании виртуальных устройств оптоволоконного канала убедитесь, что логический номер устройства 0 (LUN 0) заполнен. Если LUN 0 не заполнен, виртуальная машина Linux может не иметь возможности подключать устройства оптоволоконного канала в собственном режиме.
Если во время динамической операции резервного копирования виртуальных машин имеются открытые дескрипторы файлов, то в некоторых уголках резервных виртуальных жестких дисков может потребоваться проверка согласованности файловой системы () при fsck восстановлении.
Операции динамической архивации могут автоматически завершаться сбоем, если виртуальная машина имеет подключенное устройство iSCSI или прямое подключенное хранилище (также называемое транзитным диском).
В выпусках долгосрочной поддержки (LTS) используйте последнюю версию ядра для обновления виртуальных аппаратных средств (HWE) для Integration Services Linux.
Чтобы установить ядро, настроенное для Azure, на 16,04, 18,04 и 20,04, выполните следующие команды в качестве корневого (или sudo):
Поддержка динамической памяти доступна только на 64-разрядных виртуальных машинах.
Динамическая память операции могут завершиться ошибкой, если в операционной системе на виртуальной машине слишком мало памяти. Ниже приведены некоторые рекомендации.
Объем памяти при запуске и минимальный объем памяти должны быть больше или равны объему памяти, рекомендуемому для поставщика распространения.
Приложения, которые обычно потребляют всю доступную память в системе, могут потреблять до 80 процентов доступной памяти.
при использовании динамическая память в операционных системах Windows Server 2019, Windows Server 2016 или Windows Server 2012/2012 R2 укажите объем памяти при запуске, минимальный объем памяти и параметры максимального объема памяти , кратные 128 мегабайтам (мб). Несоблюдение этого действия может привести к Hot-Addм сбоям, и в операционной системе на виртуальной машине может не отобразиться увеличение объема памяти.
в Windows Server 2019, Windows Server 2016 или Windows Server 2012 R2 инфраструктура пар «ключ — значение» может работать неправильно без обновления программного обеспечения Linux. Обратитесь к поставщику распространения, чтобы получить обновление программного обеспечения на случай возникновения проблем с этой функцией.
на виртуальных машинах версии 2 Windows Server 2012 R2 по умолчанию включена безопасная загрузка, и некоторые виртуальные машины Linux не будут загружаться, если только не будет отключен параметр безопасной загрузки. Вы можете отключить безопасную загрузку в разделе встроенное по в параметрах виртуальной машины в диспетчере Hyper-V или отключить ее с помощью PowerShell:
Прежде чем пытаться скопировать виртуальный жесткий диск существующей виртуальной машины виртуального жесткого диска поколения 2 для создания новых виртуальных машин поколения 2, выполните следующие действия.
Войдите в существующую виртуальную машину версии 2.
Перейдите в каталог boot EFI.
Скопируйте каталог Ubuntu в новый каталог с именем Boot:
Перейдите в каталог только что созданный каталог загрузки:
Источник
Supported Ubuntu virtual machines on Hyper-V
Applies to: Windows Server 2022, Azure Stack HCI, version 20H2; Windows Server 2019, Hyper-V Server 2019, Windows Server 2016, Hyper-V Server 2016, Windows Server 2012 R2, Hyper-V Server 2012 R2, Windows 10, Windows 8.1
The following feature distribution map indicates the features in each version. The known issues and workarounds for each distribution are listed after the table.
Table legend
Built in — LIS are included as part of this Linux distribution. The Microsoft-provided LIS download package doesn’t work for this distribution, so don’t install it. The kernel module version numbers for the built in LIS (as shown by lsmod, for example) are different from the version number on the Microsoft-provided LIS download package. A mismatch doesn’t indicate that the built in LIS is out of date.
вњ” — Feature available
(blank) — Feature not available
Feature | Windows Server operating system version | 20.04 LTS | 18.04 LTS | 16.04 LTS | 14.04 LTS |
---|---|---|---|---|---|
Availability | Built-in | Built-in | Built-in | Built-in | |
Core | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
Windows Server 2016 Accurate Time | 2019, 2016 | вњ” | вњ” | вњ” | |
Networking | |||||
Jumbo frames | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
VLAN tagging and trunking | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
Live migration | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
Static IP Injection | 2019, 2016, 2012 R2 | вњ” Note 1 | вњ” Note 1 | вњ” Note 1 | вњ” Note 1 |
vRSS | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
TCP Segmentation and Checksum Offloads | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
SR-IOV | 2019, 2016 | вњ” | вњ” | вњ” | |
Storage | |||||
VHDX resize | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
Virtual Fibre Channel | 2019, 2016, 2012 R2 | вњ” Note 2 | вњ” Note 2 | вњ” Note 2 | вњ” Note 2 |
Live virtual machine backup | 2019, 2016, 2012 R2 | вњ” Note 3, 4, 5 | вњ” Note 3, 4, 5 | вњ” Note 3, 4, 5 | вњ” Note 3, 4, 5 |
TRIM support | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
SCSI WWN | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
Memory | |||||
PAE Kernel Support | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
Configuration of MMIO gap | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
Dynamic Memory — Hot-Add | 2019, 2016, 2012 R2 | вњ” Note 6, 7, 8 | вњ” Note 6, 7, 8 | вњ” Note 6, 7, 8 | вњ” Note 6, 7, 8 |
Dynamic Memory — Ballooning | 2019, 2016, 2012 R2 | вњ” Note 6, 7, 8 | вњ” Note 6, 7, 8 | вњ” Note 6, 7, 8 | вњ” Note 6, 7, 8 |
Runtime Memory Resize | 2019, 2016 | вњ” | вњ” | вњ” | вњ” |
Video | |||||
Hyper-V specific video device | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
Miscellaneous | |||||
Key/value pair | 2019, 2016, 2012 R2 | вњ” Note 5, 9 | вњ” Note 5, 9 | вњ” Note 5, 9 | вњ” Note 5, 9 |
Non-Maskable Interrupt | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
File copy from host to guest | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
lsvmbus command | 2019, 2016, 2012 R2 | вњ” | вњ” | вњ” | вњ” |
Hyper-V Sockets | 2019, 2016 | вњ” | вњ” | вњ” | вњ” |
PCI Passthrough/DDA | 2019, 2016 | вњ” | вњ” | вњ” | вњ” |
Generation 2 virtual machines | |||||
Boot using UEFI | 2019, 2016, 2012 R2 | вњ” Note 10, 11 | вњ” Note 10, 11 | вњ” Note 10, 11 | вњ” Note 10, 11 |
Secure boot | 2019, 2016 | вњ” | вњ” | вњ” | вњ” |
Notes
Static IP injection may not work if Network Manager has been configured for a given Hyper-V-specific network adapter on the virtual machine. To ensure smooth functioning of static IP injection please ensure that Network Manager is turned off completely or has been turned off for a specific network adapter through its ifcfg-ethX file.
While using virtual fiber channel devices, ensure that logical unit number 0 (LUN 0) has been populated. If LUN 0 has not been populated, a Linux virtual machine might not be able to mount fiber channel devices natively.
If there are open file handles during a live virtual machine backup operation, then in some corner cases, the backed-up VHDs might have to undergo a file system consistency check ( fsck ) on restore.
Live backup operations can fail silently if the virtual machine has an attached iSCSI device or direct-attached storage (also known as a pass-through disk).
On long term support (LTS) releases use latest virtual Hardware Enablement (HWE) kernel for up to date Linux Integration Services.
To install the Azure-tuned kernel on 16.04, 18.04 and 20.04, run the following commands as root (or sudo):
Dynamic memory support is only available on 64-bit virtual machines.
Dynamic Memory operations can fail if the guest operating system is running too low on memory. The following are some best practices:
Startup memory and minimal memory should be equal to or greater than the amount of memory that the distribution vendor recommends.
Applications that tend to consume the entire available memory on a system are limited to consuming up to 80 percent of available RAM.
If you are using Dynamic Memory on Windows Server 2019, Windows Server 2016 or Windows Server 2012/2012 R2 operating systems, specify Startup memory, Minimum memory, and Maximum memory parameters in multiples of 128 megabytes (MB). Failure to do so can lead to Hot-Add failures, and you might not see any memory increase on a guest operating system.
In Windows Server 2019, Windows Server 2016 or Windows Server 2012 R2, the key/value pair infrastructure might not function correctly without a Linux software update. Contact your distribution vendor to obtain the software update in case you see problems with this feature.
On Windows Server 2012 R2, Generation 2 virtual machines have secure boot enabled by default and some Linux virtual machines will not boot unless the secure boot option is disabled. You can disable secure boot in the Firmware section of the settings for the virtual machine in Hyper-V Manager or you can disable it using Powershell:
Before attempting to copy the VHD of an existing Generation 2 VHD virtual machine to create new Generation 2 virtual machines, follow these steps:
Log in to the existing Generation 2 virtual machine.
Change directory to the boot EFI directory:
Copy the ubuntu directory in to a new directory named boot:
Change directory to the newly created boot directory:
Источник