linux on azure
TRANSCRIPT
![Page 1: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/1.jpg)
Train for trainers – open source in the cloud / Warsaw, 2013 /
Thomas ContéWindows Azure evangelist
@tomconte
Linux on Windows Azure #ms_oss
![Page 2: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/2.jpg)
Linux service offering
![Page 3: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/3.jpg)
Distributions
We supportSUSE SLES 11 SP2, SP3Open SUSE 12.3CentOS 6.3 by OpenLogic* Ubuntu 12.04, 12.10, 13.04, 13.10Oracle Linux 6.4.0.0.0
Specific versions are endorsedIntegration ComponentsTesting and validation by partnersBring other variants at your own risk**
*Image provided by OpenLogic based on CentOS 6.3**Integration Work will be needed
![Page 4: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/4.jpg)
Additional Partners
Our partners allow you to easily create images:Customize and mange Images or your own with :• Opscode: Chef• Canonical: Juju• ScaleXtreme• RightScale• Bitnami
![Page 5: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/5.jpg)
Linux Offering Summary
Linux as a first class citizen in AzureWe will focus mainly on Enterprises and ISVs but will also reach out to the community
Open Sourcing critical componentsDocumenting API
We will offer both Community and Commercial Distributions You will be able to buy support for the commercial distributions (GA only)
![Page 6: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/6.jpg)
IaaS and Linux
![Page 7: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/7.jpg)
What Does Persistent Mean?
Persistent OS Disk…and highly durable
Virtual Machine
Windows Azure StorageWindows Azure Storage (Disaster
Recovery)
![Page 8: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/8.jpg)
What Does Persistent Mean?
Persistent OS Disk…and highly durable
Virtual Machine
Windows Azure StorageWindows Azure Storage (Geo-Replication)
Virtual Machine
![Page 9: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/9.jpg)
The Technology to Provision a Platform Image
Portal (API)HyperVisor
VM
OS
Data
Cache
ISO
Platform Storage Repository
Customer’s Storage Account
Stock Images
Provisioning Repository
Unattend
Add Server Hostname Password …
Storage API
OS Disk
Data Disk
![Page 10: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/10.jpg)
Linux Built on Persistent VM Role
Windows Azure Virtual Machines
Linux Windows
WA Linux Agent Windows Setup
IC Drivers
CertsSSHKeys
![Page 11: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/11.jpg)
The Technology to Provision a Linux Platform Image
Portal (API)HyperVisor
VM
OS
Data
Cache
ISO
Partner Repository
Customer’s Storage Account
Stock Images
Provisioning Repository
Unattend
Add Server Hostname Password …
Storage API
OS Disk
Data Disk
Linux Agent
ICs
![Page 12: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/12.jpg)
Windows Azure Linux Agent
HV1 HV2
VM
Service Management APIWindows Azure provided DNS
Host1Host
2
![Page 13: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/13.jpg)
Provisioning• Gallery Experience• Third Party Tool Provisioning• Bring Your Own Linux• Provision from Partner Repository
![Page 14: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/14.jpg)
Provisioning
Demos
![Page 15: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/15.jpg)
Gallery Experience
Lowest barrier of entry Partner created images Click through provisioning
Leverage portal to:Provide Images (VHDs that include ICs and agent)Associate SSH KeysCollect configuration information Drive provisioning
![Page 16: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/16.jpg)
Third Party Tool Provisioning
Easily Customize a partner imageEase the creation of custom images, configuration and resources Select packages to include in ImageTool will include the appropriate ICs and AgentTool will drive provisioning for Customer if desiredCurrently Only SUSESuse Studio: Open SUSE or SLES
![Page 17: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/17.jpg)
VM VM2
Service Management API
Azure Storage
Tool Based Provisioning
Customer Personal Image Repository
Customer Storage Account
VHD
VHD
PORTAL
VHD
![Page 18: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/18.jpg)
Bring Your Own LinuxExpert Customers that want to tweak ,Customize, create images based on supported* distributionsCustomer will
Use Hyper-V to install DistributionAdd ICs and AgentGenerate the VHDCapture configurationGenerate resourcesUpload and start instance using:
Linux Native: Tools, libraries, scripts
![Page 19: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/19.jpg)
Linux Integration Services:Run Linux on Hyper-V• Goals
• Linux guests can use same Hyper-V functionality as Windows guests• Competitive with functionality and performance of other hypervisors
• Recent development work in Linux kernel for Hyper-V• VMBus protocol updates to match WS 2012 Hyper-V• Dynamic memory• 2D synthetic video driver• File system consistent VM backups• Online VHDX resize• Synthetic fibre channel driver
• Development work is somewhat asynchronous with major Microsoft product releases
![Page 20: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/20.jpg)
LIS Distribution & Support
Microsoftdevelopers
Customer servers w/Hyper-
V
MSdownloadcenter
LIS for Hyper-V
Customer installs LISSupport
issues flow in reverse direction
Linux kernel main
Linux community
LIS for Hyper-V
Distro vendors
Linux distro w/LIS . . . .
![Page 21: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/21.jpg)
Linux Integration Services• Key Linux vendors now including LIS in standard distros
• Support strategy• Vanilla Linux questions: Contact the Linux vendor• Issues running Linux on Hyper-V: Contact the Linux vendor or
Microsoft
Distro Version LIS Availability
Red Hat Enterprise Linux5.7, 5.8, 6.0-6.3 Download LIS from Microsoft
5.9, 5.10, 6.4 LIS built-in and certified by Red Hat
SUSE Linux Enterprise Server
11 SP2, SP3 LIS built-in
CentOS5.7, 5.8, 6.0-6.3 Download LIS from Microsoft
5.9, 5.10, 6.4 LIS built-in
Ubuntu Server 12.04, 12.10, 13.04, 13.10
LIS built-in
Debian 7.0 LIS built-in
Oracle Linux 6.4 LIS built-in
![Page 22: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/22.jpg)
VM
Service Management API
XStore
Customer Personal Image Repository
Customer Storage Account
VHD
VHD
Bring Your Own Linux
PORTAL
VHD
![Page 23: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/23.jpg)
Provision From Partner RepositoryPartner Makes Image AvailablePartner Creates and tests an imagePartner makes image available in certain regionsPartner publishes image locationCustomer Consumes Partner ImageCustomer uses Linux Command line toolsCustomer creates a image in its local repository from Partner ImageCustomer creates VMs using the new private Image
![Page 24: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/24.jpg)
Top Scenarios for Linux Partners• Creating a Partner Supported Image• Creating a Third Party Provisioning Tool• Creating and Managing Linux Images for Customers
![Page 25: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/25.jpg)
Creating a Partner Supported ImageCreate ImageSame Bring your own Linux operations
Register as a partner Platform Image: Small, select number of partnersIndependent distribution: Publish image in your own repository
Publish ImageRegister the image with the platform ( ie. Distributions) Distribute that image from your repository
Support that image*
![Page 26: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/26.jpg)
Creating a Partner Supported Image
Partner Personal Storage Account
Azure Platform
Customer VM
Customer Personal Storage Account
Partner Registration
VHD
VHD
![Page 27: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/27.jpg)
Creating a Third Party Provisioning ToolUse a Supported DistributionProvide or leverage a distribution that is supportedInclude value add components (LIS, Agent , Stack)Optionally allow image customization Create an experience to allow customers to create VHDsInterface with the service management APICorrectly retrieve and store user credentialsUpload image, configuration and resourcesCreate and start instances
![Page 28: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/28.jpg)
Creating and Managing Linux Images for CustomersSame Bring your own Linux OperationsUpload and publish image to Customer’s Personal RepositoryOr
Instantiate and customize a Platform Image Manage Images and Instances
![Page 29: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/29.jpg)
Customer Personal Storage Account
Creating and Managing Linux Images for Customers
Azure Platform
Customer VM
VHD
VHD
Platform Image Repository VHD
![Page 30: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/30.jpg)
Diagnosing and Troubleshooting• How to work with Linux VMs• Performance Considerations• Common Issues• Migrating an On Premise Image to the Cloud• Debugging a Malfunctioning VM in the Cloud • Debugging Linux from within Azure
![Page 31: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/31.jpg)
Performance Considerations• Two Types of Persistent Disks:
• OS Disks• Data Disks
• Local Resources• Local HD partition ( Ephemeral )
• Right tool for the Job• Right VM Size= Right Amount of
Resources• Data Intensive Applications = Data
Disk• Fast Ephemeral Data = Local Disk
![Page 32: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/32.jpg)
Common Issues• Deployment fails
• SSH key type• Resources Available• Known Issues*
• BYOL• Incorrect LIS drivers : Hyper-V boot problems• Agent not present: Provisioning never ends• Incorrect Agent dependencies
• Cannot login to VM: • End point issues , firewall issues
![Page 33: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/33.jpg)
Migrating a Local Machine To the Cloud• Creating a Linux VM:
• LIS Drivers• Agent Code
• How to test locally• Hyper-V vs RDOS
• What you cannot test locally• Network• Storage• Provisioning
![Page 34: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/34.jpg)
Debugging a Linux VM in the Cloud• Backup
• Copy Blob ( snapshot like)• Failed VM
• Delete VM and keep VHD• Mount VHD File • Inspect logs and correct issues• Loopback composition
• Request help• Forum Post ( preview)• Phone call (GA)• Escalation process
![Page 35: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/35.jpg)
Debugging Linux from within AzureWhat can Azure support see and do• Platform Error logging:
• Hyper-V Errors: MDS logs just for errors• All VM related events logs
• Debugging Unreachable Linux VMs• Access VM• Collect
• Agent Logs• OS dumps
![Page 36: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/36.jpg)
Homework• azure vm create --ssh --location "West Europe" mytestvm
b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-13_10-amd64-server-20131113-en-us-30GB tom 'Pass123!'
• (log in to vm)
• apt-get install nodejs• apt-get install npm• npm install something• waagent -deprovision
• azure vm shutdown mytestvm• azure vm capture --delete mytestvm mytestimage
36
![Page 37: Linux on azure](https://reader035.vdocuments.site/reader035/viewer/2022081512/555265dbb4c905d41d8b5018/html5/thumbnails/37.jpg)
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.