Host:
OS: Ubuntu 16.04
Disable apparmor
Code Block |
---|
$ /etc/init.d/apparmor stop
$ /etc/init.d/apparmor teardown
$ update-rc.d -f apparmor remove |
Install barometer build-essentials:
Code Block |
---|
$ git clone https://gerrit.opnfv.org/gerrit/barometer $ ./src/install_build_deps.sh |
Install virtualization pacakges packages and other required packages:
Code Block |
---|
$ sudo apt install qemu-kvm libvirt-bin virtinst virt-manager screen |
...
Code Block |
---|
sudo adduser $USER libvirtd |
...
Create a dir to store ISOs
Code Block |
---|
$ sudo mkdir /usr/local/src/images/ $ cd /usr/local/src/images/ $ sudo -E wget http://releases.ubuntu.com/16.04/ubuntu-16.04.2-server-i386.iso |
...
Ceate a Test VM
Code Block |
---|
$ sudo virt-install -n test -r 256 --disk path=/var/lib/libvirt/images/test.img,bus=virtio,size=4 -c /usr/local/src/images/ubuntu-16.04.2-server-i386.iso --network network=default,model=virtio --graphics vnc,listen=0.0.0.0 --noautoconsole -v |
...
Clone the latest libvirt code, build and install collectd:
Code Block |
---|
git$ git clone https://github.com/maryamtahhan/collectd.git mt_collectd $ cd mt_collectd $ ./build.sh $ ./configure |
Check that the virt plugin is configured:
...
Install collectd:
Code Block |
---|
sudo$ sudo make -j install |
Install collectd as a service:
...