oracle linux 虚拟机,Hyper-v 上支持的 Oracle Linux 虚拟机

本文探讨了Oracle Linux虚拟机的配置挑战与解决方案,包括VLAN标记、静态IP注入、虚拟光纤通道设备、动态内存支持及Hot-Add等功能的具体设置步骤与注意事项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

对于此 Oracle Linux 版本,VLAN 标记有效,但 VLAN 中继不起作用。For this Oracle Linux release, VLAN tagging works but VLAN trunking does not.

如果为虚拟机上的指定合成网络适配器配置了网络管理器,则静态 IP 注入可能不起作用。Static IP injection may not work if Network Manager has been configured for a given synthetic network adapter on the virtual machine. 要使静态 IP 注入正常运行,请确保已完全关闭网络管理器,或已通过 ifcfg-eth0-ethX 文件为特定网络适配器关闭网络管理器。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.

使用虚拟光纤通道设备时,在 Windows Server 2012 R2 上,请确保已填充逻辑单元号 0 (LUN 0) 。On Windows Server 2012 R2 while using virtual fibre channel devices, make sure that logical unit number 0 (LUN 0) has been populated. 如果尚未填充 LUN 0,Linux 虚拟机可能无法以本机方式装载光纤通道设备。If LUN 0 has not been populated, a Linux virtual machine might not be able to mount fibre channel devices natively.

对于内置的 .LIS,必须安装 "hyperv-守护程序" 包才能实现此功能。For built-in LIS, the "hyperv-daemons" package must be installed for this functionality.

如果在执行实时虚拟机备份操作的过程中有打开的文件句柄,则在某些角落情况下,在还原时,已备份的 Vhd 可能需要执行文件系统一致性检查 (fsck) 。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. 如果虚拟机有连接的 iSCSI 设备或直接连接存储 (也称为传递磁盘) ,则实时备份操作可能会失败。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).

动态内存支持仅适用于64位虚拟机。Dynamic memory support is only available on 64-bit virtual machines.

默认情况下,此分发中未启用 Hot-Add 支持。Hot-Add support is not enabled by default in this distribution. 若要启用 Hot-Add 支持,需要在/etc/udev/rules.d/下添加 udev 规则,如下所示:To enable Hot-Add support you need to add a udev rule under /etc/udev/rules.d/ as follows:

创建文件 /etc/udev/rules.d/100-balloon.rules。Create a file /etc/udev/rules.d/100-balloon.rules. 您可以为该文件使用任何其他所需的名称。You may use any other desired name for the file.

将以下内容添加到文件: SUBSYSTEM=="memory", ACTION=="add", ATTR{state}="online"Add the following content to the file: SUBSYSTEM=="memory", ACTION=="add", ATTR{state}="online"

重新启动系统以启用 Hot-Add 支持。Reboot the system to enable Hot-Add support.

尽管 Linux Integration Services 下载会在安装时创建此规则,但卸载 .LIS 时也会删除该规则,因此,如果在卸载之后需要动态内存,则必须重新创建该规则。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.

通常会消耗系统中的全部可用内存的应用程序,仅消耗最多80% 的可用 RAM。Applications that tend to consume the entire available memory on a system are limited to consuming up to 80 percent of available RAM.

如果在 Windows Server 2016 或 Windows Server 2012 R2 操作系统上使用动态内存,请以128兆字节 (MB) 的倍数指定 " 启动内存"、" 最小内存" 和 " 最大内存 " 参数。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.

若要启用) 基础结构 (KVP 的键/值对,请从 Oracle Linux ISO 安装 hypervkvpd 或 hyperv-守护程序 rpm 包。To enable key/value pair (KVP) infrastructure, install the hypervkvpd or hyperv-daemons rpm package from your Oracle Linux ISO. 或者,可以直接从 Oracle Linux Yum 存储库安装包。Alternatively the package can be installed directly from Oracle Linux Yum repositories.

如果没有 Linux 软件更新, (KVP) 基础结构的键/值对可能无法正常工作。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.

在 Windows Server 2012 R2 第2代虚拟机上,默认情况下已启用安全启动,某些 Linux 虚拟机将无法启动,除非禁用了安全启动选项。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. 你可以在 Hyper-v 管理器 中虚拟机设置的 "固件" 部分禁用安全启动,也可以使用 Powershell 禁用它: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:

Set-VMFirmware -VMName "VMname" -EnableSecureBoot Off

可以将 Linux Integration Services 下载应用到现有的第2代 Vm,但不授予第2代功能。The Linux Integration Services download can be applied to existing Generation 2 VMs but does not impart Generation 2 capability.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值