aws ec2 インスタンスの状態?を見る

curl http://169.254.169.254/latest/dynamic/instance-identity/document
{
“instanceId” : “i-e40855e1”,
“billingProducts” : null,
“version” : “2010-08-31”,
“region” : “ap-northeast-1”,
“accountId” : “xxx”,
“imageId” : “ami-xxx”,
“kernelId” : “aki-xxx”,
“ramdiskId” : null,
“architecture” : “x86_64”,
“pendingTime” : “2013-08-17T12:19:40Z”,
“instanceType” : “t1.micro”,
“availabilityZone” : “ap-northeast-1a”,
“devpayProductCodes” : null,
“privateIp” : “xxx”
}

 

AWS RedHat AMI で stop/start すると sshd が failed して ssh 接続できない

RedHat6.4のバグだそうで。

Was able to fix this. This is due to a bug from REDHAT for 6.4 rhel instances[https://bugzilla.redhat.com/show_bug.cgi?id=956531]. After launching the machine from an AMI. Connect to the machine and switch to root user and make below changes to /etc/rc.d/rc.local file …

Remove the following three lines and save the file:

cat <> /etc/ssh/sshd_config UseDNS no PermitRootLogin without-password ../ One should also remove garbage entries from /etc/ssh/sshd_config file .. The machine once rebooted after these changes works fine.

Thanks Ashwani

 

http://stackoverflow.com/questions/17296655/ec2-instance-launched-from-ami-not-reachablessh-after-start-stop-or-reboot

https://bugzilla.redhat.com/show_bug.cgi?id=956531

VBoxアップデートしたら、Cannot attach medium … VBoxGuestAdditions.iso で起動しない。

調べたら下記のサイトが。

https://forums.virtualbox.org/viewtopic.php?f=6&t=48527

Cannot attach medium ‘C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso’ {d6c41d7d-3727-4845-9aad-d89f671f7dc7}: medium is already associated with the current state of machine uuid {a2844f20-fc58-4d8b-8d01-d25a0358c487}!.
Result Code:
VBOX_E_OBJECT_IN_USE (0x80BB000C)
Component:
Medium
Interface:
IMedium {53f9cc0c-e0fd-40a5-a404-a7a5272082cd}

Steps followed to resolve the issue.
1) Stop Oracle VM VirtualBox Manager
2) Open REAL1.vbox file in notepad
3) Search for VBoxGuestAdditions.iso in the file
4) Remove the line which corresponds which has the entry VBoxGuestAdditions.iso. (Remove the complete line)
eg:-
<Image uuid=”{0d0c7dc1-eee4-4f78-942c-7b62c4da37af}” location=”C:/Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso”/>
5) Start the Oracle VM VirtualBox Manager the VM machine should be available for startup.

 

無事解決。(^-^