210 likes | 472 Views
Overview. Review of OpenVZFeaturesResource management InstallationVM creation VM managementCheckpointingMigrationLive migration (online)Offline migration. OpenVZ features. Open Source project of SWSoft's VirtuozzoRun 10s, even 100s, of Linux* VMs on one box (~30 VMs per 1GB of RAM)Support
E N D
1. OpenVZ Live Migration
Jim Owens
2. Overview Review of OpenVZ
Features
Resource management
Installation
VM creation
VM management
Checkpointing
Migration
Live migration (online)
Offline migration
3. OpenVZ features Open Source project of SWSoft’s Virtuozzo
Run 10s, even 100s, of Linux* VMs on one box (~30 VMs per 1GB of RAM)
Supports up to 64 CPUs and 64GB RAM
Low virtualization overhead (1-3%)
Change VM resource allocations on the fly
Checkpointing
Live migration
*Fedora, CentOS, Gentoo, SUSE, Debian, Ubuntu,
Slackware, etc.
4. Resource management Two-level disk quotas (disk blocks and inodes)
Per server, per user and per group within guests
Two-level CPU scheduler
Configurable allocation per guest, standard Linux scheduler inside guests
User bean counters
~20 configurable parameters
Five associated levels: held, maxheld, barrier, limit, failcnt
/proc/user_beancounters
5. Installation Install bare-bones Linux distro on hardware node (preferably Fedora, CentOS, RHEL)
Set up OpenVZ yum repository
Download & install OpenVZ kernel
Stable version 2.6.9
Test version 2.6.18
FC5 and SUSE 10 version 2.6.16
Update /etc/sysctl.conf
Reboot into new kernel
Install tools: vzctl, vzpkg, vzquota
Start vz service
6. OS template cache preparation Install one or more OS templates
Metadata
Package lists, repo location(s), scripts, keys, etc.
Repocache
Stores local copy of packages (can be faster)
Precreated OS template cache
Not recommended, as template cache cannot be updated
http://openvz.org/download/template
7. VM creation # vzlist –a
# vzpkgls
# vzctl create 101 –ostemplate fedora-core-5-i386-default
# vzctl set 101 --hostname waldo.tux.net -–save
# vzctl set 101 --ipadd 192.168.10.101 –-save
# vzctl set 101 --nameserver 192.168.10.1 -–save
# vzctl start 101
# vzctl enter 101
# [root@waldo /]# exit
exited from VE 101
# vzctl set 101 –userpasswd root:password
8. VM management