Google Authenticator with WordPress

Google Authenticator is an open-source software based two-step authentication token developed by Google. The Authenticator provides a six digit number users must provide in addition to their username and password to log in to Google services.
Source: http://en.wikipedia.org/wiki/Google_Authenticator

The usage of Google Authenticator with WordPress is described in detail at http://henrik.schack.dk/google-authenticator-for-wordpress.

Build images using VeeWee

VeeWee is an utility for automatically preparing images for use in IAAS environments like OpenStack. VeeWee supports a lot of distributions, for example Fedora, openSUSE, CentOS or Debian.

Before starting make sure that Libvirt and KVM are correctly working. The working directory for the following instructions, tested on Fedora 18, is /mnt/veewee/. There I mounted an ext4 filesystem with 30 GByte capacity.

First stop the IPv4 firewall and restart libvirtd afterwards.

service iptables stop
service libvirtd restart

 

Next create a storage pool. Write the following definition to the file /tmp/pool.xml and create the storage pool with virsh pool-create /tmp/pool.xml. The directory /mnt/veewee/images should exist.

<pool type="dir">
  <name>images</name>
  <target>
     <path>/mnt/veewee/images/</path>
    <format type='qcow2'/>
  </target>
</pool>

 

Then install necessary packages and continue with the installation of RVM and VeeWee.

yum install libxslt1-devel git patch make \
     bzip2 autoconf automake gcc-c++ readline-devel \
     libyaml-devel libffi-devel openssl-devel bison \
     libtool libvirt-devel
curl -o rvm-installer https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer
sh rvm-installer
source /etc/profile.d/rvm.sh
rvm install 1.9.2
git clone https://github.com/jedi4ever/veewee.git
cd veewee
gem install bundler
bundle install --without restrictions

 

Now it is possible to define, customize and build images.

veewee kvm define Fedora-18-x86_64 Fedora-18-x86_64
veewee kvm build Fedora-18-x86_64 --workdir=/mnt/veewee/veewee
veewee kvm halt Fedora-18-x86_64

For customization modify the files in definitions/Fedora-18-x86_64/. After the build completed it is also possible to login with SSH.

On my system to get it running I had to change sda to vda in the file ks.cfg. Also I changed the used mirror in definitions.rb.

When the build finished first stop the instance and then publish the image with python-glanceclient on the image service.

glance image-create --container-format bare \
                    --disk-format qcow2 \
                    --is-public True \
                    --name Fedora-18-x86_64 \
< /mnt/veewee/images/Fedora-18-x86_64.raw

 

For further details have a look at the following pages.

Usage of nested virtualization inside instances

If you want to use nested virtualization inside your instances you should try the parameter libvirt_cpu_mode=host-passthrough in the configuration of your compute nodes.

While using libvirt_cpu_mode=host-model I saw the required CPU flag svm inside the instances. But loading the processor specific KVM module failed with the following messages in the kernel ring buffer.

[  664.051540] has_svm: can't execute cpuid_8000000a
[  664.051553] kvm: no hardware support

After changing the parameter libvirt_cpu_mode to host-passthrough it was possible to load the processor specific KVM module and to use KVM inside the instances.

[    1.585709] systemd[1]: Detected virtualization 'kvm'.
[    5.856891] kvm: Nested Virtualization enabled
[    5.856891] kvm: Nested Paging enabled