usage:
chvmid.sh old_id new_id

#!/bin/bash

let old=$1
let new=$2

mv /var/lib/vz/images/$old/vm-$old-disk-1.raw /var/lib/vz/images/$old/vm-$new-disk-1.raw
mv /var/lib/vz/images/$old /var/lib/vz/images/$new

sed -i "s/$old\/vm\-$old/$new\/vm\-$new/g" /etc/pve/nodes/$HOSTNAME/qemu-server/$old.conf
mv /etc/pve/nodes/$HOSTNAME/qemu-server/$old.conf /etc/pve/nodes/$HOSTNAME/qemu-server/$new.conf

Change VMID (KVM) in Proxmox 2.3

Dotdeb镜像使用帮助
使用说明

1. 添加下面两行到/etc/apt/sources.list

deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

2. (可选) 如果你想在Debian Squeeze上安装PHP5.4的话,再添加下面这两行:

deb http://mirrors.ustc.edu.cn/dotdeb/packages.dotdeb.org squeeze-php54 all
deb-src http://mirrors.ustc.edu.cn/dotdeb/packages.dotdeb.org squeeze-php54 all

3. 然后导入合适的GnuPG key

wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | sudo apt-key add –

4. 运行
apt-get update