{"id":16840577,"url":"https://github.com/mitmul/chainermn-on-azure","last_synced_at":"2025-08-09T01:32:10.986Z","repository":{"id":141385081,"uuid":"97809786","full_name":"mitmul/chainermn-on-azure","owner":"mitmul","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-03T20:50:17.000Z","size":28384,"stargazers_count":2,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"aug2018","last_synced_at":"2025-03-24T11:08:00.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitmul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-20T08:20:17.000Z","updated_at":"2021-12-27T15:53:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"789037f5-c086-4378-aedb-d5398a803890","html_url":"https://github.com/mitmul/chainermn-on-azure","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Fchainermn-on-azure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Fchainermn-on-azure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Fchainermn-on-azure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitmul%2Fchainermn-on-azure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitmul","download_url":"https://codeload.github.com/mitmul/chainermn-on-azure/tar.gz/refs/heads/aug2018","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217179,"owners_count":21066633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T12:37:17.501Z","updated_at":"2025-04-10T12:21:10.022Z","avatar_url":"https://github.com/mitmul.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChainerMN on Azure\n\n## Deploy from ARM Template\n\nPlease note that it will take a long time.\n\n### 1. Install Azure CLI and azure package\n\n```\n$ pip install azure-cli\n$ pip install azure\n```\n\n### 2. Login to Azure using Azure CLI\n\n```\n$ az login\n```\n\n### 3. Select a subscription\n\n```\n$ az account list --all\n```\n\nPick up a subscription ID you want to use from the above list.\n\n```\n$ az account set --subscription [YOUR SUBSCRIPTION ID]\n```\n\n### 4. Deploy\n\n```\n$ ./deploy.py \\\n--resource-group chainermn\n--location westus2 \\\n--public-key-file ~/.ssh/id_rsa.pub\n```\n\n## Create images (Faster)\n\n### 1. Create jumpbox\n\n```\npython deploy.py \\\n-k ~/.ssh/id_rsa.pub \\\n-g chainermn-images \\\n-s chainermnscripts \\\n--jumpbox-only\n```\n\n### 2. Create VMSS image\n\n```\naz vm create \\\n-n vmss-image \\\n-g chainermn-images \\\n--image Canonical:UbuntuServer:16.04-LTS:latest \\\n-l eastus \\\n--size Standard_NC24r \\\n--admin-username ubuntu \\\n--authentication-type ssh \\\n--ssh-key-value $HOME/.ssh/id_rsa.pub\n```\n\nLogin to the VM and run the `scripts/setup_vmss_cuda92.sh`.\nThen reboot it once, then run:\n\n```\nsudo waagent -deprovision+user -force\n```\n\nLogout and run these commands on your local machine:\n\n```\naz vm deallocate --resource-group chainermn-images --name vmss-image \u0026\u0026 \\\naz vm generalize --resource-group chainermn-images --name vmss-image \u0026\u0026 \\\naz image create --resource-group chainermn-images --name vmss-image-cuda92 --source vmss-image \u0026\u0026 \\\npython utils.py -g chainermn-images delete-vm vmss-image\n```\n\n### 3. Create jumpbox image\n\nLogin to the jumpbox server and run:\n\n```\nsudo waagent -deprovision+user -force\n```\n\nThen logout, then run these commands from your local machine:\n\n```\naz vm deallocate --resource-group chainermn-images --name jumpbox \u0026\u0026 \\\naz vm generalize --resource-group chainermn-images --name jumpbox \u0026\u0026 \\\naz image create --resource-group chainermn-images --name jumpbox-image --source jumpbox \u0026\u0026 \\\npython utils.py -g chainermn-images delete-vm jumpbox\n```\n\n## Deploy using images\n\nFirst, please create a resource group.\n\n```\naz group create -g chainermn-v100 -l eastus\n```\n\n### 1. Deploy jumpbox\n\n```\nimage_id=$(az image show -g chainermn-images -n jumpbox-image --query \"id\" -o tsv) \u0026\u0026 \\\naz vm create \\\n--image ${image_id} \\\n--name jumpbox \\\n--resource-group chainermn-v100 \\\n--size Standard_DS3_v2 \\\n--admin-username ubuntu \\\n--ssh-key-value $HOME/.ssh/id_rsa.pub \\\n--vnet-name chainer-vnet\n```\n\n### 2. Deploy VMSS\n\n```\nimage_id=$(az image show -g chainermn-images -n vmss-image-cuda92 --query \"id\" -o tsv) \u0026\u0026 \\\naz vmss create \\\n--image ${image_id} \\\n--vm-sku Standard_NC24rs_v3 \\\n--instance-count 64 \\\n--lb '' \\\n--name vmss \\\n--resource-group chainermn-v100 \\\n--admin-username ubuntu \\\n--public-ip-address '' \\\n--ssh-key-value $HOME/.ssh/id_rsa.pub \\\n--vnet-name chainer-vnet \\\n--subnet jumpboxSubnet \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitmul%2Fchainermn-on-azure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitmul%2Fchainermn-on-azure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitmul%2Fchainermn-on-azure/lists"}