Now that we have a
usable volume, we can attach this to any instance. We do this by using the
euca-attach-volume command from
euca2ools or the
nova volume-attach command in Nova Client.
To begin with, ensure you are logged in to the Ubuntu client that has access to
euca2ools or Nova Client tools. These packages can be installed using the following command:
sudo apt-get update sudo apt-get-y install euca2ools python-novaclient
Carry out the following steps to attach a volume to an instance by using euca2ools:
euca-describe-instancescommand and note the instance ID.
# Source in our EC2 credentials . ec2rc euca-describe-instances ...