Loading...

Getting started with the NCsv3 series and NCas_T4_v3 series

Getting started with the NCsv3 series and NCas_T4_v3 series

By Hugo Affaticati, Program Manager

 

Useful resources

Information on the Microsoft NCsv3-series  

Information on the Microsoft NCas_T4_v3-series

 

Pre-requisites

Deploy a virtual machine on Microsoft Azure Portal.

 

Key values:

  • Size: NC6s v3 (also available NC12s v3 and NC24s v3) or NC16as_T4_v3 (also available NC4as_T4_v3, NC8as_T4_v3, and NC64as_T4_v3)
  • Image: Ubuntu HPC 18.04 (recommended, also available Ubuntu HPC 20.04)
  • Availability: no redundancy required for benchmarking
  • Disk: 2048 GB data disk

 

Step 1: NVIDIA driver and CUDA

Verify the NVIDIA driver version

cd /mnt
nvidia-smi

 

If the driver version is less than 510, update both the driver and the CUDA versions

sudo wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin 

sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600

sudo wget https://developer.download.nvidia.com/compute/cuda/11.6.1/local_installers/cuda-repo-ubuntu1804-11-6-local_11.6.1-510.47.03-1_amd64.deb

sudo dpkg -i cuda-repo-ubuntu1804-11-6-local_11.6.1-510.47.03-1_amd64.deb

sudo apt-key add /var/cuda-repo-ubuntu1804-11-6-local/7fa2af80.pub

sudo apt-get update

sudo apt-get -y install cuda

 

Restart the machine

sudo reboot

 

Step 2: Docker

The next step is to update Docker to the latest version.

cd /mnt

sudo apt update

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu  $(lsb_release -cs)  stable"

sudo apt update

sudo apt-get install docker-ce

 

Update the Docker root directory in the docker daemon configuration file

sudo vi /etc/docker/daemon.json

 

Add the line after the first curly bracket

"data-root": "/mnt/data",

 

Verify the previous steps and enable docker

docker --version

sudo systemctl restart docker

sudo systemctl enable docker

 

Register your user for Docker

sudo groupadd docker

sudo usermod -aG docker $USER

newgrp docker

 

You should not have any permission issues when running

docker info

 

Step 3: Mount the data disk

Find the managed disk you deployed with the deployment of the virtual machine

lsblk -o NAME,HCTL,SIZE,MOUNTPOINT | grep -i "sd"

 

Get the name (sda, sdb, or sdc…) corresponding to the 2TB disk from the previous line.

Replace “sdc” in the following lines 2 and 3 by the accurate name.

sudo mkdir /mnt/resource_mdisk

sudo mkfs.ext4 /dev/sdc && sudo fsck /dev/sdc

sudo mount /dev/sdc /mnt/resource_mdisk

sudo chown -R azureuser:users resource_mdisk/

 

 

Published on:

Learn more
Azure Compute Blog articles
Azure Compute Blog articles

Azure Compute Blog articles

Share post:

Related posts

Upcoming Changes to Instance Size Flexibility Ratios for Reserved VM Instances for M-series: What Yo

Overview In the ever-evolving landscape of cloud computing, it is crucial to stay informed about changes that may affect your usage and busine...

1 year ago

Exploring SUSE Enterprise Linux on Azure

Exploring SUSE Enterprise Linux on Azure In today's cloud-centric world, leveraging robust and reliable operating systems is crucial for busin...

1 year ago

Announcing Public Preview of new attach/detach disks API for VMs/VMSS

We are excited to announce the public preview of a new API that will make attaching and detaching disks to a VM faster and easier. The new API...

1 year ago

Fine-tuning a Hugging Face Diffusion Model on CycleCloud Workspace for Slurm

Introduction Azure CycleCloud Workspace for Slurm (CCWS) is a new Infrastructure as a Service (IaaS) solution which allows the users to purpos...

1 year ago

Public Preview Announcement-On Demand Capacity Reservation in Azure in China

Today, we're announcing the public preview of on demand capacity reservations for Azure Virtual Machines in Azure in China Cloud . Y...

1 year ago

Breaking change for Window Server 2022 Image Users with .NET 6

Azure Marketplace media images for Windows Server 2022 currently include .NET 6, but going forward will not include a .NET version with the im...

1 year ago

Announcing the public preview of the new Azure FXv2-series Virtual Machines

Today, Microsoft is announcing the public preview of the new Azure FXv2-series Virtual Machines (VMs), based on the 5th Generation Intel® Xeon...

1 year ago

Effortlessly Migrate Azure VMs between zones

For various reasons you might come across a situation when you need to migrate your Azure VMs from one zone to another. Migrating Azure VMs be...

1 year ago

Announcing Public Preview of Instance Mix on Virtual Machine Scale Sets

Today, we’re excited to announce that the ability to specify multiple different VM sizes in your Virtual Machine Scale Sets (VMSS) with Flexib...

1 year ago

Announcing General Availability of Attach & Detach of Virtual Machines on Virtual Machine Scale Sets

Today, we’re thrilled to announce that the ability to attach or detach Virtual Machines (VMs) to and from a Virtual Machine Scale Set (VMSS) w...

2 years ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.