AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 771099
Accepted
moona khan
moona khan
Asked: 2016-04-18 23:49:22 +0800 CST2016-04-18 23:49:22 +0800 CST 2016-04-18 23:49:22 +0800 CST

Centos 7,Kickstart,安装期间设置基础存储库时出错

  • 772

我正在尝试在 vmware 12 上使用 kickstart 安装 centos 7。我已经下载了 iso 并使用相同的 iso 包安装了许​​多虚拟机。

我收到错误:设置基础存储库时出错

我为 kickstart 执行的步骤。
mount /dev/sr0 /webdir/rhel //CD rom iso在这里挂载
chown -R root:root /website/rhel
chmod 755 /webdir/ks.cfg

我的启动文件

#version=RHEL7
# System authorization information
auth --enableshadow --passalgo=sha512

# Use CDROM installation media
#cdrom
url --url http://192.168.1.201/rhel
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8

# Network information
network  --bootproto=static --device=eno16777736 

--gateway=192.168.1.1 --ip=192.168.1.200 --

nameserver=192.168.1.1 --netmask=255.255.255.0 

--noipv6 --activate
#network  --hostname=server.homedomain.com
# Root password
rootpw --iscrypted $6$ozwaEbpRPt30cDvE

$AvQIjqHZAkFSCqc8vfO.Kta6QPw7AXTNFXtNASV2HGU9pnc

lcNcpzjvoe4wFc9bdoo8Kyfe01tuauM0k9s3pn/
# System timezone
timezone Asia/Karachi --isUtc --nontp
user --name=atif --password=asif10
#user --name=asif --password=

$6$DThpCq/Gemo2s3DL

$3y4CtyJYO.gvZ67acOskcOvKNUJiYlz3hEUF/LoRu0FDDIc

u6rVS5OFVfLygbDjLOjkANvs5aCupKawyRw3jU1 --

iscrypted --gecos="Muhammad Asif"
# X Window System configuration information
xconfig  --startxonboot
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
# Partition clearing information
clearpart --none --initlabel
# Disk partitioning information
part pv.196 --fstype="lvmpv" --ondisk=sda --

size=16900
part /boot --fstype="xfs" --ondisk=sda --

size=1024 --label=boot
volgroup centos --pesize=4096 pv.196
logvol /home  --fstype="xfs" --size=1024 --

label="home" --name=home --vgname=centos
logvol swap  --fstype="swap" --size=1024 --

name=swap --vgname=centos
logvol /  --fstype="xfs" --size=14848 --

label="root" --name=root --vgname=centos

%packages
@base
@core
@desktop-debugging
@dial-up
@directory-client
@fonts
@gnome-desktop
@guest-agents
@guest-desktop-agents
@input-methods
@internet-browser
@java-platform
@multimedia
@network-file-system-client
@networkmanager-submodules
@print-client
@x11

%end

%addon com_redhat_kdump --disable --reserve-

mb='auto'

%end

请为此提出解决方案。

kickstart centos7
  • 2 2 个回答
  • 11156 Views

2 个回答

  • Voted
  1. Sum1sAdmin
    2016-04-19T01:54:37+08:002016-04-19T01:54:37+08:00

    您设置定义了 CD 安装,但您的 kick 脚本定义了网络位置。

    我为 kickstart 执行的步骤。mount /dev/sr0 /webdir/rhel //CD rom iso在这里挂载 chown -R root:root /website/rhel chmod 755 /webdir/ks.cfg

    # Use CDROM installation media
    #cdrom
    url --url http://192.168.1.201/rhel
    

    不应该是这样的:

    # Use CDROM installation media
    cdrom
    repo --name="RHEL7" --baseurl=cdrom:sr0
    
    • 1
  2. Best Answer
    moona khan
    2016-04-19T09:40:02+08:002016-04-19T09:40:02+08:00

    经过大量的谷歌搜索,我整天都在寻找这个解决方案。它奏效了。

    我只更改了 ks.cfg 中的一行

    **

    # Use CDROM installation media
    #cdrom
    url --url="http://192.168.1.215/rhel"  // only added = and "" only 
    # Use graphical install
    graphical
    

    **

    为其他人再次重复步骤:

    服务器设置:
    使用http

    webdir= /var/www/html

    mkdir /webdir/rhel <br>
    mount /dev/sr0 /webdir/rhel    //CDROM iso is mounted here <br>
    chown -R root:root /website/rhel <br>
    chmod 755 /webdir/ks.cfg<br>
    

    客户:

    按 Esc:
    启动:linux ks= http://192.168.1.215/ks.cfg

    它工作完美。

    • 1

相关问题

  • 如何在 kickstart 解析 ks.cfg 之前执行命令?

  • 红帽服务器最小安装

  • CentOS 5.3 的 kickstart 文件示例

  • 在 Windows 中将 kickstart 添加到 cd

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve