无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 2583|回复: 5
打印 上一主题 下一主题

[求助] 有人用PXE方式安装过centos7吗?

  [复制链接]
跳转到指定楼层
1#
发表于 2019-9-10 18:22:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
传统的6的安装方式会了,没想到用在7下面,不能用。

根据谷歌的情况,需要加到init.stage2这个参数,可以加上后,似乎也不行,用的是tinypxeserver(ipxe方式),附上log供参考,看这个log我的理解是,当initrd ${boot-url}/boot/linux-boot/redhat7/initrd.img这条命令执行后,似乎http就断开了,于是安装命令自然找不到http的安装文件了,故此出错,希望各位给看下是不是这个原因? 如果是有什么好的解决办法没有,我的需要是能远程安装centos7即可。
:redhat7-installer
#initrd ${boot-url}/iso/CentOS-6.4-i386-netinstall.iso
#chain ${boot-url}/memdisk iso || goto failed
kernel ${boot-url}/boot/linux-boot/redhat7/vmlinuz
initrd ${boot-url}/boot/linux-boot/redhat7/initrd.img inst.stage2=http://192.168.1.10/boot/iso/redhat7
boot
goto start

下午 6:10:01 HTTPd:Connect: 192.168.1.202, TID=8748
下午 6:10:01 HTTPd:Client: 192.168.1.202 [GET] /boot/linux-boot/redhat7/vmlinuz
下午 6:10:01 HTTPd:Server : Returning /boot/linux-boot/redhat7/vmlinuz
下午 6:10:01 HTTPd:Client: 192.168.1.202 [GET] /boot/linux-boot/redhat7/initrd.img
下午 6:10:01 HTTPd:Server : Returning /boot/linux-boot/redhat7/initrd.img
下午 6:10:02 HTTPd:Exception: , Connection Closed Gracefully.
下午 6:10:02 HTTPd:DisConnect: TID=8748
2#
发表于 2019-9-10 21:50:44 | 只看该作者
可以加上后,似乎也不行
回复

使用道具 举报

3#
发表于 2019-9-11 23:26:26 | 只看该作者
kernel ${boot-url}/boot/linux-boot/redhat7/vmlinuz  repo=http://192.168.1.10/boot/iso/redhat7 initrd=initrd.img
initrd ${boot-url}/boot/linux-boot/redhat7/initrd.img
boot

請確定:
1.repo後是cd/影像檔的root
2.uefi環境必需要加initrd=initrd.img,否則不能啟動;bios不一定需要,加了也沒問題
3.建議加個inst.gpt在kernel參數,強制使用GPT格式
試一下

点评

兄弟十分感谢,确实是这个问题,其实问题主要出在,要加载到vmlinuz后面,可google上的教程全加载到initrd.img后面,附上我测试成功的菜单 :centos7-installer kernel ${boot-url}/boot/linux-boot/centos7/vmli  详情 回复 发表于 2019-9-12 22:28
回复

使用道具 举报

4#
 楼主| 发表于 2019-9-12 22:28:44 | 只看该作者
hkkitlee 发表于 2019-9-11 23:26
kernel ${boot-url}/boot/linux-boot/redhat7/vmlinuz  repo=http://192.168.1.10/boot/iso/redhat7 initrd ...

兄弟十分感谢,确实是这个问题,其实问题主要出在,要加载到vmlinuz后面,可google上的教程全加载到initrd.img后面,附上我测试成功的菜单

:centos7-installer
kernel ${boot-url}/boot/linux-boot/centos7/vmlinuz inst.stage2=http://192.168.1.10/boot/iso/centos7
initrd ${boot-url}/boot/linux-boot/centos7/initrd.img
boot
goto start


:redhat7-installer
kernel ${boot-url}/boot/linux-boot/redhat7/vmlinuz  repo=http://192.168.1.10/boot/iso/redhat7 initrd=initrd.img
initrd ${boot-url}/boot/linux-boot/redhat7/initrd.img
boot
goto start

点评

別客氣  详情 回复 发表于 2019-9-13 10:33
回复

使用道具 举报

5#
发表于 2019-9-13 10:33:12 | 只看该作者
jasonwang 发表于 2019-9-12 22:28
兄弟十分感谢,确实是这个问题,其实问题主要出在,要加载到vmlinuz后面,可google上的教程全加载到initr ...

別客氣
回复

使用道具 举报

6#
发表于 2022-10-28 09:57:40 | 只看该作者
留个标记,学习一下,一会试试
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-12-11 04:34

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表