2015/04/23

[Cross-Platform][Virtualization] QEMU - 오픈 소스 가상화 프로그램 (Update:20150424)

2015/04/24 15:32:35 - Qemu Simple Boot 링크 추가

Reference Page
QEMU - Wikibooks

Home Page


QEMU

QEMU는 오픈소스 에뮬레이터와 가상화 프로그램입니다. 



위키백과 - QEMU

QEMU는 가상화 소프트웨어 가운데 하나다. Fabrice Bellard가 만들었으며 x86 이외의 기종을 위해 만들어진 소프트웨어 스택 전체를 가상머신 위에서 실행할 수 있다는 특징이 있다. 동적 변환기(Portable dynamic translation)를 사용한다.

IA-32 (x86) PC, AMD64 PC, MIPS R4000, 선 SPARC sun4m, 선 SPARC sun4u, ARM 개발 보드 (Integrator/CP, Versatile/PB), SH4 SHIX 보드, 파워피씨 (PReP 및 파워 매킨토시), ETRAX CRIS 아키텍처의 에뮬레이션 지원하는 다용도 가상화 프로그램입니다.

VMware나 Paralles, VirtualBox와는 다르게 보드 개발이나 테스트 혹은 임베디드 장비 소프트웨어 개발자가 주로 사용합니다. 최근에는 라즈베이파이 개발을 위해 많이 사용하고 있습니다. 

하지만 간단하게 OS를 설치해서 테스트하는 과정도 무리없이 가능합니다. 

대부분의 옵션 (네트워크, 장치 에뮬레이션 등)이 옵션으로 지정되기 때문에 사용법을 정확하게 이해하고 직접 설정해야하기 때문에 초보자가 사용하기는 적절치 않습니다.

** 직접 컴파일 하는 과정이 쉽지 않아서 운영체제별로 다음의 방법을 추천합니다.

1) 윈도우
다음 페이지에서 32bit(w32) 혹은 64bit(w64) 디렉토리로 들어가서 최근 버전을 다운로드 받아서 설치
QEMU Binaries for Windows - http://qemu.weilnetz.de/ 

프로그램 설치 후 PATH에 설치 경로(C:\Program Files\qemu)를 추가하고 실행
C:\>qemu-img
qemu-img: Not enough arguments
Try 'qemu-img --help' for more information

C:\>qemu-img create test.img 5G
Formatting 'test.img', fmt=raw size=5368709120
freespace 121547964416


C:\>qemu-system-x86_64 -m 512 -hda test.img -cdrom kali-linux-1.0.7-amd64.iso -boot d

다음 명령으로 실행된 화면입니다.
qemu-system-x86_64 -m 512 -hda test.img -cdrom kali-linux-1.0.7-amd64.iso -boot d
 
  
2) 리눅스
배포판별로 apt-get, yum과 같은 패키지 관리자로 설치

3) 맥
Homebrew와 같은 패키지 관리자로 설치 후 실행

$ brew install qemu
==> Installing dependencies for qemu: pkg-config, libtool, jpeg, libtasn1, gmp, nettle, gnutl
==> Installing qemu dependency: pkg-config
######################################################################## 100.0%
==> Pouring pkg-config-0.28.mavericks.bottle.2.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.28: 10 files, 604K
==> Installing qemu dependency: libtool
######################################################################## 100.0%
==> Pouring libtool-2.4.2.mavericks.bottle.2.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
🍺  /usr/local/Cellar/libtool/2.4.2: 66 files, 2.2M
==> Installing qemu dependency: jpeg
######################################################################## 100.0%
==> Pouring jpeg-8d.mavericks.bottle.2.tar.gz
🍺  /usr/local/Cellar/jpeg/8d: 18 files, 780K
==> Installing qemu dependency: libtasn1
######################################################################## 100.0%
==> Pouring libtasn1-4.0.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/libtasn1/4.0: 55 files, 564K
==> Installing qemu dependency: gmp
######################################################################## 100.0%
==> Pouring gmp-6.0.0a.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/gmp/6.0.0a: 15 files, 3.2M
==> Installing qemu dependency: nettle
######################################################################## 100.0%
==> Pouring nettle-2.7.1.mavericks.bottle.1.tar.gz
🍺  /usr/local/Cellar/nettle/2.7.1: 66 files, 1.7M
==> Installing qemu dependency: gnutls
######################################################################## 100.0%
==> Pouring gnutls-3.2.15.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/gnutls/3.2.15: 931 files, 8.5M
==> Installing qemu dependency: gettext
######################################################################## 100.0%
==> Pouring gettext-0.18.3.2.mavericks.bottle.tar.gz
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

OS X provides the BSD gettext library and some software gets confused if both are in the library path.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/gettext/lib
    CPPFLAGS: -I/usr/local/opt/gettext/include

==> Summary
🍺  /usr/local/Cellar/gettext/0.18.3.2: 1835 files, 19M
==> Installing qemu dependency: libffi
######################################################################## 100.0%
==> Pouring libffi-3.0.13.mavericks.bottle.tar.gz
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Some formulae require a newer version of libffi.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libffi/lib

==> Summary
🍺  /usr/local/Cellar/libffi/3.0.13: 13 files, 388K
==> Installing qemu dependency: glib
######################################################################## 100.0%
==> Pouring glib-2.40.0_1.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/glib/2.40.0_1: 410 files, 18M
==> Installing qemu dependency: pixman
######################################################################## 100.0%
==> Pouring pixman-0.32.6.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/pixman/0.32.6: 11 files, 1.4M
==> Installing qemu
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/qemu/2.0.0_1 --cc=clang --host-cc=clang --enable-cocoa --
==> make V=1 install
🍺  /usr/local/Cellar/qemu/2.0.0_1: 120 files, 98M, built in 6.9 minutes
$ qemu-img create test.img 5G
Formatting 'test.img', fmt=raw size=5368709120 
$ qemu-system-
qemu-system-aarch64       qemu-system-mips          qemu-system-s390x
qemu-system-alpha         qemu-system-mips64        qemu-system-sh4
qemu-system-arm           qemu-system-mips64el      qemu-system-sh4eb
qemu-system-cris          qemu-system-mipsel        qemu-system-sparc
qemu-system-i386          qemu-system-moxie         qemu-system-sparc64
qemu-system-lm32          qemu-system-or32          qemu-system-unicore32
qemu-system-m68k          qemu-system-ppc           qemu-system-x86_64
qemu-system-microblaze    qemu-system-ppc64         qemu-system-xtensa
qemu-system-microblazeel  qemu-system-ppcemb        qemu-system-xtensaeb
$ qemu-system-x86_64 -m 512 -hda test.img -cdrom kali-linux-1.0.7-amd64.iso -boot d
  
다음 명령으로 실행된 화면입니다.
qemu-system-x86_64 -m 512 -hda test.img -cdrom kali-linux-1.0.7-amd64.iso -boot d
 
  
2015/04/24 15:32:35 - Qemu Simple Boot 링크 추가


검색: Cross Platform, 크로스 플랫폼, Windows, 윈도우, Win, 윈, Macintosh, 매킨토시, Mac, 맥, Linux, 리눅스, QEMU, Virtual Machine, 가상 머신, Virtualization, 가상화, 

댓글 없음:

댓글 쓰기