nutanix community edition primer -...

49
"Cassandra" by Evelyn De Morgan - Flickr. Licensed under Public Domain via Wikimedia Commons Nutanix Community Edition Primer Updated Q2 2015 Jason Meers NPSR, NPSE, NPP In association with:

Upload: others

Post on 15-Sep-2019

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

"Cassandra" by Evelyn De Morgan - Flickr. Licensed under Public Domain via Wikimedia Commons

Nutanix

Community

Edition

Primer

Updated Q2 2015

Jason Meers

NPSR, NPSE, NPP

In association with:

Page 2: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 2

Page 3: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 3

Contents Introduction and legal information ............................................................... 5

About this guide .......................................................................................... 6

Intended use ............................................................................................... 6

About Nutanix CE ....................................................................................... 7

Hardware compatibility ............................................................................... 8

Downloading Nutanix CE ............................................................................ 9

Preparing the local media ......................................................................... 10

Write the image to USB, SD or SATA-DOM .............................................. 10

DD under Linux ........................................................................................ 10

DD under MacOS ..................................................................................... 10

Win32 Disk Imager ................................................................................... 10

Installing Nutanix CE ................................................................................ 11

Configuring a Nutanix CE cluster .............................................................. 12

SSH under Linux ...................................................................................... 12

SSH under MacOS ................................................................................... 13

Putty - Windows........................................................................................ 13

Create a single-node cluster ..................................................................... 14

Create a multi-node cluster ....................................................................... 15

The main PRISM interface ........................................................................ 16

Create a storage pool ............................................................................... 20

Create a storage container ....................................................................... 23

Create a File system Whitelist .................................................................. 27

Create ISO store....................................................................................... 28

Create a network ...................................................................................... 30

Acropolis KVM .......................................................................................... 34

Create a VM ............................................................................................. 35

Install a VM ............................................................................................... 42

Starting and stopping services .................................................................. 46

Powering off a whole cluster ..................................................................... 47

Technology User Group ............................................................................ 48

Bargain Hardware ..................................................................................... 49

Page 4: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 4

Page 5: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 5

Introduction and legal information This guide is intended primarily at IT professionals and virtualisation consultants with an interest in learning and deploying “Nutanix Community Edition” in a “home-lab”, “test/dev” or “non-production” environment. The information found in this guide should not be used or followed in a production environment or live business environment, it is provided for the sole purpose of helping individuals learn “Nutanix Community Edition” in a small training environment. Legal Information

The author assumes no liability whatsoever for any direct or indirect damage, loss, inconvenience or other unintended consequences caused by using, or following the information presented in this guide.

Whilst great care and attention has been taken whilst producing this guide the author cannot guarantee the accuracy of any of the information provided in this guide.

The guide and the information presented in this guide is based on the “beta” version of the product which will be subject to unspecified changes and modifications over time, outside of the author’s control.

“Nutanix”, “Nutanix Community Edition”, “Nutanix CE” and other associated trademarks, logos and devices remain the sole property of their respective owners and are only used in this guide to explain a concept or illustrate a procedure.

This guide is not officially endorsed, recognised or affiliated with “Nutanix” or any of its subsidiary’s.

At the time of writing this guide the author is not employed by “Nutanix”, and has never been employed by “Nutanix”.

Unless clearly stated, no other contributing authors of this guide are employees of “Nutanix”.

The author is not officially recognised or certified by “Nutanix” for providing information or training on “Nutanix” products and services other than having passed the following Nutanix Partner Accreditations.

o “NPSR – Nutanix Platform Sales Representative” o “NPSE – Nutanix Platform Sales Engineer” o “NPP – Nutanix Platform Professional”

The only official source of product information and product support for “Nutanix Community Edition” is from the “Nutanix NEXT community”.

IF YOU DO NOT CLEARLY UNDERSTAND AND AGREE TO ACCEPT THE LEGAL INFORMATION AND LEGAL DISCLAIMERS IN THIS SECTION PLEASE STOP READING THE GUIDE AT THIS POINT AND DESTROY ALL PHSYICAL OR ELECTRONIC COPIES OF THIS GUIDE IN YOUR PERSONAL POSSESSION

Page 6: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 6

About this guide This guide is provided “free of charge” and is licenced under the following Creative Commons licence:

Attribution-NonCommercial – ShareAlike 4.0 International

You should not have been charged for this guide

You may not add or remove pages or sections from this guide

If you distribute this guide you must distribute “as-is” with no modifications, additions or deletions.

Any new derivatives that you create based on this guide should be licenced under the same licence.

Other commercial and non-commercial distribution of this guide may be considered on a “case-by-case” basis, but will require written permission from the author. To contact the author please use: firstname (at) firstnamesurname (dot) com (Where “firstnamesurname” is the author’s first name and surname in lowercase with no spaces)

Intended use

This primary focus of this guide is to provide the user with enough information to:

Download and install “Nutanix Community Edition”

Perform initial configuration of a 1, 3 or 4 node cluster

Configure Storage

Configure Networking

Build a VM on the Acropolis KVM hypervisor

Provide a basic overview of the PRISM dashboard and management interface

Start, Stop and Shutdown the cluster in a controlled manner This guide was created to provide Nutanix CE training in the hands-on-labs at the Technology User Group across the UK: www.technologyug.co.uk

Page 7: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 7

About Nutanix CE

NOTE: Most of this information in this section has been taken directly

from the “Nutanix” website and “Nutanix Community Edition”

documentation and NEXT forums.

Community Edition is a 100% software solution

enabling technology enthusiasts to easily

evaluate the latest hyper-convergence

technology at zero cost. Users can now

experience the same Nutanix technology that

powers the datacenters of thousands of leading

enterprises around the world.

✔ Feature Rich Software

✔ Broad Hardware Support

✔ Zero Cost

Sign Up

Sign up to access and download Community Edition software.

http://www.nutanix.com/products/community-edition/register

Deploy

Deploy Community Edition on up to four servers using a broad

variety of hardware.

http://www.nutanix.com/cwm/ce-hardware-table.html

Play

Evaluate with any workload. Explore and share your experience on

the Nutanix NEXT Community.

http://next.nutanix.com/

NOTE: Nutanix CE use an embedded, customised version of the KVM

hypervisor and does not support Hyper-V, vSphere ESXi or the Disaster

Recovery features present in the commercial Nutanix offerings.

Page 8: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 8

Hardware compatibility

NOTE: Most of this information in this section has been taken directly

from the “Nutanix” website and “Nutanix Community Edition”

documentation and NEXT forums.

Minimum System Requirements for Community

Edition

Servers 1, 3 & 4 servers

CPU Intel CPUs, 4 cores minimum, with

VT-x support

Memory 16GB minimum

Storage Subsystem RAID 0 (LSI HBAs) or AHCI storage

sub-systems

Hot Tier (SSD) One SSD per server minimum,

≥ 200GB per server

Cold Tier (HDD) One HDD per server minimum,

≥ 500GB per server

Networking Intel NICs

A community updated HCL (Hardware

Compatibility List) is also being maintained here

(registration required):

http://next.nutanix.com/t5/Nutanix-Community-Edition/ct-p/Nutanix-

Community-Edition

NOTE: CPU cores need to be real physical processor cores, not virtual

processor cores provided by Hyper-Threading technology.

NOTE: Work is still in progress to make Nutanix CE work seamlessly in a

“nested” hypervisor environment. It is highly recommended that you deploy

Nutanix CE on physical hardware in the current version.

Page 9: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 9

Downloading Nutanix CE

NOTE: Most of this information in this section has been taken directly

from the “Nutanix” website and “Nutanix Community Edition”

documentation and NEXT forums.

To register you will need to sign-up at the link

below:

http://www.nutanix.com/products/community-edition/register/

Register Now to Get Exclusive Access to Community Edition

By signing up today you will:

Secure your place in line for early access

Join the premier hyper-convergence community

Get unfettered access to the latest product news

If you have a special access code, enter under "Invite Code."

Once signed up, the link to download the

software can be found in this forum (registration

required):

http://next.nutanix.com/t5/Nutanix-Community-Edition/ct-p/Nutanix-

Community-Edition

The file download will have a name similar to the

following (depending on the version and date

downloaded):

ce-2015.06.08-beta.img.gz

Page 10: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 10

Preparing the local media

An archive utility such as 7-ZIP or gzip/gunzip on Linux and MacOS can

be used to un-compress the g-zipped file:

ce-2015.06.08-beta.img.gz

To an image file such as:

ce-2015.06.08-beta.img

7-Zip can be downloaded for various operating systems at: http://www.7-zip.org/download.html

Write the image to USB, SD or SATA-DOM The image can be written to a USB, SD or SATA-DOM (Disk-On-Module) with one of the following tools:

DD – Under Linux

DD – Under MacOS

Win32 Disk Imager – Windows

DD under Linux dd if=ce-2015.06.08-beta.img of=/dev/sdX (Where X is the USB drive letter)

DD under MacOS dd if=ce-2015.06.08-beta.img of=/dev/sdX bs=1m (Where X is the USB drive letter)

Win32 Disk Imager http://sourceforge.net/projects/win32diskimager/

Page 11: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 11

Installing Nutanix CE

Boot from the removable media

Install the removable media into your server (USB, SD or SATA-DOM) and

enter the server BIOS to set this device as the first boot device and reboot

the server.

Install Nutanix CE

To begin the Nutanix CE installation log in as the following user with no

password:

User: install

After logging in you will need to provide the following details:

Now, repeat this process for each Nutanix CE host you wish to install

NOTES:

For the physical host:

IP Address

Subnet Mask

Gateway

For the Nutanix

Controller Virtual

Machine (CVM) that will

run on the physical

host:

IP Address

Subnet Mask

Gateway

At this point do not

tick/check the Create

single-node cluster

option (we will do this

manually from the

command line later).

Scroll down the licence agreement and accept it if you wish to continue, then Start the installation. Once the install has completed press ENTER to exit and make a note of the CVM IP Address shown on screen.

Page 12: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 12

Configuring a Nutanix CE cluster

Although it is possible to configure a cluster form the main cluster_init

page:

http://CVM-IP-ADDRESS:2100/cluster_init.html

Some operations cannot be completed through this cluster_init interface,

or from the Create single-node cluster option during the install, namely

creating a cluster where the host IP Address and CVM IP Address are on

the same subnet (such as 192.168.x.x):

Although we will use the command-line method to configure the cluster in

this guide, an example of the cluster_init interface is shown below:

Install an SSH client:

To access the CVM host over SSH you will need an SSH client:

SSH – Under Linux

SSH – Under MacOS

Putty – Windows

SSH under Linux ssh CVM-IP-ADDRESS

(Where CVM-IP-ADDRESS is the IP Address of the CVM)

Page 13: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 13

SSH under MacOS ssh CVM-IP-ADDRESS

(Where CVM-IP-ADDRESS is the IP Address of the CVM)

Putty - Windows http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Single-node and Multi-node clusters

Due to the way Nutanix CE protects and distributes data across hosts, only

the following cluster sizes are available:

Single-node cluster 1 Host no data redundancy

Multi-node cluster 2 hosts not available

Multi-node cluster 3 hosts with data redundancy

Multi-node cluster 4 hosts with data redundancy

Page 14: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 14

Create a single-node cluster

To create a single-node cluster, SSH into the host and provide the following

user information:

User: nutanix

Password: nutanix/4u

Then run the following commands:

cluster -s CVM-IP -f create

ncli cluster add-to-name-servers servers="DNS-SERVER"

ncli cluster get-name-servers

(Where CVM-IP is the IP Address of the CVM, and DNS-SERVER is a

single IP Address or comma separated list of IP Addresses of DNS

Servers)

NOTE: If DNS servers are not configured correctly at this stage registering

the installation against your NEXT account in the next section will fail.

Page 15: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 15

Create a multi-node cluster

To create a multi-node cluster, SSH into the host and provide the following

user information:

User: nutanix

Password: nutanix/4u

Then run the following commands:

cluster -s CVM-IP -f create

ncli cluster add-to-name-servers servers="DNS-SERVER"

ncli cluster get-name-servers

(Where CVM-IP is comma separated list of IP Addresses of the CVM’s on

each of the host you wish to include in the cluster, and DNS-SERVER is a

single IP Address or comma separated list of IP Addresses of DNS

Servers)

NOTE: If DNS servers are not configured correctly at this stage registering

the installation against your NEXT account in the next section will fail.

Page 16: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 16

The main PRISM interface

Open a web browser and connect to the PRISM management interface using any of the CVM IP Addresses present in the cluster. User: admin Password: admin You will be prompted to create a new admin password which should be used in PRISM for all future logins. At the next screen you will need to enter your NEXT username and password to register the installation against your NEXT account. The main PRISM interface will now load and we will briefly cover each section in turn. Note: In the examples shown here “Z600” refers the HP Z600 workstation used to create these screenshots. Z600 has no other special meaning here and just identifies the host for management purposes.

Page 17: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 17

An overall summary is shown for:

Hypervisor

Version

Storage Used

Storage Capacity The number of VM’s (Virtual Machines) is also shown. The CVM itself is the first VM running on the system. A hardware summary is also shown showing how many individual hosts and blocks of hosts are available. NOTE: Blocks are more relevant to the commercial Nutanix form factors. Metrics are also provided for:

Controller IOPS

Controller bandwidth

NOTE: IOPS are I/O Operations Per Second.

Page 18: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 18

Metrics are also provided for:

Controller Latency

CPU Usage

Memory Usage Overall health is also broken down by:

Disks

Hosts

VM’s Critical alerts are shown by:

Alert description

Minutes elapsed since alert was generated

Page 19: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 19

The current Data Resilience Status is also shown along with rebuild information. In this screenshot the cluster only consists of a single-node, therefore the resilience is undefined (we have no resilience) In this screenshot the cluster consists of a multiple nodes, therefore the cluster can tolerate the failure of one host. Block Awareness is a feature more commonly used with commercial Nutanix offerings to distribute metadata and data across different hardware “blocks” for better redundancy Statistics are also provided for:

Warning Alerts

Info Alerts

Events

Page 20: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 20

Create a storage pool

From the main PRISM

interface select the

Storage page.

From the Storage page,

select add Storage Pool

from the top-right menu.

Page 21: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 21

A Storage Pool allows

us to aggregate all

available SSD and HDD

drives in a single host, or

across multiple hosts.

The default option is to

Use all unallocated

capacity, but if your disk

configuration is not

detected correctly, does

not meet the minimum

requirements or another

Storage Pool has

already been created

and used all available

capacity you may see a

screen like the one

shown below.

If disks are not

recognised correctly you

can try setting/moving an

SSD to be the first

device detected by the

BIOS

Ensure the minimum

requirements have been

met.

One SSD per

server minimum,

≥ 200GB per

server

One HDD per

server minimum,

≥ 500GB per

server

No more than

four drives in total

Page 22: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 22

Once the Storage Pool has been created it should be visible from the Storage > Table view.

Page 23: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 23

Create a storage container

From the main PRISM

interface select the

Storage page.

From the Storage page,

select add Container

from the top-right menu.

Page 24: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 24

In order to follow the Technology User Group lab that this guide was written for, you will need to create the following two Storage Containers: If you are not following the TechUG lab feel free to substitute and of these values/settings to your own environment.

LABxx-CONTAINER-01

LABxx-ISOS (Where xx is your student/lab number)

To create a Container we need to specify:

Name

Storage Pool In this example we have used: Z600-CONTAINER-01 As this guide is being written using a HP Z600 workstation, however you should replace the prefix with your own such as: LAB01-CONTAINER-01 (If you are LAB student 01 for example) In this guide we are not going to enable any of the Advanced Settings for Storage Containers as they require additional compute and memory resources to function correctly. We will however discuss what these features are in the next few pages, should your own lab environment have enough resources available to enable them on each host. To add a Storage Container:

Enter a descriptive name

Select a Storage Pool to back it

Click Save

Repeat for any other Storage Containers you may require.

Page 25: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 25

The following Advanced Settings are not required in our lab environment, however we will cover them briefly here as they are likely to be encountered on larger multi-host clusters and commercial Nutanix environments. Replication Factor On a single host the only option available to us is a Replication Factor or RP of one. That means we only have one copy of the data at any one time (as there are no other hosts in our cluster available to hold a second copy) Multi-node clusters can leverage RP-2 or RP-3 for resilience (two or three copies of each block of data held on different nodes in the cluster). Other options include:

Reserved Capacity

Advertised Capacity

Enable Compression

Compression Delay

Compression Delay

0 minutes equates to inline compression

Greater than 0 minutes equates to offline compression

Page 26: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 26

The following Advanced Settings are not required in our lab environment, however we will cover them briefly here as they are likely to be encountered on larger multi-host clusters and commercial Nutanix environments. Performance Tier Deduplication (on/off) De-duplicates data in RAM/SSD tier but is not recommended for:

VAAI Clones

Linked clones

CVMS with less than 24GB RAM

Capacity Tier Deduplication (on-post-process/off) De-duplicates data on HDD tier but is not recommended for:

VAAI Clones

Linked clones

CVMS with less than 32GB RAM

CVMS with less than 300GB SSDs

Page 27: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 27

Create a File system Whitelist

In the Technology User Group Lab we need to whitelist: 172.16.2.0/255.255.255.0

In order to add an ISO image to the Storage Container we just created for holding the ISOs we need to allow NFS access to the Storage Containers through a Filesystem Whitelist. To allow our workstation to mount the NFS container we need to add the “Whitelist”, and a range of IP Addresses to be included in it. In this example we have allowed the subnet: 192.168.0.0 With a subnet mask of: 255.255.255.0 (Which is also known as a /24 subnet mask)

Page 28: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 28

Create ISO store

SSH onto the CVM as the “nutanix” user and type the following to list all NFS containers: nfs_ls

Mount the volume in the standard way on a Linux or MacOS operating System Windows 7 users may need to install the Client for NFS component: Control Panel > Programs and Features > Windows Features > Services for NFS > NFS Client NOTE: Windows 8 and later users may already have the “mount” command available without having to install the NFS Client. Mount the drive to an available drive letter then copy the ISO files over: For example: mount \\CVM-IP-

ADDRESS\STORAGE-

CONTAINER DRIVE-

LETTER:

mount

\\192.168.0.115\Z600

-ISOS Q:

(These commands and volume names are case-sensitive)

Page 29: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 29

The KVM VirtIO drivers ISO can be found here: https://fedoraproject.org/wiki/Windows_Virtio_Drivers#Direct_

download

In the Technology User Group Lab we need copy the following ISOs:

Windows7 x86 ISO

KVM VirtIO Drivers ISO

After copying the ISO file over, we can run the following command again: nfs_ls

To make sure that the new files have successfully been copied over. In addition to the Windows installation ISO, we also need to download the KVM VirtIO drivers so that the KVM virtual hardware can be recognised and configured correctly. We then need to download the KVM VirtIO drivers ISO and repeat the process until we have the following ISOS on the ISOs Storage Container:

Windows 7 ISO

KVM VirtIO ISO

Page 30: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 30

Create a network

In order to connect a VM to the outside world we need to configure one or more networks. From the main PRISM

interface select the VM

page.

From the VM page, select Network Config from the top-right menu

Click on Create Network

Page 31: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 31

We will create a new Network on VLAN 0. In the VLAN ID field enter zero: 0

To add the new network connection to VLAN 0 Click Save. At this point we are done creating the network connection and we can move on…However some optional settings are shown next just for completeness. (These next steps are optional) If you wish to have more control over IP Addresses, DNS Settings and Domain Names you can select the Enable IP Address Management box. This allows you to provide information about the IP Subnet and Prefix Length the connection is on and the Gateway IP Address.

Page 32: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 32

(Optional) DNS servers. Domain Search lists and a local Domain Name can also be specified (Optional) A local IP Address Pool can also be specified. The IP Address Pool is used to issue IP Addresses to VMs on that network, and performs the same role as a traditional DHCP server,

Page 33: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 33

In the Technology User Group Labs we do not need to specify any of these optional IP Address management settings. A single network connection on VLAN 0 is sufficient as we already have DHCP services available to us.

(Optional) If you wish to specific an alternate IP Address for the DHCP service you can select the Override DHCP Server option and enter an alternate IP Address to use. Once you have made any necessary changes the new network and its UUID unique identifier will be displayed on the Network Configuration page.

Page 34: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 34

Acropolis KVM

Under the hood Nutanix

CE uses a modified

version of the KVM

hypervisor called

Acropolis.

Information about each

VM can be found by

selecting the VM option

from the main PRISM

menu.

Selecting a VM from the

TABLE view will

enable/disable various

VM hypervisor

operations

Page 35: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 35

Create a VM

In order to build a new Virtual machine (VM) we need to setup the virtual hardware resources it will use. From the main PRISM

interface select the VM

page.

From the VM page, select Create VM from the top-right menu

Page 36: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 36

In the Technology User Group Labs we will use the following settings:

2 vCPUs

2048 Mb RAM (2 GB)

Enter the following information:

Name

Compute (vCPU)

Memory (MB) Then click New Disk.

Page 37: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 37

In the Technology User Group Labs we will use the following settings:

DIsk

Allocate on Container

SCSI

LABxx-CONTAINER-01

40 GB (Where xx is your student/lab number)

Then Select the following information:

Disk

Allocate on Container

SCSI

Container to use

Size in GB Then click Add.

Page 38: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 38

(This screenshot is provided for information only to show the various Bus Type options) In the labs we are going to use the SCSI disk type to demonstrate the process for adding the KVM drivers required to recognise certain devices during the install and subsequent configuration. Bus Types currently available for VM Disks are:

SCSI

PCI

IDE

Page 39: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 39

We now need to load one of our ISO images into the first virtual CDROM drive. Click on the “pencil” icon on the right hand side of the CDROM entry to “edit” the CDROM settings. Then Select the following information:

Clone from NDFS file

Start typing a forward slash “/” to select the ISO container. Then type another forward slash “/” to select the ISO image until the full path has been built-up.

Page 40: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 40

In the Technology User Group Labs we will use the following settings:

Hard Drive SCSI 40GB

CDROM 1 CDROM Windows ISO

CDROM 2 CDROM VirtIO driver ISO

Once the full path has been specified click Update. Now add another New Disk and create a second CDROM drive that contains the VirtIO ISO image. Although we can swap CDROM images between one drive, it is much easier to have two CDROM drives, as long as the Windows ISO is loaded in the first drive (Otherwise the VM will not be able to boot into the Windows installer)

Page 41: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 41

Now click New NIC to add a network card to the VM. Select the network connection we created for VLAN 0, then click Add. With the VM selected in the VM Table:

Click Power On

Click Launch Console (opens a new browser tab/window)

Page 42: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 42

Install a VM

The console should appear in a new browser tab/window Once the Windows install has started we will need to provide a driver for the virtual SCSI disk we just created on the VM. Click Load Driver and browse the VirtIO disk on the second CDROM Drive

Page 43: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 43

The Windows installation

should now continue as

normal

Once the installation has completed you may have noticed that the Network Card has not been recognised properly and no driver has been loaded for it. This can be fixed from the Computer Management snap-in

Page 44: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 44

Select: Control Panel > Administrative Tools > Computer management > Device Manager Right-Click on the unknown Ethernet Controller and select Update Driver > Browse my computer for driver software Browse to the VirtIO CDROM and update any required drivers. Reapeat for any other devices that require VirtIO drivers installing.

Page 45: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 45

You may be prompted when installing the device drivers. The Ethernet NIC Driver has successfully been installed. The Memory Balloon Driver has successfully been installed (used by the hypervisor for VM virtual memory management). An optional QEMU Guest Agent is also available on the VirtIO CDROM if required (can improve performance and add VSS snapshot capabilities in some cases)

Page 46: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 46

Starting and stopping services

Starting

The correct Start order is HOST > CVM > VMs

To check the status of a Nutanix CE cluster, login to a CVM as user: nuatnix,

password: nutanix/4u and type the following:

cluster status

To start a Nutanix CE cluster, login to a CVM as user: nuatnix, password:

nutanix/4u and type the following:

cluster start

To start a Nutanix CE VM, go to the VM Table under the VM menu in PRISM and

select a Power option from the list.

Stopping

The correct Stop order is VMs > CVM > Host

To stop a Nutanix CE VM, go to the VM Table under the VM menu in PRISM and

select a Power option from the list.

To check the status of a Nutanix CE cluster, login to a CVM as user: nuatnix,

password: nutanix/4u and type the following:

cluster status

To stop a Nutanix CE cluster, login to a CVM as user: nuatnix, password:

nutanix/4u and type the following:

cluster stop

To stop a Nutanix CE CVM, login to a CVM as user: nuatnix, password:

nutanix/4u and type the following:

sudo shutdown –h now

To stop a Nutanix CE Host, login to a CVM as user: root, password: nutanix/4u

and type the following:

shutdown –h now

Page 47: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 47

Powering off a whole cluster

Complete shutdown

The correct Shutdown order for a whole Nutanix CE cluster is as follows:

Shutdown and power off each individual VM through PRISM

Log into any CVM as “nutanix” and issue a “cluster stop”, followed by a

“cluster status” (just to check that everything did shutdown cleanly)

Log into each CVM individually as “nutanix” and issue a “sudo shutdown

–h now”

Log into each Host individually as “root” and issue a “sudo shutdown –h

now”

NOTE: Each Host has its own IP Address, plus an additional IP Address for the

CVM that runs on each node.

NOTE: If the commands do not work as expected be sure to check that you are

logging onto the correct IP Address and as the correct user (root for the physical

host and nutanix for the CVM virtual machine).

Page 49: Nutanix Community Edition Primer - NTNXblog.in-a-nutshell.ru/.../Nutanix-Community-Edition-Primer-TechUG-Labs... · Nutanix Community Edition Primer – Jason Meers – Q2 2015 –

Nutanix Community Edition Primer – Jason Meers – Q2 2015 – Page 49

Bargain Hardware

All of the hardware used to create this guide and used in the

Technology User Group labs was very kindly provided by Bargain

Hardware.

Bargain hardware is a leading online retailer of new, used and refurbished business and enterprise class I.T hardware based in Preston, Lancashire.

From our 15,000 sq ft warehouse we specialise in new, used and refurbished HP ProLiant, Dell PowerEdge and IBM servers, workstations and desktop PC’s. Our combination of low-prices, industry leading brands and dedicated customer service provides a unique opportunity for customers to economize their IT budgets without compromise.

Trading since 2004 we’ve become the largest PC and Server refurbisher on eBay UK and a Top Rated Seller since the programme introduction.

http://www.bargainhardware.co.uk

This guide was produced using the following BH hardware:

HP Z600 Workstation

The Technology User Group Nutanix CE Hands-on-Labs are run on the following BH hardware:

Dell T5500 Workstation

Bargain Hardware Bee Mill, Preston Road, Ribchester, Preston. PR3 3XL

Tel:

+44 (0)1254 878 801