[-]
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 [+]
  
  
  
  
  
  
 [+]
  
  
  
[+]
[+]
[+]
[+]
[+]
[+]
[+]
[+]
[+]
Updated on 3/17/2019
Direct link to topic in this publication:
Administration Guides
How to convert VMware Eyeglass appliance and Migrate to Microsoft Azure
Home

How to convert VMware Eyeglass appliance and Migrate to Microsoft Azure  

Limitations of 3rd party products within this solution Example

  • References to powershell and Microsoft tools is provided as reference only and not included in product support.

  • Issues with exact powershell examples or Azure procedures require a support case with Microsoft
  • Reference links are provided "as is" with no support
  • NOTE: this document is not covered by support contract and is provided "as is" with 3rd party product expertise required 

Overview

This solutions guide assists with examples of how to move a VMware Eyeglass appliance into Azure to use Azure as a 3rd site.   This solution example provides examples that must be changed to apply to your environment.   It is expected that Azure expertise and powershell expertise is known to complete these steps.  

Pre Setup Steps and Tools for upload to Azure


    1. Install certificate remote management software

      1. Download here https://azure.microsoft.com/en-gb/resources/samples/resource-manager-powershell-certificate-authentication/

      2. Install certificate authentication package for vm convert tool

    2. Open powershell as  administrator on pc OS that has powershell installed

    3. Run these  commands

      1. Import-Module AzureRM.Resources

      2. Set-ExecutionPolicy RemoteSigned

    4. Create Azure management certificate to allow remote tools to connect to Azure

      1. Copy and paste below to powershell prompt (NOTE: the cert file will be created in your temp folder in your profile C:\Users\username\AppData\Local\Temp>)

      2. Import-Module PKI ## This will import public key infrastructure modules into Powershell

        New-SelfSignedCertificate -DnsName "MVMC" -CertStoreLocation "Cert:\CurrentUser\My" ## Creates private cert in the current user’s Personal certificate store

        Export-Certificate -Cert (Get-ChildItem Cert:\CurrentUser\My\ -DnsName MVMC) -FilePath $env:TEMP\MVMC.cer ## Exports public cert created above using New-SelfSignedCertificate

        Import-Certificate -FilePath $env:TEMP\MVMC.cer -CertStoreLocation Cert:\CurrentUser\Root ##  Imports the cert into the current user’s Trusted Root Certification Authorities store

      3. Reference this link to if you need additional information http://adriank.org/generating-azure-management-certificate-microsoft-virtual-machine-converter-3-1/

      4. Upload the certificate file .cer to  Azure

        1. Record the Azure subscription id
        2. Notice the hash value needed and record this value
        3. Download vmware to azure conversion tool and install it https://www.microsoft.com/download/details.aspx?id=42497
        4. You will need azure subscription id and management key hash to authenticate to Azure to use this tool

Steps to Convert Eyeglass vmware appliance to VHD and automatically upload to Azure




    1. You will need the following to complete these steps
      1. Azure subscription id
      2. Management certificate hash
      3. Ip address for vcenter where eyeglass vm is runnin
      4. IMPORTANT: Configure eyeglass vm for DHCP before converting
    2. Connect to the VM Console from vmware vcenter management interface
      1. Login as admin user
      2. Type sudo -s
      3. Enter admin password
      4. Type yast
      5. Go to networking section edit ethernet settings and switch to DHCP
        1. Edit the Ethernet adaptor (use tab key)
        2. Set to DHCP
        3. Save each screen and exit yast
      6. Shutdown the eyeglass vm
        1. Type shutdown
        2. Verify its shutdown in vcenter

    1. Open Microsoft Virtual Machine Convertor
    2. NOTE: Some vmdk's may require updates depending on the vmware version used (references are information only , support with Microsoft is required Reference)
    3. Additional tools for editing VMDK if required.  Reference.

    4. When selecting a location to convert ensure you have the disk space for the entire disk size of 80Gb.

    5. Wait for the last step copy Disks to complete. This step copies the vhd to a storage blob in Azure. NOTE: This will take a long time to copy to Azure no progress is shown and can take an hour or more.
    6. Done.

    How to convert VHD to Managed Disk for Use in Azure


    1. After the previous step completes find the vhd in the storage blob (note the vhd will be in a storage bucket named after the vm in vmware)
    2. Copy the url of the vhd object from the overview screen to use with the command below.
    3. Now execute the powershell commands to convert the vhd to managed disk in Azure.  Copy and paste each line to Powershell.
      1. Replace yellow highlights with options that make sense for your Azure environment (You will require Azure login account to complete this step) Reference link
      2. Connect-AzureRmAccount
      3. Install-Module AzureRM -RequiredVersion 6.0.0
      4. New-AzureRmResourceGroup -Location “East US”  -Name RG01 
      5. New-AzureRmDisk -DiskName eyeglass2 -Disk (New-AzureRmDiskConfig -AccountType Standard_LRS  -Location 'East US' -CreateOption Import  -SourceUri https://xxx.blob.core.windows.net/eyeglass-azure-2/disk-0.vhd) -ResourceGroupName 'RG01'
    4. Now create the vm from Azure console  (reference commands  link)
    5. Login to the Azure portal (https://portal.azure.com/)
      1. Open the Cloud Shell from the menu top right shows Azure CLI.
      2. Paste this command into the shell (command reference) NOTE: VM Size must be supported configuration shown in blue highlight)
      3. NOTE: Ensure you use the same resource group, location and disk name from the previous steps, yellow highlighted.  The green highlight is the name of the VM once created you can change this name to anything you like.
      4. az vm create --resource-group RG01 --location eastus --name eyeglass-vm2 --os-type linux --attach-os-disk eyeglass2 --size standard_D4s_v
      5. Command completes with output showing the id of the vm that was created.  This step can take 1-2 minutes to complete.
      6. Done create VM from managed disk steps.

    How to Connect to Eyeglass and configure firewall ports on Eyeglass VM

    1. NOTE: The previous step also starts the VM,  Verify it is in a running status in the Azure Portal.  DHCP option will pickup the private ip address from Azure and map a public IP address to this VM after running the command above.
    2. SSh is enabled by default test access to the vm by getting the public IP that was assigned on VM creation
    3. Click the connect button and get the ssh ip address from the popup window
    4. Ssh admin@x.x.x.x where x.x.x.x is the public ip address
    5. If successful ssh connection, login as the admin user the Eyeglass.  This confirms the vm booted successfully and DHCP was assigned a private IP in Azure.
    6. Now configure inbound GUI access over https port 443 TCP
      1. Open the Network Security Group associated to the Eyeglass vm
      2. Add the inbound firewall rule as shown below (or customize for your security requirements) NOTE: Firewall example below is for testing only. You must factor in your security requirements and this example rule should be deleted after testing.
      3. Test access to the web GUI
      4. https://x.x.x.x  the webUI should load successfully, where x.x.x.x is the public ip address
      5. Now follow the firewall port configuration required to allow Eyeglass to manage Isilon and allow Eyeglass administrators to access the WebUI.
        1. This setup requires all ports and ip addresses required for Eyeglass are allowed.  All ports and directions are outlined below.
        2. The scope to complete this in Azure is outside the scope of this guide and not covered by product support.  Consult with an Asure system administrator.
      6. See the firewall ports guide here.
      7. Done.

    Optional - How to copy an existing VHD directly to a resource group storage blob

    Add-AzureRmVhd -ResourceGroupName ResourceGroup -Destination https://xxx.blob.core.windows.net/vms `
    -LocalFilePath "C:\Users\Public\Documents\Virtual hard disks\myVHD.vhd"

    Copyright Superna LLC