...
Code Block |
---|
$ /etc/init.d/apparmor stop $ /etc/init.d/apparmor teardown $ update-rc.d -f apparmor remove |
Reboot
Install barometer build-essentials:
...
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 |
connect Connect to the console to complete the installation process.
...
Code Block |
---|
$ sudo make -j install |
...
Install collectd as a service:
Code Block |
---|
sudo mv systemd.collectd.service collectd.service sudo chmod +x collectd.service vi collectd.service |
...
Edit the collectd.service script
...
Guest
OS: Ubuntu 16.04.2 LTS
Install collectd and stress
Code Block |
---|
$ sudo apt install collectd stress |
...
Code Block |
---|
Hostname "ubuntu_vm" <LoadPlugin cpu> Interval 1 </LoadPlugin> LoadPlugin network <Plugin cpu> ReportByCpu true ReportByState false ValuesPercentage false </Plugin> <Plugin network> # # client setup: Server "<HOST IP>" "28597" <Server "<HOST IP>" "28597"> </Server> </Plugin> Plugin> |