Home
HP 1.x White Paper
Contents
1. lt unattend gt 3 Run Sysprep a Mount the distribution media as the first DVD of the VM b Open a command or powershell CLI window c Change directory to the Cloudbase configuration directory C Program Files x86 Cloudbase Solutions Cloudbase Init conf d Run Sysprep c windows system32 Sysprep sysprep exe oobe generaliz unattend MergedUnattend xml When Sysprep completes it will shut down the VM e In VMware detach the distribution media from the VM DVD drive 12 Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem Step 7 Set required VMware image properties with VMware tools CloudSystem supports two VMDK formats flat and sparse Flat files are generally larger and slower to upload They consume more storage than a sparse VMDK To prepare a flat image you must use vmkfstools with d eagerzeroedthick Unlike a sparse image you do not have to set a specific flat property for use with CloudSystem IMPORTANT In flat files you must use the eagerzeroed thick option with vmkfstools Sparse images are smaller which improves upload times and storage consumption To prepare a sparse image you must use vmware vdiskmanager To work properly a sparse file must have a property set in Glance to indicate that it is sparse before it is loaded into CloudSystem This property is covered in step 8 IMPORTANT In sparse files you must use the t 0 option with vmwre vd
2. component gt lt settings gt lt settings pass oobesystem gt component name Microsoft Windows Shell Setup processorArchitecture amd64 publicKeyToken 31bf3856ad364e35 language neutral versionScope nonSxs xmins wcom http schemas microsoft com WMIConfig 2002 State gt lt OOBE gt lt HideEULAPage gt true lt HideEULAPage gt lt NetworkLocat iton gt Work lt NetworkLocation gt lt ProtectYourPC gt 1 lt ProtectYourPC gt lt SkipMachineOoBE gt st rue lt SkipMachineOOoBE gt lt SkipUserOoBE gt true lt SkipUserooBE gt lt OOBE gt lt component gt lt settings gt settings pass specialize gt lt component name Microsoft Windows Deployment processorArchitecture amd64 publicKeyToken 31bf3856ad364e35 language neutral versionScope nonSxS xmins wem http schemas microsoft com wMIConfig 2002 State xmins xsi http www w3 org 2001 XMLSchema instance gt lt Runsynchronous gt lt RunSynchronousCommand wcom action add s gt lt Order gt 1 lt Order gt lt Paths C Program Files x86 Cloudbase Solutions Cloudbase Init Python27 Scripts cloudbase init exe config file C Program Files x86 Cloudbase Solutions Cloudbase Init conf cloudbase init unattend conf lt Path gt lt Description gt Run Cloudbase Init to set the hostname lt Description gt lt WillReboot gt Always lt WillReboot gt lt RunSynchronousCommand gt RunsSynchronous gt component gt lt settings gt
3. guest OS support list ake use of hypervisor tools and optimizations CloudSystem provides a complete management environment for images and provisioned VM instances In addition the virtualization layers ESXi or KVM have a critical role in roubleshooting development and performance optimization e Whenever possible image size should be minimized Image size impacts actions such as moving using and storing images e You must account for any OS and software licensing for images instantiated as VMs When a site license is available it can be configured in the image Another approach is to connect images to license management frameworks during configuration or after the VM instance is created Cloud init tool for cloud images Many of the issues described in the previous list have been solved for Linux and Windows images by the open source project cloud init You can find information on cloud init at https cloudinit readthedocs org en latest Originally developed for Amazon Web Service AWS and Amazon Elastic Compute Cloud Amazon EC2 images cloud init is fully functional in an OpenStack environment Where do images come from Images used in CloudSystem provisioning come from three major sources 1 Images created in the hypervisor platform and then imported for use into CloudSystem 2 Images downloaded from a public source and then imported for use into CloudSystem 3 Snapshots of running VM instances
4. http schemas microsoft com wmMiIconfig 2002 State gt lt OOBE gt lt HideEULAPage gt true lt HideEULAPage gt lt NetworkLocation gt Work lt NetworkLocation gt lt Protect YourPCs1 lt ProtectYourPcs lt SkipMachineOoBE gt true lt SkipMachineooBE gt lt SkipUserooBEstrue lt SkipUserooBE gt lt OOBE gt lt component gt lt settings gt lt settings pass specialize gt lt component name Microsoft Windows Deployment processorArchitecture amd64 publickeyToken 31bf3856ad364e35 language neutral versionScope nonsSxsS xmins wem http schemas microsoft com wmMiIconfig 2002 state xmins xsi http www w3 org 2001 XMLSchema instance gt lt RunsSynchronous gt lt RunSynchronous gt lt component gt lt settings gt lt unattend gt b Copy the custom unattended file you created to C Program Files x86 Cloudbase Solutions Cloudbase Init conf The previous example that sets the Administrator password is shown below 10 Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem Sample with Administrator password lt xml version 1 0 encoding utf 8 gt lt umattend xmlns urn schemas microsoft com unattend gt lt settings pass oobeSystem gt lt component name Microsoft Windows Shell Setup processorArchitecture amd64 publickeyToken 31bf3856ad364e35 language neutral versionScope nonsxs xmlns wom http schemas microsoft com W
5. in CloudSystem that are saved as images and then used to provision new VM instances Option 1 Creating images from scratch This approach is covered in detail in later sections of this paper It gives you complete control over the contents behavior and features of the images used by your users Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem Option 2 Downloading images from a public source Pre created images for use in OpenStack based clouds are available from various sources The OpenStack documentation provides a list of some of these publically available images at http docs openstack org image guide content ch_obtaining_images html Many are Linux images supplied directly by the major Linux vendors An OpenStack compliant Windows image is provided by Cloud Base at http www cloudbase it The advantage of publically available images is that the images are ready to use have cloud init and have cloud ready properties When using images created by another source consider the following e Security Do you trust the security and integrity of the image and its provider e Licensing What are the licensing constraints if any associated with the image and the software inside it e Support Who is supporting the image if you have problems Option 3 Creating images from snapshots of launched VMs Once you have images loaded in CloudSystem and you have created VM instances you can tak
6. of the VM is determined by the user when the VM is instantiated During provisioning the actual value of the VM s boot disk is a function of the OpenStack Nova lavor selected for the VM instance and any min_disk value that was set as a property of the image in CloudSystem Setting the min_disk size is covered in step 7 At this time just select a value to use while developing the virtual machine For example the recommended minimum size reported by Windows 2012 for a standard image with GUI options is 18GB But it is fairly straightforward to create a hello world functional Windows 2012 standard edition image at around 9GB in size You can work with an image size of 9GB during staging set a minimum of 40GB for users and then they can use flavors to create VMs based on the image with even larger boot disks IMPORTANT If you usually work with hello world Linux images which are generally much smaller 200 500MB then the processing time and storage for these larger Windows images will be considerably larger Disk Provisioning gt lt Your choice gt The size and format options of the image and how it is stored as it is moved into and used in CloudSystem is configured later At this point choose thick or thin provisioning while you are developing the VM j Set advanced options Virtual Device Node gt SCSI IMPORTANT SCSI is the only supported value for a Windows VMDK in CloudSystem Step 2 Install Window
7. 8 1 Installation and Configuration Guide in the Enterprise Information Library 2 Toconfirm that the image is loaded in CloudSystem run glanc insecure image list 3 To confirm that the initial image properties are set run glanc insecure image show lt ImageName gt 4 Set the properties using the Glance CLI command with the image update optionand properties flag For a Windows 2012 image that is a sparse VMDK glanc insecure image update lt ImageName gt property vmware_ostype windows8Server 64Guest property vmware_adaptertype lsiLogicsas property vmware_disktype sparse For a Windows 2012 image that is a flat VMDK glanc insecure image update lt ImageName gt property vmware_ostype windows8Server64Guest property vmware_adaptertype lsiLogicsas 5 To confirm that the image properties are set run glanc insecure image show lt ImageName gt Test the images by launching them as instances Verify that the settings you selected are accurate Learn more about CloudSystem http www hp com go CloudSystem http www hp com go CloudSystem docs Copyright 2014 Hewlett Packard Development Company L P The information contained herein is subject to change without notice The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services Nothing herein should be construed as constituting an additional warranty HP shall no
8. HP CloudSystem Foundation and Enterprise Software Creating Microsoft Windows Virtual Machine Images for Use with ESXi Compute Clusters in HP CloudSystem This paper describes the process for creating Windows VMDK images to use with ESXi cluster compute nodes in a CloudSystem environment Images are the basis for virtual machine VM instances in HP CloudSystem You can create and import images from underlying hypervisor platforms into CloudSystem An overview of image concepts CloudSystem is based on HP Cloud OS and OpenStack technology HP CloudSystem Foundation is based on HP Cloud OS which is based on open source OpenStack cloud technology Images are uploaded into the CloudSystem image repository and then users can launch VM instances based on those images The OpenStack service that manages images is called Glance Images are disk files with pre installed bootable Windows or Linux operating systems Images may also have pre installed applications Supported image formats and guest operating systems in CloudSystem CloudSystem supports the guest operating systems that are supported by the underlying hypervisor platform Consult VMware and Red Hat documentation for a list of supported guest operating systems The following image formats are supported For ESXi images must be in VMDK format For KVM images must be in qcow2 format CloudSystem Foundation and CloudSystem Enterprise The CloudSystem solution is offered in t
9. I tool is used to set the two CloudSystem required properties for Windows VMDKs vmware_ostype lt OSType gt e Example windows8Server64Guest for Windows 2012 vmware_adaptertype lsiLogicsa o If your image is sparse VMDK format you are also required to set vmware_disktype sparse o Additional image options can be set at this time to establish a minimum disk size and memory for the image to restrict users from requesting an instance with insufficient resources These are optional min_disk lt minimum disk size in GB independent of user selected flavor gt min_ram lt minimum RAM MB independent of user selected flavor gt Step 1 Create the virtual machine source in vCenter Server In your VMware development environment create a virtual machine to use as the source of the image Most parameters are supported with a wide range of values but two parameters require specific values in order for the image to work The two required properties are e SCSI Controller gt LSI Logic SAS e Virtual Device Node gt SCSI Creating the virtual machine source in vCenter Server Create the virtual machine Customize the configuration a Name and Location gt lt Your choice gt b Storage gt lt Your choice gt c Virtual Machine Version gt Virtual Machine Version 8 This is the default d Guest Operating System gt Windows Version Example Microsoft Windows Server 2012 64 bit e CPUs Number of virtu
10. L radio button and enter the path to the URL in the field provided Enter a name for the image Enter a description of the image For the OS type select Microsoft Windows For the disk format select VMDK For the container format select bare For the shared field select Enabled For the Read only field select Disabled Click Add Step 9 Set required CloudSystem properties Windows VMDKs need the following properties set in CloudSystem vmware_ostype lt OSType gt required with CloudSystem Examples windows8Server64Guest for Windows 2012 windows7Server64Guest for Windows 2008 See VMware documentation for a complete list of Windows related OS type codes VMware 5 5 documentation http pubs vmware com vsphere 55 index isp topic 2Fcom vmware wssdk apiref doc 2Fvim vm GuestOsDescriptor GuestOsldentifier html vmware_adaptert ype lsiLogicsas required with CloudSystem vmware_disktype sparse required if you are using a sparse format VMDK min_disk lt Value in GB gt common properties for all images min_mem lt Value in MB gt common properties for all images 15 Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem Setting required CloudSystem properties 1 Install the CLI package you plan to use To set the required properties you will need to use the command line For instructions on installing the CLI packages for Windows and Linux see the HP CloudSystem
11. MIConfig 2002 State xmins xsi http www w3 org 2001 XMLSchema instance gt lt UserAccounts gt lt AdministratorPassword gt lt Value gt QWBOAGEADGBNADMADOQAZAEEAZABtAGKADGBDAHMAGABYAGEAGABV AHIAUABhHAHMACWB3AG8ACGBKAA lt Value gt lt PlainText gt false lt PlainText gt lt AdministratorPassword gt lt UserAccounts gt lt component gt lt settings gt lt cpi offlineImage cpi source wim c kits wsimt202012 20files install wim Windows Server 2012 SERVERSTANDARD xmlns cpi urn schemas microsoft com cpi gt lt unattend gt c Merge the two files and make any final modifications then create a unique name for the file such as mergedunattended xml In the following example the clause to set the Administrator password in the custom unattended xml has been merged into the Cloudbase_unattended xml 11 Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem Sample merged unattended file lt xml version 1 0 encoding utf 8 gt lt umattend xmlns urn schemas microsoft com unattend gt lt settings pass generalize gt component name Microsoft Windows PnpSysprep processorArchitecture amd64 publicKeyToken 31bf3856ad364e35 language neutral versionScope nonSxs xmins wem http schemas microsoft com WMIConfig 2002 State xmins xsi http www w3 org 2001 XMLSchema instance gt lt PersistAl1lDeviceInstalls gt true lt PersistAllDeviceInstalls gt lt
12. al sockets gt lt Your choice gt Number of cores per virtual socket gt lt Your choice gt In CloudSystem the actual value for CPUs to support the instance is a function of the OpenStack Nova flavor selected for the instance The values you set for the VM at this time have no effect Pick the values you want while you are developing the virtual machine image Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem f Memory size gt lt Your choice gt In CloudSystem the actual value of RAM is a function of the OpenStack Nova flavor selected for the VM instance and any min_ram value that was set as a property of the image in CloudSystem Setting the min_ram size is covered in step 7 At this point just enter a value that allows you to develop the virtual machine image g Network Set the network adapter to E1000 or E1000E E1000 and E1000E drivers are commonly available in Windows by default Other NIC types could work but you must make sure that you included the driver umber of NICs gt lt Your choice gt The number of NICs attached to an instance is determined by the user during provisioning h SCSI Controller gt LSI Logic SAS IMPORTANT LSI Logic SAS is the only supported value for a Windows VMDK in CloudSystem Create the disk Capacity gt lt Your choice gt Best practice is to set the size as small as possible for staging the image The actual boot disk
13. am Sample conf file DEFAULT username Admin groups Administrators inject_user_password true network_adapter Intel R 82574L Gigabit Network Connection config drive raw _hhd false config drive cdrom true verbose true debug true logdir C Program Files x86 Cloudbase Solutions Cloudbase Init log logfile cloudbase init unattend log logging_serial_port_settings metadata services cloudbaseinit metadata services configdrive ConfigDriveService cloudbaseinit metadata services httpservice HttpService cloudbaseinit metadata services ec2service EC2Service cloudbaseinit metadata services maasservice MaaSHttpService plugins cloudbaseinit plugins windows sethostname SetHostNamePlugin allow_reboot false stop service on exit false Step 6 Run Sysprep Sysprep prepares the image with specific Windows values that are set on boot based on the unattended files created in step 4 It is also required by the cloud init package instep 5 If you are not using step 4 or step 5 then you can skip this step All image behavior and settings configured in Step 2 will be applied to the image Running Sysprep 1 Take a snapshot of the VM or make a clone After Sysprep runs the image is transformed into its first boot configuration Make all of your customizations before you proceed Taking a snapshot of the underlying VM before this step could be useful if you need to rollback and correct the image after a trial run Opti
14. base website you can also find the easy to use install and configuration tool that is used in this step The Cloudbase tool automatically generates its own unattended file and offers the option to automatically step into running Sysprep Do not select this option You will not have the opportunity to modify the unattended file with the one you created in step 4 Installing cloud init 1 Make sure all customizations for the operating system are complete 2 Download the cloud init installation tool from Cloudbase for Windows http www cloudbase it cloud init for windows instances 3 Install cloud init on the image 4 RunCloudbaseInitSetup_Beta IMPORTANT When you finish using the setup tool you will be given the choice to run Sysprep directly As discussed previously do not choose this option It will not allow you to integrate your own unattended file 5 Complete the Cloudbase Init Setup Wizard a Accept the license agreement b On the Custom Setup screen select the option for Windows Cloud Init Default and set the location to C Program Files x86 Cloudbase Solutions Cloudbase Int Default c On the Configuration options screen fill in the options that are used to configure the cloudint conf file This file is processed by cloud init scripts when an instance is launched The conf files are created in C Program Files 86 Cloudbase Solutions Cloudbase Init conf I Username lt Admin gt Creating Window
15. e a snapshot of a VM instance and use it as an image This approach gives you the flexibility to upload simple customizable images This option is only available once you uploaded initial images in your environment using option or 2 Building a Windows image for use with ESXi compute clusters This section provides a high level overview of the steps required to create a Windows VMDK image for use in CloudSystem Some steps are required while others are optional e Step 1 Create the source virtual machine in vCenter Server o Two key settings are required for your Windows image to work SCSI Controller gt LSI Logic SAS Virtual Device Node gt SCSI o Where possible choose the smallest boot disk size that will work for your Windows version and options CloudSystem allows users to request a larger boot disk size for the resulting VM at launch so the size only needs to be big enough to support the installation and preparation of the image e Step 2 Install Windows and customize options o Multiple Windows versions are supported and there are no specific options that are required for your image to boot That being said there are a number of aspects that are best practices for images provided as a service to users ina cloud This step is an opportunity to configure the options software and settings you want to include in your images e Step 3 Add VMware tools to the virtual machine o VMware tools are required to allow CloudSystem to shut down VM in
16. e the HP CloudSystem 8 1 Installation and Configuration Guide in the Enterprise Information Library From the CLI run the command to upload an image glanc insecure image create lt Image Name gt IMPORTANT You can set the CloudSystem properties for the image in the upload command using the property flag If you want to add the properties at this point see step 9 Using the CloudSystem Portal to upload an image 1 Open a supported browser to https lt Appliance_IP gt portal project Check the browser upload limitations Chrome tends to support the largest upload size at 20 GB If the image is larger than this you must use the CLI upload option From the CloudSystem Portal Project tab select Images amp Snapshots Upload the image Click Create image Enter a name for the image Enter a description for the image For the image source select Image File For the image file browse to the file you want to upload For the format select VMDK Enter the minimum disk value to assign to the image f you choose to add a value it will be the smallest available disk size of the image when launched as a VM Users can control the size using flavors but regardless of the value in the flavor this setting will be the lower limit h Enter the minimum RAM value for the image f you choose to add a value it will be the lowest RAM available to the image when launched as a VM Users can control the value using flavors but
17. groups provide a method for creating and applying firewalls as each VM is instantiated by the end user If default or minimum firewalls are already set in the image network troubleshooting can be difficult e Usea secure user login authentication mechanism that provides each end user with a unique password or key Configuring passwords into a common image is not a recommended solution Instead for Windows end users should set a password for an account in the launch dialog For Linux end users should choose a key pair for the VM instance when the image is created e OpenStack supports the cloud init mechanism for passing data and scripts to a newly created VM instance A common practice is to perform final customization of the image when it first boots as a VM instance using specific information provided in the create or launch request e ake sure to log information to the console When troubleshooting image issues during startup or issues related o networking it is extremely helpful to have the image log information to its console You can access the console hrough the CloudSystem Portal or through the virtualization layer using vSphere client KVM command line virsh commands or Virtual Network Computing VNC e Confirm the supported guest OS against the underlying hypervisor VMware guest OS support is fairly broad Red Hat less so To ensure a vendor supported configuration make sure to conform to the vendor s
18. iskmanager When choosing between the sparse or flat formats keep in mind that at launch a sparse file is expanded which could cause an additional initial delay the first time it is used Flat images do not have this delay The image that is cached on the ESX hosts after the initial use is the expanded file which is the cause of the one time delay Preparing a Flat format VMDK You can prepare a flat VMDK on the ESXi server in your development environment In order to log on to an SSH session and run vmkfstools you must enable SSH access to the server 1 Enable SSH access on the ESXi server a In VMware vSphere Client select the ESXi host where you are preparing the image b Enable the ESXi SSH shell access by selecting the following options in Configuration Security i Services Properties SSH should be set to running ii Firewall Properties Required Services Secure Shell SSH Server should be enabled Open an SSH shell to the ESXi server where the image is being prepared Change directory to the datastore where the image is stored Run the following command to review the image size ls 1 Use the vmkfstools to set eagerzeroedthick vmkfstools i lt OriginalImage gt vmdk lt NewImage gt vmdk d eagerzeroedthick Preparing a Sparse format VMDK To set the required sparse properties for a sparse VMDK you must use the vmware vdiskmanager tool Download and Install vmware vdiskmanager on a Windows server The Virtua
19. l Disk Manager Utility is available with a VMware workstation or you can download it separately as a Virtual Disk Development Kit VDDK VDDK is available for download at https www vmware com support developer vddk The Virtual Disk Manager User Guide is available at http pubs vmware com vsphere 50 topic com vmware Cbase PDF vddk_disk_utils pdf Copy the image VMDK from the development ESXi server to the Windows server and examine the size of the file From the Windows server run the VMware vdiskmanager tool Vmware vdiskmanager r lt OriginalImage gt vmdk t 0 lt NewImage gt vmdk 13 Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem Step 8 Load images into CloudSystem There are two ways to make images available for users in CloudSystem Upload the image into the CloudSystem Glance repository on the CloudSystem management appliance Present the image on an accessible HTTP server to CloudSystem There are three tools available for image upload CLI option for images 20 GB or greater See Using the CLI to upload an image CloudSystem Portal option See Using the CloudSystem Portal to upload an image CloudSystem Console option See Using the CloudSystem Console to upload an image Using the CLI option to upload an image 1 Install the CLI package that contains the Glance image create option For instructions on installing the CLI packages for Windows and Linux se
20. onal Create the final unattended file At this point you will potentially have an unattended file created by the Cloudbase install tool in step 5 and one you created using SIM in step 4 If you have both you will need to merge them into one file If you have only one you can skip this step Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem a Review the unattended file created by the Cloudbase tool at C Program Files x86 Cloudbase Solutions Cloudbase Init conf The highlighted section in the following example shows the clause that invokes the cloud int python script Copy your own custom unattended file to this directory Sample unattended file created by Cloudbase tool lt xml version 1 0 encoding utf 8 gt lt unattend xmlns urn schemas microsoft com unattend gt lt settings pass generalize gt lt component name Microsoft Windows PnpSysprep processorArchitecture amd64 publickeyToken 31bf3856ad364e35 language neutral versionScope nonsxs xmins wem http schemas microsoft com wmMiconfig 2002 State xmins xsi http www w3 org 2001 XMLSchema instance gt lt PersistAllDeviceInstalls gt true lt PersistAllDeviceiInstalls gt lt component gt lt settings gt lt settings pass oobeSystem gt lt component name Microsoft Windows Shell Setup processorArchitecture amd64 publickeyToken 31bf3856ad364e35 language neutral versionScope nonsxsS xmins wem
21. parameters are added you can edit them from the box in the upper right corner of the screen 7 Use the Validate Answer File feature to verify the values you entered 8 To save the unattended file select File Save Answer File The default name for this file is autounattended xml Additional parameters to consider setting in a cloud environment include Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem e Microsoft Windows Shell Setup o LogonCommands FirstLogonCommands o LocalAccount Description lt Admin gt DisplayName lt Admin gt Group lt Administrators gt Name lt Admin gt Password e Value lt password gt e Microsoft Windows Internationalization core WinPE o _InputLocale lt locale gt SystemLocale lt locale gt UlLanguage lt language gt UserLocale lt language gt SetupUlLanguage UlLanguage lt language gt e Microsoft Windows Setup o UserData AcceptEula true ProductKey Key lt product key gt WillShowUl OnError O O O O Step 5 Install cloud init Cloud init https cloudinit readthedocs org en latest is an open source project used with OpenStack to allow tools to integrate images in a cloud Cloudbase http www cloudbase it developed a Windows version and contributed it to the community It is available in a source version in github https github com cloudbase cloudbase init From the Cloud
22. regardless of the value in the flavor this setting will be the lower limit i Select the Public check box j Click Create image ampang 14 Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem Using the CloudSystem Console to upload an image 1 Opena supported browser to https lt Appliance_IP gt Check the browser upload limitations Chrome tends to support the largest upload size at 20 GB If the image is larger than this you must use the CLI upload option 2 From the CloudSystem Console select Images Actions Add 3 Enter the image details a ee the a ee n the Specify image field click the Enter file URL radio button and enter the path to the URL in the field provided Enter a name for the image Enter a description for the image For the OS type select Microsoft Windows For the disk format select VMDK For the container format select bare For the shared field select Enabled For the Read only field select Disabled Click Add Presenting the image on an HTTP server that is accessible to CloudSystem 1 Move the image to the HTTP server Configuration of the HTTP server is beyond the scope of this white paper 2 From the CloudSystem Console point to the image from CloudSystem 3 Navigate to Images Actions Add 4 Enter the image details a b c d e f g h i n the Specify image field click the Enter file UR
23. s Virtual Machine images for use with ESXi compute clusters in HP CloudSystem Use this field to prompt the cloud init package to create a user account with this name This account will not appear in the unattended file and should not be added there ii Metadata password lt Check this box gt If you check this box then the cloud init scripts that run at launch in the VM will look in the block of data metadata handed to it from the CloudSystem Nova layer for a password to assign to the account The metadata password is set by an interactive user in the CloudSystem Portal launch instance dialog as Admin Password field IMPORTANT You cannot use the CloudSystem Portal to verify that the password entered by the user meets the policy set in the Windows image For example if a strong password is set in the Windows OS the user can enter a password in the CloudSystem Portal that does not conform and no error will occur The password will not be set in the image iii User s local group lt Administrator gt This is the group associated to the account iv Network adapter Intel PRO 1000MT This varies depending on the type of adapter you are using Make sure to enter the type of network adapter used in your configuration d De select the Run Sysprep option If this option is NOT selected then you will be able to merge your own unattended file before you run Sysprep e Select Finish f Verify the conf file created by the setup progr
24. s and customize options The purpose of this section is to choose the options in the Windows OS that allow the image to be used as a Windows VMDK For example after launching the instance a user could gain console access via the CloudSystem Portal but typically the expected interaction is for the user to access the console via Remote Desktop Protocol RDP Some of the properties and options can be set using the procedure in step 4 Others are so common to all versions of Windows images that they are best set using this procedure Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem Installing Windows and customizing options 1 Install Windows according to the standard procedures for the version of Windows you plan to use 2 Customize Windows a Enable RDP If the VM is a server with only automated network access then the CloudSystem Portal console access may be sufficient for troubleshooting and setup tasks If it is not enable RDP as the standard interactive interface for access to the VM Set the time zone Set network interfaces to DHCP Enable the Windows firewall Define the Internet Proxy Set IE security settings Set Windows update settings Add standard corporate packages such as antivirus and support hooks za gt pang 3 Disconnect the installation media from the VM Step 3 Add VMware Tools to the VM VMware tools allow the user to perform a graceful shutdown through the CloudSystem u
25. ser interfaces A VM reboot performs a safe guest reboot if VMware tools are present If VMware tools are not installed a reboot results ina VM reset hard reboot Additionally VMware tools in an ESXi VM are recommended and provide many benefits See http kb vmware com selfservice microsites search do lanquage en_US amp cmd displayKC amp externalld 340 for more information Adding VMware tools to the VM Install VMware tools using one of the following two methods a Install interactively using instructions from Step 4 Create an unattended file using Microsoft System Image Manager Using an unattended file with Microsoft s Sysprep tool automates the customization of the image when it is instantiated during first boot It is a powerful tool for production cloud images For a simple test image you can omit this step and rely on the customizations you configured in step 2 If you are also using cloud init from Cloudbase as described in step 5 the Cloudbase tools will create a small unattended file specifically to integrate cloud init scripts into the Sysprep and startup process In this case you must merge the two unattended files to retain the cloud init hooks and add in the specific customizations you create in this step The Microsoft tool for creating unattended files is System Image Manager SIM which is a component of the Windows Assessment and Deployment Kit ADK http technet microsoft com en us library hh824947 aspx Some of
26. soft Windows Shell Setup processorArchitecture amd 4 publickKeyToken 31br3a5 ad364e35 langquage r sionScope nonsxs xmins wom http schemas microsoft com WMI fig 2002 State xmins xsi http wew w3 org 2001 XMLSchema instance gt lt UserAccounts gt lt AdministratorPassword gt lt Value gt QwEOAGEADGENADMADQAZAEEAZASt AGKADGEDAHMAGABYAGEAGABVAH AUABRAHMACWHIAGBACGEKAA lt Value gt lt PlainText gt false lt PlainText gt AdministratorPassword gt UserAccounts gt component lt settings gt lt cCpi offlineImage cpi source wim c kite weimt202012 20files install wimtWindows Server 2012 SERVERSTANDARD pi j gt xmins cpi urn schemas microsoft coj c lt unattend gt Creating an unattended file to define the Administrator password 1 Install SIM You should have the ADK and SIM already set up on a development system 2 From the OS media you are using copy the install wimfile to a location on the system that is running SIM 3 To start SIM select Start Programs Microsoft Windows OPK or Windows AIK Windows System Image Manager 4 Topointtothe OS media install wim select File Select Windows Image 5 Tostart anew answer file select File New Answer File 6 Set the properties for the unattended file a From Windows Image expand the Components box and navigate to the parameters you want to set b Right click and select Add Setting to Pass 7 oobeSystem When the
27. stances created from the image Additionally VMware tools provide the ability to manage the image from within the VMware hypervisor platform e Step 4 Create an unattended file using Microsoft System Image Manager o Advanced IT deployments leverage Windows Sysprep to set the final settings of the deployed VM at first boot on launch as an alternative to making all settings and customizations when the Windows OS is installed This allows you to take a common image created to this point and derive additional image variations for users with different settings such as internationalization o For simpler use cases and testing you can skip this step and instead use Step 2 Install Windows and customize options and optionally Step 5 Install Cloud init to customize the image e Step 5 Install cloud init o Cloud init is the open source mechanism for customizing the operating system of a newly provisioned VM instance It can be used to handle many actions particularly passing metadata from the CloudSystem GUI or CLI interfaces into the VM instance for interpretation and execution with scripts you ve configured into the image For example this cloud init step sets up an administrative user account and lets the requesting user from CloudSystem set the password for it o If OS customization is not required then you do not need to perform this step e Step 6 Run Sysprep o Sysprep prepares the image to use specific Windows values based on unattended files crea
28. t be liable for technical or editorial errors or omissions contained herein 5900 3792a December 2014 16
29. ted in Step 4 If you are using cloud init this step is required o Ifyou are not creating an unattended file or using cloud init then you do not need to perform this step All behavior and settings are controlled by the options configured in Step 2 e Step 7 Set required VMware image properties with VMware tools o AVMDK image can be flat or sparse format The properties must be set correctly before loading the images into CloudSystem For flat images fully expand the VMDK image using the vmfstools d eagerzeroedthick option Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem For sparse images make sure they are already configured as sparse or convert them to sparse using the vmware vdiskmanager with t 0 option e Step 8 Upload the image to CloudSystem o You can upload an image by copying it to the CloudSystem Glance image repository or by entering a link to an HTTP server that hosts the image In the second scenario when CloudSystem needs the image for an operation it fetches it from the HTTP server o When you copy the image into CloudSystem s Glance repository you can use the CloudSystem Portal the CloudSystem Console or the Glance CLI The CLI provides more control and more options and handles larger image sizes than the GUI options Using the CLI is the recommended best practice when working with Windows VMDKs e Step 9 Set required CloudSystem properties o The CL
30. the many image attributes that can be controlled with the unattended file are e Administrator Password This field can be used to set the password in the account to a known value or to force a user to set it interactively at first login Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem e Additional user accounts An IT organization may or may not want users to control the default administrator account Alternative administrative accounts or user accounts with restricted privileges are set here The passwords are defined here or set to force the user to set the password on first login An alternative to defining an account in the unattended file is to use a feature in the Cloudbase cloud init package that allows you to define a single additional user account which can also be linked into the password setting mechanism of the CloudSystem Portal instance launch dialog e Language and keyboard settings Settings for language are documented at http technet microsoft com en us library hh825682 aspx e Product keys If you are unfamiliar with Sysprep and SIM the following link provides a good description of how to create a simple answer file http technet microsoft com en us library cc749317 v ws 10 aspx Sample unattended file lt xml version 1 0 encoding utf 8 gt lt unattend xmlns urn schemas microsoft com unattend gt lt Settings pass oobeSystem gt lt component name Micro
31. wo packages Foundation is an Openstack centric laaS solution where images are loaded and used to launch individual VM instances within the OpenStack paradigm Enterprise is centered on HP Cloud Service Automation CSA offering advanced orchestration complex service design and a Market place Portal user experience When provisioning VMs defined in an Enterprise service offering against the CloudSystem Foundation provider you can use images that were previously uploaded into Foundation What makes an image cloud ready When creating images to use with virtual machines VMs in CloudSystem keep the following details in mind e Disk partitions must be able to be resized during launch OpenStack allows users to select multiple flavors which define different sizes of compute resources and boot disks e The operating system OS in the image must support new MAC addresses Each time an image is launched as a VM it is assigned new MAC addresses for virtual NICs e Auser login mechanism must be part of the image s software and configuration Typically Remote Desktop Protocol RDP is used for Windows and Secure Shell SSH is used for Linux e The root Administrator account can be disabled and logins can be prohibited This makes it easier to support the VM instances from central IT Creating Windows Virtual Machine images for use with ESXi compute clusters in HP CloudSystem e Firewalls are often disabled OpenStack security
Download Pdf Manuals
Related Search
Related Contents
Document Control and PRODUCTO Nº Copyright © All rights reserved.
Failed to retrieve file