私は次のコマンドを使用しています:
sudo virt-install --name tester1.example.com --ram 2048 --disk path=/var/lib/libvirt/images/tester1.example.com.qcow2,format=qcow2,size=12 --location=ftp://192.168.1.88/pub/inst --nographics --initrd-inject=/home/ralph/newks.cfg --extra-args="ks=file:/newks.cfg console=tty0 console=ttyS0,115200n8"
次のコンテンツを含むkickstarterファイルを使用してください。
#versioon=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use network installation
url --url="ftp://192.168.1.88/pub/inst"
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=vda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
#network --bootproto=dhcp --device=eth0 --ipv6=auto --activate
#network --hostname=localhost.localdomain
network --device=eth0 --bootproto=static --ip=192.168.122.100 --netmask=255.255.255.0 --gateway=192.168.122.1 --nameserver=192.168.122.1 --hostname=tester1.example.com
# Root password
rootpw --iscrypted $6$nBbXk9XoFUh8swe9$l4fmEaa58TFaj814bwvfyXgztZtT4b7/PuztInGMacC6EJZMXz8MNnCnz/h.rGbKep5mcWszwTsVhsbhbk7t.1
# System services
services --enabled="chronyd"
# System timezone
timezone America/Chicago --isUtc
user --groups=wheel --name=ralph --password=$6$HHREkrcEKvhIYCCa$HAVUoPuwneIMiYKydOjPdSM0cd73uGjSG2G4.AcpjEMqsajg9SDrGAKUDClQ5OZSu95UyUciUvOXsv/ZMzgye0 --iscrypted --gecos="Ralph"
# System bootloader configuration
bootloader --location=mbr --boot-drive=vda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel
%packages
@^minimal
@core
chrony
kexec-tools
%end
s=DEVEL
SCSIディスクを接続するまで、すべてがうまくいっていました。インストールコンソールから:
8.506571] localhost kernel: sd 0:0:0:0: [sda] Attached SCSI disk
その後、タイムアウトが発生し、パニックモードに移行し、ランチャーファイルが見つからないというメッセージを含むエラーレポートを詳細に確認できます。私はファイルが仮想ディスクにあるべきだと思いますが、何らかの理由でそうではありません。緊急モードで仮想ディスクを表示すると、ファイルが存在しないとマークされますが、理由は不明です。どんな助けでも大変感謝します。
ありがとうございます。
ベストアンサー1
extra-args から ks=file:/newks.cfg を取り出しましたが、これは正常に動作します。 initrd-injectパラメータを使用してkickstarterファイルをftpサイトに配置すると機能します。同時に、両方を持つことができないことは合理的です。