Windows Server 2012 R2 の Hyper-V 上で動かしている CentOS7.2(x86_64) が起動する最小メモリのメモ.CentOS6.7 版の続き.
まず,不要そうな service を探す.動いているサービスを探すために,
systemctl list-units --type=service | grep "running"
で,今のところ以下のサービスが動いているぽい.
auditd.service loaded active running Security Auditing Service crond.service loaded active running Command Scheduler dbus.service loaded active running D-Bus System Message Bus [email protected] loaded active running Getty on tty1 hypervkvpd.service loaded active running Hyper-V KVP daemon irqbalance.service loaded active running irqbalance daemon lvm2-lvmetad.service loaded active running LVM2 metadata daemon NetworkManager.service loaded active running Network Manager polkit.service loaded active running Authorization Manager postfix.service loaded active running Postfix Mail Transport Agent rsyslog.service loaded active running System Logging Service sshd.service loaded active running OpenSSH server daemon systemd-journald.service loaded active running Journal Service systemd-logind.service loaded active running Login Service systemd-udevd.service loaded active running udev Kernel Device Manager tuned.service loaded active running Dynamic System Tuning Daemon wpa_supplicant.service loaded active running WPA Supplicant daemon
不要そうなのは,wpa_supplicant.service くらいかな.ということで無効化する.
systemctl stop wpa_supplicant systemctl disable wpa_supplicant systemctl is-enabled wpa_supplicant
あぁ,それと,
chkconfig --list
で,
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
netconsole は要らないなぁ.ということで,
chkconfig netconsole off
で停止.
これで準備が整ったということで,128MB単位でメモリを増減させて,起動する下限は256MB.CentOS6.7 よりも少ないメモリで普通に動きますねぇ.少し驚いた.