Oracle linux and hyper v

Oracle linux and hyper v

OracleВ® Linux 6

Release Notes for Oracle Linux 6.9

The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.

1.2.2В Hyper-V Daemons

The hyperv-daemons package, which includes the hypervfcopyd , hypervkvpd , and hypervvssd packages, provides the Hyper-V file-copy, key-value pair (KVP), and volume shadow copy service (VSS) daemons for an Oracle Linux guest that is running under Hyper-V on a Microsoft Windows host.

The file-copy daemon ( hv_fcopy_daemon ) implements a file-copying service ( hypervfcopyd ) between the host and a guest.

The KVP daemon ( hv_kvp_daemon ) implements the hypervkvpd service, which uses the virtual machine bus ( VMbus ) to send information about a guest to the host.

The VSS daemon ( hv_vss_daemon ) implements the hypervvssd service, which allows you to create snapshots and backups of volumes from the host without preventing processes that are running in a guest from writing to or reading from those volumes.

Reboot the guest after installing the package.

Copyright В© 2021, Oracle and/or its affiliates. Legal Notices

Источник

Рекомендации по запуску Linux в Hyper-V

область применения: Windows Server 2022, Azure Stack хЦи, версия 20H2; Windows сервер 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

Этот раздел содержит список рекомендаций по запуску виртуальной машины Linux в Hyper-V.

Настройка файловых систем Linux в динамических VHDX-файлах

Некоторые файловые системы Linux могут потреблять значительный объем свободного места на диске, даже если файловая система в основном пуста. Чтобы уменьшить объем используемого дискового пространства в динамических VHDX-файлах, учитывайте следующие рекомендации.

  • При создании VHDX используйте 1 МБ Блокксизебитес (из 32 МБ по умолчанию) в PowerShell, например:

    Формат ext4 является предпочтительным для ext3, так как ext4 больше пространства, чем ext3 при использовании с динамическими VHDX-файлами.

    При создании файловой системы укажите число групп 4096, например:

    Время ожидания меню GRUB на виртуальных машинах поколения 2

    Из-за того, что устаревшее оборудование удаляется из эмуляции на виртуальных машинах поколения 2, для отображения меню GRUB слишком быстро вычисляется таймер обратного отсчета, и сразу же загружается запись по умолчанию. Пока GRUB не будет использоваться для использования таймера, поддерживаемого EFI, измените /Бут/груб/груб.конф,/т.п./default/grub или эквивалентным параметром «Timeout = 100000» вместо значения по умолчанию «timeout = 5».

    Загрузка PxE на виртуальных машинах поколения 2

    Так как в виртуальных машинах поколения 2 отсутствует таймер «СМОЛой», сетевые подключения к PxE-серверу TFTP можно преждевременно завершить и предотвратить считывание конфигурации GRUB и загрузку ядра с сервера.

    В дистрибутивах Linux, отличных от RHEL 6. x, можно выполнить аналогичные действия, чтобы настроить GRUB v 0.97 для загрузки ядер Linux с PxE-сервера.

    Кроме того, при вводе с помощью клавиатуры и мыши RHEL/CentOS 6,6 не будет работать с предварительно установленным ядром, что не позволит указать параметры установки в меню. Чтобы разрешить выбор параметров установки, должна быть настроена последовательная консоль.

    В файле ефидефаулт на PxE-сервере добавьте следующий параметр ядра «console = ttyS1» .

    На виртуальной машине в Hyper-V настройте COM-порт с помощью этого командлета PowerShell:

    Указание файла Kickstart для предварительно установленного ядра также позволит избежать необходимости ввода с клавиатуры и мыши во время установки.

    Использование статических MAC-адресов с отказоустойчивой кластеризацией

    Виртуальные машины Linux, которые будут развернуты с помощью отказоустойчивой кластеризации, должны быть настроены со статическим MAC-адресом для каждого виртуального сетевого адаптера. В некоторых версиях Linux сетевая конфигурация может быть потеряна после отработки отказа, поскольку виртуальному сетевому адаптеру назначается новый MAC-адрес. Чтобы избежать потери конфигурации сети, убедитесь, что у каждого виртуального сетевого адаптера есть статический MAC-адрес. Вы можете настроить MAC-адрес, изменив параметры виртуальной машины в диспетчере Hyper-V или диспетчер отказоустойчивости кластеров.

    Использование сетевых адаптеров, относящихся к Hyper-V, а не устаревших сетевых адаптеров

    Настройте и используйте виртуальный адаптер Ethernet, который является сетевой картой Hyper-V с повышенной производительностью. Если к виртуальной машине подключены как устаревшие, так и сетевые адаптеры, относящиеся к Hyper-V, сетевые имена в выходных данных команды ifconfig-a могут показывать случайные значения, такие как _tmp12000801310. Чтобы избежать этой проблемы, удалите все устаревшие сетевые адаптеры при использовании сетевых адаптеров, связанных с Hyper-V, в виртуальной машине Linux.

    Для повышения производительности дискового ввода-вывода используйте планировщик заданий (NOOP/None)

    Ядро Linux предлагает два набора планировщиков дискового ввода-вывода для переупорядочивания запросов. Один набор предназначен для более старой подсистемы «BLK», а один — для новой подсистемы «BLK-MQ». В любом случае с современными твердотельными дисками рекомендуется использовать планировщик, который передает решения о планировании в базовый гипервизор Hyper-V. Для ядер Linux, использующих подсистему «BLK», это планировщик «NOOP». Для ядер Linux, использующих подсистему «BLK-MQ», это планировщик «None».

    Для конкретного диска доступные планировщики могут отображаться в этой папке файловой системы:/СИС/класс/блокк/ /куеуе/счедулер с выбранным планировщиком в квадратных скобках. Планировщик можно изменить, записав в это расположение файловой системы. Чтобы сохранить изменения между перезагрузками, необходимо добавить это изменение в скрипт инициализации. Дополнительные сведения см. в документации по дистрибутив Linux.

    Версии ядра Linux ниже 2.6.37 не поддерживают NUMA в Hyper-V с виртуальными машинами большего размера. Эта проблема влияет в основном на дистрибутивы более ранних версий, в которых используется исходное ядро Red Hat 2.6.32, и была исправлена в Red Hat Enterprise Linux (RHEL) 6.6 (kernel-2.6.32-504). В системах под управлением модифицированных ядер старше версии 2.6.37 или ядер RHEL старше 2.6.32-504 в командной строке ядра необходимо задать параметр загрузки numa=off в файле grub.conf. Дополнительные сведения см. в статье базы знаний Red Hat 436883.

    Зарезервируйте больше памяти для кдумп

    Если ядро записи дампа завершается с тревогой при загрузке, зарезервируйте больше памяти для ядра. Например, измените параметр crashkernel = 384M-: 128M на crashkernel = 384M-: 256M в файле конфигурации Ubuntu GRUB.

    Сжатие VHDX-файлов или расширения VHD и VHDX может привести к ошибочным таблицам разделов GPT

    Hyper-V позволяет сжимать файлы виртуального диска (VHDX) без учета разделов, томов или структур данных файловой системы, которые могут существовать на диске. Если VHDX-файл сжимается до конца раздела, то данные могут быть потеряны, при этом Секция может быть повреждена, а при чтении секции могут возвращаться недопустимые данные.

    После изменения размера VHD или VHDX администраторы должны использовать служебную программу, например fdisk, или частично обновить структуру разделов, томов и файловой системы, чтобы отразить изменение размера диска. Сжатие или увеличение размера VHD или VHDX с таблицей разделов GUID (GPT) вызовет предупреждение, если для проверки макета раздела используется средство управления секциями, и администратору будет выведено предупреждение об исправлении первого и дополнительного заголовков GPT. Этот ручной этап можно выполнить без потери данных.

    Источник

    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.

    Источник

    Oracle linux and hyper v

    Supported Oracle Linux virtual machines 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 10, Windows 8.1

    The following feature distribution map indicates the features that are present in each version. The known issues and workarounds for each distribution are listed after the table.

    In this section:

    Built in — LIS are included as part of this Linux distribution. 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.

    (blank) — Feature not available

    RHCK — Red Hat Compatible Kernel

    UEK — Unbreakable Enterprise Kernel (UEK)

    • UEK4 — built on upstream Linux Kernel release 4.1.12
    • UEK5 — built on upstream Linux Kernel release 4.14
    • UEK6 — built on upstream Linux Kernel release 5.4
Читайте также:  Скриншоты экрана linux mint

Oracle Linux 8.x Series

Feature Windows Server version 8.0-8.1 (RHCK)
Availability
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 2
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 3
Live virtual machine backup 2019, 2016, 2012 R2 ✔ Note 5
TRIM support 2019, 2016, 2012 R2
SCSI WWN 2019, 2016, 2012 R2
Memory
PAE Kernel Support 2019, 2016, 2012 R2 N/A
Configuration of MMIO gap 2019, 2016, 2012 R2
Dynamic Memory — Hot-Add 2019, 2016, 2012 R2 ✔ Note 7, 8, 9
Dynamic Memory — Ballooning 2019, 2016, 2012 R2 ✔ Note 7, 8, 9
Runtime Memory Resize 2019, 2016
Video
Hyper-V-specific video device 2019, 2016, 2012 R2
Miscellaneous
Key-Value Pair 2019, 2016, 2012 R2
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 12
Secure boot 2019, 2016

Oracle Linux 7.x Series

This series only has 64-bit kernels.

Windows Server Version

2019, 2016, 2012 R2

Windows Server 2016 Accurate Time

2019, 2016, 2012 R2

VLAN tagging and trunking 2019, 2016, 2012 R2

2019, 2016, 2012 R2

Static IP injection

2019, 2016, 2012 R2

2019, 2016, 2012 R2

TCP Segmentation and Checksum Offloads

2019, 2016, 2012 R2

2019, 2016, 2012 R2

Virtual Fibre Channel

2019, 2016, 2012 R2

Live virtual machine backup

2019, 2016, 2012 R2

2019, 2016, 2012 R2

2019, 2016, 2012 R2

PAE Kernel Support

2019, 2016, 2012 R2

Configuration of MMIO gap

2019, 2016, 2012 R2

Dynamic Memory Hot-Add

2019, 2016, 2012 R2

Dynamic Memory Ballooning

2019, 2016, 2012 R2

Runtime Memory Resize

Hyper-V specific video

2019, 2016, 2012 R2

2019, 2016, 2012 R2

2019, 2016, 2012 R2

File copy from host to guest

2019, 2016, 2012 R2

2019, 2016, 2012 R2

Boot using UEFI

2019, 2016, 2012 R2

2019, 2016, 2012 R2

Oracle Linux 6.x Series

This series only has 64-bit kernels.

Feature Windows Server version 6.8-6.10 (RHCK) 6.8-6.10 (UEK4)
Availability LIS 4.3 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 ✔ Note 1 ✔ Note 1
Live Migration 2019, 2016, 2012 R2
Static IP Injection 2019, 2016, 2012 R2 ✔ Note 2
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 3 ✔ Note 3
Live virtual machine backup 2019, 2016, 2012 R2 ✔ Note 5 ✔ Note 5
TRIM support 2019, 2016, 2012 R2
SCSI WWN 2019, 2016, 2012 R2
Memory
PAE Kernel Support 2019, 2016, 2012 R2 N/A N/A
Configuration of MMIO gap 2019, 2016, 2012 R2
Dynamic Memory — Hot-Add 2019, 2016, 2012 R2 ✔ Note 6, 8, 9 ✔ Note 6, 8, 9
Dynamic Memory — Ballooning 2019, 2016, 2012 R2 ✔ Note 6, 8, 9 ✔ Note 6, 8, 9
Runtime Memory Resize 2019, 2016
Video
Hyper-V-specific video device 2019, 2016, 2012 R2
Miscellaneous
Key-Value Pair 2019, 2016, 2012 R2 ✔ Note 10,11 ✔ Note 10,11
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 12 ✔ Note 12
Secure boot 2019, 2016

For this Oracle Linux release, VLAN tagging works but VLAN trunking does not.

Static IP injection may not work if Network Manager has been configured for a given synthetic network adapter on the virtual machine. For smooth functioning of static IP injection please make sure that either Network Manager is either turned off completely or has been turned off for a specific network adapter through its ifcfg-ethX file.

On Windows Server 2012 R2 while using virtual fibre channel devices, make sure 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 fibre channel devices natively.

For built-in LIS, the «hyperv-daemons» package must be installed for this functionality.

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).

Dynamic memory support is only available on 64-bit virtual machines.

Hot-Add support is not enabled by default in this distribution. To enable Hot-Add support you need to add a udev rule under /etc/udev/rules.d/ as follows:

Create a file /etc/udev/rules.d/100-balloon.rules. You may use any other desired name for the file.

Add the following content to the file: SUBSYSTEM==»memory», ACTION==»add», ATTR=»online»

Reboot the system to enable Hot-Add support.

While the Linux Integration Services download creates this rule on installation, the rule is also removed when LIS is uninstalled, so the rule must be recreated if dynamic memory is needed after uninstallation.

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 a Windows Server 2016 or Windows Server 2012 R2 operating system, 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 may not see any memory increase in a guest operating system.

To enable key/value pair (KVP) infrastructure, install the hypervkvpd or hyperv-daemons rpm package from your Oracle Linux ISO. Alternatively the package can be installed directly from Oracle Linux Yum repositories.

The key/value pair (KVP) 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:

The Linux Integration Services download can be applied to existing Generation 2 VMs but does not impart Generation 2 capability.

Источник

Читайте также:  Чем снять образ с линукса
Оцените статью