
This patch makes it possible to build the Virtualbox-compatible OVA archive withouth using vagrant, virtualbox, or vmware-specific tools. Currently the created ova archive can be imported on VirtualBox and VMWare Player, the disk image itself can be used with libvirt (qemu-kvm). It contains all the drivers that enables using it as a desktop system with shared clipboard, auto-resizing display, etc. Since the diskimage-builder method installs in chroot, there is no way to pre-install devstack by running stack.sh. The image makes a best effort including all the deb and pip packages to make the first run of stack.sh as short as possible. Change-Id: Ie1f6e44db7e0af8d072cfdf16ace1ba3f749c246
61 lines
1.5 KiB
Bash
Executable File
61 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# # Install devstack
|
|
git clone --depth=1 https://git.openstack.org/openstack-dev/devstack \
|
|
/opt/devstack
|
|
mv /tmp/local.conf /opt/devstack/
|
|
|
|
pip install setuptools
|
|
pip install -r /tmp/requirements.txt
|
|
|
|
mkdir /opt/stack
|
|
|
|
pushd /opt/stack
|
|
for repo in $(cat /tmp/openstack_git_repos.txt); do
|
|
git clone --depth 1 $repo
|
|
done
|
|
popd
|
|
|
|
pushd /opt/devstack/files/
|
|
wget http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img
|
|
popd
|
|
|
|
# su ubuntu -c '/opt/devstack/stack.sh'
|
|
|
|
# # Enable OFFLINE mode for next invoking stack.sh to be faster
|
|
# su ubuntu -c 'sed -i "s/#OFFLINE=/OFFLINE=/" /opt/devstack/local.conf'
|
|
|
|
# Configure mysql to operate with less memory
|
|
# sudo tee -a /etc/mysql/my.cnf << EOF
|
|
# # Courtesy of Morgan Tocker
|
|
# # http://www.tocker.ca/2014/03/10/configuring-mysql-to-use-minimal-memory.html
|
|
# [mysqld]
|
|
# innodb_buffer_pool_size=5M
|
|
# innodb_log_buffer_size=256K
|
|
# query_cache_size=0
|
|
# key_buffer_size=8
|
|
# thread_cache_size=0
|
|
# host_cache_size=0
|
|
# innodb_ft_cache_size=1600000
|
|
# innodb_ft_total_cache_size=32000000
|
|
|
|
# per thread or per operation settings
|
|
# thread_stack=131072
|
|
# sort_buffer_size=32K
|
|
# read_buffer_size=8200
|
|
# read_rnd_buffer_size=8200
|
|
# max_heap_table_size=16K
|
|
# tmp_table_size=1K
|
|
# bulk_insert_buffer_size=0
|
|
# join_buffer_size=128
|
|
# net_buffer_length=1K
|
|
# innodb_sort_buffer_size=64K
|
|
|
|
#settings that relate to the binary log (if enabled)
|
|
# binlog_cache_size=4K
|
|
# binlog_stmt_cache_size=4K
|
|
# EOF
|
|
|
|
# sudo service mysql restart
|
|
|