Enter the following in the custom data for creating a virtual machine
#cloud-config
timezone: Asia/Tokyo
locale: ja_JP.utf8
package_upgrade: true
packages:
  - tmux
  - tree
power_state:
  delay: "+10"
  mode: reboot
  message: Bye Bye
  timeout: 30
runcmd:
  - setenforce 0
  - sed -i -e 's/^\SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
  - systemctl stop firewalld
  - systemctl disable firewalld
  - systemctl restart rsyslog
--Tmux is installed from the first startup --firefired is in stop state --SELINUX in / etc / selinux / config is disabled --I haven't seen reboot, but I think it's running because it says shutdown in / var / log / messages.
https://qiita.com/yamada-hakase/items/40fa2cbb5ed669aaa85b
Recommended Posts