CentOS PXE Server +UEFI BIOS boot

95 views
Skip to first unread message

CloneM

unread,
Sep 19, 2022, 1:40:59 AM9/19/22
to 再生龍clonezilla
  Steven你好,

我最近在使用PXE加Clonezilla也有碰上類似的問題,PXE的做法也是跟 Moira 差不多, 我有試過 live開機,然後將/usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed複製到CentOS的/var/lib/tftpboot/grubx64.efi,但開機卡在GRUB的畫面如下:

2222.jpg

Testing Environment: 
PXE Server: CentOS 7 Linux release 7.9.2009 (Core) + TFTP
CloneZilla ISO: clonezilla-live-2.8.1-12-amd64.iso
我試過legacy BIOS是可以的,不曉得CentOS PXE server搭配UEFI BIOS開機這方式是可行的嗎? 。

下面圖示是我UEFI的configuration,請參考:

Figure 1. tftpboot folder
螢幕擷取畫面 2022-09-19 095151.jpg

Figure 2. grub.cfg
20220919.png

Steven Shiau

unread,
Sep 21, 2022, 8:20:35 AM9/21/22
to ocs-clo...@googlegroups.com

這個問題看來是沒有從server抓到grub.cfg檔,你可以查一下你的tftpd的log,要先記得把tftpd的啟動設定,加上-vvv,重新啟動tftpd服務之後,開啟用戶端。當用戶端抓不到設定檔,進入grub shell的時候,回到你的server看一下log,CentOS的log應該是/var/log/messages

Ref: https://support.ambit-llc.com/KnowledgeBase/Details/?id=4-CentOS-TFTP-Server-Log-Enabling

Steven

--
這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到 ocs-clonezill...@googlegroups.com
如要在網路上查看這項討論,請造訪 https://groups.google.com/d/msgid/ocs-clonezilla/d5c5131c-bcbe-4cf7-9c39-39527dcec770n%40googlegroups.com
-- 
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/163E3FB0
Fingerprint: EB1D D5BF 6F88 820B BCF5  356C 8E94 C9CD 163E 3FB0

CloneM

unread,
Sep 22, 2022, 4:19:04 AM9/22/22
to 再生龍clonezilla
Hi Steven,

所以這看起來沒有抓到grub.cfg檔是嗎? 有出現 Error code 8: User aborted the transfer.

螢幕擷取畫面 2022-09-22 161536.jpg


Steven Shiau 在 2022年9月21日 星期三晚上8:20:35 [UTC+8] 的信中寫道:

Steven Shiau

unread,
Sep 22, 2022, 10:35:04 AM9/22/22
to ocs-clo...@googlegroups.com
抓完grubx64.efi之後,沒有看到往下進行抓取grub.cfg的動作。看來有可能是你準備的grubx64.efi不太對。
"/usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed複製...",這個檔案是你CentOS來的嗎?
以Debian為例,grub的efi有幾種,其中有一個是網路開機用的,另外還有live
system用的,以及一般硬碟用的。CentOS也應該是這樣。你要用對才可以網路開機。也許參考這裡看看:
https://docs.centos.org/en-US/centos/install-guide/pxe-server/#sect-network-boot-setup-bios

Steven

On 9/22/22 16:18, CloneM wrote:
> Hi Steven,
>
> 所以這看起來沒有抓到grub.cfg檔是嗎? 有出現 Error code 8: User aborted the
> transfer.
>
> 螢幕擷取畫面 2022-09-22 161536.jpg
>
>
> Steven Shiau 在 2022年9月21日 星期三晚上8:20:35 [UTC+8] 的信中寫道:
>
> 這個問題看來是沒有從server抓到grub.cfg檔,你可以查一下你的tftpd的log,要先記得把tftpd的啟動設定,加上-vvv,重新啟動tftpd服務之後,開啟用戶端。當用戶端抓不到設定檔,進入grub
> shell的時候,回到你的server看一下log,CentOS的log應該是/var/log/messages
>
> Ref:
> https://support.ambit-llc.com/KnowledgeBase/Details/?id=4-CentOS-TFTP-Server-Log-Enabling
>
> Steven
>
> On 9/19/22 13:39, CloneM wrote:
>>   Steven你好,
>>
>> 我最近在使用PXE加Clonezilla也有碰上類似
>> <https://groups.google.com/g/ocs-clonezilla>的問題,PXE的做法也是跟 Moira 差不多, 我有試過 live開機,然後將/usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed複製到CentOS的/var/lib/tftpboot/grubx64.efi,但開機卡在GRUB的畫面如下:
>>
>>
>> 2222.jpg
>>
>> Testing Environment:
>> PXE Server: CentOS 7 Linux release 7.9.2009 (Core) + TFTP
>> CloneZilla ISO: clonezilla-live-2.8.1-12-amd64.iso
>> 我試過legacy BIOS是可以的,不曉得CentOS PXE server搭配UEFI
>> BIOS開機這方式是可行的嗎? 。
>>
>> 下面圖示是我UEFI的configuration,請參考:
>>
>> Figure 1. tftpboot folder
>> 螢幕擷取畫面 2022-09-19 095151.jpg
>>
>> Figure 2. grub.cfg
>> 20220919.png
>>
>> --
>> 這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
>> 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到
>> ocs-clonezill...@googlegroups.com
>> 如要在網路上查看這項討論,請造訪
>> https://groups.google.com/d/msgid/ocs-clonezilla/d5c5131c-bcbe-4cf7-9c39-39527dcec770n%40googlegroups.com
>> <https://groups.google.com/d/msgid/ocs-clonezilla/d5c5131c-bcbe-4cf7-9c39-39527dcec770n%40googlegroups.com?utm_medium=email&utm_source=footer>。
>
> --
> Steven Shiau <steven _at_ stevenshiau org>
> Public Key Server PGP Key ID: 4096R/163E3FB0
> Fingerprint: EB1D D5BF 6F88 820B BCF5 356C 8E94 C9CD 163E 3FB0
>
> --
> 這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
> 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到
> ocs-clonezill...@googlegroups.com
> 如要在網路上查看這項討論,請造訪
> https://groups.google.com/d/msgid/ocs-clonezilla/2911d8b0-0442-435d-865b-0133c8f977ccn%40googlegroups.com
> <https://groups.google.com/d/msgid/ocs-clonezilla/2911d8b0-0442-435d-865b-0133c8f977ccn%40googlegroups.com?utm_medium=email&utm_source=footer>。

CloneM

unread,
Sep 22, 2022, 11:03:16 PM9/22/22
to 再生龍clonezilla
Hi Steven,

我是參考你之前有回覆的方式,將Clonezilla Live裡的/usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed複製到CentOS的/var/lib/tftpboot/grubx64.efi。

螢幕擷取畫面 2022-09-23 105549.jpg

不過我也試過直接copy Clonezilla Live裡的 /EFI/boot/grubx64.efi 狀況一樣,我是要用PXE boot Clonezilla live,應該是要copy Clonezilla裡的grubx64.efi沒錯把?
螢幕擷取畫面 2022-09-23 105932.jpg
Steven Shiau 在 2022年9月22日 星期四晚上10:35:04 [UTC+8] 的信中寫道:

Steven Shiau

unread,
Sep 23, 2022, 2:08:30 AM9/23/22
to ocs-clo...@googlegroups.com

若是這樣做,看來沒問題勒。也許是CentOS哪邊設定特別要改...
你有用過Clonezilla lite server測試比較看看?
https://clonezilla.nchc.org.tw/clonezilla-live/doc/fine-print.php?path=11_lite_server

Steven

Reply all
Reply to author
Forward
0 new messages