Virtualization is very common and widely used in many data-centers nowadays. Easy management and administration of virtual machines and hosts is a crucial part of Virtualization. Currently there are automated virtual machine management systems that are in use. But the tools lack consideration of the needs of organizations with dynamically changing virtual machine environment, like Universities and Collages. They are also limited to specific virtualization platforms and don’t have host management capability. In this thesis an entirely new approach of virtual machine management based on mathematics Set-theory, Logic and Statistics is suggested. This approach provides a new virtual machine naming method that creates relationships between virtual machines. This makes the virtual machineand Host management automation simple, flexible and powerful.
The suggested approach is implemented as a tool named buna using Perl programming language and libvirt management tools: virsh, virt-clone and virt-top. Buna has two major parts: automationt and plugin part. The automation part enables actions like create, start/stop and delete virtual machines; upgrade CPU and Memory and attach/detach devices on mass number of virtual machines. The plugin part controls host resources and status of virtual machines based on rules, where rules have conditions and actions those are set by system administrators. This avoids the need to perform routine tasks for administrators and it makes the virtual machine and host management easy and effective. In addition, critical system level taskslike load-balancing and power-saving can be done by giving organized rules.
buna is tested on an environment with three hosts running KVM/QEMU virtualization system. It successfully performed the automatic virtual machine management actions between the hosts. It’s also given some rules to test its ability to perform actions based on resource usages of virtual machines.