web-dev-qa-db-ja.com

キックスタートを使用すると「ルートファイルシステムが定義されていません」

私たちは物理サーバーを使用しており、その上で自動化された「ubuntu-12.04.1-server-AMD64」OSインストールを実行しています。

OSインストール用に2つのHDDがあり、それらの間にはRAID1の関係があります。このセットアップはBIOSを介して行われました。

キックスタート構成ファイルは次のようになります。

#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T

#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone Asia/Dili
#Root password
rootpw --iscrypted $1$Yl1QJyta$KzIT.kq3i9E5XaiQKcUJn/
#Initial user
user ankit --fullname "Ankit" --iscrypted --password $1$c6Yflpea$pi1QQ59/jgywmGwBv25z3/
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --url my_repo_location
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext4 --size 100 --ondisk sda
part / --fstype ext4 --size 10000 --ondisk sda
part /var --fstype ext4 --size 10000 --ondisk sda
part swap --size 1024 --ondisk sdb
#System authorization infomation
auth  --useshadow  --enablemd5
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --enabled --trust=eth0 --http --ftp --ssh --telnet --smtp
#X Window System configuration information
xconfig --depth=8 --resolution=640x480 --defaultdesktop=GNOME

しかし、以下のエラーが発生します:No root file system is defined

キックスタート設定ファイルを変更する必要がありますか?

自動化されたUbuntu OSのインストールは、上記のks.cfg(キックスタート構成ファイル)を使用して仮想マシン(VM)で成功しますが、物理マシンの場合は失敗します。

1
user285336

キックスタートはエラー報告に/ var/log/syslogを使用します。次のようなエラー通知が表示されます。

 ... kickseed: unsupported restriction 'ondisk' ...

私の知る限りでは --ondisk sdaはUbuntuではサポートされていません。また、複数のディスクをパーティション化することもありません。

それを削除すれば動作するはずです。

キックスタートはUbuntuでも利用可能なRedhatユーティリティですが、私たちのバージョンにはいくつかの機能がないため、/ var/log/syslogに注意することをお勧めします。

0
Rinzwind