Archive for September, 2014

Proxmox: How to Upgrade from 3.2 to 3.3

1. Login to Proxmox server via SSH or locally
2. # apt-get install dpkg-dev
3. Download latest Proxmox ISO file on a different machine.
http://www.proxmox.com/downloads
4. # mkdir /home/root/downloads
5. Connect to Proxmox server via SCP
a. Navigate to /home/root/downloads
b. Upload ISO to /home/root/downloads
6. # mkdir /media/iso
7. Mount ISO
# mount -o loop /home/root/downloads/<ISO FILE NAME.ISO> /media/iso
8. Create Dists Folder
# mkdir -p /usr/local/mydists/proxmox/debian/dists/wheezy/pve-cd/binary-amd64/
9. Copy Packages from ISO to Dists
# cp /media/iso/proxmox/packages/* /usr/local/mydists/proxmox/debian/dists/wheezy/pve-cd/binary-amd64/
10. Copy the GPG key file on the local Proxmox repo:
# cd /usr/local/mydists/proxmox/debian
# wget -O – http://download.proxmox.com/debian/key.asc | apt-key add –
11. Remove the CD:
# umount /media/iso
12. Navigate to /usr/local/mydists/proxmox/debian/
# cd /usr/local/mydists/proxmox/debian/
# dpkg-scanpackages dists/wheezy/pve-cd/binary-amd64/ /dev/null | gzip > dists/wheezy/pve-cd/binary-amd64/Packages.gz
NOTE: The resulting file, Packages.gz, will finally be inside the folder: /usr/local/mydists/proxmox/debian/dists/wheezy/pve-cd/binary-amd64/
13. # chmod u+x /usr/local/mydists
14. Add deb entry to /etc/apt/sources.list
# nano /etc/apt/sources.list
Add: deb file:/usr/local/mydists/proxmox/debian/dists/wheezy/pve-cd/binary-amd64/ ./
CTRL+X
Type: y
Press Enter
15. # apt-get update
16. # apt-get dist-upgrade
y
y
17. # reboot
18. Connect to Proxmox server again via SSH
19. Check pveversion
# pveversion -v
18. Navigate to Proxmox web, login, and verify version number 3.3-1
Done

Advertisements