http://habrahabr.ru/post/219295/
http://forum.vkurske.org/index.php?topic=8122.0
http://stormbp.blogspot.com/2012/05/proxmox-ve-2-cluster-with-drbd.html
qmrestore файл id
VM is locked
qm —unlock 100
INSTALL
4 vi /etc/hosts
5 echo «deb http://download.proxmox.com/debian wheezy pve-no-subscription» >> /etc/apt/sources.list
6 wget -O- «http://download.proxmox.com/debian/key.asc» | apt-key add —
7 apt-get update && apt-get dist-upgrade
8 apt-cache search pve-kernel
9 at-get install pve-kernel-3.10.0-5-pve pve-firmware
10 apt-get install pve-kernel-3.10.0-5-pve pve-firmware
11 shutdown -r now
12 uname -r
13 apt-get remove linux-image-amd64 linux-image-3.2.0-4-amd64 linux-base
14 update-grub
15 apt-cache seacrh proxmox-ve
16 apt-cache search proxmox-ve
17 apt-get install proxmox-ve-2.6.32
PROXMOX для OVZ!!!!!
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.vmbr0.proxy_arp = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
Настройка бакапа по ftp
apt-get install ftp-upload
============================================
cat /usr/local/bin/backup-hook.pl
#!/usr/bin/perl -w
# hook script for vzdump (—script option)
# quax@ 26.04.2011
use strict;
print «HOOK: » . join (‘ ‘, @ARGV) . «\n»;
# config
my $host = «xx.xx.xx.xx»;
my $user = «xxxxx»;
my $pass = «xxxxxxxxx»;
my $dir = «/xxx»;
my $phase = shift;
my $mode = shift; # stop/suspend/snapshot
my $vmid = shift;
my $vmtype = $ENV{VMTYPE}; # openvz/qemu
my $dumpdir = $ENV{DUMPDIR};
my $hostname = $ENV{HOSTNAME};
my $tarfile = $ENV{TARFILE};
my $logfile = $ENV{LOGFILE};
my %dispatch = (
«job-start» => \&nop,
«job-end» => \&nop,
«job-abort» => \&nop,
«backup-start» => \&nop,
«backup-end» => \&backup_end,
«backup-abort» => \&nop,
«log-end» => \&log_end,
«pre-stop» => \&nop,
«pre-restart» => \&nop,
);
sub upload {
my $file = shift;
# try it twice
system(«echo $pass | ftp-upload -h $host -u $user -s -d $dir $file») == 0 ||
system(«echo $pass | ftp-upload -h $host -u $user -s -d $dir $file») == 0 ||
die «upload to backup-host failed»;
print «HOOK: upload » . $file . » to ftp://» . $host . $dir . » done\n»;
}
sub nop {
# nothing
}
sub backup_end {
upload($tarfile);
}
sub log_end {
upload($logfile);
}
exists $dispatch{$phase} ? $dispatch{$phase}() : die «got unknown phase ‘$phase'»;
exit (0);
======================================================
chmod +x /usr/local/bin/backup-hook.pl
echo "script: /usr/local/bin/backup-hook.pl" >> /etc/vzdump.conf