CREATING LINUX VM IN AZURE

CREATING LINUX VM IN AZURE

Linux on Azure

Microsoft Endorsed some versions of Linux?in the Azure Marketplace in which,

  • The?Linux Integration Services (LIS) drivers for Hyper-V?and?Azure?are kernel modules that are contributed directly from MS to the upstream Linux kernel.
  • The?Azure Linux Agent?is already pre-installed and the source code can be found on GitHub.

For Non-Endorsed Versions of Linux

  • You can bring your own Linux image by Creating and uploading a virtual hard disk that contains the Linux OS.

Endorsed distributions

Azure SLAs applies only to the Endorsed versions

  • CentOS 6.3+
  • CoreOS 494.4.0+
  • Debian 7.9+, 8.2+
  • Oracle Linux 6.4+, 7.0+
  • RHEL 6.7+, 7.1+
  • SLES 11, SLES 12+, SLES for SAP11.3+
  • Open SUSE 13.2+
  • Ubuntu 12.04, 14.04, 16.04

Planning of Linux VM

No alt text provided for this image
Planning and Sizing of VM is same as Windows VMs.CZCZXC

CREATING A VIRTUAL MACHINE

No alt text provided for this image
No alt text provided for this image

GOING TO THE MARKET PLACE AND FINDING THE VM



No alt text provided for this image


giving a name ,region, image

No alt text provided for this image
No alt text provided for this image


Creating a recourse group

No alt text provided for this image

Selecting the Images

No alt text provided for this image

selecting the instances to make to SPOT or not


Authentication


No alt text provided for this image

ssh keys


No alt text provided for this image
No alt text provided for this image


No alt text provided for this image
No alt text provided for this image



No alt text provided for this image

Creating a Network interface



No alt text provided for this image

Creating an identity and auto shut down feature



No alt text provided for this image

Network intrface


No alt text provided for this image
No alt text provided for this image

Management interface

No alt text provided for this image

Advanced


No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image



Accessing of Linux VMs

Once the Linux VMs are created, it is required to access the VM.

Here are the few ways to access the VMs,

  • Azure Cloud Shell (CLI)
  • Bash Shell from Windows 10
  • Putty software

Next few cards explains how to manage Linux VM from Windows 10 Environment


Managing of Linux using Windows

A common problem encountered is how to easily manage Linux virtual machines from Windows environments.

Windows 10 now makes it possible to run Linux Bash natively.

Bash on Windows allows you to:

  • Run common command-line utilities?such as grep, sed, and awk.
  • Use the Linux-compatible filesystem & heirarchy and?access fixed Windows storage?mounted under "/mnt/..."
  • Install additional Linux tools?using apt
  • Invoke Windows applications?from within Bash
  • Invoke Linux applications?from within Windows
  • Run Bash shell scripts and Linux command-line apps, including:
  • Tools: vim, emacs, tmux
  • Languages: Javascript/node.js, Ruby, Python, C/C++, C# & F#, Rust, Go
  • Services: sshd, MySQL, Apache, lighttpd

Installing Bash on Windows10

Installing Bash on Windows 10:

  • Turn on Developer mode via Settings > Update and Security > For Developers.
  • Enable Bash in Windows by adding the Windows feature "Windows Subsystem for Linux (beta)".
  • Restart the Windows 10 workstation.

It can be enabled using PowerShell as:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux        

Accessing Bash on Windows 10:

  • Launch the command line and run the command Bash, to enter the Linux subsystem. (or)
  • From the Start Menu select Bash on Ubuntu on Windows.

要查看或添加评论,请登录

社区洞察

其他会员也浏览了