Skip to content

Instantly share code, notes, and snippets.

@mmartial
Last active April 2, 2021 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mmartial/8003e7e67df7bfc747198580d8ad2808 to your computer and use it in GitHub Desktop.
Save mmartial/8003e7e67df7bfc747198580d8ad2808 to your computer and use it in GitHub Desktop.

microstack + microk8s

Problem: with both microk8s and microstack installed, the k8s' nginx server is started on the default port (8080)

Solution: Changing the default port for Horizon to 5001

sudo snap set microstack config.network.ports.dashboard=5001
sudo snap restart microstack

Additional notes: MySQL and RabbitMQ ports can also be changed similarly

config.network.ports.mysql
config.network.ports.rabbit

microstack: extend the minimum size for Image import from the Horizon UI

Edit /var/snap/microstack/common/etc/nginx/snap/nginx.conf

Add in the http section: client_max_body_size 2G; (adapt the value to what you think you will need). Restart microstack for changes to take effect.

microstack + Virtualbox (used as a provider for Vagrant)

Problem: microstack uses kvm as its default for libvirt which sadly prevents VirtualBox from running

Solution: Disable kvm in the 5.8 (Ubuntu 20.04) kernel + Change microstack to use qemu

Add to /etc/modprobe.d/blacklist.conf

blacklist kvm_intel
blacklist kvm_amd
blacklist kvm

Edit the /var/snap/microstack/common/etc/nova/nova.conf.d/hypervisor.conf file and replace the [libvirt] section content by

virt_type = qemu
cpu_mode = host-model

nova can be manually restarted using systemctl restart snap.microstack.nova-compute.service

Reboot recommended for the blacklist to take effect.

Note: Truly not my preferred solution but a workaround for the time being

Sources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment