Linux cloud images

From Vidalinux Wiki
Jump to navigation Jump to search

default Login credentials

below are the default login usernames for instances created from the images added shortly.

Debian: debian
Fedora: fedora
Ubuntu: ubuntu
RHEL: cloud-user
CentOS: centos
coreos: core
Arch Linux: arch
Gentoo: gentoo
OpenSUSE: root
Cirros:
    username: cirros
    Password: cubswin:)

customize image

customize rhel8 image:

wget https://download.libguestfs.org/binaries/appliance/appliance-1.46.0.tar.xz
tar xvf appliance-1.46.0.tar.xz -C $HOME/
export LIBGUESTFS_BACKEND=direct
export LIBGUESTFS_PATH=$HOME/appliance/
virt-customize -a rhel-8.0.qcow2 --root-password password:mypassword
virt-customize -a rhel-8.0.qcow2 --uninstall cloud-init

cirros

download cloud image:

wget http://download.cirros-cloud.net/0.5.0/cirros-0.5.0-x86_64-disk.img

convert image to raw:

qemu-img convert -f qcow2 -O raw cirros-0.5.0-x86_64-disk.img cirros-0.5.0-x86_64-disk.raw -p

add image to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file cirros-0.5.0-x86_64-disk.raw \
   Cirros-0.5.0-x86_64

fedora

download cloud image:

wget https://download.fedoraproject.org/pub/fedora/linux/releases/35/Cloud/x86_64/images/Fedora-Cloud-Base-35-1.2.x86_64.qcow2

convert image to raw:

qemu-img convert -f qcow2 -O raw Fedora-Cloud-Base-35-1.2.x86_64.qcow2 Fedora-Cloud-Base-35-1.2.x86_64.raw -p

add image to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file  Fedora-Cloud-Base-35-1.2.x86_64.raw \
   Fedora-35-x86_64

almalinux

download cloud image:

wget https://repo.almalinux.org/almalinux/8/cloud/x86_64/images/AlmaLinux-8-GenericCloud-latest.x86_64.qcow2

convert image to raw:

qemu-img convert -f qcow2 -O raw AlmaLinux-8-GenericCloud-latest.x86_64.qcow2 AlmaLinux-8-GenericCloud-latest.x86_64.raw -p

add image to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file AlmaLinux-8-GenericCloud-latest.x86_64.raw  \
   AlmaLinux-8-x86_64

openeuler

download cloud image:

wget https://mirror.sjtu.edu.cn/openeuler/openEuler-20.03-LTS/virtual_machine_img/x86_64/openEuler-20.03-LTS.x86_64.qcow2.xz

convert image to raw:

qemu-img convert -f qcow2 -O raw openEuler-20.03-LTS.x86_64.qcow2 openEuler-20.03-LTS.x86_64.raw -p

add image to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file openEuler-20.03-LTS.x86_64.raw  \
   openEuler-20.03-LTS.x86_64

rockylinux

download cloud image:

wget https://download.rockylinux.org/pub/rocky/8.5/images/Rocky-8-GenericCloud-8.5-20211114.2.x86_64.qcow2

convert image to raw:

qemu-img convert -f qcow2 -O raw Rocky-8-GenericCloud-8.5-20211114.2.x86_64.qcow2 Rocky-8-GenericCloud-8.5-20211114.2.x86_64.raw -p

add image to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file Rocky-8-GenericCloud-8.5-20211114.2.x86_64.qcow2  \
   Rocky-8-GenericCloud-8.5-x86_64

centos 7

download cloud image:

wget http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2

convert image to raw:

qemu-img convert -f qcow2 -O raw CentOS-7-x86_64-GenericCloud.qcow2 CentOS-7-x86_64-GenericCloud.raw -p

upload image to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file CentOS-7-x86_64-GenericCloud.raw \
   CentOS-7-x86_64

centos 8

download cloud image:

wget http://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2

convert image to raw:

qemu-img convert -f qcow2 -O raw CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2 CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.raw -p

upload image to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.raw \
   CentOS-7-x86_64

ubuntu 18.04

download cloud image:

wget http://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img

convert image to raw:

qemu-img convert -f qcow2 -O raw bionic-server-cloudimg-amd64.img bionic-server-cloudimg-amd64.raw -p

upload to openstack:

openstack image create \
   --container-format bare \
   --disk-format qcow2 \
   --file bionic-server-cloudimg-amd64.raw \
   Ubuntu-18.04-x86_64

ubuntu 20.04

download cloud image:

wget http://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img

convert image to raw:

qemu-img convert -f qcow2 -O raw focal-server-cloudimg-amd64.img focal-server-cloudimg-amd64.raw -p

upload to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file bionic-server-cloudimg-amd64.raw \
   Ubuntu-20.04-x86_64

debian 9

download cloud image:

wget http://cdimage.debian.org/cdimage/openstack/current-9/debian-9-openstack-amd64.qcow2

convert image to raw:

qemu-img convert -f qcow2 -O raw debian-9-openstack-amd64.qcow2 debian-9-openstack-amd64.raw -p

upload to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file debian-9-openstack-amd64.raw \
   Debian-9-amd64

debian 10

download cloud images:

wget http://cdimage.debian.org/cdimage/openstack/current-10/debian-10-openstack-amd64.qcow2

convert image to raw:

qemu-img convert -f qcow2 -O raw debian-10-openstack-amd64.qcow2 debian-10-openstack-amd64.raw -p

upload to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file debian-10-openstack-amd64.raw \
   Debian-10-amd64

archlinux

download cloud image:

wget https://linuximages.de/openstack/arch/arch-openstack-LATEST-image-bootstrap.qcow2

convert image to raw:

qemu-img convert -f qcow2 -O raw arch-openstack-LATEST-image-bootstrap.qcow2 arch-openstack-LATEST-image-bootstrap.raw -p

adding image to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file arch-openstack-LATEST-image-bootstrap.raw \
   Arch-Linux-x86_64

gentoo

download cloud image:

wget https://linuximages.de/openstack/gentoo/gentoo-openstack-LATEST-image-bootstrap.qcow2

convert image to raw:

qemu-img convert -f qcow2 -O raw gentoo-openstack-LATEST-image-bootstrap.qcow2 gentoo-openstack-LATEST-image-bootstrap.raw -p

adding image to openstack:

openstack image create \
   --container-format bare \
   --disk-format raw \
   --file gentoo-openstack-LATEST-image-bootstrap.raw \
   Gentoo-Linux-x86_64

windows

adding Windowserver 2012 image: Download image from https://cloudbase.it/windows-cloud-images/#download

gunzip -cd windows_server_2012_r2_standard_eval_kvm_20170321.qcow2.gz
openstack image create \
   --container-format bare \
   --disk-format qcow2 \
   --file windows_server_2012_r2_standard_eval_kvm_20170321.qcow2 \
   Windows-Server-2012-R2-Std