Cloud Infrastructure


Running a VM instructions

  • View the available images
  • user@client1:~$ euca-describe-images
    You should see something like:
    IMAGE	eri-CB0D1458	ubuntu-9.04/initrd.img-2.6.28-11-generic.manifest.xml	admin	available	public		x86_64	ramdisk	 	 	instance-store
    IMAGE	emi-C9A8102E	centos/centos.5-3.x86.img.manifest.xml	admin	available	public		i386	machine	eki-36321225eri-6DF012FE	instance-store
    IMAGE	eki-8F121374	ubuntu-9.04/vmlinuz-2.6.28-11-generic.manifest.xml	admin	available	public		x86_64	kernel	 	 	instance-store
    IMAGE	emi-485F121D	ubuntu-9.04/ubuntu.9-04.x86-64.img.manifest.xml	admin	available	public		x86_64	machine	eki-8F121374	eri-CB0D1458	instance-store
    IMAGE	eki-36321225	centos/vmlinuz-2.6.28-11-server.manifest.xml	admin	available	public		i386	kernel	 	 instance-store
    IMAGE	eri-6DF012FE	centos/initrd.img-2.6.28-11-server.manifest.xml	admin	available	public		i386	ramdisk	 	 instance-store
  • Choose which emi you would like to use and execute:
    user@client1:~$ euca-run-instances -k mykey emi-C9A8102E
    user@client1:~$ euca-run-instances -k mykey -t m1.large emi-C9A8102E
    Notes. If you get an error like this:
    VmTypeVerify: image too large [size=5120MB] for instance type m1.small [disk=2048MB]
    use a different VM type with the parameter -t c1.medium or -t m1.large Available VMTypes:
    AVAILABILITYZONE        NephelaeCC1     NephelaeCC
    AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
    AVAILABILITYZONE        |- m1.small     0100 / 0112   1   1024     5
    AVAILABILITYZONE        |- c1.medium    0050 / 0056   2   2048     5
    AVAILABILITYZONE        |- m1.large     0050 / 0056   2   4096    10
    AVAILABILITYZONE        |- m1.xlarge    0025 / 0028   4   4096    10
    AVAILABILITYZONE        |- c1.xlarge    0011 / 0014   8   8192    10
    Upon sucessful start up you see something like:
    RESERVATION	r-XXXXXXXX	user	user-default
    INSTANCE	i-XXXXXXXX	emi-XXXXXXXX	pending mykey	2011-10-26T11:54:17.367Z	eki-XXXXXXXX	eri-XXXXXXXX
  • Wait for your instance to go from pending to running. You can see your instances status using the command:
    user@client1:~$ euca-describe-instances
  • As soon as your instance is up and running you can ssh into it using the 'public ip' (it should be something like 10.16.3.X)
    user@client1:~$ ssh -i mykey.private root@10.16.3.X
    NOTE: All changes made to the instance will be lost after instance is terminated. For persistent storage you should use EBS or Walrus.

  • You can transfer your files using rsync, scp and ftp.
    For example:
    user@client1:~$ scp -r -i mykey.private local_data_dir root@10.16.3.XX:~/vm_data_dir

Terminating instances

  • A halt command will not terminate your instance. To terminate your instance use the command:
    user@client1:~$ euca-terminate-instances i-XXXXXX
    where i-XXXXXX is the instance id as shown in euca-describe-instances command output.

  • NOTE: Do not forget to unmount and detach any volumes before termination.


University of Cyprus Nephelae cloud infrastructure is funded by the
University of Cyprus