By default ubuntu 14.04 LTS, libvirt package doesn’t support VMware ESXi. By making some tweaks to libvirt’s debian source you can have working libvirt which supports ESXi along with the trivial ones.
apt-get source -d libvirt
sudo apt-get build-dep libvirt fakeroot
dpkg-source -x libvirt*dsc
Change "--without-esx" to "--with-esx"
Change "--without-libssh2" to "--with-libssh2"
sudo apt-get install libcurl4-gnutls-dev
dpkg-buildpackage -us -uc -b -rfakeroot
sudo dpkg -i *.deb
After being gone through a lot of difficulties in successfully configuring Cannonicals MAAS server to use VMware ESX power type, i thought it is worth writing the solution which i found. Follow the steps below
- Install VMware ESXi on a Bare metal server and create a virtual machine for MAAS with 2 Nics in which one is attached to External Provider Network(for internet connectivity) and the other is for MAAS vms Network.
- Give a static ip on 2nd Nic and configure the network through MAAS GUI.
- Now Create virtual machines(with pxe boot enabled) with 2 Nics one is attached to External Provider Network and the other to MAAS Network.
- Turn on the newly created virtual machines, so they will be appeared on MAAS UI with a random name given by MAAS server.
- Install libvirt-bin with ESXi enabled on MAAS server by following instructions given in my github repository https://github.com/DilipRenkila/libvirt-esxi
- Power Configuration.
- power type : virsh (Virtual systems)
- power address : esx://firstname.lastname@example.org?no_verify=1
- power id : name of virtual machine
- password : esxi root password (necessary)
Everybody wanna try amazing technology lxd with Openstack but i agree that there is no detail guide to it. So i decided to share my experience.
1) First install stable ppa of lxd
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install lxd
2) Create a newgroup called lxd
3) For good performance it better to have /var/lib/lxd on lvm (or) zfs.I reccommend to use LVM as this is a basic installation.
sudo init lxd
4) Clone the devstack repository in /opt/stack directory
git clone https://git.openstack.org/openstack-dev/devstack /opt/stack/devstack
5) Create a file named local.conf in /opt/stack/devstack directory and copy the following
enable_plugin nova-lxd https://github.com/lxc/nova-lxd
6) run stack.sh
7) If you encounter any issues try by commenting out all lines in /opt/stack/nova-lxd/test-requirements.txt
sudo nano /opt/stack/nova-lxd/test-requirements.txt
## check whether the requirements in that file are met (or) not
8) run unstack.sh
9) Then Retry with stack.sh
10) In Devstack try uploading root.tar.gz images with disk format as RAW.