Guide Openstack

11
 Cloud OS  Openstack and Hyper-V integration  

Transcript of Guide Openstack

Page 1: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 1/11

Cloud OS Openstack and Hyper-V integration

Page 2: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 2/11

Openstack and Hyper-V integration 2

ONTENTS

...................................................................................................................................................................... 1

What is Openstack? ...................................................................................................................................... 3Get Started .................................................................................................................................................... 3

Hyper-V Nova Compute Installer ................................................................................................................ 4

Relevant Commands and Information ...................................................................................................... 10

References .................................................................................................................................................. 11

Page 3: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 3/11

Openstack and Hyper-V integration 3

Deploying Openstack on Hyper-V

WHAT ISOPENSTACK?The Openstack cloud operating system enables enterprises and service providers to offer on-demand computing resources, by provisioning and managing large networks of virtualmachines. Compute resources are accessible via APIs for developers building cloudapplications and via web interfaces for administrators and users. The compute architecture isdesigned to scale horizontally on standard hardware, enabling the cloud economics companieshave come to expect.

Popular Use Cases Service providers offering an IaaS compute platform or services higher up the stack IT departments acting as cloud service providers for business units and project teams Processing big data with tools like Hadoop Scaling compute up and down to meet demand for web resources and applications High-performance computing HPC) environments processing diverse and intensive

workloads

GETSTARTED One of the goals was being able to install and configure Nova compute on Hyper-V (Hyper-VServer or Windows server) in the simplest possible way, using a nice and tidy GUI for theoccasional deployment or an automated and unattended mode for deployments on a massivenumber of servers.

To begin, all it needs is an installation of the Microsoft free Hyper-V Server 2008 R2 or 2012 oras an alternative Windows Server 2008 R2 or 2012 with the Hyper-V role enabled.

A suggestion is using the free Hyper-V Server edition instead of Windows Server for a fewreasons

1. It runs a very limited subset of the Windows Server operating system, which means thatit has a lower impact on security updates and management

2. There’s no difference in features or performance compared to the full Windows Server

Page 4: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 4/11

Openstack and Hyper-V integration 4

If you want to see how Hyper-V works with Opens tack but you don’t have a server or PC onwhich to install it, well you can even run it on top of another hypervisor (for test purposes only,this is of course TOTALLY unsupported). As an example, you can run it in a VM on top ofVMWare Workstation 9, Fusion 5 or ESXi 5.

HYPER-V NOVA COMPUTEINSTALLER We are going to install on Hyper-V only the Openstack Compute role, so you will need to runthe other required roles on separate hosts or VMs. If you do not plan to deploy it in aproduction environment, I suggest you to create an Ubuntu Server 12.04 VM in Hyper-V orelsewhere with a DevStack deployment.

Once your Hyper-V setup is done, you can download the installer to a folder on the server andrun it on Hyper-V / Windows Server 2012 R2 or you can even download and run it directly froma PowerShell prompt as the example bellow:

$src = ‘http://www.cloudbase.it/downloads/HyperVNovaCompute_Folsom.msi’ $dest = “$env:temp \ HyperVNovaCompute_Folsom.msi” Invoke-WebRequest -uri $src -OutFile $destUnblock-File $destStart-Process $dest

Openstack does not have an official support to Hyper-V, to download the installer pack itsnecessary consult the open source community to get resources as the website:

http://www.cloudbase.it/openstack/openstack-compute-installer

Page 5: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 5/11

Openstack and Hyper-V integration 5

Here is how the welcome screen look like:

After accepting the license agreement the features selection will appear:

Page 6: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 6/11

Openstack and Hyper-V integration 6

Openstack Nova Compute is the core feature of the package. It installs a dedicated Pythonenvironment, all required dependencies and a Windows service called nova-compute. Byclicking on “Browse”, it is possible to change the installation folder.

Live Migration is available on 2012 but not in 2008 R2, requires the host to be a member of adomain. This feature enables and configures Hyper- V “shared nothing” live migration. BesidesKVM, Hyper-V is the only Openstack hypervisor supporting it, with the additional advantagethat thanks to this installer it is unbelievably easy to setup.

iSCSI Initiator Service enables and starts the Microsoft iSCSI initiator service, required for Cindervolume management.

Openstack Command Prompt creates an Openstack command prompt shortcut. This isespecially useful on Windows Server or on a workstation in order to have a ready-madeenvironment with the PATH and other environment variables properly set.

FreeRDP for Hyper-V is an amazing cross platform open source RDP client that works also withthe Hyper-V RDP extensions required to connect to VM consoles. To more information, follow

the link.

The next steps are required to handle the service configurations and are displayed in functionof the selected features.

Page 7: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 7/11

Openstack and Hyper-V integration 7

Nova compute requires one bridge (virtual switch in Hyper-V terms), which can beautomatically created by the installer.

The basic configuration consists in providing the settings for the glance server address,RabbitMQ server address, Nova database and the path where the Nova compute driver willsave the Hyper-V instances and Glance images.

Page 8: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 8/11

Openstack and Hyper-V integration 8

“Limit CPU features” is required when live migration is used between servers with different CPUarchitectures. When “Use CoW Images” is enabled, the Nova compute driver createsdifferencing disks based on the glance VHD images, instead of copying the entire image foreach spawned instance. This leads to massively shorter instance deployment times.

Live migration can be configured here without having to use Microsoft Hyper-V Manager orPowerShell. All you have to do is to choose the authentication type (a suggestion, Kerberos),the maximum number of parallel live migrations, and IP limitations if needed. Please note also

that live migration requires that the Nova Compute service runs with domain credentials. Theselected domain user will be automatically added to the local administrators group.

Page 9: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 9/11

Openstack and Hyper-V integration 9

During this step files are copied, services and components get registered, the nova.conf file iswritten and finally the nova-compute service is started.

Once the setup is finished, you can always start it again to change / add / remove any feature.

Page 10: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 10/11

Openstack and Hyper-V integration 10

RELEVANTCOMMANDS ANDINFORMATION

Restart the compute service:

net stop nova-compute && net start nova-compute

Restart the iSCSI initiator service:

net stop msiscsi && net start msiscsi

Log the installer activity:

msiexec /i HyperVNovaCompute_Folsom.msi /l*v log.txt

Uninstall this package if does not have the MSI file:

msiexec /uninstall {792BADAA-8FE0-473C-BAD7-CAFA2AFF4F2D}

Page 11: Guide Openstack

8/10/2019 Guide Openstack

http://slidepdf.com/reader/full/guide-openstack 11/11

Openstack and Hyper-V integration 11

REFERENCES

http://devstack.org/

http://www.openstack.org/software/start/

http://www.cloudbase.it/cloud-init-for-windows-instances/