且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

AWS EC2:无法获取裸机实例

更新时间:2021-11-30 09:43:46

为重现您的情况,我执行了以下操作:

To reproduce your situation, I did the following:

  • 在俄亥俄州启动了Amazon EC2实例:
    • 实例类型:c5.metal
    • AMI: Ubuntu Server 18.04 LTS(HVM),SSD卷类型
    • 网络:在我的默认VPC 中,以便使用公共子网
    • 安全组:默认设置,该端口授予Internet上的端口22访问权限
    • Launched an Amazon EC2 instance in Ohio:
      • Instance Type: c5.metal
      • AMI: Ubuntu Server 18.04 LTS (HVM), SSD Volume Type
      • Network: In my Default VPC so that it uses a Public Subnet
      • Security Group: Default settings, which grants port 22 access from the Internet

      状态检查显示2/2 checks大约需要8分钟的时间(可能更快一些,但与此同时我正在测试其他内容).

      It took about 8 minutes until the status checks were showing 2/2 checks (it might have been faster, but I was testing other things in the meantime).

      我能够成功登录到实例:

      I was able to successfully login to the instance:

      Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-1065-aws x86_64)
      
       * Documentation:  https://help.ubuntu.com
       * Management:     https://landscape.canonical.com
       * Support:        https://ubuntu.com/advantage
      
        System information as of Sat Jun  6 23:21:18 UTC 2020
      
        System load:  0.02              Processes:               924
        Usage of /:   13.7% of 7.69GB   Users logged in:         0
        Memory usage: 0%                IP address for enp125s0: 172.31.9.77
        Swap usage:   0%
      
      0 packages can be updated.
      0 updates are security updates.
      
      
      
      The programs included with the Ubuntu system are free software;
      the exact distribution terms for each program are described in the
      individual files in /usr/share/doc/*/copyright.
      
      Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
      applicable law.
      
      To run a command as administrator (user "root"), use "sudo <command>".
      See "man sudo_root" for details.
      
      ubuntu@ip-172-31-9-77:~$ 
      

      (实际上,我首先尝试以ec2-user身份登录,花了一段时间才意识到这是Ubuntu AMI,所以我以ubuntu身份连接).

      (Actually, I first tried to login as ec2-user and it took me a while to realize this was an Ubuntu AMI, so I connected as ubuntu).

      启动缓慢可能是由于操作系统或硬件检查了分配给实例的192GB RAM.

      It is possible that the slow startup is due to the Operating System or hardware checking the 192GB of RAM that is allocated to the instance.

      我使用 Amazon Linux 2 AMI启动了另一个实例,大约需要7分钟才能连接.

      I booted another instance using an Amazon Linux 2 AMI and it required approximately 7 minutes before I could connect.

      我还注意到c5.metal实例没有为获取系统日志"或获取实例屏幕截图"提供任何内容.这可能是使用裸机实例的结果.

      I also noticed that the c5.metal instances did not provide anything for "Get System Log" or "Get Instance Screenshot". This might be a result of using a bare-metal instance.