Libvirt with support for VMware ESXi

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.

mkdir libvirt
cd libvirt
apt-get source -d libvirt
sudo apt-get build-dep libvirt fakeroot
dpkg-source -x libvirt*dsc
nano libvirt*/debian/rules
        Change "--without-esx" to "--with-esx"
        Change "--without-libssh2" to "--with-libssh2"
cd libvirt*
sudo apt-get install libcurl4-gnutls-dev
dpkg-buildpackage -us -uc -b -rfakeroot
cd ..
sudo dpkg -i *.deb
Advertisements

MAAS on VMware ESXi

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

  1. 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.
  2. Give a static ip on 2nd Nic and configure the network through MAAS GUI.
  3. Now Create virtual machines(with pxe boot enabled)  with 2 Nics one is attached to External Provider Network and the other to MAAS Network.
  4. Turn on the newly created virtual machines, so they will be appeared on MAAS UI with a random name given by MAAS server.
  5. Install libvirt-bin with ESXi enabled on MAAS server by following instructions given in my github repository https://github.com/DilipRenkila/libvirt-esxi
  6. Power Configuration.

maas

  • power type : virsh (Virtual systems)
  • power address : esx://root@142.4.219.161?no_verify=1
  • power id : name of virtual machine
  • password : esxi root password (necessary)

Devstack with LXD

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

newgrp 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

[[local|localrc]]
enable_plugin nova-lxd https://github.com/lxc/nova-lxd

6) run stack.sh

./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

./unstack.sh

9) Then Retry with stack.sh

./stack.sh

10) In Devstack try uploading root.tar.gz images with disk format as RAW.