http://www.slideshare.net/brendangregg/linux-performance-analysis-and-tools
2014년 3월 19일 수요일
Ubuntu KVM 설치
아래 우분투(Ubuntu) 사이트의 가이드대로만 따라하면 됨.
주의. root 계정으로 설치할 것.
https://help.ubuntu.com/community/KVM/Installation
주의. root 계정으로 설치할 것.
https://help.ubuntu.com/community/KVM/Installation
2014년 3월 17일 월요일
Mac OS X Parallels 에서 CPU 가상화(Virtualization)를 위한 Intel VT-X option enable
정말 이 옵션 찾느라 몇시간을 헤멘거 같다.
Parallels에서 CPU 가상화를 위한 Intel VT-X 옵션을 enable 시키는 방법이다.
사실 처음에 VirtualBox 에 우분투(Ubuntu 64bit 12.04.4)를 깔고 거기에 KVM을 설치하는 과정에서 CPU가 가상화지원을 하지 않아 KVM을 설치하지 못한다는 메세지를 보고, 이걸 해결하려고 열심히 구글링 했다.
결론은 Apple Macbook Pro에서는 기본적으로 VT-X 옵션이 enable되어 있기때문에 별도로 할게 없다는 거다. (윈도우의 경우 BIOS에서 Virtualization Technology 옵션을 체크해야 함)
VirtualBox에서도 VT-x/AMD-V 옵션이 모두 체크되어 있는데도 우분투에서는 계속 CPU가 가상화 지원을 안한다고 나오는데 정말 이상했다.
결국 포기하고 Parallels 를 이용해서 성공했다. 내 생각에 Mac OS용 VirtualBox의 버그가 아닌지 모르겠다.
Mac OS X에서 CPU 가상화를 위한 Intel VT-x support 지원여부 확인
How to check that Intel VT-x is supported in CPU:
# sysctl -a | grep machdep.cpu.features
3. You may see output similar to the one bellow
Mac:~ user$ sysctl -a | grep machdep.cpu.features
kern.exec: unknown type returned
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM SSE3 MON VMX EST TM2 TPR PDCM
If you see VMX entry then CPU supports Intel VT-x feature, but it still may be disabled.
Please install all firmware updates from Apple to resolve this issue
add-apt-repository 설치
add-apt-repository 커맨드가 없다고 나올 경우, 아래와 같이 관련 패키지를 설치한다.
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
위 명령을 실행하면 add-apt-repository 커맨드가 설치된다.
sudo apt-get install software-properties-common
위 명령을 실행하면 add-apt-repository 커맨드가 설치된다.
2014년 3월 16일 일요일
Ubuntu에서 apt-get을 이용해 패키지 설치 시 "E: Unable to locate package" 에러
이 요약은 사용할 수 없습니다. 이 글을 보려면
여기를 클릭하세요.
2014년 3월 11일 화요일
OpenStack 설치 - DevStack
==========================
1. VM 설정 및 우분투(ubuntu) 12.04 LTS 설치
==========================
Acquire::http::proxy "http://xx.xx.xx.xx:8080/";
Acquire::https::proxy "https://xx.xx.xx.xx:8080/";
==========================
7. OpenStack 설치
==========================
1. VM 설정 및 우분투(ubuntu) 12.04 LTS 설치
==========================
- Ubuntu 설치
- Guest OS(Ubuntu)에 네트워크 카드 2개 설정
- 하나는 "공유네트워크"(NAT)로 설정하고 다른 하나는 "호스트 전용"으로 설정
- Guest OS(Ubuntu)에 네트워크 카드 2개 설정
- 하나는 "공유네트워크"(NAT)로 설정하고 다른 하나는 "호스트 전용"으로 설정
==========================
2. Network 설정
==========================
- /etc/network/interface 파일 수정
auto eth0
iface eth0 inet static
address 10.1.100.3
netmask 255.255.255.0
gateway 10.1.100.1
dns-nameservers 168.126.63.1
auto eth1
iface eth1 inet static
address 192.168.100.3
netmask 255.255.255.0
- Proxy 서버 설정(Proxy서버가 있는 경우에만 설정)
sudo vi /etc/apt/apt.conf- Proxy 서버 설정(Proxy서버가 있는 경우에만 설정)
Acquire::http::proxy "http://xx.xx.xx.xx:8080/";
Acquire::https::proxy "https://xx.xx.xx.xx:8080/";
==========================
3. Git 설치
==========================
$ sudo apt-get install -y git
==========================
4. 사용자(stack) 추가
==========================
devstack으로 설치를 하기 위해서 stack 사용자를 추가하고 sudo 권한 부여
# useradd -U -G sudo -s /bin/bash -m stack
# echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# passwd stack
==========================
5. Devstack 설치파일 다운로드
==========================
stack 사용자 계정으로 전환 후, 홈 디렉토리에서 Devstack 다운로드
$ git clone git://github.com/openstack-dev/devstack.git
==========================
3. Git 설치
==========================
$ sudo apt-get install -y git
==========================
4. 사용자(stack) 추가
==========================
devstack으로 설치를 하기 위해서 stack 사용자를 추가하고 sudo 권한 부여
# useradd -U -G sudo -s /bin/bash -m stack
# echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# passwd stack
==========================
5. Devstack 설치파일 다운로드
==========================
stack 사용자 계정으로 전환 후, 홈 디렉토리에서 Devstack 다운로드
$ git clone git://github.com/openstack-dev/devstack.git
==========================
6. local.conf 수정
==========================
- ~devstack/samples/local.conf 파일을 devstack 루트 디렉토리로 복사
- 제일 밑에 아래 라인 추가. (한번 설치한 후부터는 인터넷으로부터 패키지설치작업 생량)
OFFLINE=true
7. OpenStack 설치
==========================
~devstack$ ./stack.sh
sudo apt-get install python-setuptools
sudo apt-get install python-dev
sudo apt-get install libevent-dev
error: command 'gcc' failed with exit status 1
sudo apt-get install python-dev
sudo apt-get install libevent-dev
피드 구독하기:
덧글 (Atom)
