1. Overview
To make it possible to enhance the virtualization type support in DTC-Xen (eg: support for more virtualization types), we need:
- Make the sh scripts support more bootstrapping types
- Add support for fsck / start / stop / shutdown for the new virtualization types
- Add support for monitoring for the new virtualization types
2. Planned solutions
| Virtualization type
| CPU Monitoring
| I/O Monitoring
| Network Monitoring
| Start / Stop
| Create VM
| erase VM
|
| VZ
| /proc/user_beancounters
| /proc/user_beancounters
| IP tables
| vzctl start / stop
| [- vzctl create 11 --ostemplate centos-5-x86_64
vzctl set 11 --quotaugidlimit 150 --numproc 400:400 --kmemsize 16384000:18022400 --privvmpages 262144:292912 --hostname=forums.nixcraft.com --diskspace 2000000:2000000 --shmpages 16384:16384 --ipadd 75.126.168.152 --nameserver 10.0.1.11 --nameserver 10.0.1.12 --save
vzctl set 11 --onboot yes --save
vzctl set 11 --userpasswd root:pass -]
|
|
| KVM
| ? /proc ???
|
|
|
|
|
|
| Virtualbox
| VBoxManage metrics list <vmname>|<uuid>
|
| VBoxManage modifyvm <vmname>|<uuid> -nictrace1 on -nictracefile1 /tmp/nictraffic.log
| [- start: VBoxManage startvm <uuid>|<name>
stop: VBoxManage controlvm <uuid>|<name>
pause|resume|reset|poweroff| acpipowerbutton|acpisleepbutton -]
| [- $ VBoxManage createvm --name "Debian Lenny Server" --register
VBoxManage modifyvm "Debian Lenny Server" --memory 256 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0
VBoxManage createhd --filename Debian_Lenny_Server.vdi --size 10000 --register
VBoxManage storagectl "Debian Lenny Server" --name "IDE Controller" --add ide
VBoxManage storageattach "Debian Lenny Server" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium Debian_Lenny_Server.vdi
VBoxManage storageattach "Debian Lenny Server" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /home/debian-500-i386-netinst.iso -]
|
|
VZ Templates: There are Open VZ templates precreated in http://download.openvz.org/template/precreated/