multipass
Multipass¶
$ cat devstack-cloud-config.yaml
#cloud-config
users:
- default
- name: stack
lock_passwd: False
sudo: ["ALL=(ALL) NOPASSWD:ALL\nDefaults:stack !requiretty"]
shell: /bin/bash
write_files:
- content: |
#!/bin/sh
DEBIAN_FRONTEND=noninteractive sudo apt-get -qqy update || sudo yum update -qy
DEBIAN_FRONTEND=noninteractive sudo apt-get install -qqy git || sudo yum install -qy git
DEBIAN_FRONTEND=noninteractive sudo apt-get install -qqy net-tools || sudo yum install -qy net-tools
sudo chown stack:stack /home/stack
cd /home/stack
git clone https://opendev.org/openstack/devstack
cd devstack
echo '[[local|localrc]]' > local.conf
echo ADMIN_PASSWORD=password >> local.conf
echo DATABASE_PASSWORD=password >> local.conf
echo RABBIT_PASSWORD=password >> local.conf
echo SERVICE_PASSWORD=password >> local.conf
echo USE_SSL=true >> local.conf
echo ENABLED_SERVICES+=,tls-proxy >> local.conf
./stack.sh
path: /home/stack/deploy.sh
permissions: 0755
$ multipass launch jammy --name devstack-22 --verbose --cpus 8 --memory 32G --disk 200G --cloud-init devstack-cloud-config.yaml
Activation du SSL¶
cf https://rcritten.wordpress.com/2014/11/12/enabling-ssh-or-tls-proxy-in-devstack/
# To enable native SSL, add this to your local.conf
USE_SSL=TRUE
To enable via TLS Proxy (stud in this case), add this to your local.conf
ENABLED_SERVICES+=,tls-proxy
Troubleshooting¶
MacOS¶
$ multipass launch jammy -n devstack --cloud-init cloud-config.yaml
launch failed: cannot connect to the multipass socket
cf https://github.com/canonical/multipass/issues/3257
Il faut désinstaller la version obsolete de multipass
Apple Silicon¶
"nova.exception.RescheduledException: Build of instance 62b9dbde-caf3-4870-95ca-fa57701ca436 was re-scheduled: unsupported configuration: CPU mode 'host-passthrough' for aarch64 qemu domain on aarch64 host is not supported by hypervisor"
Warning
La Nested Virtualization n'est supportée que sur les Mac M3+