teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

7

試してみたこと5

2020/07/30 21:06

投稿

teityura
teityura

スコア84

title CHANGED
File without changes
body CHANGED
@@ -174,15 +174,6 @@
174
174
  # ブラウザ で http://192.168.1.220/centos7/ を開きました
175
175
  [root@pxe ~]# cd /var/log/httpd
176
176
  [root@pxe httpd]# tail -f access_log
177
- 192.168.1.53 - - [26/Jul/2020:11:07:08 +0900] "GET / HTTP/1.1" 200 481 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
178
- 192.168.1.53 - - [26/Jul/2020:11:07:08 +0900] "GET /icons/blank.gif HTTP/1.1" 200 148 "http://192.168.1.220/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
179
- 192.168.1.53 - - [26/Jul/2020:11:07:10 +0900] "GET / HTTP/1.1" 200 481 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
180
- 192.168.1.53 - - [26/Jul/2020:11:07:59 +0900] "-" 408 - "-" "-"
181
- 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /centos7 HTTP/1.1" 301 237 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
182
- 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /centos7/ HTTP/1.1" 200 3447 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
183
- 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /icons/back.gif HTTP/1.1" 200 216 "http://192.168.1.220/centos7/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
184
- 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /icons/unknown.gif HTTP/1.1" 200 245 "http://192.168.1.220/centos7/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
185
- 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /icons/folder.gif HTTP/1.1" 200 225 "http://192.168.1.220/centos7/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
186
177
  192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /icons/text.gif HTTP/1.1" 200 229 "http://192.168.1.220/centos7/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
187
178
  ```
188
179
 
@@ -219,10 +210,6 @@
219
210
  ・kickstart の デバイス名は (nvme0とかnvme0n1じゃなくて)sda で問題ないでしょうか。
220
211
  (デバイス名については、squashfs.img の入手に成功したあとに分かりますかね)
221
212
 
222
- 下記は、WindowsOSの記事ですが、
223
- PXEブート時、boot.wimにリンクのドライバを含めると書いていました。
224
- [M.2 SSD (ソリッドステートドライブ) での PXE ブートについての情報](https://www.dell.com/support/article/ja-jp/sln300004/m-2-ssd-%E3%82%BD%E3%83%AA%E3%83%83%E3%83%89%E3%82%B9%E3%83%86%E3%83%BC%E3%83%88%E3%83%89%E3%83%A9%E3%82%A4%E3%83%96-%E3%81%A7%E3%81%AE-pxe-%E3%83%96%E3%83%BC%E3%83%88%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AE%E6%83%85%E5%A0%B1?lang=ja)
225
-
226
213
  ### 試してみたこと4
227
214
  1. grep -e eth -e eno -e dhclient -e IPv6 /run/initramfs/rdsosreport.txt
228
215
  を実行したところ、何もヒットしませんでした。
@@ -245,4 +232,25 @@
245
232
  NIC(ethernet)を利用するためのドライバが不足している状態と考えられるのでしょうか。
246
233
 
247
234
  関連ありそうな記事を見つけましたが、pxe boot だと手順が少し違いそうです。
248
- [Linuxで認識しないNICのドライバをインストールしてみた](https://qiita.com/tsukasa1301/items/f70351ab4d9b164af607)
235
+ [Linuxで認識しないNICのドライバをインストールしてみた](https://qiita.com/tsukasa1301/items/f70351ab4d9b164af607)
236
+
237
+ ### 試してみたこと5
238
+ centosのinitrdでe1000eを強制ロードさせるようにしました。
239
+ NICを認識したものの /dev/root does not exist となり、起動できませんでした。
240
+ ![強制ロード](6652e6eb26d57c269bf3de312c0c33b7.jpeg)](5efc9f0c1eeb8e429f0058f592f95b74.jpeg)
241
+
242
+ ubuntuのinitramfsを展開し、e1000e.koを入れ替えて、再構成しました。
243
+ /root/dev failed となり、起動できませんでした。
244
+ rootpath: filename: が空なのが気になります。
245
+ ![initramfs-1](0736381267e455325bd410d1ed7cce46.jpeg)
246
+ ![initramfs-2](d957054f8e3bccd632192b9759b2a59f.jpeg)
247
+
248
+ centosのinitramfsでドライバを更新(e1000e-3.8.4をmake install)し、再構成してみました。
249
+ Failed to start Swith Root となり、起動できませんでした。
250
+ こちらは、NICを認識していますが、デバイスが見えなくなっています。
251
+ ![make install fail](389133fdfcd8b74ad4bf58bb39534b0b.jpeg)
252
+
253
+ 長くなってきてしまったので、一旦解決済みとして、
254
+ 課題を整理してもう少し色々試してみようかと思います。
255
+
256
+ 何度も回答いただき、ありがとうございました。

6

誤字修正

2020/07/30 21:06

投稿

teityura
teityura

スコア84

title CHANGED
File without changes
body CHANGED
@@ -196,7 +196,7 @@
196
196
  ![http_centos7](b7cea8851c0f0510a52ab7d6e241a3b5.png)
197
197
 
198
198
  ### 試してみたこと3
199
- grub.![イメージ説明](6f56cdd2bce6a5bce331e9834e87160a.jpeg)正し、
199
+ grub.cfgで
200
200
  devfs=nomount を付けたり、消したり、
201
201
  inst.repo=http://192.168.1.220/centos7 を
202
202
  inst.repo=http://ftp.riken.jp/Linux/centos/7/os/x86_64/

5

試してみたこと4を追加

2020/07/28 18:46

投稿

teityura
teityura

スコア84

title CHANGED
File without changes
body CHANGED
@@ -61,13 +61,6 @@
61
61
  ##### ディレクトリ構成
62
62
  下記のディレクトリ構成になっています。
63
63
  ```
64
- [root@pxe src]# ls -lR /var/lib/tftpboot/
65
- /var/lib/tftpboot/:
66
- total 0
67
- drwxr-xr-x 3 root root 21 Jul 25 16:30 images
68
- drwxr-xr-x 3 root root 64 Jul 25 16:30 pxelinux
69
- drwxr-xr-x 2 root root 60 Jul 25 16:31 uefi
70
-
71
64
  /var/lib/tftpboot/images:
72
65
  total 0
73
66
  drwxr-xr-x 2 root root 39 Jul 25 16:30 centos7
@@ -228,4 +221,28 @@
228
221
 
229
222
  下記は、WindowsOSの記事ですが、
230
223
  PXEブート時、boot.wimにリンクのドライバを含めると書いていました。
231
- [M.2 SSD (ソリッドステートドライブ) での PXE ブートについての情報](https://www.dell.com/support/article/ja-jp/sln300004/m-2-ssd-%E3%82%BD%E3%83%AA%E3%83%83%E3%83%89%E3%82%B9%E3%83%86%E3%83%BC%E3%83%88%E3%83%89%E3%83%A9%E3%82%A4%E3%83%96-%E3%81%A7%E3%81%AE-pxe-%E3%83%96%E3%83%BC%E3%83%88%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AE%E6%83%85%E5%A0%B1?lang=ja)
224
+ [M.2 SSD (ソリッドステートドライブ) での PXE ブートについての情報](https://www.dell.com/support/article/ja-jp/sln300004/m-2-ssd-%E3%82%BD%E3%83%AA%E3%83%83%E3%83%89%E3%82%B9%E3%83%86%E3%83%BC%E3%83%88%E3%83%89%E3%83%A9%E3%82%A4%E3%83%96-%E3%81%A7%E3%81%AE-pxe-%E3%83%96%E3%83%BC%E3%83%88%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AE%E6%83%85%E5%A0%B1?lang=ja)
225
+
226
+ ### 試してみたこと4
227
+ 1. grep -e eth -e eno -e dhclient -e IPv6 /run/initramfs/rdsosreport.txt
228
+ を実行したところ、何もヒットしませんでした。
229
+
230
+ 2. 同じCentOS7をUSBブートしたところ、
231
+ OS自体はインストールできましたが、eth0を認識していませんでした。
232
+ lo, wlp0s20f3(wifiデバイス) のみ認識していました。
233
+
234
+ 3. UbuntuServer20をUSBブートしたところ、
235
+ eno1(ethernetデバイス)をちゃんと認識していました。
236
+
237
+ 4. USBブートに成功した UbuntuSerbver20の
238
+ casper/{vmlinuz,initrd}で UbuntuSerbver20, CentOS7 を
239
+ pxebootしてみたところ、両方同じところでつまりました。
240
+ (今度は、eno1を認識しているみたいでした)
241
+ ![ubuntu-initrd-1](0f5e7da93baa6b7b79d22f598dce3bdc.jpeg)
242
+ ![ubuntu-initrd-2](81c9ad7ac6dbf92fd97f287cb853631e.jpeg)
243
+
244
+ これらの結果からすると、initrd.img に
245
+ NIC(ethernet)を利用するためのドライバが不足している状態と考えられるのでしょうか。
246
+
247
+ 関連ありそうな記事を見つけましたが、pxe boot だと手順が少し違いそうです。
248
+ [Linuxで認識しないNICのドライバをインストールしてみた](https://qiita.com/tsukasa1301/items/f70351ab4d9b164af607)

4

試してみたこと3

2020/07/28 18:39

投稿

teityura
teityura

スコア84

title CHANGED
File without changes
body CHANGED
@@ -200,4 +200,32 @@
200
200
 
201
201
 
202
202
  ### httpサーバの構成
203
- ![http_centos7](b7cea8851c0f0510a52ab7d6e241a3b5.png)
203
+ ![http_centos7](b7cea8851c0f0510a52ab7d6e241a3b5.png)
204
+
205
+ ### 試してみたこと3
206
+ grub.![イメージ説明](6f56cdd2bce6a5bce331e9834e87160a.jpeg)正し、
207
+ devfs=nomount を付けたり、消したり、
208
+ inst.repo=http://192.168.1.220/centos7 を
209
+ inst.repo=http://ftp.riken.jp/Linux/centos/7/os/x86_64/
210
+ に変えたりしてみましたが、やはりダメなようでした。
211
+
212
+ ### dracutプロンプト
213
+ cat /proc/cmdline
214
+ less -N /run/initramfs/rdsosreport.txt
215
+ 等を確認してみました。
216
+
217
+ squashfs.img のダウンロードにコケる前のログを見てみたら、
218
+ (関連あるか分かりませんが、)iscsid がエラーを吐いているのを見つけました。
219
+ ![cat /proc/cmdline](797cd47bd7950ccf68f198ac03825558.jpeg)
220
+ ![dracut_log1](966e5fe1027d6ef6c6c1c41e6d8c7f4b.jpeg)
221
+ ![dracut_log2](c783bcadd08cc6f9f89b285942f0fdaa.jpeg)
222
+
223
+ ### 不安に思ってることなど
224
+ インストール先の機器で、M.2SSD(NVMe接続)を利用しているのですが、
225
+ ・イメージにNVMeを有効にするような命令を追記が必要なのでしょうか。
226
+ ・kickstart の デバイス名は (nvme0とかnvme0n1じゃなくて)sda で問題ないでしょうか。
227
+ (デバイス名については、squashfs.img の入手に成功したあとに分かりますかね)
228
+
229
+ 下記は、WindowsOSの記事ですが、
230
+ PXEブート時、boot.wimにリンクのドライバを含めると書いていました。
231
+ [M.2 SSD (ソリッドステートドライブ) での PXE ブートについての情報](https://www.dell.com/support/article/ja-jp/sln300004/m-2-ssd-%E3%82%BD%E3%83%AA%E3%83%83%E3%83%89%E3%82%B9%E3%83%86%E3%83%BC%E3%83%88%E3%83%89%E3%83%A9%E3%82%A4%E3%83%96-%E3%81%A7%E3%81%AE-pxe-%E3%83%96%E3%83%BC%E3%83%88%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AE%E6%83%85%E5%A0%B1?lang=ja)

3

誤字

2020/07/27 17:54

投稿

teityura
teityura

スコア84

title CHANGED
File without changes
body CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  【pxe boot server】
8
8
  kvm で作成した VM
9
- xinetd, dhcpd, tftp, httpd がうごいてい
9
+ xinetd, dhcpd, tftp, httpd が動作してい
10
10
 
11
11
  ### 事象
12
12
  自宅で、PXEブートサーバを構築し、

2

試したこと2 を追加

2020/07/27 12:48

投稿

teityura
teityura

スコア84

title CHANGED
File without changes
body CHANGED
@@ -1,8 +1,13 @@
1
1
  ### 環境
2
+ 【インストールターゲット】
2
3
  筐体: NUC10i5FNK
3
4
  メモリ: 64GB
4
5
  SSD: 1TB(**__M.2 NVMe接続__**)
5
6
 
7
+ 【pxe boot server】
8
+ kvm で作成した VM
9
+ xinetd, dhcpd, tftp, httpd がうごいてい
10
+
6
11
  ### 事象
7
12
  自宅で、PXEブートサーバを構築し、
8
13
  pxe boot + kickstart で CentOS7 をインストールしていたところ、
@@ -27,6 +32,8 @@
27
32
 
28
33
  ### エラー画像
29
34
  ![sata link down](a847ea45afd71220bd485691745874a5.jpeg)
35
+ ![間1](7f9cdf19784735d34a5499c5c67817bb.jpeg)
36
+ ![間2](a475cababaf20c9590b51a968894ae31.jpeg)
30
37
  ![/dev/root does not exist](f3670fa857b2931f82e55ea2ee6f58a9.jpeg)
31
38
 
32
39
  ##### Grub Config
@@ -87,7 +94,7 @@
87
94
  -rw-r--r-- 1 root root 1205248 Jul 25 16:31 shimx64.efi
88
95
  ```
89
96
 
90
- ### 試したこと
97
+ ### 試したこと1
91
98
  下記を参考に、マウントするファイルシステムのパスを確認しましたが、問題なさそうです。
92
99
  [Qiita: dracut-initqueue timeout って?](https://qiita.com/daisuke0115/items/1814a312a18f9b62a337)
93
100
 
@@ -100,80 +107,97 @@
100
107
  どこから切り分けていけばいいか、助言いただけると嬉しいです。
101
108
 
102
109
  ##### kikstart の内容
103
- 一応、kickstart 内容も載せておき
110
+ 文字数制限に引っかかるで削除しした。
104
- ```
105
- #version=DEVEL
106
111
 
112
+ # 試したこと2
113
+ 1. inst.ks を消してみました
107
- # System authorization information
114
+ 2. vmlinuz,initrd.img の権限を変更してみました
115
+ 3. httpd の アクセスログを見てみましたが、httpdへのアクセスはないようです。
116
+ dhcp の range を 192.168.1.230 ~ 192.168.1.240 にしています。
117
+ (192.168.1.230:??? -> 192.168.1.220.80 へ アクセスがあるはずだが、来なかった)
108
- auth --enableshadow --passalgo=sha512
118
+ 4. pxe boot 中の インストール対象 -> pxe サーバ への
119
+ パケットをキャプチャしてみました。
109
120
 
121
+ RRQ "images/centos7/initrd.img" octet blksize 1024 tsize 0
110
- # Use CDROM installation media
122
+ のあたりで失敗しているのかもしれません。
111
- cdrom
112
123
 
124
+ ```
113
- # Use graphical install
125
+ # Grub メニューのキックスタート(inst.ks)を消してみました
126
+ [root@pxe ~]# cat << 'EOF' > /var/lib/tftpboot/uefi/grub.cfg
127
+ set timeout=60
128
+ menuentry 'Install CentOS 7' {
129
+ linuxefi images/centos7/vmlinuz ip=dhcp inst.repo=http://192.168.1.220/centos7
130
+ initrdefi images/centos7/initrd.img
131
+ }
114
- text
132
+ EOF
115
133
 
116
- # Run the Setup Agent on first boot
117
- firstboot --enable
118
- ignoredisk --only-use=sda
134
+ # ブートローダー? 初期RAMディスク? への
135
+ # ファイルへのアクセス権限が足りないのかと思い、見直しました
136
+ [root@pxe ~]# l /var/lib/tftpboot/images/centos7/
137
+ total 60504
138
+ drwxr-xr-x 2 root root 39 Jul 25 16:30 .
139
+ drwxr-xr-x 3 root root 21 Jul 25 16:30 ..
140
+ -rw-r--r-- 1 root root 55187100 Jul 25 16:30 initrd.img
141
+ -rwxr-xr-x 1 root root 6762688 Jul 25 16:30 vmlinuz
119
142
 
143
+ # とりあえず 777 にしてみました
144
+ [root@pxe ~]# chmod 777 /var/lib/tftpboot/images/centos7/{vmlinuz,initrd.img}
120
145
 
146
+ [root@pxe ~]# l /var/lib/tftpboot/images/centos7/
121
- # Keyboard layouts
147
+ total 60504
122
- keyboard --vckeymap=jp --xlayouts="jp"
148
+ drwxr-xr-x 2 root root 39 Jul 25 16:30 .
149
+ drwxr-xr-x 3 root root 21 Jul 25 16:30 ..
150
+ -rwxrwxrwx 1 root root 55187100 Jul 25 16:30 initrd.img
151
+ -rwxrwxrwx 1 root root 6762688 Jul 25 16:30 vmlinuz
123
152
 
124
- # System language
153
+ # http で 公開しているディレクトリ
154
+ [root@pxe httpd]# l /var/pxe/centos7/
125
- lang en_US.UTF-8
155
+ total 332
156
+ drwxr-xr-x 8 root root 234 Jul 25 16:34 .
157
+ drwxr-xr-x 3 root root 21 Jul 25 16:33 ..
158
+ -rw-r--r-- 1 root root 14 Jul 25 16:33 CentOS_BuildTag
159
+ drwxr-xr-x 3 root root 35 Jul 25 16:33 EFI
160
+ -rw-r--r-- 1 root root 227 Jul 25 16:33 EULA
161
+ -rw-r--r-- 1 root root 18009 Jul 25 16:33 GPL
162
+ drwxr-xr-x 3 root root 57 Jul 25 16:33 images
163
+ drwxr-xr-x 2 root root 198 Jul 25 16:33 isolinux
164
+ -rw-r--r-- 1 root root 2033 Jul 25 17:00 ks.cfg
165
+ drwxr-xr-x 2 root root 43 Jul 25 16:33 LiveOS
166
+ drwxr-xr-x 2 root root 225280 Jul 25 16:33 Packages
167
+ drwxr-xr-x 2 root root 4096 Jul 25 16:33 repodata
168
+ -rw-r--r-- 1 root root 1690 Jul 25 16:33 RPM-GPG-KEY-CentOS-7
169
+ -rw-r--r-- 1 root root 1690 Jul 25 16:33 RPM-GPG-KEY-CentOS-Testing-7
170
+ -r--r--r-- 1 root root 2883 Jul 25 16:33 TRANS.TBL
126
171
 
127
- # Network information
172
+ # httpd の公開範囲
128
- network --bootproto=dhcp --device=eth0 --onboot=off --ipv6=auto --no-activate
173
+ [root@pxe httpd]# cat /etc/httpd/conf.d/pxeboot.conf
129
- network --bootproto=static --device=eth1 --ip=192.168.1.200 --netmask=255.255.255.0 --gateway=192.168.1.1 --nameserver=8.8.8.8 --noipv6 --activate
174
+ Alias /centos7 /var/pxe/centos7
175
+ <Directory /var/pxe/centos7>
130
- network --hostname=localhost.localdomain
176
+ Options Indexes FollowSymLinks
177
+ Require ip 127.0.0.1 192.168.1.0/24
178
+ </Directory>
131
179
 
132
- # Root password
133
- rootpw --iscrypted passxxpass
180
+ # 192.168.1.53 ... ブラウザを開いた普段使いのPC
181
+ # ブラウザ で http://192.168.1.220/centos7/ を開きました
182
+ [root@pxe ~]# cd /var/log/httpd
183
+ [root@pxe httpd]# tail -f access_log
184
+ 192.168.1.53 - - [26/Jul/2020:11:07:08 +0900] "GET / HTTP/1.1" 200 481 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
185
+ 192.168.1.53 - - [26/Jul/2020:11:07:08 +0900] "GET /icons/blank.gif HTTP/1.1" 200 148 "http://192.168.1.220/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
186
+ 192.168.1.53 - - [26/Jul/2020:11:07:10 +0900] "GET / HTTP/1.1" 200 481 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
187
+ 192.168.1.53 - - [26/Jul/2020:11:07:59 +0900] "-" 408 - "-" "-"
188
+ 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /centos7 HTTP/1.1" 301 237 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
189
+ 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /centos7/ HTTP/1.1" 200 3447 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
190
+ 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /icons/back.gif HTTP/1.1" 200 216 "http://192.168.1.220/centos7/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
191
+ 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /icons/unknown.gif HTTP/1.1" 200 245 "http://192.168.1.220/centos7/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
192
+ 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /icons/folder.gif HTTP/1.1" 200 225 "http://192.168.1.220/centos7/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
193
+ 192.168.1.53 - - [26/Jul/2020:11:13:05 +0900] "GET /icons/text.gif HTTP/1.1" 200 229 "http://192.168.1.220/centos7/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
194
+ ```
134
195
 
196
+ ### パケットのやり取り
135
- # SELinux configuration
197
+ 文字数制限に引っかかるので、画像で載せました。
198
+ ![tcpdump1](56d8680fb4766aa4830411d1098c4dcd.png)
136
- selinux --disabled
199
+ ![tcpdump2](d76863c8cc234ef91bde3917d100cba3.png)
137
200
 
138
- # System services
139
- services --disabled="chronyd"
140
201
 
141
- # System timezone
202
+ ### httpサーバの構成
142
- timezone Asia/Tokyo --isUtc --nontp
143
-
144
- # System bootloader configuration
145
- bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
146
-
147
- # Partition clearing information
148
- clearpart --all --initlabel --drives=sda
149
-
150
- # Disk partitioning information
151
- part /boot --fstype="xfs" --size=500 --label=boot --ondisk=sda
152
- part pv.777 --fstype="lvmpv" --size=1 --grow --ondisk=sda
153
- volgroup vg_root --pesize=4096 pv.777
154
- logvol swap --fstype="swap" --size=1024 --name=lv_swap --vgname=vg_root
155
- logvol /home --fstype="xfs" --size=10240 --name=lv_home --vgname=vg_root
156
- logvol /datastore --fstype="xfs" --size=512000 --name=lv_datastore --vgname=vg_root
157
- logvol / --fstype="xfs" --size=1 --grow --name=lv_root --vgname=vg_root
158
-
159
- # If system used EFI
160
- part /boot/efi --fstype=efi --grow --maxsize=200 --size=20
161
-
162
- %packages
163
- @^minimal
164
- @core
165
- chrony
166
- kexec-tools
167
-
168
- %end
169
-
170
- %addon com_redhat_kdump --enable --reserve-mb='auto'
203
+ ![http_centos7](b7cea8851c0f0510a52ab7d6e241a3b5.png)
171
-
172
- %end
173
-
174
- %anaconda
175
- pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
176
- pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
177
- pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
178
- %end
179
- ```

1

kickstart 追記

2020/07/27 12:47

投稿

teityura
teityura

スコア84

title CHANGED
File without changes
body CHANGED
@@ -97,4 +97,83 @@
97
97
  ### 疑問, 実現したいこと
98
98
  NVMeで利用する場合、ドライバか何か追加する必要があるのでしょうか。
99
99
 
100
- どこから切り分けていけばいいか、助言いただけると嬉しいです。
100
+ どこから切り分けていけばいいか、助言いただけると嬉しいです。
101
+
102
+ ##### kikstart の内容
103
+ 一応、kickstart の内容も載せておきます
104
+ ```
105
+ #version=DEVEL
106
+
107
+ # System authorization information
108
+ auth --enableshadow --passalgo=sha512
109
+
110
+ # Use CDROM installation media
111
+ cdrom
112
+
113
+ # Use graphical install
114
+ text
115
+
116
+ # Run the Setup Agent on first boot
117
+ firstboot --enable
118
+ ignoredisk --only-use=sda
119
+
120
+
121
+ # Keyboard layouts
122
+ keyboard --vckeymap=jp --xlayouts="jp"
123
+
124
+ # System language
125
+ lang en_US.UTF-8
126
+
127
+ # Network information
128
+ network --bootproto=dhcp --device=eth0 --onboot=off --ipv6=auto --no-activate
129
+ network --bootproto=static --device=eth1 --ip=192.168.1.200 --netmask=255.255.255.0 --gateway=192.168.1.1 --nameserver=8.8.8.8 --noipv6 --activate
130
+ network --hostname=localhost.localdomain
131
+
132
+ # Root password
133
+ rootpw --iscrypted passxxpass
134
+
135
+ # SELinux configuration
136
+ selinux --disabled
137
+
138
+ # System services
139
+ services --disabled="chronyd"
140
+
141
+ # System timezone
142
+ timezone Asia/Tokyo --isUtc --nontp
143
+
144
+ # System bootloader configuration
145
+ bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
146
+
147
+ # Partition clearing information
148
+ clearpart --all --initlabel --drives=sda
149
+
150
+ # Disk partitioning information
151
+ part /boot --fstype="xfs" --size=500 --label=boot --ondisk=sda
152
+ part pv.777 --fstype="lvmpv" --size=1 --grow --ondisk=sda
153
+ volgroup vg_root --pesize=4096 pv.777
154
+ logvol swap --fstype="swap" --size=1024 --name=lv_swap --vgname=vg_root
155
+ logvol /home --fstype="xfs" --size=10240 --name=lv_home --vgname=vg_root
156
+ logvol /datastore --fstype="xfs" --size=512000 --name=lv_datastore --vgname=vg_root
157
+ logvol / --fstype="xfs" --size=1 --grow --name=lv_root --vgname=vg_root
158
+
159
+ # If system used EFI
160
+ part /boot/efi --fstype=efi --grow --maxsize=200 --size=20
161
+
162
+ %packages
163
+ @^minimal
164
+ @core
165
+ chrony
166
+ kexec-tools
167
+
168
+ %end
169
+
170
+ %addon com_redhat_kdump --enable --reserve-mb='auto'
171
+
172
+ %end
173
+
174
+ %anaconda
175
+ pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
176
+ pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
177
+ pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
178
+ %end
179
+ ```