Please assign a menu to the primary menu location under menu

Virtualization

KVM GPU Passthrough – vfio: error, group number is not viable

KVM 환경에서 Pass-Through 기능을 사용하여, 가상머신에 GPU를 할당시 발생하는 이슈가 있다. vfio: error, group 21 is not viable, please ensure all devices within the iommu_group are bound to their vfio bus driver. 이는 아래와 같은 방식으로 해결 볼 수 있다. 1. PCI 정보를 확인한다. # lspci -nnv | grep NVIDIA 01:00.0 VGA compatible controller: NVIDIA Corporation GP106 (rev a1) 01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1) 2. KVM PCI 목록 조회가상머신에서 사용 할 디바이스를 1번의 lspci를 통해 확인 된 번호와 일치하는 디바이스를 확인 한다. # virsh nodedev-list | egrep ‘pci_0000_01_00_” pci_0000_01_00_0 pci_0000_01_00_1 3. Audio 디바이스

How to install docker on ubuntu

Docker? LXC(Linux Containers) 개념에서 시작하며 기존 가상머신의 단점의 극복과 장점을 극대화 시킨 가상화 어플리케이션 이며, Hypervisor과 같이 운영체제를 통으로 가상화 하기 보단 Host OS와 Container OS의 다른 부분만을 패키징하여 격리시켜 주는 도구 입니다.  그림1. Hypervisor & Linux Container 차이점 Docker 0.8x 버전 이하에서 LXC 드라이버에 의존해서 동작하였는데 0.9x 버전부터는 libcontainer 드라이버가 내장으로 들어가 있어서, LXC 드라이버 없이 커널 컨테이너 API를 액세스할 수 있게 되었습니다. (namespaces, control groups, capabilities, apparmor profiles, network interfaces, firewalling rules) 그림2. New default driver: libcontainer   그리고, Docker는 Hypervisor 위에 올려져 있는 환경에서도 동작합니다. (AWS, KVM, XEN, VMware, Virtualbox…) Docker 설치 Ubuntu 12.04 LTS (64bit), Docker 0.9.1 버전에서 테스트

Converting KVM Virtual Machines To VirtualBox

KVM 환경에서 사용중이던 이미지를 VirtualBox에서 사용이 가능하도록 이미지를 컨버팅 하는 방법입니다. VBoxManage.exe convertfromraw –format 예제) KVM에서 백업 받은 yongbok.net-2014-01-21.img를 VirtualBox에서 사용가능 하도록 vdi 이미지로 컨버팅. VirtualBox가 설치된 경로에 이동 후 C:>cd C:Program FilesOracleVirtualBox img -> vdi로 컨버팅 합니다. C:>VBoxManage.exe convertfromraw –format VDI d:yongbok.net-2014-01-29.img d:vmsyongbok.net-2014-01-29.vdi Converting from raw image file=”d:yongbok.net-2014-01-29.img” to file=”d:vmsvyongbok.net-2014-01-29.vdi”.. Creating dynamic image with size 21474836480 bytes (20480MB)…

How to install XenServer Tools

고급 기능을 사용하기 위해 XenServer Tools를 설치 하는 방법입니다. XenCenter에서 해당 VM에 Install XenServer Tools를 눌러 설치를 진행합니다. Install XenServer Tools 버튼을 누르고 Console 화면으로 이동합니다. xs-tools 라는 임시 디렉토리를 생성 후에 XenServer Tools를 마운트 합니다. # mkdir /mnt/xs-tools # mount /dev/xvdd /mnt/xs-tools   마운트한 경로의 Linux 디렉토리에 install.sh 쉘 스크립트를 실행하여 XenServer Tools를 설치 합니다. # cd /mnt/xs-tools/Linux # ./install.sh Detected `CentOS release 6.4 (Final)’ (centos version 6). The following changes will be made to this Virtual Machine: * update arp_notify sysctl.conf. * packages to be installed/upgraded: – xe-guest-utilities-6.2.0-1120.x86_64.rpm – xe-guest-utilities-xenstore-6.2.0-1120.x86_64.rpm Continue? y 준비 중…               ########################################### 1:xe-guest-utilities-xens########################################### 2:xe-guest-utilities     ###########################################

How to install OpenStack Grizzly on CentOS

CentOS에서 OpenStack Grizzly를 간단하게 설치하는 방법입니다. 본 글에서는 CentOS 6.4에서 테스트 되었으며 Control Node와 Compute Node를 나누고, 각각의 NIC는 2개씩 만들어 Public 네트워크와 Private 네트워크를 사용하도록 설정 하였습니다. Control Node에서는 MySQL, RabbitMQ, Keystone, Glance, Nova Networking, Swift-Proxy, Horizon, Nagios가 설치 되고,          Control Node ┌─────┴──────┐┌ Database (MySQL) │    eth0 – public         ├┼ Queues (RabbitMQ) │    eth1 – private        ├┼ Keystone, Glance, Nova Networking, Swift-Proxy └────────────┘└ Dashboard (Horizon), Nagios Compute Node에서는 KVM, Nova-Compute, Cinder, Swift가 설치 됩니다.          Compute Node ┌─────┴──────┐┌ Hypervisor (KVM) │    eth0 – public         ├┼ Nova-Compute │    eth1 – private     

1 2