After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 91 of 317

Chapter 4 81 # Create and attach second Hard Drive VBoxManage createhd --filename openstack2-disk2.vdi --size 20480 VBoxManage storageattach openstack2 --storagectl "SATA Controller" --port 1 --device 0 --type hdd --medium openstack2-disk2.vdi 2. Do this by selecting the OpenStack2 virtual machine and then clicking on the Start button, or by running the following command: VBoxManage startvm openstack2 --type gui 3. This will take us through a standard text-based Ubuntu installer, as this is the server edition. Choose appropriate settings for your region, and choose Eth0 as the main interface (this is the first interface in your VirtualBox VM settings—our NATed interface). When prompted for software selection, just choose OpenSSH Server and continue. For the user, create a user named openstack with the password openstack. This will help in using this book to troubleshoot your own environment. 4. Once installed, log in as the user openstack. 5. We can now configure networking on our OpenStack Storage node. To do this, we will create a static address on the second interface, eth1, which will be the public interface. To do this, edit the /etc/network/interfaces file with the following contents: # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp # Public Interface auto eth1 iface eth1 inet static address 172.16.0.2 netmask 255.255.0.0 network 172.16.0.0 broadcast 172.16.255.255 6. Save the file and bring up the interface with the following command: sudo ifup eth1 Congratulations! We have successfully created the VirtualBox virtual machine running Ubuntu, which is able to run OpenStack Storage. www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook