AKAI TSUKI

System development or Technical something

Linux

KVM with cloud-init

CentOS 8 VM Image I get CentOS 8 VM Image. [root@pm01 images]# wget https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2 [root@pm01 ~]# qemu-img info images/CentOS-8-GenericCloud-8.2.2004-2…

build and install tmux 3.1b on CentOS 7.

github.com install some packages "Run Packages" and "Build Packages" [root@vm02 ~]# yum install libevent ncurses libevent-devel ncurses-devel gcc make bison pkg-config *snip* Installed: bison.x86_64 0:3.0.4-2.el7 gcc.x86_64 0:4.8.5-39.el7 …

Create a new VM in CentOS 7.x(KVM)

create Hash Password 1) execute below command and input root's Password [root@pm01 ~]# python -c 'import crypt,getpass; pw=getpass.getpass(); print(crypt.crypt(pw) if (pw==getpass.getpass("Re-Password: ")) else exit())' Password: <<input password>> Re-Pas…

try to use hash in Bash

This is sample script. [root@pm01 ~]# cat get_log.sh #!/bin/bash nodes=( vm01 vm02 vm03 ) declare -A IP_ADDRESSES; IP_ADDRESSES=( ["vm01"]="192.168.122.62" ["vm02"]="192.168.122.68" ["vm03"]="192.168.122.12" ["vm04"]="192.168.122.11" ) dec…

for loop sample by Bash

try loop sample [root@pm01 ~]# sh get_log.sh 0 => vm01 1 => vm02 2 => vm03 [root@pm01 ~]# [root@pm01 ~]# cat get_log.sh #!/bin/bash nodes=( vm01 vm02 vm03 ) cnt=0 for node in "${nodes[@]}" do echo "$cnt => $node" let cnt++ done [root@pm01 …

I try to create VM(KVM) of CentOS 7.x.

I select centos 7.x iso file from below site. http://isoredirect.centos.org/centos/7/isos/x86_64/

try dnsmasq

Install Dnsmasq [root@cent7devops ~]# yum -y install dnsmasq initial state after yum install [root@cent7devops ~]# grep -v -e "^#.*" -e "^$" /etc/dnsmasq.conf conf-dir=/etc/dnsmasq.d,.rpmnew,.rpmsave,.rpmorig [root@cent7devops ~]# [root@ce…

I try to use opetion of "nmcli" command.

option "-t" and "-f" ex. 1 [root@localhost ~]# nmcli -f ipv4.addresses c s enp0s3 ipv4.addresses: 172.16.10.111/24 [root@localhost ~]# ex. 2 [root@localhost ~]# nmcli -t -f ipv4.addresses c s enp0s3 ipv4.addresses:172.16.10.111/24 [root@lo…

systemd configuration for coredns

I refer to the page below. https://github.com/coredns/deployment/blob/master/systemd/coredns.service add coredns user [root@cent7devops ~]# useradd coredns -s /sbin/nologin -c 'coredns user' create service file for systemd [root@cent7devop…

use Ansible vault.

about ansible version check version. # ansible --version ansible 2.6.1 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module …

I'd like to use ceph dashboard.

Before this page, please check this post. I'd like to use CephFS on CentOS 7. - AKAI TSUKI ceph dashboard I'd like to use ceph dashboard. http://docs.ceph.com/docs/mimic/mgr/dashboard/ [cuser@ceph01 ~]$ sudo ceph mgr module enable dashboar…

I'd like to use CephFS on CentOS 7.

Before this page, please check these post. Try to install Ceph in CentOS 7 referencing "STORAGE CLUSTER QUICK START" - AKAI TSUKI Install Ceph in CentOS 7. - AKAI TSUKI I'd like to use CephFS. http://docs.ceph.com/docs/master/cephfs/create…

Try to install Ceph in CentOS 7 referencing "STORAGE CLUSTER QUICK START"

Before you read this page, please check below page. Install Ceph in CentOS 7. - AKAI TSUKI STORAGE CLUSTER QUICK START Please check this url. http://docs.ceph.com/docs/master/start/quick-ceph-deploy/ Install ceph-deploy tool. [root@ceph04 …

Install Ceph in CentOS 7.

Preparation PREFLIGHT CHECKLIST http://docs.ceph.com/docs/master/start/quick-start-preflight/ I confirmed this url. I use these nodes. node role ip ceph01 mon.node1/osd.0 172.16.10.111/24 ceph02 osd.1 172.16.10.112/24 ceph03 osd.2 172.16.1…

When I study systemd.

This is useful information page for systemd. systemd - ArchWiki

announced Grafeas

GrafeasをGoogleやIBMなど8社が共同開発 jp.techcrunch.com github.com

use NFS on CentOS 7

environment hostname ip node cent7no12 172.16.10.212 nfs client cent7no41 172.16.10.241 nfs server setting for nfs-server on cent7no41 # yum -y install nfs-utils # vi /etc/idmapd.conf Domain = cent7no41 # mkdir -p /home/nfs # chmod a+w /ho…

Install icinga2 (5)

Install icinga2 (4) - AKAI TSUKI check on Server [root@cent7no06 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 172.16.…

Install icinga2 (4)

Install icinga2 (3) - AKAI TSUKI access to setup page by Chrome Browser

Install icinga2 (3)

Install icinga2 (2) - AKAI TSUKI install httpd # yum install -y httpd ==================================================================================================== Package Arch Version Repository Size ===============================…

Install icinga2 (2)

Install icinga2 (1) - AKAI TSUKI install mariadb # yum install -y mariadb mariadb-server ==================================================================================================== Package Arch Version Repository Size ============…

Install icinga2 (1)

check SELinux config # getenforce Disabled # # cat /etc/sysconfig/selinux | grep -v "^#" | grep -v "^$" SELINUX=disabled SELINUXTYPE=targeted # install icinga2 repo # yum install -y https://packages.icinga.com/epel/icinga-rpm-release-7-lat…

Use Google Chrome v59 Headless mode on CentOS 7.

Create a file chrome.repo # vi /etc/yum.repos.d/chrome.repo # cat /etc/yum.repos.d/chrome.repo [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.goo…

ssh-keygen specifying output file with no passphrase.

create ssh key. $ ssh-keygen -t rsa -b 2048 -f ./id_rsa -N "" Generating public/private rsa key pair. Your identification has been saved in ./id_rsa. Your public key has been saved in ./id_rsa.pub. The key fingerprint is: *snip* The key's …

Setup LXD on Ubuntu 16.04

In the case of using Ubuntu Server 16.04, already the server was intalled LXD. check version test@ubuntu01:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS" tes…

Try to create OpenSSL x509 certificate (2)

Generate RSA private key (des3) $ openssl genrsa -des3 -out server.key 4096 Generating RSA private key, 4096 bit long modulus .....++ .........................................................................................................…

Try to create OpenSSL x509 certificate

Generate RSA private key $ openssl genrsa -out server.key 4096 Generating RSA private key, 4096 bit long modulus .......................................................++ ..........++ e is 65537 (0x10001) $ Generate a certificate signing r…

setup bridge device on CentOS 7, by use OVS

add bridge device by ovs-vsctl [root@kvmtest ~]# ovs-vsctl add-br br0 [root@kvmtest ~]# ovs-vsctl add-port br0 enp0s3 ifcfgenp0s3 interface configuration file [root@kvmtest ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3 DEVICE=enp0s3 …

install Open vSwitch on CentOS 7

Add rpm repository I get rpm from below page to add rdo repository. I perform this command [root@kvmtest ~]# yum localinstall https://repos.fedorapeople.org/repos/openstack/openstack-ocata/rdo-release-ocata-2.noarch.rpm Install OVS [root@k…

install bash_kernel for jupyter notebook.

After installation of jupyter notebook, I install bash kernel to jupyter notebook. GitHub - takluyver/bash_kernel: A bash kernel for IPython Command list install bash_kernel # pip3.5 install bash_kernel # python3 -m bash_kernel.install sta…