A custom modification of the virt-install-cloud.sh script located at https://github.com/clauded/virt-tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

distros 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. case $distro in
  2. trusty) IMG_USER="ubuntu"
  3. IMG_URL="http://cloud-images.ubuntu.com/releases/14.04/release"
  4. IMG_NAME="ubuntu-14.04-server-cloudimg-${ARCH}-disk1.img"
  5. ;;
  6. xenial) IMG_USER="ubuntu"
  7. IMG_URL="http://cloud-images.ubuntu.com/releases/16.04/release"
  8. IMG_NAME="ubuntu-16.04-server-cloudimg-${ARCH}-disk1.img"
  9. ;;
  10. artful) IMG_USER="ubuntu"
  11. IMG_URL="http://cloud-images.ubuntu.com/releases/17.10/release"
  12. IMG_NAME="ubuntu-17.10-server-cloudimg-${ARCH}-disk1.img"
  13. ;;
  14. bionic) IMG_USER="ubuntu"
  15. IMG_URL="http://cloud-images.ubuntu.com/releases/18.04/release"
  16. IMG_NAME="ubuntu-18.04-server-cloudimg-${ARCH}.img"
  17. ;;
  18. centos6) IMG_USER="centos"
  19. IMG_URL="https://cloud.centos.org/centos/6/images"
  20. if [[ $arch = "amd64" ]]; then
  21. IMG_NAME="CentOS-6-x86_64-GenericCloud.qcow2"
  22. else
  23. echo "Cloud image not available!"; exit 1
  24. fi
  25. ;;
  26. centos7) IMG_USER="centos"
  27. IMG_URL="https://cloud.centos.org/centos/7/images"
  28. if [[ $arch = "amd64" ]]; then
  29. IMG_NAME="CentOS-7-x86_64-GenericCloud.qcow2"
  30. else
  31. echo "Cloud image not available!"; exit 1
  32. fi
  33. ;;
  34. fedora27) IMG_USER="fedora"
  35. if [[ $arch = "amd64" ]]; then
  36. IMG_URL="https://download.fedoraproject.org/pub/fedora/linux/releases/27/CloudImages/x86_64/images/"
  37. IMG_NAME="Fedora-Cloud-Base-27-1.6.x86_64.qcow2"
  38. else
  39. echo "Cloud image not available!"; exit 1
  40. fi
  41. ;;
  42. jessie) IMG_USER="debian"
  43. if [[ $arch = "amd64" ]]; then
  44. IMG_URL="https://cdimage.debian.org/cdimage/openstack/current-8"
  45. IMG_NAME="debian-8-openstack-amd64.qcow2"
  46. virt_ostype="debian"
  47. virt_osvariant="debian8"
  48. else
  49. echo "Cloud image not available!"; exit 1
  50. fi
  51. ;;
  52. stretch) IMG_USER="debian"
  53. if [[ $arch = "amd64" ]]; then
  54. IMG_URL="https://cdimage.debian.org/cdimage/openstack/current-9"
  55. IMG_NAME="debian-9-openstack-amd64.qcow2"
  56. virt_ostype="debian"
  57. virt_osvariant="debian9"
  58. else
  59. echo "Cloud image not available!"; exit 1
  60. fi
  61. ;;
  62. *) echo "Cloud image not available!"; exit 1
  63. ;;
  64. esac