https://github.com/mitmul/marlo-handson
https://github.com/mitmul/marlo-handson
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mitmul/marlo-handson
- Owner: mitmul
- License: mit
- Created: 2018-11-15T04:47:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T16:19:50.000Z (over 7 years ago)
- Last Synced: 2025-03-24T11:08:03.885Z (about 1 year ago)
- Language: Python
- Size: 2.1 MB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MarLo Handson
## Requirement
For the content of this repository, you need
- Python 3.5+ environment with
- Chainer v5.0.0
- CuPy v5.0.0
- ChainerRL v0.4.0
- marlo v0.0.1.dev23
To follow the instruction below, you need
- Azure subscription
## Setup
### 1. Install the Azure CLI tool
```
$ pip install azure-cli
```
### 2. Login to Azure using the Azure CLI
```
$ az login
```
### 3. Select a subscription
List up all the subscriptions you have by
```
$ az account list --all
```
Then, specify one of them with
```
$ az account set --subscription [A SUBSCRIPTION ID]
```
Of cource you need to replace `[A SUBSCRIPTION ID]` with a specific ID you want to use.
### 4. Launch a GPU VM
First, you have to create a resource group:
```
$ az group create -g marLo-handson -l eastus
```
Next, let's cerate a data science VM:
```
$ az vm create \
--resource-group marLo-handson \
--name vm \
--admin-username ${USER} \
--public-ip-address-dns-name ${USER} \
--image microsoft-ads:linux-data-science-vm-ubuntu:linuxdsvmubuntu:latest \
--size Standard_NC6 \
--generate-ssh-keys
```
Then, you will see the message like following:
```
{
"fqdns": "[YOUR USERNAME].eastus.cloudapp.azure.com",
"id": "/subscriptions/[YOUR SUBSCRIPTION ID]/resourceGroups/marLo-handson/providers/Microsoft.Compute/virtualMachines/vm",
"location": "eastus",
"macAddress": "AA-BB-CC-DD-EE-FF",
"powerState": "VM running",
"privateIpAddress": "10.0.0.4",
"publicIpAddress": "123.456.78.910",
"resourceGroup": "marLo-handson",
"zones": ""
}
```
Please do not care some slight differences. All you need is the `publicIpAddress` of the created VM.
### 5. SSH to the VM
```
$ ssh [IP OF THE VM]
```
Please replace `[IP OF THE VM]` with your IP address you can find in the result of the previous step.
### 6. Setup the VM
On the VM,
```
$ git clone https://github.com/mitmul/marlo-handson && \
bash marlo-handson/setup.sh
```
### 7. Port forwarding via SSH
On your local machine,
```
$ ssh [IP OF THE VM] -L 6901:localhost:6901
```
### 8. Open the virtual desktop
Then please open this URL with your browser: http://localhost:6901/?password=vncpassword
You'll see the virtual desktop in the browser window and the Minecraft working in it.
