-
Notifications
You must be signed in to change notification settings - Fork 224
Open
Labels
CentOSenhancementNew feature or requestNew feature or requesttriagedTriaged to be addressed in a given cycleTriaged to be addressed in a given cycle
Description
Hello Everyone,
I hope you're doing fine !
Just for the purpose of doing trials, I wanted to build old versions of centos like centos6.
But I got "YumRepo Error: All mirror URLs are not using ftp, http[s] or file." cause this distribution is deprecated and mirror are not available anymore at their usual addresses.
So then I tried to patch like this :
+ diff -rupN /home/me/packer-maas/centos6/http/centos6.ks /tmp/tmp.vBYuHcTep2/centos6.ks
--- /home/me/packer-maas/centos6/http/centos6.ks 2023-06-16 15:33:04.083062812 +0200
+++ /tmp/tmp.vBYuHcTep2/centos6.ks 2023-06-16 15:33:04.123062814 +0200
@@ -1,4 +1,4 @@
-url --url="http://mirror.centos.org/centos/6/os/x86_64"
+url --url="http://vault.centos.org/centos/6/os/x86_64"
poweroff
firewall --enabled --service=ssh
firstboot --disable
@@ -12,8 +12,8 @@ timezone UTC --isUtc
bootloader --location=mbr --driveorder="vda" --timeout=1
rootpw --plaintext password
-repo --name="Updates" --mirrorlist="http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates"
-repo --name="Extras" --mirrorlist="http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extras"
+repo --name="Updates" --mirrorlist="http://vault.centos.org/?release=6&arch=x86_64&repo=updates"
+repo --name="Extras" --mirrorlist="http://vault.centos.org/?release=6&arch=x86_64&repo=extras"
repo --name="EPEL6" --mirrorlist="https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64"
# CentOS 6 requires a newer version of cloud-init to use advanced features with MAAS.
repo --name="cloud-init" --baseurl="http://copr-be.cloud.fedoraproject.org/results/@cloud-init/el-stable/epel-6-x86_64"
+ diff -rupN /home/me/packer-maas/centos6/centos6.pkr.hcl /tmp/tmp.vBYuHcTep2/centos6.pkr.hcl
--- /home/me/packer-maas/centos6/centos6.pkr.hcl 2023-06-16 15:33:04.079062812 +0200
+++ /tmp/tmp.vBYuHcTep2/centos6.pkr.hcl 2023-06-16 15:33:04.107062813 +0200
@@ -16,12 +16,12 @@ variable "filename" {
variable "centos6_iso_url" {
type = string
- default = "https://mirrors.edge.kernel.org/centos/6.10/isos/x86_64/CentOS-6.10-x86_64-netinstall.iso"
+ default = "https://vault.centos.org/centos/6.10/isos/x86_64/CentOS-6.10-x86_64-netinstall.iso"
}
variable "centos6_sha256sum_url" {
type = string
- default = "https://mirrors.edge.kernel.org/centos/6.10/isos/x86_64/sha256sum.txt"
+ default = "https://vault.centos.org/centos/6.10/isos/x86_64/sha256sum.txt"
}
source "qemu" "centos6" {
But I still got the same issue.
Is there any easy way to move from iso install in place of network install, if that may be a way to easily solve the issue ?
Or any easy way to provide the network installer with the correct info about the mirrors for the image to be able to build ?
Or even, did I miss something somewhere ?
Have a nice day,
Best Regards,
Mickaël.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
CentOSenhancementNew feature or requestNew feature or requesttriagedTriaged to be addressed in a given cycleTriaged to be addressed in a given cycle