Difference between revisions of "Piston: Uploading Images to the Piston Cloud"
Jump to navigation
Jump to search
| Line 2: | Line 2: | ||
* Assumes you have all the CLI tools installed as per: http://wiki.bostonlabs.co.uk/w/index.php/Piston:_Access_using_the_CLI | * Assumes you have all the CLI tools installed as per: http://wiki.bostonlabs.co.uk/w/index.php/Piston:_Access_using_the_CLI | ||
* '''Notes''' (make sure you have ssh keys setup when booting images, password access not enabled | * '''Notes''' (make sure you have ssh keys setup when booting images, password access not enabled | ||
| − | ** Fedora: default user fedora | + | ** Fedora: default user fedora |
| + | ** Ubuntu: default user ubuntu | ||
| + | ** Centos: default user centos | ||
** Windows (cloudbase): Administrator/password (then change on first login) | ** Windows (cloudbase): Administrator/password (then change on first login) | ||
<syntaxhighlight> | <syntaxhighlight> | ||
Latest revision as of 15:25, 10 April 2015
- This script should take care of it
- Assumes you have all the CLI tools installed as per: http://wiki.bostonlabs.co.uk/w/index.php/Piston:_Access_using_the_CLI
- Notes (make sure you have ssh keys setup when booting images, password access not enabled
- Fedora: default user fedora
- Ubuntu: default user ubuntu
- Centos: default user centos
- Windows (cloudbase): Administrator/password (then change on first login)
#!/bin/bash
# everything taken from: https://openstack.redhat.com/Image_resources
# left in comments in case you want to download manually, windows 2012 r2
# http://www.cloudbase.it/euladownload.php?h=kvm
wget http://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/x86_64/Fedora-Cloud-Base-20141203-21.x86_64.qcow2
wget http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2.xz
wget http://cloud.centos.org/centos/6/images/CentOS-6-x86_64-GenericCloud.qcow2.xz
wget https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
wget https://cloud-images.ubuntu.com/utopic/current/utopic-server-cloudimg-amd64-disk1.img
unxz CentOS-7-x86_64-GenericCloud.qcow2.xz
unxz CentOS-6-x86_64-GenericCloud.qcow2.xz
glance image-create --name "Fedora 21 Cloud Base" --disk-format qcow2 --container-format bare --is-public True --progress < Fedora-Cloud-Base-20141203-21.x86_64.qcow2
glance image-create --name "Centos 7 Generic Cloud" --disk-format qcow2 --container-format bare --is-public True --progress < CentOS-7-x86_64-GenericCloud.qcow2
glance image-create --name "Centos 6 Generic Cloud" --disk-format qcow2 --container-format bare --is-public True --progress < CentOS-6-x86_64-GenericCloud.qcow2
glance image-create --name "Ubuntu 14.04 LTS (trusty)" --disk-format qcow2 --container-format bare --is-public True --progress < trusty-server-cloudimg-amd64-disk1.img
glance image-create --name "Ubuntu 14.10 (utopic)" --disk-format qcow2 --container-format bare --is-public True --progress < utopic-server-cloudimg-amd64-disk1.img