Fixes for Sydney. Removed re-stacking instructions. Gitreview set up.
Change-Id: Idb90f9a7cf79a0cd16622a00b3c02279b4638801
This commit is contained in:
parent
db420899e2
commit
4ec42ceff3
5
.gitreview
Normal file
5
.gitreview
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[gerrit]
|
||||||
|
host=review.openstack.org
|
||||||
|
port=29418
|
||||||
|
project=openstack/upstream-institute-virtual-environment.git
|
||||||
|
|
20
README.md
20
README.md
@ -1,7 +1,7 @@
|
|||||||
OpenStack Upstream Institute Virtual Environment
|
OpenStack Upstream Institute Virtual Environment
|
||||||
================================================
|
================================================
|
||||||
|
|
||||||
<h2 align=center>bit.ly/<a href=http://bit.ly/training-vm>training-vm</a></h2>
|
<h2 align=center>bit.ly/<a href=http://bit.ly/upstream-institute-vm>upstream-institute-vm</a></h2>
|
||||||
|
|
||||||
Instructions
|
Instructions
|
||||||
------------
|
------------
|
||||||
@ -38,13 +38,7 @@ Instructions
|
|||||||
Getting around in the VM
|
Getting around in the VM
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
1. Open a terminal and start devstack
|
1. Explore the environment. The four main software you will be using from the
|
||||||
``` bash
|
|
||||||
/opt/devstack/stack.sh && optimize-memory
|
|
||||||
```
|
|
||||||
This step takes about 10 minutes.
|
|
||||||
|
|
||||||
2. Explore the environment. The four main software you will be using from the
|
|
||||||
desktop during the training are:
|
desktop during the training are:
|
||||||
* **Firefox** web browser
|
* **Firefox** web browser
|
||||||
* **Xfce4-terminal** terminal emulator
|
* **Xfce4-terminal** terminal emulator
|
||||||
@ -53,19 +47,19 @@ Getting around in the VM
|
|||||||
> please make sure that you replace the default user `ubuntu` upon first
|
> please make sure that you replace the default user `ubuntu` upon first
|
||||||
> start before logging in to Freenode channels.
|
> start before logging in to Freenode channels.
|
||||||
|
|
||||||
3. When `stack.sh` finished running, you can open your [Horizon Dashboard]
|
2. When `stack.sh` has finished running, you can open your [Horizon Dashboard]
|
||||||
(http://localhost/) or on VirtualBox using the **DevStack** bookmark
|
(http://localhost/) or on VirtualBox using the **DevStack** bookmark
|
||||||
|
|
||||||
* **Login**: `demo`
|
* **Login**: `demo`
|
||||||
* **Password**: `openstack`
|
* **Password**: `openstack`
|
||||||
|
|
||||||
4. Select the `demo` project
|
3. Select the `demo` project
|
||||||
|
|
||||||
5. Start a VM. Use a tiny flavor. A CirrOS image is already set up by devstack
|
4. Start a VM. Use a tiny flavor. A CirrOS image is already set up by devstack
|
||||||
|
|
||||||
6. Assign a floating IP
|
5. Assign a floating IP
|
||||||
|
|
||||||
7. Enable SSH and ICMP ports on the security groups
|
6. Enable SSH and ICMP ports on the security groups
|
||||||
|
|
||||||
[Horizon Dashboard]: http://localhost/
|
[Horizon Dashboard]: http://localhost/
|
||||||
|
|
||||||
|
@ -26,15 +26,6 @@ sudo apt autoremove --purge -y humanity-icon-theme snapd lxc.* lxd.*
|
|||||||
# Empty packages cache
|
# Empty packages cache
|
||||||
sudo apt clean
|
sudo apt clean
|
||||||
sudo apt autoclean
|
sudo apt autoclean
|
||||||
sudo rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Remove mysql databases (will be recreated by stack.sh
|
|
||||||
for db in cinder glance keystone neutron nova nova_api nova_cell0; do
|
|
||||||
echo "drop database $db;" | mysql -uroot -popenstack
|
|
||||||
done
|
|
||||||
|
|
||||||
# Remove log files
|
|
||||||
sudo rm -rf /var/log/*
|
|
||||||
|
|
||||||
# Zero out unused space
|
# Zero out unused space
|
||||||
dd if=/dev/zero of=~/ZERO bs=1M status=progress
|
dd if=/dev/zero of=~/ZERO bs=1M status=progress
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
VDISKMANAGER_DOWNLOAD='https://kb.vmware.com/selfservice/viewAttachment.do?attachID=1023856-vdiskmanager-linux.7.0.1.zip&documentID=1023856'
|
VDISKMANAGER_DOWNLOAD='https://kb.vmware.com/selfservice/viewAttachment.do?attachID=1023856-vdiskmanager-linux.7.0.1.zip&documentID=1023856'
|
||||||
|
|
||||||
vagrant up
|
vagrant up
|
||||||
|
Binary file not shown.
@ -39,7 +39,7 @@ user_pref("browser.search.region", "CH");
|
|||||||
user_pref("browser.sessionstore.upgradeBackup.latestBuildID", "20160919213721");
|
user_pref("browser.sessionstore.upgradeBackup.latestBuildID", "20160919213721");
|
||||||
user_pref("browser.slowStartup.averageTime", 2435);
|
user_pref("browser.slowStartup.averageTime", 2435);
|
||||||
user_pref("browser.slowStartup.samples", 2);
|
user_pref("browser.slowStartup.samples", 2);
|
||||||
user_pref("browser.startup.homepage", "https://github.com/kmARC/openstack-training-virtual-environment/blob/master/README.md#getting-around-in-the-vm");
|
user_pref("browser.startup.homepage", "http://bit.ly/upstream-institute-vm");
|
||||||
user_pref("browser.startup.homepage_override.buildID", "20160919213721");
|
user_pref("browser.startup.homepage_override.buildID", "20160919213721");
|
||||||
user_pref("browser.startup.homepage_override.mstone", "49.0");
|
user_pref("browser.startup.homepage_override.mstone", "49.0");
|
||||||
user_pref("browser.tabs.remote.autostart.2", true);
|
user_pref("browser.tabs.remote.autostart.2", true);
|
@ -4,6 +4,6 @@ StartWithLastProfile=1
|
|||||||
[Profile0]
|
[Profile0]
|
||||||
Name=default
|
Name=default
|
||||||
IsRelative=1
|
IsRelative=1
|
||||||
Path=yncyd31n.default
|
Path=profile
|
||||||
Default=1
|
Default=1
|
||||||
|
|
||||||
|
@ -7,13 +7,14 @@ export DEBIAN_FRONTEND=noninteractive
|
|||||||
REPO=$(dirname "$(readlink -f "$0")")/
|
REPO=$(dirname "$(readlink -f "$0")")/
|
||||||
|
|
||||||
# Copy configs
|
# Copy configs
|
||||||
sudo cp -ar "$REPO/files/etc" /
|
sudo cp -r "$REPO/files/etc" /
|
||||||
sudo cp -ar "$REPO/files/home" /
|
sudo cp -r "$REPO/files/home" /
|
||||||
sudo chown -R "$USER:$GROUP" /home/
|
sudo chown -R "$USER:$GROUP" /home/
|
||||||
|
|
||||||
# Copy scripts
|
# Copy scripts
|
||||||
sudo cp -ar "$REPO/files/usr" /
|
sudo cp -r "$REPO/files/usr" /
|
||||||
|
|
||||||
|
# Update and upgrade
|
||||||
sudo sed -i "s@http://archive.ubuntu.com@$APT_MIRROR@g" /etc/apt/sources.list
|
sudo sed -i "s@http://archive.ubuntu.com@$APT_MIRROR@g" /etc/apt/sources.list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt dist-upgrade -y
|
sudo apt dist-upgrade -y
|
||||||
|
@ -8,7 +8,7 @@ sudo chown -R "$USER:$GROUP" /opt/devstack
|
|||||||
|
|
||||||
git clone --depth=1 https://git.openstack.org/openstack-dev/devstack \
|
git clone --depth=1 https://git.openstack.org/openstack-dev/devstack \
|
||||||
/opt/devstack
|
/opt/devstack
|
||||||
cp -ar "$REPO/files/opt" /
|
cp -r "$REPO/files/opt" /
|
||||||
|
|
||||||
/opt/devstack/stack.sh
|
/opt/devstack/stack.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user