0% found this document useful (0 votes)
24 views10 pages

DevStack Installation Guide

1. The document provides instructions for installing DevStack, an open source tool for quickly deploying OpenStack for development and testing purposes. It involves downloading DevStack from GitHub, configuring passwords and permissions, and running the stack.sh script to install OpenStack services like Nova, Glance, Neutron etc. 2. Potential errors during installation include permission issues, package conflicts and missing dependencies. These can be troubleshooted by granting stack user permissions, purging conflicting packages, and setting display variables. 3. A successful installation will provide a working OpenStack deployment accessible via the Horizon dashboard. DevStack enables developing and testing changes to OpenStack services.

Uploaded by

Astha
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views10 pages

DevStack Installation Guide

1. The document provides instructions for installing DevStack, an open source tool for quickly deploying OpenStack for development and testing purposes. It involves downloading DevStack from GitHub, configuring passwords and permissions, and running the stack.sh script to install OpenStack services like Nova, Glance, Neutron etc. 2. Potential errors during installation include permission issues, package conflicts and missing dependencies. These can be troubleshooted by granting stack user permissions, purging conflicting packages, and setting display variables. 3. A successful installation will provide a working OpenStack deployment accessible via the Horizon dashboard. DevStack enables developing and testing changes to OpenStack services.

Uploaded by

Astha
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

DevStack Installation Guide

Downloading VMware Workstation

To download VMware Workstation:

1. Navigate to the VMware Workstation Download Center.


2. Based on your requirements, click Go to Downloads for VMware Workstation for
Windows or VMware Workstation for Linux.
3. Click Download Now.
4. If prompted, log in to your My VMware profile. If you do not have a profile, create
one. For more information, see How to create a My VMware profile (2007005).
5. Ensure that your profile is complete and enter all mandatory fields. For more
information, see How to update your My VMware profile (2086266).
6. Review the End User License Agreement and click Yes.
7. Click Download Now.

Installing VMware Workstation


Notes:

 You must have only one VMware Workstation installed at a time. You must uninstall
previous version of VMware Workstation before installing a new version.
 If the installer reports an error when you run it, you must verify the download. For
more information, see Verifying the integrity of downloaded installer files (1537).

To install VMware Workstation on a Windows host:

1. Log in to the Windows host system as the Administrator user or as a user who is a
member of the local Administrators group.
2. Open the folder where the VMware Workstation installer was downloaded. The
default location is the Downloads folder for the user account on the Windows host.

Note: The installer file name is similar to [Link],


where xxxx-xxxx is the version and build numbers.

3. Right-click the installer and click Run as Administrator.


4. Select a setup option:
o Typical: Installs typical Workstation features. If the Integrated Virtual Debugger for
Visual Studio or Eclipse is present on the host system, the associated Workstation
plug-ins are installed.
o Custom: Lets you select which Workstation features to install and specify where to
install them. Select this option if you need to change the shared virtual machines
directory, modify the VMware Workstation Server port, or install the enhanced virtual
keyboard driver. The enhanced virtual keyboard driver provides better handling of
international keyboards and keyboards that have extra keys.

5. Follow the on-screen instructions to finish the installation.


6. Restart the host machine.

To install VMware Workstation on a Linux host:

Note: VMware Workstation for Linux is available as a .bundle download in the


VMware Download Center. The Linux bundle installer starts a GUI wizard on most
Linux distributions. In some Linux distributions, the bundle installer starts a
command-line wizard instead of a GUI wizard.

1. Log in to the Linux host with the user account that you plan to use with VMware
Workstation.
2. Open a terminal interface. For more information, see Opening a command or shell
prompt (1003892).
3. Change to root. For example:

su root

Note: The command that you use depends on your Linux distribution and
configuration.

4. Change directories to the directory that contains the VMware Workstation bundle
installer file. The default location is the Download directory.
5. Run the appropriate Workstation installer file for the host system.

For example:

sh [Link] [--option]

Where:
o xxxx-xxxx is the version and build numbers
o architecture is i386 or x86_64
o option is a command line option.

This table describes the command line options:

Option Description

Opens the GUI-based VMware installer, which is the


--gtk
default option.

--console Use the terminal for installation.

Use this option to customize the locations of the


--custom installation directories and set the hard limit for the
number of open file descriptors.

Shows installation questions that have not answered


--regular
before or are required. This is the default option.

--ignore-errors Allows the installation to continue even if there is an


error in one of the installer scripts. Because the
or section that has an error does not complete, the
component might not be properly configured.
-I

Shows the license agreement only and then proceeds


--required
to install Workstation

6. Accept the license agreement.

Note: If you are using the --console option or installing VMware Workstation on a
Linux host that does not support the GUI wizard, press Enter to scroll through and
read the license agreement or type q to skip to the yes/no prompt.

7. Follow the on-screen instructions or prompts to finish the installation.


8. Restart the Linux host.
After installation
On Windows host systems:

 The installer creates a desktop shortcut, a quick launch shortcut, or a combination of


these options in addition to a Start Menu item.
 To start VMware Workstation on a Windows host system, select Start > Programs >
VMware Workstation.

On Linux host systems:

 VMware Workstation can be started from the command line on all Linux distributions.
 On some Linux distributions, VMware Workstation can be started in the GUI from the
System Tools menu under Applications.
 To start VMware Workstation on a Linux host system from the command line, run the
vmware & command in a terminal window. For more information, see Opening a
command or shell prompt (1003892).

For example:

/usr/bin/vmware &

When you start the Workstation for the first time, Workstation prompts you to accept
the End User License Agreement. After you start Workstation, the Workstation
window opens.

DevStack Installation

DevStack is a series of extensible scripts used to quickly bring up a complete


OpenStack environment based on the latest versions of everything from git master. It
is used interactively as a development environment and as the basis for much of the
OpenStack project’s functional testing.

The source is available at [Link]

Warning
DevStack will make substantial changes to your system during installation. Only run
DevStack on servers or virtual machines that are dedicated to this purpose.
Install Linux:
Start with a clean and minimal install of a Linux system. DevStack attempts to support
the two latest LTS releases of Ubuntu, the latest/current Fedora version,
CentOS/RHEL 8 and OpenSUSE.
If you do not have a preference, Ubuntu 18.04 (Bionic Beaver) is the most tested, and
will probably go the smoothest.
To download Ubuntu 18.04:
[Link]
Add Stack User (optional)
DevStack should be run as a non-root user with sudo enabled (standard logins to cloud
images such as “ubuntu” or “cloud-user” are usually fine).
If you are not using a cloud image, you can create a separate stack user to run
DevStack with

$ sudo useradd -s /bin/bash -d /opt/stack -m stack

Since this user will be making many changes to your system, it should have sudo
privileges:

$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack


$ sudo su - stack

Download DevStack

$ git clone [Link]


$ cd devstack

The devstack repo contains a script that installs OpenStack and templates for
configuration files.
Create a [Link]
Create a [Link] file with four passwords preset at the root of the devstack git repo.

[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
This is the minimum required config to get started with DevStack.
$ vim [Link]
If vim is not installed, you can install it via:
Sudo apt install vim
Note
There is a sample [Link] file under the samples directory in the devstack
repository.

Start the install


$ ./[Link]
This will take a 15 - 20 minutes, largely depending on the speed of your internet
connection. Many git trees and packages will be installed during this process.
Troubleshooting Errors!!!
1- Permissionerror: Permission denied

To resolve this issue


Execute this command
$ sudo chown –R stack:stack /opt/stack
2- ERROR: cannot uninstall ‘simplejason’

To resolve this issue


Execute this command
$ sudo apt purge python3-simplejson
3- KeyError: ‘XDG_SESSION_TYPE’

To resolve this issue


Execute this command
$ export XDG_SESSION_TYPE=wayland
Installation Succeeded:
If the installation succeed you will get this message:

To access to Devstack dashboard you will open the horizon web link via your browser
and use the credentials previously configured:admin/your password

Profit!
You now have a working DevStack! Congrats!
Your devstack will have installed keystone, glance, nova, placement, cinder, neutron,
and horizon. Floating IPs will be available, guests have access to the external world.
You can access horizon to experience the web interface to OpenStack, and manage
vms, networks, volumes, and images from there.
You can source openrc in your shell, and then use the openstack command line tool to
manage your devstack.
You can cd /opt/stack/tempest and run tempest tests that have been configured to work
with your devstack.

You can make code changes to OpenStack and validate them.

Common questions

Powered by AI

To download VMware Workstation, navigate to the VMware Workstation Download Center, select the appropriate version for your OS, and follow the prompts to log in and complete your profile. Then, agree to the EULA and proceed with the download . To install on a Windows host, log in as an Administrator, run the installer as an Administrator, choose typical or custom setup, and follow instructions to complete the installation. Restarting the host is required . For Linux, log in as a user with sudo privileges, change to root, navigate to the bundle's directory, and run the installer using the 'sh' command with appropriate options such as '--gtk' for GUI or '--console' for terminal-based installation. After finishing, restart the host .

DevStack should be run only on servers or virtual machines dedicated to this purpose, as it substantially changes the system during installation . A clean and minimal Linux install is necessary, with Ubuntu 18.04 being the most tested version for smoother operations . DevStack should be initiated by a non-root user with sudo privileges, potentially requiring the creation of a stack user with specific permissions .

DevStack facilitates testing and validation of OpenStack code changes by providing a live development environment with necessary components like keystone and nova pre-configured . Developers can integrate and validate changes by accessing the OpenStack Horizon dashboard or using command-line tools after sourcing 'openrc'. Additional configurations like tempest tests within '/opt/stack/tempest' allow thorough testing aligned with the specific DevStack setup .

A user can customize the VMware Workstation installation on Linux by using command line options during installation. The '--gtk' option opens the default GUI-based installer, whereas '--console' uses the terminal. The '--custom' option allows specifying installation directories and setting a hard limit for open file descriptors. The '--regular' option shows only unanswered or required installation questions. '--ignore-errors' lets installation proceed despite errors in installer scripts, although affected components might not be correctly configured. '--required' shows the license agreement only before proceeding with installation .

On Windows hosts, VMware Workstation can be started via desktop shortcuts, quick launch shortcuts, or the Start Menu under Programs . On Linux, it can be initiated from the command line with the command 'vmware &', or from the GUI System Tools menu if supported by the distribution .

To set up a proper user environment for DevStack, create a stack user with sudo privileges. This involves using the command: 'sudo useradd -s /bin/bash -d /opt/stack -m stack'. Grant this user sudo privileges without a password by appending 'stack ALL=(ALL) NOPASSWD: ALL' to the sudoers.d file using a command like 'echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack'. Log in with this user to perform installation tasks .

To resolve a 'PermissionError: Permission denied', adjust ownership with 'sudo chown -R stack:stack /opt/stack'. For an 'ERROR: cannot uninstall simplejson', use 'sudo apt purge python3-simplejson'. In case of 'KeyError: XDG_SESSION_TYPE', set the variable using 'export XDG_SESSION_TYPE=wayland' . These steps aim to correct user permissions, resolve package conflicts, and set necessary environment variables for successful installation.

VMware Workstation enhances compatibility with international keyboards through the installation of an enhanced virtual keyboard driver. This driver, included when selecting a Custom setup option during installation, provides improved handling for keyboards with extra keys and various international layouts .

Having a My VMware profile is crucial for downloading VMware Workstation as it provides access to downloading, profile management, and support resources. Users must log in, verify that their profile is complete, and enter all mandatory information. This ensures seamless download experiences and complies with VMware procedures .

DevStack helps bring up a complete OpenStack environment using scripts that update to the latest master git versions, serving as a development environment and basis for OpenStack's functional testing . It installs several components essential for OpenStack operations, including keystone, glance, nova, placement, cinder, neutron, and horizon, thereby enabling management of VMs, networks, volumes, and images .

You might also like