반응형
작성일: 2026년 1월 28일

 

Nested Virtualization이 필요해서 Amazon Cloud에서 Baremetal Machine을 요청해봤다.

그런데, Instance 생성 버튼을 누르자 아래와 같이 Error 메시지가 출력되었다.

 

You have requested more vCPU capacity than your current vCPU limit of 32 allows 
for the instance bucket that the specified instance type belongs to. 
Please visit http://aws.amazon.com/contact-us/ec2-request 
to request an adjustment to this limit.

 

 

그래서 [ Service Quotas ] 페이지에서 [ Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances
] 증설을 요청했다.

 

참고:
"Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances"는 아래와 같은 의미임.
--->
Maximum number of vCPUs assigned to the Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances.

 

 

최대로 할당받을 수 있는 vCPU 개수의 초기값은 32로 되어 있었고, 넉넉하게 vCPU 192 core를 요청했다.

그런데, 이 요청이 바로 처리되는게 아니다.

요청에 대한 처리 상태가 "Case Opened"로 표시되고 상당 시간이 있어야 내가 요청한 vCPU를 사용할 수 있는 것 같다.

내 경우는 Region별로 4개의 Request를 보냈는데, 평균적으로 1시간 정도 시간이 소요되었다. 

참고로, 내가 요청한 내용에 대해서 1차 회신이 왔는데 아래와 같다. (안내 메일은 수분 내로 받은 것 같다)

 

Hello there,

Thank you for contacting us.

I understand that you would like a Quota increase as per the following specifics:
[US East (Northern Virginia)]: EC2 Spot Instances / All Standard (A, C, D, H, I, M, R, T, Z) Spot Instance Requests, New Limit = 192

Addressing this request requires a collaboration with our internal teams and I have initiated this already.

I am working towards getting you a resolution and I will notify you as soon as I have an update.

I appreciate your patience and understanding during this process.

Best regards,
Amazon Web Services

 

vCPU 증설 요청한 내용이 Amazon Cloud 측에서 Accept하기 까지는 1시간 정도 시간이 소요되니까,

큰 용량의 Instance를 생성할 때는 반나절 정도의 시간적 여유를 두는 것이 좋다.

급할 때는 이것 때문에 "심장이 쫄리는" 것 같다.

 

반응형
작성일: 2025년 9월 4일

 

 

 

EC2 Instance를 운용하다보면, EC2 내부에서 실행중인 프로세스가 Amazon Cloud Infra의 Provision 정보 또는 Meta data를 조회해야 하는 경우가 있다.

(예를 들어, Instance를 여러 개 묶어서 HA 또는 Cluster를 구성하거나 EMS/NMS 시스템에게 정보를 전달하기 위해)

 

아래와 같이 Rest API를 이용해서 EC2 Instance 내부의 프로세스가 Instance 자체의 Meta data를 조회하는 것이 가능한다.

 

EC2 Instance 내부에 SSH 접속하여 아래와 같은 Shell command를 수행한다.

 

$ TOKEN=`curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"`
$ curl -H "X-aws-ec2-metadata-token: $TOKEN"  http://169.254.169.254/latest/meta-data

ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
events/
hostname
identity-credentials/
instance-action
instance-id
instance-life-cycle
instance-type
local-hostname
local-ipv4
mac
metrics/
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
security-groups
services/

$

 

 

 

예를 들어서, 내가 SSH 접속한 EC2 Instance가 어느 Availability Zone에서 운영되고 있는지 확인하고 싶다면 아래와 같이 HTTP Get을 한다.

 

$ curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/placement/availability-zone

ap-northeast-2c

 

 

Amazon Cloud Infra가 해당 EC2 Instance에서 할당한 Public IP addressInternet domain name을 조회하고 싶다면 아래와 같이 HTTP Get을 한다.

 

$ curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/public-ipv4

52.77.178.215

$ curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/public-hostname

ec2-52-77-178-215.ap-northeast-2.compute.amazonaws.com

 

 

 

 

+ Recent posts