• No results found

Guide Openstack

N/A
N/A
Protected

Academic year: 2021

Share "Guide Openstack"

Copied!
11
0
0

Loading.... (view fulltext now)

Full text

(1)

Cloud OS

(2)

Openstack and Hyper-V integration TITLE OF DOCUMENT 2

C

ONTENTS

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

Hyper-V Nova Compute Installer ... 4

Relevant Commands and Information ... 10

(3)

Deploying Openstack on Hyper-V

W

HAT IS

O

PENSTACK

?

The Openstack cloud operating system enables enterprises and service providers to offer on-demand computing resources, by provisioning and managing large networks of virtual machines. Compute resources are accessible via APIs for developers building cloud applications and via web interfaces for administrators and users. The compute architecture is designed to scale horizontally on standard hardware, enabling the cloud economics companies have 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

G

ET

S

TARTED

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

To begin, all it needs is an installation of the Microsoft free Hyper-V Server 2008 R2 or 2012 or as 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 few reasons

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

(4)

Openstack and Hyper-V integration TITLE OF DOCUMENT

4

If you want to see how Hyper-V works with Openstack but you don’t have a server or PC on which 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 of VMWare Workstation 9, Fusion 5 or ESXi 5.

H

YPER

-V

N

OVA

C

OMPUTE

I

NSTALLER

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

Once your Hyper-V setup is done, you can download the installer to a folder on the server and run it on Hyper-V / Windows Server 2012 R2 or you can even download and run it directly from a 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 $dest Unblock-File $dest

Start-Process $dest

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

(5)

Here is how the welcome screen look like:

(6)

Openstack and Hyper-V integration TITLE OF DOCUMENT

6

Openstack Nova Compute is the core feature of the package. It installs a dedicated Python environment, all required dependencies and a Windows service called nova-compute. By clicking 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 a domain. This feature enables and configures Hyper-V “shared nothing” live migration. Besides KVM, Hyper-V is the only Openstack hypervisor supporting it, with the additional advantage that thanks to this installer it is unbelievably easy to setup.

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

Openstack Command Prompt creates an Openstack command prompt shortcut. This is especially useful on Windows Server or on a workstation in order to have a ready-made environment 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 with the 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 function of the selected features.

(7)

Nova compute requires one bridge (virtual switch in Hyper-V terms), which can be automatically 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 will save the Hyper-V instances and Glance images.

(8)

Openstack and Hyper-V integration TITLE OF DOCUMENT

8

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

Live migration can be configured here without having to use Microsoft Hyper-V Manager or PowerShell. 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. The selected domain user will be automatically added to the local administrators group.

(9)

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

(10)

Openstack and Hyper-V integration TITLE OF DOCUMENT

10

R

ELEVANT

C

OMMANDS AND

I

NFORMATION

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:

(11)

R

EFERENCES

http://devstack.org/

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

References

Related documents

MOVE-SCP waits in the background for connections, will accept associations with Presentation Contexts for the SOP Class of the Study Root Query/Retrieve Information Model –

The pattern of intercropping by local communities io the Doulu village through the cultivation of three of plants types are celery (Allium poram), tomato (Solanum

What are the perceptions, experiences and understandings of dyslexia amongst mentors, nurse tutors and preceptors who support and guide dyslexic nursing

Acne is not infectious but P.acnes, through their colonization of the duct, are likely to be central in the production of inflammation.. P.acnes

youngsters and the women to buy scooters Major players in the 2- wheeler industry are Hero Honda Motors Ltd (HHML), Bajaj Auto Ltd (Bajaj Auto) and TVS Motor Company Ltd (TVS)..

Things you'd like to learn to do and accomplish whilst out and about in nature Ideas for things you'd like to do that will help nurture and protect nature.. Here are some ideas to

Building upon these discoveries, the research presented in this thesis aimed to demonstrate a causal role of beta frequency oscillations on unconscious and automatic

Thus, rock strengths, as determined by these engineering tests, are not material properties because they depend on the specimen geometry and the loading conditions of the