Issue link: https://read.uberflip.com/i/1334488
Chapter 1 7 How to do it... To create our sandbox environment within VirtualBox, we will create a single virtual machine that allows us to run all of the OpenStack Compute services required to run cloud instances. This virtual machine will be configured with at least 2 GB RAM and 20 GB of hard drive space and have three network interfaces. The first will be a NAT interface that allows our virtual machine to connect to the network outside of VirtualBox to download packages, a second interface which will be the public interface of our OpenStack Compute host, and the third interface will be for our private network that OpenStack Compute uses for internal communication between different OpenStack Compute hosts. Carry out the following steps to create the virtual machine that will be used to run OpenStack Compute services: 1. In order to use a public and private network in our OpenStack environment, we first create these under VirtualBox. To do this, we can use the VirtualBox GUI by going to System Preferences then Network or use the VBoxManage command from our VirtualBox install and run the following commands in a shell on our computer to create two HostOnly interfaces, vboxnet0 and vboxnet1: # Public Network vboxnet0 (172.16.0.0/16) VBoxManage hostonlyif create VBoxManage hostonlyif ipconfig vboxnet0 --ip 172.16.0.254 --netmask 255.255.0.0 # Private Network vboxnet1 (10.0.0.0/8) VBoxManage hostonlyif create VBoxManage hostonlyif ipconfig vboxnet1 --ip 10.0.0.254 --netmask 255.0.0.0 2. In VirtualBox, create a new virtual machine with the following specifications: 1 CPU 2048 MB 20 GB Hard Disk Three Network Adapters, with the attached Ubuntu 12.04 ISO This can either be done using the VirtualBox New Virtual Machine Wizard or by running the following commands in a shell on our computer: # Create VirtualBox Machine VboxManage createvm --name openstack1 --ostype Ubuntu_64 --register VBoxManage modifyvm openstack1 --memory 2048 --nic1 nat --nic2 hostonly --hostonlyadapter2 vboxnet0 --nic3 hostonly --hostonlyadapter3 vboxnet1 www.it-ebooks.info

