COMPUTING > Cloud Servers > 8 - Import and Export a Cloud Server > Importing a physical machine on a Hyper-V Cloud Server

8.5 Importing a physical machine on a Hyper-V Cloud Server Cloud Server Pro service guide

The Aruba Cloud Server service allows a Hyper-V Cloud Server to be created using a disk image of a physical computer. There are two possibilities, depending on whether the Operating System is Windows or Linux.

Windows

To do this on a Windows machine you have to perform the following steps:
  1. Create a disk image of the physical machine
    To obtain a virtual copy of a physical disk you can use one of these tools that Microsoft provides:
    - the utility Disk2VHD (https://docs.microsoft.com/en-gb/sysinternals/downloads/disk2vhd)
    - the tool present in SCVMM (https://msdn.microsoft.com/en-gb/library/dd380687.aspx)
    In Windows machines (Windows 7 - Windows 2008 Server), by going to Computer Management and right clicking with the mouse on "Disk Management" you can opt for "Create VHD" and "Connect VHD".  With these two options it immediately becomes possible to create VHD for your physical machine.

    The image you want to upload to the Hyper-V Cloud Server must have the following characteristics:
    - file format .vhd
    - must not exceed 500GB in size
    - only Dynamic or Fixed disk image types are accepted; Differencing disk image types are excluded

  2. Uploading the disk image to the FTP area connected to your own Cloud account
    Once you have logged into the Aruba Cloud Service you can upload the disk image you have just created in the physical machine to your FTP area:
    click on the tab "Manage",



    select from the menu on the left the heading "Import Disks" under "Template",



    This section lists the login details the FTP area and the list of any uploaded disk images.



    By downloading any FTP client (such as FileZilla, CoreFTP, Cyberduck, etc.) and using the data available to you, you will have access to the area where you can upload images of virtual disks to be imported.

  3. Creating a Hyper-V Cloud Server with a custom template
    When creating a Cloud Server, when choosing the Operating System click on the tab "Custom Template"



    Then click on the "Activate" button.



    This will allow you to not choose the Operating System at this stage.
    Then when you are prompted to indicate the size of the first hard disk click on "Connect disk"



    A window will open with a list of the disk images present in the FTP area and previously uploaded.



    From the list, select the image file that you want to upload to the virtual disk making sure it is the boot.
    At the end of the procedure a Cloud Server with its custom template/OS will be created.

    Remember that of course it will not be possible to access to the new Cloud Server via RDP or SSH because the server has not been configured with the new IP address assigned. In order to be able to configure the necessary IP you need to access via the Recovery Console.
Remember that on Aruba Cloud Computing Hyper-V Cloud Servers have the following virtual hardware features:
- first IDE hard disk
- subsequent SCSI type hard disks
For physical machines structured with the above features there will be particular hardware compatibility issues; issues that could arise if disk images are created from physical machines with a different hardware structure.

Linux

In the case of exporting a disk image from a Linux machine, there is not a generic tool that guarantees the export in a quick and simple way regardless of the Linux distribution; it is advisable to proceed as follows:
  • boot from external disk (CD/DVD)
  • export an image from the machine or from a command line (e.g.:dd command) or from tools (e.g.: Clonezilla, Partimage)
  • upload the image to the FTP area provided by Aruba
  • create a Cloud Server with a custom Template
  • upload the image to the main disk
  • access the Cloud Server using the Recovery Console to restore the filesystem and reconfigure the machine (operation almost certainly required)
 Given the complexity of the procedure (and technical expertise that it requires it), if you encounter problems, we recommend that you contact Aruba personnel for advice and suggestions www.arubacloud.com/support/technical-support.aspx