Author's posts

iptables NAT

iptables 로 NAT 설정해 사용하는 방법 1. 서버쪽 설정 eth0: public IP, eth1: private IP /etc/sysctl.conf 에서 forwarding을 허용하도록 설정하고 sysctl커맨드로 적용한다.

Continue reading

openstack billing module

openstack 학습(?)중 과금 관련된 모듈 프로젝트가 있음을 알게 되었다. 이름은 ceilometer. 이프로젝트 목적이 monitoring 과 metering 이라고 한다. 참고: https://wiki.openstack.org/wiki/Ceilometer cloudstack에도 hostbill이라는 모듈이 있다. 참고: http://hostbillapp.com/features/apps/cloudstack.html

오픈소스 백업 솔루션 Bacula 설치와 사용하기.

회사 서버가 없어졌으므로, bacula 백업 – 설치, 구성, 사용 에 내용을 다시 정리. 아래는 원래글

Continue reading

solaris10 ssh 접속 문제.

문제: ssh 접속 안되는 error: grantpt: 사용 권한이 거부됨 error: session_pty_req: session 0 alloc failed 해결방안: http://www.sunmanagers.org/pipermail/summaries/2005-April/006356.html This was caused by my finish script removing the setuid bit from /usr/lib/pt_chmod. Once I added the setuid bit, non root users can login.  

virt-manager 폰트문제

CentOS 6.4 min 버전 설치후, x11 forwarding 환경에서, virt-manager 실행하면 글자가 제대로 보이지 않는 경우가 있다. 해결하기 위해서는, 아래 폰트를 설치해주면 된다. # yum install dejavu-lgc-sans-fonts 그러면 아래와같이 잘 보일 것이다.  

CentOS 6.4에 Xen 설치하기

설치환경 OS: CentOS 6.4 설치전 selinux 를 사용하지 않도록 변경한 후 서버를 재부팅한다. # vi /etc/selinux/config SELINUX=disabled 1. bridge 인터페이스를 만든다. /etc/sysconfig/network-scripts/ifcfg-br0 생성하고, 같은 디렉토리의 ifcfg-eth0를 수정. # cat ifcfg-br0 DEVICE=br0 TYPE=Bridge ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=none IPADDR=59.29.142.121 NETMASK=255.255.255.0 NAME=”System br0″ DEFROUTE=yes # cat ifcfg-eth0 DEVICE=eth0 HWADDR=00:0A:E4:82:A5:DE TYPE=Ethernet UUID=a050e280-9ad9-48cd-b234-7cf33b0eea48 ONBOOT=yes NM_CONTROLLED=yes #BOOTPROTO=static #IPADDR=59.29.142.121 #NETMASK=255.255.255.0 NAME=”system eth0″ BRIDGE=br0

Continue reading

virt-manager 실행 오류.

virt-manager 류의 프로그램을 사용해야하는데, x11 포워딩이 안되는경우 보통 로그인할때 아래 메시지가 나온다. WARNING! The remote SSH server rejected X11 forwarding request. /etc/ssh/sshd_conf 파일에서 forwarding 부분이 이상이 없다면, xauth 패키지를 설치해 본다. 이 경우는 CentOS6.4 # yum install xauth 아래는 /var/lib/dbus/에 machine-id 파일이 없어서 생기는 virt-manager가 실행되지 않는 문제. # virt-manager Xlib: extension “RANDR” missing on …

Continue reading

자체 인증서로 apache-ssl 만들기?

참고문서: http://www.fis.unipr.it/pub/linux/redhat/9/en/doc/RH-DOCS/rhl-cg-ko-9/s1-secureserver-certs.html 1. private key 생성. # openssl genrsa -des3 -out server.key 1024 Generating RSA private key, 1024 bit long modulus ……….++++++ ………………………….++++++ e is 65537 (0x10001) Enter pass phrase for server.key: Verifying – Enter pass phrase for server.key:

Continue reading

실제 환경에서 cloudstack 구성하기 – 오류를 중심으로.

얼마전에, 서버 한대에 cloudstack 4.0을 설치한 적이 있었다. kvm 서버와 management서버, NFS서버등등을 하나의 서버에 때려 넣고 설치하고 작동 확인을 해 본 것이다.(http://blog.boxcorea.com/wp/archives/732) 이번에는 실제 세 대의 서버에 cloudstack을 설치 하고 사용해 보았다. 구성 환경: OS: Ubuntu12.10 Linux Box1: ip:59.29.142.85 fox1 Linux Box2: 59.29.142.86 fox2 Linux Box3: 59.29.142.87 fox3

Continue reading

time zone 변경하기.

설치할때, time zone을 선택하지 않았을경우, date 커맨드 시간이 UTC로 표시되는 경우가 있다. 시간대를 KST로 변경하려면, 1. tzselect 커맨드 사용. 2. .profile 에 TZ=’Asia/Seoul’; export TZ 를 등록하여 사용. 3. /etc/timezone을 직접 수정하는 방법. # cat /etc/timezone Asia/Seoul