テキストモードとVNCを表示せずにKVMからFedora 28テキストコンソールをインストールする方法

テキストモードとVNCを表示せずにKVMからFedora 28テキストコンソールをインストールする方法

しばらく私は無人Linuxインストール(この場合はfedora 28)がKVMで動作するように努めてきました。デフォルトでは解決しましたが、まだテキストモードを使用するかVNCを起動するかを尋ねます。説明のためのスニペットは次のとおりです。

(snip)
[  OK  ] Listening on Open-iSCSI iscsid Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
         Starting pre-anaconda logging service...
         Starting OpenSSH ed25519 Server Key Generation...
         Starting OpenSSH ecdsa Server Key Generation...
         Starting Login Service...
         Starting Hold until boot process finishes up...
         Starting OpenSSH rsa Server Key Generation...
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started Terminate Plymouth Boot Screen.

Starting installer, one moment...
anaconda 28.22.10-1.fc28 for Fedora 28 started.
 * installation log files are stored in /tmp during the installation
 * shell is available on TTY2
 * when reporting a bug add logs from /tmp as separate text/plain attachments
15:12:21 X startup failed, falling back to text mode
15:12:21 X startup failed, falling back to text mode
================================================================================
================================================================================

1) Start VNC
2) Use text mode

Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: 2
Starting automated install...
Generating updated storage configuration
Checking storage configuration...

================================================================================
================================================================================
Installation

1) [x] Language settings                 2) [x] Time settings
       (English (United States))                (America/Denver timezone)
3) [x] Installation source               4) [x] Software selection
       (https://mirror.chpc.utah.edu/pu         (Custom software selected)
       b/fedora/linux/releases/28/Serve
       r/x86_64/os/)
5) [x] Installation Destination          6) [x] Network configuration
       (Automatic partitioning                  (Wired (ens3) connected)
       selected)

================================================================================
================================================================================
Progress

.
Setting up the installation environment
.
Configuring storage
..
Creating disklabel on /dev/sda
Creating ext4 on /dev/sda1
Creating lvmpv on /dev/sda2
(snip)

私はこれをvirt-installラインとして使用します:

virt-install  \
--name fedoratest2 \
--ram 2048 \
--disk path=/vm-images/fedoratest2.qcow2,size=15 \
--vcpus 2 \
--network bridge=br0 \
--mac=<insert unicast mac here> \
--graphics none \
--location https://mirror.chpc.utah.edu/pub/fedora/linux/releases/28/Server/x86_64/os/ \
--os-type linux \
--extra-args "console=ttyS0 inst.ks=http://http.mydomain.com/kickstart_fedora_testing.cfg hostname=fedoratest2.mydomain.com" 

(mydomain.comはもちろん、私の実際のドメイン名ではありません)

そして始めましょう:

#ptform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Keyboard layouts
keyboard 'us'
# Root password
rootpw --plaintext thisisnotmyrootpassword
# user is needed for fedora? --disabled isn't an option
user --name="joe" --password="thisisnotmyuserpassword"

# System language
lang en_US
# System timezone
timezone America/Denver
# Use graphical install
graphical
# System authorization information
auth  --useshadow  --passalgo=sha512
# Firewall configuration
firewall --disabled
# SELinux configuration
selinux --enforcing
# Do not configure the X Window System
skipx

# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all
# Disk partitioning information
autopart --type lvm

# these are what were produced in anaconda_ks.cfg after I selected what I wanted during a non-kickstart install
%packages
@^server-product-environment
@headless-management
%end

# this was in default anaconda_ks.cfg file after non-kickstart install, figure I'll keep it just in case
%addon com_redhat_kdump --disable --reserve-mb='128'

%end

私を迷惑にするのは、起動/設定中に表示されることです。

15:12:21 X startup failed, falling back to text mode
15:12:21 X startup failed, falling back to text mode

気になります。そもそもなぜXを実行しようとしているのですか?私は上記の起動パラメータが--extra-argsテキストモードを使用するかどうかを指定しないことを知っています。私はfedora / anacondaが基本的にグラフィカルインストールモードを望んでいることを知っています。それは問題ではありません。また、次の2つのパラメータを使用して、--extra-args質問なしで強制的にテキストモードを試しました。

inst.text
inst.cmdline

しかし、これらのどれも効果がないようです。それでも文句を言い、X startup failedVNCを使用するかテキストモードを使用するかを尋ねます。

公式f28インストールガイドに基づいて、次の設定を試しています。https://docs.fedoraproject.org/en-US/fedora/f28/install-guide/advanced/Boot_Options/

また、アナコンダ文書は次のとおりです。https://anaconda-installer.readthedocs.io/en/latest/boot-options.html

つまりconsole=inst.txt混乱ですね。

要約:

テキストのみを指定したいのか、コマンドラインのインストール(グラフィックなし)を指定しようとしても、インストーラはまだグラフィックを実行しようとし、悲惨に失敗し、VNCまたはテキストモードを指定するように求めます。私は何が間違っているのか、それともこれができるのかを調べようとしています。いいえ私にメッセージを送ってください何もないインストール中にキックスタートファイルを終了するだけです。

ベストアンサー1

キックスタートファイルから明示的に要求されたため、グラフィカルインストールを試しています。

# Use graphical install
graphical

これらのエラーはグラフィカルインストーラを起動できないことを示すため、VNCを引き続き使用するかどうかを尋ねるメッセージが表示されます。

とにかくテキストベースのインストールをしたいと思ったので、graphicalそれを削除してくださいtext

おすすめ記事