问题描述
我正在尝试在Ubuntu VM上加载ena驱动程序.
I'm trying to load the ena driver on a Ubuntu VM.
根据文档,我的VM具有vif
低性能驱动程序:
According to the documentation, my VM has the vif
low-performance driver:
ubuntu@ip-172-31-14-190:~$ ethtool -i eth0
driver: vif
version:
firmware-version:
expansion-rom-version:
bus-info: vif-0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
但是,我已经按照 和驱动程序中的文档:
However, I have already compiled and loaded the ena driver as explained in the AWS docs and in the driver docs:
ubuntu@ip-172-31-14-190:~$ lsmod | grep ena
ena 86016
我在这里错过了任何步骤吗?
Am I missing any steps here?
推荐答案
如果aws ec2 describe-instances --instance-ids instance_id --query "Reservations[].Instances[].EnaSupport"
或aws ec2 describe-images --image-id ami_id --query "Images[].EnaSupport"
(其中instance_id
是您的(i-e04566365f208b6584
)实例ID,而ami_id
是您的AMI的ID(ami-6365f208
))不会返回"True",则某些内容未标记为支持ENA.
If either aws ec2 describe-instances --instance-ids instance_id --query "Reservations[].Instances[].EnaSupport"
or aws ec2 describe-images --image-id ami_id --query "Images[].EnaSupport"
(where instance_id
is your (i-e04566365f208b6584
) instance id and ami_id
is your AMI's ID (ami-6365f208
)) doesn't return "True" something is not marked as supporting ENA.
如果是您的实例.停止它,然后运行aws ec2 modify-instance-attribute --instance-id instance_id --ena-support
以启用支持并重新启动它.如果是您的AMI,则要么必须选择已经支持ENA的AMI,要么从被标记为(支持)ENA的实例中创建自己的AMI.
If it's your instance. Stop it, and run aws ec2 modify-instance-attribute --instance-id instance_id --ena-support
to enable support and restart it. If it's your AMI, you'll either have to select an AMI that already has ENA support, or make your own from an instance that's been tagged (per above) as supporting ENA.
如果您的AMI已经支持ENA,则在运行上述命令后,请对其进行备份,并且ethtool -i eth0
应该显示支持.如果您的AMI出了问题,则需要从具有ENA支持的AMI中启动一个新实例.
If your AMI already supported ENA, after running the above command, start it back up and ethtool -i eth0
should show support. If your AMI was the problem, you'll need to launch a fresh instance from an AMI that has ENA support.
请注意,即使它说AMI是可选的,但我发现情况并非如此.我需要有支持的AMI.
Note that even though it says the AMI is optional, I've found that not to be the case. An AMI with support was required for me.
这篇关于如何在Amazon AWS上加载ena驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!