==========================================================================================
██████╗ ██████╗ █████╗ ██████╗ ██████╗██╗ ██████╗ ██╗ ██╗██████╗
██╔══██╗██╔══██╗██╔══██╗██╔════╝ ██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗
██║ ██║██████╔╝███████║██║ ██║ ██║ ██║ ██║██║ ██║██║ ██║
██║ ██║██╔══██╗██╔══██║██║ ██║ ██║ ██║ ██║██║ ██║██║ ██║
██████╔╝██║ ██║██║ ██║╚██████╗ ╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝
██████╗ ██████╗ ██████╗ ██╗ ██╗██╗███████╗██╗ ██████╗ ███╗ ██╗███████╗██████╗
██╔══██╗██╔══██╗██╔═══██╗██║ ██║██║██╔════╝██║██╔═══██╗████╗ ██║██╔════╝██╔══██╗
██████╔╝██████╔╝██║ ██║██║ ██║██║███████╗██║██║ ██║██╔██╗ ██║█████╗ ██████╔╝
██╔═══╝ ██╔══██╗██║ ██║╚██╗ ██╔╝██║╚════██║██║██║ ██║██║╚██╗██║██╔══╝ ██╔══██╗
██║ ██║ ██║╚██████╔╝ ╚████╔╝ ██║███████║██║╚██████╔╝██║ ╚████║███████╗██║ ██║
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚═╝╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝
-= with / avec =-
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██ ▄▄ █ ▄▄▀█▀▄▀█ █▀█ ▄▄█ ▄▄▀███ ▄▄▀█ ▄▄▀█ ▄▀███▄▄ ▄▄█ ▄▄█ ▄▄▀█ ▄▄▀█ ▄▄▀█ ▄▄█▀▄▄▀█ ▄▄▀█ ▄▀▄ ██
██ ▀▀ █ ▀▀ █ █▀█ ▄▀█ ▄▄█ ▀▀▄███ ▀▀ █ ██ █ █ █████ ███ ▄▄█ ▀▀▄█ ▀▀▄█ ▀▀ █ ▄██ ██ █ ▀▀▄█ █▄█ ██
██ ████▄██▄██▄██▄█▄█▄▄▄█▄█▄▄███▄██▄█▄██▄█▄▄██████ ███▄▄▄█▄█▄▄█▄█▄▄█▄██▄█▄████▄▄██▄█▄▄█▄███▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
===============================================================================================
In French and English
This project exists to make it easier to 1) create a tailored virtual machine, and 2) provision a cloud instance and deploy the VM to a cloud. The Cloud here will be an OpenStack one.
The current example (see the packer folder) creates VMs capable of running NVIDIA drivers (for "virtual" GPU).
Please note that this project uses a Makefile. This is how you will execute all of your commands. You may want to open that file up and see what commands are available.
Please complete the following steps:
- Contact the DRAC's Cloud Team and ask for a Cloud Environment (a faculty member needs to do this)
- Contact the Cloud Team and ask for a "GPU Capable" image "flavor"
- Install Terraform:
https://www.terraform.io/downloads - Install Packer: https://learn.hashicorp.com/tutorials/packer/get-started-install-cli
- Open the Web console for DRAC's cloud environment (https://arbutus.cloud.computecanada.ca).
- Download your
openrc.shfrom your OpenStack provider's web console to the project root. - Optionally install the OpenStack Command Line Interface (CLI): https://docs.openstack.org/newton/user-guide/common/cli-install-openstack-command-line-clients.html
Look at the README.md file located in the terraform folder to see how to set that aspect up.
Look at the README.md file located in the packer folder to see how to set that aspect up.
Once you've run Packer to create your VM, and then deployed it via Terraform, you can connect to it using ssh -i ~/.ssh/username@arbutus.computecanada.ca ubuntu@111.12.95.121
- The
-ispecifies the ssh key in your.sshfolder - the
ubuntuis a stand-in for the VM's ssh username (depending on on the OS flavor)
- See the
https://docs.alliancecan.ca/wiki/Cloudfor more info on how to interact with this cloud. - See the https://texteditor.com/multiline-text-art/ for the cool ascii font techniques
Veuillez noter que ce projet utilise un Makefile. C'est ainsi que vous exécuterez toutes vos commandes. Vous voudrez peut-être ouvrir ce fichier et voir quelles commandes sont disponibles.
Veuillez suivre les étapes suivantes :
- Contactez l'équipe Cloud de la DRAC et demandez un environnement Cloud (un membre du corps professoral doit le faire)
- Contactez l'équipe Cloud et demandez une "saveur" d'image "GPU Capable"
- Installez Terraform :
https://www.terraform.io/downloads - Installer Packer : https://learn.hashicorp.com/tutorials/packer/get-started-install-cli
- Ouvrez la console Web pour l'environnement infonuagique du DRAC (https://arbutus.cloud.computecanada.ca).
- Téléchargez votre
openrc.shdepuis la console Web de votre fournisseur OpenStack vers la racine du projet. - Installez éventuellement l'interface de ligne de commande OpenStack (CLI) : https://docs.openstack.org/newton/user-guide/common/cli-install-openstack-command-line-clients.html
- Regardez le fichier
README.mdsitué dans le dossierterraformpour voir comment configurer cet aspect.
- Regardez le fichier
README.mdsitué dans le dossierpackerpour voir comment configurer cet aspect.
Une fois que vous avez exécuté Packer pour créer votre machine virtuelle, puis déployé via Terraform, vous pouvez vous y connecter en utilisant ssh -i ~/.ssh/username@arbutus.computecanada.ca ubuntu@111.12.95.121
- Le
-ispécifie la clé ssh dans votre dossier.ssh - le
ubuntuest un remplaçant pour le nom d'utilisateur ssh de la VM (selon la version du système d'exploitation)
- Voir le
https://docs.alliancecan.ca/wiki/Cloudpour plus d'informations sur la façon d'interagir avec ce nuage. - Voir le https://texteditor.com/multiline-text-art/ pour les techniques de police ascii sympas