您可以使用代理伺服器來檢索 kickstart 檔案嗎?

您可以使用代理伺服器來檢索 kickstart 檔案嗎?

我想透過代理程式存取 kickstart 檔案。 kickstart 檔案託管在公共互聯網上,但執行安裝的伺服器只能透過代理程式存取網際網路。


當 kickstart 檔案在本地可用時,以下內容有效:

tftp 中有效的 grub.cfg 範例:

menuentry 'Install CentOS Stream 8' {
    linuxefi centos-st8/vmlinuz ip=dhcp inst.ks="http://localhost/centos-st8-ks.cfg" nomodeset inst.proxy="http://192.168.0.3:3128"
    initrdefi centos-st8/initrd.img
}

相同的 kickstart 檔案具有以下內容:

text
url --url="https://public.example.com/centos-rpm-remote/8-stream/BaseOS/x86_64/os/" --proxy=http://192.168.0.3:3128/

是否有配置或設定允許我將 kickstart 檔案託管在只能透過代理伺服器 192.168.0.3:3128 存取的地方

像下面這樣:

menuentry 'Install CentOS Stream 8' {
    linuxefi centos-st8/vmlinuz ip=dhcp inst.ks="http://public.example.com/centos-st8-ks.cfg" nomodeset inst.proxy="http://192.168.0.3:3128"
    initrdefi centos-st8/initrd.img
}

答案1

看起來答案是使用“proxy”或“inst.proxy”,儘管 Anaconda 在啟動時會抱怨。

menuentry 'Install CentOS Stream 8' {
    linuxefi centos-st8/vmlinuz ip=dhcp inst.ks="http://public.example.com/centos-st8-ks.cfg" nomodeset proxy="http://192.168.0.3:3128"
    initrdefi centos-st8/initrd.img
}

相關內容