Linux cloud images: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
m (Protected "Linux cloud images" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
Line 27: Line 27:
= fedora =
= fedora =
download cloud image:
download cloud image:
  wget http://fedora.c3sl.ufpr.br/linux/releases/33/Cloud/x86_64/images/Fedora-Cloud-Base-33-1.2.x86_64.qcow2
  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:  
convert image to raw:  
  qemu-img convert -f qcow2 -O raw Fedora-Cloud-Base-33-1.2.x86_64.qcow2 Fedora-Cloud-Base-33-1.2.x86_64.raw -p
  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:
add image to openstack:
  openstack image create \
  openstack image create \
     --container-format bare \
     --container-format bare \
     --disk-format raw \
     --disk-format raw \
     --file  Fedora-Cloud-Base-33-1.2.x86_64.raw \
     --file  Fedora-Cloud-Base-35-1.2.x86_64.raw \
     Fedora-33-x86_64
     Fedora-33-x86_64



Revision as of 19:24, 13 December 2021

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:) 

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-33-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