Installing Proxmox VE v1.9 post Lenny retirement

In my case, I want to test the upgrade from 1.9 to 2.0. I already installed a test cluster with PVE 2.0 beta, then RC, to see how it works. Then I want to reinstall with 1.9, and test the upgrade path (with the script), to 2.0, before doing this on my production cluster. This is why I need to do a post Lenny retirement 1.9 Proxmox install. I think it is well justified, and the wiki article is very welcomed.

Alain
 
You are welcome. In fact, it was my plan from the beginning to have a test cluster to test 2.0, then to reinstall it with 1.9 and test the procedure to upgrade to 2.0, but the Lenny retirement complicated things a little. It helped me to have your wiki article to help fix the repositories paths, and be able to upgrade 1.9 to the last versions, and to install a few things (mc...).

I have succesfully reinstalled my test cluster with 1.9, and reinstalled VM (via backup), now it remains to test the upgrade.

Thanks
 
Hi apmuthu,

I tested to day the upgrade script from 1.9 and 2.0 with my test cluster, and saw one caveat with this post lenny retirement configuration. The script does not handle correctly the changes with 'archives' in sources.list, and ends with an incorrect file.

So, I saw these errors when running the script ./pve-upgrade-1.9-to-2.0 :
Code:
Err [URL]http://ftp.debian.org[/URL] squeeze/updates/main Packages
  404 Not Found [IP: 130.89.148.12 80]
Err [URL]http://ftp.debian.org[/URL] squeeze/updates/contrib Packages
  404 Not Found [IP: 130.89.148.12 80]
W: Failed to fetch [URL]http://ftp.debian.org/debian-security/dists/squeeze/updates/main/binary-amd64/Packages[/URL]  404 Not Found [IP: 130.89.148.12 80]

W: Failed to fetch [URL]http://ftp.debian.org/debian-security/dists/squeeze/updates/contrib/binary-amd64/Packages[/URL]  404 Not Found [IP: 130.89.148.12 80]

It is due to the fact that the script replace 'archive' by 'debian' in the path, and 'lenny' by 'squeeze' (correct.
First I have :
Code:
deb [URL]http://archive.debian.org/debian[/URL] lenny main contrib

(and similar for security updates). Then the script is doing some search and replace with sed :
Code:
sed -i -e "s/archive\.debian\.org/ftp\.debian\.org/" -e "s/lenny/squeeze/" /etc/apt/sources.list

and this ends with :
Code:
deb [URL]http://ftp.debian.org/debian[/URL] squeeze main contrib

And this is incorrect, because, in my case, I am in France, you need to add .fr in the path :
Code:
deb [URL]http://ftp.fr.debian.org/debian[/URL] squeeze main contrib

and the same for security updates :
Code:
# security updates
deb [URL]http://ftp.fr.debian.org/debian-security/[/URL] squeeze/updates main contrib

I don't know if I add something on the wiki to warn of this caveat, or if the upgrade script can be changed to care of this case ?

In any case, after fixing these paths manually, the upgrade script completed correctly. I had then to setup again the cluster, reimport old parameters (VMs), and at the end (with a few other caveats), it worked.

Alain
 
Last edited:
I don't know if I add something on the wiki to warn of this caveat, or if the upgrade script can be changed to care of this case ?

No, that is difficult to handle in the upgrade script - please add that to the wiki instead.
 
Isn't it the meaning of the first part of the log citation I quoted previously ?
Code:
sed -i -e "s/archive\.debian\.org/ftp\.debian\.org/
 
Isn't it the meaning of the first part of the log citation I quoted previously ?

Ah, I see it now - that was a recent addition ;-) If fact it does both things:

# sed -i -e "s/archive\.debian\.org/ftp\.debian\.org/" -e "s/lenny/squeeze/" /etc/apt/sources.list
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!