Hi,
Ok, I got this working now! Thanks a lot for your ideas... I very
appreciate the nice help.
Now the metadata server returns the following values:
ubuntu@ip-192-168-49-152:~$ ./ec2-metadata-mod --all
ami-id: not available
ami-launch-index: 76
ami-manifest-path: none
ancestor-ami-ids: not available
block-device-mapping:
not available
instance-id: i-76
instance-type: not available
local-hostname: one-76.cloud
local-ipv4: 192.168.49.152
kernel-id: not available
placement: not available
product-codes: not available
public-hostname: one-76.cloud
public-ipv4: 192.168.49.152
public-keys:
not available
ramdisk-id: not available
reservation-id: r-76
security-groups: not available
user-data: not available
Some questions regarding the values:
local-hostname: one-76.cloud
public-hostname: one-76.cloud
How are these values created? Shouldn't the value correspond to the vm
name I've chosen in OpenNebula?
public-keys:
not available
There is a public key available in the template, so I'm wondering why
it's not available.
Will the metadata server find it's way into the official OpenNebula
distribution, or will it stay separate?
Cheers,
Tobias
On 23.10.2013 10:58, Ricardo Duarte wrote:
Hi Tobias,
I would say that the NAT method will not work if both the
metadata-server and the instances are on the same IP network.
You can try to do the following:
- On your router, add a new IP to the VLAN => 169.254.169.253/30
- On the metadata-server, add the IP 169.254.169.254/30 to the
interface
- Edit the /etc/one/metadata.conf to listen on 169.254.169.254, and
port 80
- Make sure your router forwards packets from your instance network to
this network
To ensure metadata server is working fine, before making the changes,
just change the IP address and port on the ec2-metadata script to the
real ip and port of the server, and check if it returns any value.
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org