Centos7(PXE)サイレントインストールとライブDVDログインで最終起動

Centos7(PXE)サイレントインストールとライブDVDログインで最終起動

編集:2015-03-29 16:14 UTC + 1:イメージをダウンロードした後、仮想マシンで「RPCパイプファイルシステムをインストールできません」というエラーが発生します。

PXE経由でCentOS 7のインストールを自動化しようとしています。

私のPXEサーバーには、テスト用にCentOS 7がデフォルトでインストールされています。

私のもの/srv/tftp/pxelinux.cfg/default

#prompt 1
timeout 600

default centos7
label centos7
    menu label ^Install CentOS 7
    kernel centos/images/pxeboot/vmlinuz
    append vga=normal initrd=centos/images/pxeboot/initrd.img ks=http://**.***.**.***/kickstart7.cfg priority=critical IPAPPEND 2

私のファイルは/srv/tftp/centos/images/pxeboot大丈夫だと思います。

root@dvxtest:/srv/tftp/centos/images/pxeboot# md5sum *
b643733cacd1a8b6715f00ba669e69ed  initrd.img
064652e5c5e03bdc96f7b7b10d1c5c61  TRANS.TBL
b76341074e5d68b4e315d00b29fb11fb  upgrade.img
1f8a3bc847320572e531251fbf7e546b  vmlinuz

公式のCentOSフォーラムでこのファイルが起動するのに間違ったファイルである可能性があることを読んだので、CentOSインストールDVD isoファイル全体をダウンロードし、解凍したファイルの代わりにそのファイルを使用してインストールしました。

仮想マシンを起動すると大丈夫に見えます。

Trying to load: /pxelinux.cfg/default    ok
Loading centos/images/pxeboot/vmlinuz.......
Loading centos/images/pxeboot/initrd.img....................................

次に、指定されたリポジトリから必要なすべてのファイルをダウンロードし、「update.img」と「product.img」が存在しないという警告を表示します。 ~によるとhttps://bugzilla.redhat.com/show_bug.cgi?id=722409「product.img」はRHELに関連付けられており、「update.img」は「一部のケース」にのみ必要なため、これは問題ありません。

その後、私の仮想マシンは起動時に「RPCパイプファイルシステムをマウントできません」というエラーを発生させ、ライブログインを開始します。

私のものkickstart.cfg

# System authorization information
auth --enableshadow --passalgo=sha512
# Use network installation
repo --name=base --baseurl=http://mirror.cogentco.com/pub/linux/centos/7/os/x86_64/
url --url="http://mirror.cogentco.com/pub/linux/centos/7/os/x86_64/"
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=sg --xlayouts='ch'
# System language
lang de_CH.UTF-8

# Network information
network  --bootproto=static --device=enp4s0 --gateway=192.168.100.1 --ip=192.168.0.130 --nameserver=192.168.100.1 --netmask=255.255.255.0 --ipv6=auto --activate --hostname=roflcopter.lh
# Root password
rootpw --plaintext test123
# System timezone
timezone Europe/Zurich --isUtc
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
autopart --type=lvm
# Partition clearing information
clearpart --all --initlabel --drives=sda

%packages
@core

%end

私が今まで試したこと:

  • さまざまなミラーを使用
  • 別の起動ファイルを試してください。https://www.centosblog.com/centos-7-minimal-kickstart-file/
  • 削除して起動しようとして、キックスタートファイルが使用されていることを確認しました。
  • さまざまな公開画像のpxebootファイルの使用
  • live-DVDでpxebootファイルを使用する

これまでのところ、私は問題が何であるか、そしてどのようにデバッグするのかわかりません。

申し訳ありません。私が忘れてしまった有用な情報があれば教えてください。

助けてくれてありがとう。

時間をいただきありがとうございます。

ベストアンサー1

答えを見つけましたが、言葉にならない、または文書を理解していないため、「理由」を説明できません。私はこれを回答として投稿し続けるので、他の人が同じ問題を経験している場合は、「試行錯誤」の旅で別のことを試してみます。

文書:http://www.syslinux.org/wiki/index.php/SYSLINUX#APPEND_-

centosインストールタグのファイルのIPAPPEND 2末尾にあるエントリを削除するとdefault問題が解決されました。

エラーを再現でき、再度追加するとIPAPPEND 2操作が再び停止します。

おすすめ記事