프로그램 사용/xen2012. 3. 28. 23:52
ubuntu 11.10에서의 xen 패키지 목록

$ sudo apt-cache search xen | grep ^xen
xen-tools - Tools to manage Xen virtual servers
xen-utils-common - XEN administrative tools - common files
xenomai-doc - Xenomai documentation
xenomai-runtime - Xenomai runtime utilities
xenwatch - Virtualization utilities, mostly for Xen
xen-hypervisor-4.1-i386 - Xen Hypervisor on i386
xen-docs-4.1 - Documentation for Xen
xen-hypervisor-4.1-amd64 - Xen Hypervisor on AMD64
xen-utils-4.1 - XEN administrative tools
xenstore-utils - Xenstore utilities for Xen


하이퍼바이저를 설치하면 자동으로 커널이 추가된다.
굳이 별도로 virtual 커널을 설치할 필요가 없다.


---
$ sudo apt-cache search linux-image
linux-image-3.0.0-12-generic-pae - Linux kernel image for version 3.0.0 on x86
linux-image-3.0.0-12-generic - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-12-server - Linux kernel image for version 3.0.0 on x86_64
linux-image-3.0.0-12-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-extra-3.0.0-12-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-13-generic-pae - Linux kernel image for version 3.0.0 on x86
linux-image-3.0.0-14-generic-pae - Linux kernel image for version 3.0.0 on x86
linux-image-3.0.0-15-generic-pae - Linux kernel image for version 3.0.0 on x86
linux-image-3.0.0-16-generic-pae - Linux kernel image for version 3.0.0 on x86
linux-image-3.0.0-17-generic-pae - Linux kernel image for version 3.0.0 on x86
linux-image-generic-pae - Generic Linux kernel image
linux-image - Generic Linux kernel image.
linux-image-3.0.0-13-generic - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-13-server - Linux kernel image for version 3.0.0 on x86_64
linux-image-3.0.0-13-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-14-generic - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-14-server - Linux kernel image for version 3.0.0 on x86_64
linux-image-3.0.0-14-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-15-generic - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-15-server - Linux kernel image for version 3.0.0 on x86_64
linux-image-3.0.0-15-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-16-generic - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-16-server - Linux kernel image for version 3.0.0 on x86_64
linux-image-3.0.0-16-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-17-generic - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-17-server - Linux kernel image for version 3.0.0 on x86_64
linux-image-3.0.0-17-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-extra-3.0.0-13-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-extra-3.0.0-14-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-extra-3.0.0-15-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-extra-3.0.0-16-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-extra-3.0.0-17-virtual - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-extra-virtual - Linux kernel extra modules for virtual machines
linux-image-generic - Generic Linux kernel image
linux-image-server - Linux kernel image on Server Equipment.
linux-image-virtual - Linux kernel image for virtual machines
linux-virtual - Complete Linux kernel for virtual machines

$ uname -a
Linux xen64test 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

$ sudo apt-get install linux-virtual
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다      
상태 정보를 읽는 중입니다... 완료
다음 패키지를 더 설치할 것입니다:
  linux-image-3.0.0-17-virtual linux-image-virtual
제안하는 패키지:
  fdutils linux-doc-3.0.0 linux-source-3.0.0 linux-tools
다음 새 패키지를 설치할 것입니다:
  linux-image-3.0.0-17-virtual linux-image-virtual linux-virtual
0개 업그레이드, 3개 새로 설치, 0개 제거 및 361개 업그레이드 안 함.
11.6 M바이트 아카이브를 받아야 합니다.
이 작업 후 33.5 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까 [Y/n]?



'프로그램 사용 > xen' 카테고리의 다른 글

xen 관련 용어 - Dom0 / DomU  (0) 2012.03.29
xen / kvm / virtualbox 성능비교  (0) 2012.03.29
xm list 에러  (0) 2012.03.27
ubuntu 10.04 LTS에 xen 설치하기  (0) 2012.03.27
Xen on Ubuntu 11.10  (0) 2012.03.25
Posted by 구차니
프로그램 사용/xen2012. 3. 27. 22:58

검색을 해보니 커널이 xen 커널이 아닐경우 이런 에러가 발생한다고 한다.

그나저나 linux-image-virtual 패키지로 깔면 USB 키보드가 안되는걸 어쩌라구 ㅠ.ㅠ

그냥 10.04 LTS에 xen은 포기하고 12.04가 나오길 기다리거나 11.10에 해봐야하려나?


$ xm list

ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory)

Traceback (most recent call last):

  File "/usr/sbin/xm", line 8, in <module>

    from xen.xm import main

  File "/usr/lib/python2.6/dist-packages/xen/xm/main.py", line 61, in <module>

    xc = xen.lowlevel.xc.xc()

xen.lowlevel.xc.Error: (1, 'Internal error', 'Could not obtain handle on privileged command interface (2 = No such file or directory)') 


'프로그램 사용 > xen' 카테고리의 다른 글

xen / kvm / virtualbox 성능비교  (0) 2012.03.29
xen on ubuntu 11.10  (0) 2012.03.28
ubuntu 10.04 LTS에 xen 설치하기  (0) 2012.03.27
Xen on Ubuntu 11.10  (0) 2012.03.25
kvm - Kernel mode Virtual Machine  (0) 2012.03.06
Posted by 구차니
프로그램 사용/xen2012. 3. 27. 22:50

10.04 LTS에서는 딱히 된다 안된다는 말은 없지만, 

대부분의 링크내용들이 직접 컴파일 하는것 봐서는 64bit desktop 버전을 깔아도 딱히 될것 같진 않다.

[링크 : http://blog.naver.com/wja30/100122757469]


일단 필요한 기본 패키지는 아래와 같은데

$ sudo apt-get install xen-hypervisor-3.3 xen-utils-3.3 xenwatch xen-docs-3.3


$ sudo apt-get install virtinst virt-viewer virt-manager


$ apt-cache search linux-image


머.. virtual 이 가상화 커널 같긴한데, 마우스도 안 먹고 먹통이 되네 후우..

그냥 속편하게(?) 11.10 으로 다시 시도를 해봐야 하려나?

[링크 : http://packages.ubuntu.com/lucid/linux-image-virtual]



---

2012.3.31 추가

11.10 에서 해보고 와서 10.04 에서 해보니 xen-hypervisor-3.3을 설치해도 커널이 추가되진 않는듯 하다.

grub에서 해당 xen 메뉴가 뜨지 않는다.

'프로그램 사용 > xen' 카테고리의 다른 글

xen on ubuntu 11.10  (0) 2012.03.28
xm list 에러  (0) 2012.03.27
Xen on Ubuntu 11.10  (0) 2012.03.25
kvm - Kernel mode Virtual Machine  (0) 2012.03.06
xen 사용가능한 cpu 확인하기  (0) 2012.01.25
Posted by 구차니
프로그램 사용/xen2012. 3. 25. 23:19
혹시나 해서 신버전(?)으로 찾아보니
$ sudo apt-get install xen-hypervisor-4.1-amd64 xen-utils-4.1 xenwatch xen-tools xen-utils-common xenstore-utils  
[링크 : http://www.beyondlinux.com/2011/11/02/install-xen-4-1-and-setup-your-cloud-os-on-ubuntu-11-10/]   
xen 하이퍼바이저 바이너리가 존재한다.

With kernels 2.6.39+ for the first time it is possible to provide a dom0 and domU without the kernel patch.
[링크 : http://martincarstenbach.wordpress.com/.../getting-started-with-xen-virtualisation-on-ubuntu-11-10/


---
+ 혹시나 해서 10.04 LTS에서 검색을 xen-hypervisor로 검색을 하니 3.3 버전이 나온다.
음.. 12.04가 코앞이니 머 상관없으려나?
[링크 : http://packages.ubuntu.com/search?keywords=xen-hypervisor-3.3

$ sudo apt-cache search xen | grep ^xen
xen-docs-3.3 - documentation for XEN, a Virtual Machine Monitor
xen-hypervisor-3.3 - The Xen Hypervisor for i386 and amd64.
xen-utils-3.3 - XEN administrative tools
xenner - An xen emulator without the need of a xen hypervisor.
xenomai-doc - Xenomai documentation
xenomai-runtime - Xenomai runtime utilities
xenwatch - Virtualization utilities, mostly for Xen 
 

'프로그램 사용 > xen' 카테고리의 다른 글

xm list 에러  (0) 2012.03.27
ubuntu 10.04 LTS에 xen 설치하기  (0) 2012.03.27
kvm - Kernel mode Virtual Machine  (0) 2012.03.06
xen 사용가능한 cpu 확인하기  (0) 2012.01.25
xen 설치관련 문서링크  (0) 2010.11.14
Posted by 구차니
특정 파일을 선택한 후 우클릭 - TortoiseSVN - Properties에서
Add Property를 하면 아래의 창이 뜨고 원하는 속성을 추가하면 된다.



 [링크 : http://johnbokma.com/mexit/2008/09/30/subversion-svn-keywords-property.html]

---
2012.03.23 추가
소스에서 $Rev$를 추가하고
위의 과정을 통해 snv:keywords 에서 property value를 Rev로 입력해준다.
그리고 나서 커밋을 하면 아래와 같이 소스가 변경된다.


다시 해제 하면 아래와 같이 소스가 변경됨을 알 수 있다.


 
Posted by 구차니
프로그램 사용/xen2012. 3. 6. 19:06
xen을 찾다보니 나오는 다른 가상화 프로그램.

[링크 : http://www.linux-kvm.org/page/Main_Page]
[링크 : https://help.ubuntu.com/community/KVM]

'프로그램 사용 > xen' 카테고리의 다른 글

ubuntu 10.04 LTS에 xen 설치하기  (0) 2012.03.27
Xen on Ubuntu 11.10  (0) 2012.03.25
xen 사용가능한 cpu 확인하기  (0) 2012.01.25
xen 설치관련 문서링크  (0) 2010.11.14
Intel ATOM cpu중 가상화 지원모델  (2) 2010.09.24
Posted by 구차니
지금까지 사용하면서 뻗은적은 없지만(역설적으로 리눅스 커널이 안정적인걸지도)
최악의 경우 시스템을 통채로 뻗게 할 수 있다고 한다.

Problems with coLinux

The primary disadvantage of coLinux is that it has the ability to crash the entire machine (all cooperating operating systems) because the guest operating system runs in a privileged mode in the host kernel. It also has some dependencies on external software for normal operation (windows and networking support). Outside of this, it's quite easy to install and configure. In the many hours that I've used it, I've never seen a crash.
 

[링크 : http://www.ibm.com/developerworks/library/l-virtualization-colinux/]  

Posted by 구차니
프로그램 사용/antlr2012. 2. 23. 21:25
lexer(어휘분석기)는 token을 구분해내고
paser(구문분석기)는 lexer가 구분해낸 token의 문법구조를 분석한다.
아래예제에서 startRule()은 .g(rule)파일에서 가장 처음 규칙을 지칭한다.

int main(int argc,char** argv)
{
  try {
    std::ifstream inputstream("test.c", std::ifstream::in);
    MLexer* mainLexer = new MLexer(inputstream);
    mainLexer->setFilename("test.c");
    
    parser = new PParser(*mainLexer);
    parser->setFilename("test.c");
    gCurrentInputStream = &inputstream;
    parser->startRule();
  }
  catch(exception& e) {
    cerr << "exception: " << e.what() << endl;
  }
return 0;
}


int main(int argc,char** argv)
{
  try {
    … // 어휘 분석기/구문 분석기를 설정하기 위한 코드
    parser->startRule();
  }
  catch(ANTLR_USE_NAMESPACE(antlr)RecognitionException& e) {
    // 필요한 작업 수행
  }
  catch(ANTLR_USE_NAMESPACE(antlr)TokenStreamException& e) { 
    // 필요한 작업 수행
  }
return 0;
}

[링크 : http://www.ibm.com/developerworks/kr/library/tutorial/au-parsingwithantlr/index.html]
     [링크 : http://www.ibm.com/developerworks/kr/library/tutorial/au-parsingwithantlr/section5.html]

'프로그램 사용 > antlr' 카테고리의 다른 글

java를 이용한 antlr AST 탐색하기(AST navigation)  (0) 2011.11.02
ANTLR IDE 2.1.2 for ANTLR 3.0 above  (0) 2011.11.02
antlrworks  (0) 2011.11.02
antlr + eclipse & java  (0) 2011.10.30
antlr / pccts package  (0) 2011.10.24
Posted by 구차니
이클립스에서 svn을 통해 올리는데 이런 에러가 배를 짼다 -_-
알고보니 구글 코드를 https가 아니라 http로 해서 발생한 문제
http의 경우 update는 가능하지만 commit은 불가능하다.

org.apache.subversion.javahl.ClientException: RA layer request failed
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '/svn/!svn/act/ca9894f5-921e-5345-9624-5964af3da63c'

org.apache.subversion.javahl.ClientException: RA layer request failed
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '/svn/!svn/act/ca9894f5-921e-5345-9624-5964af3da63c' 

Posted by 구차니
프로그램 사용/gcc2012. 2. 12. 11:19
gcc 도움말에 의하면 아래의 경로에서 기본적으로 include 파일을 찾게 된다는데

2.3 Search Path

GCC looks in several different places for headers. On a normal Unix system, if you do not instruct it otherwise, it will look for headers requested with #include <file> in:

     /usr/local/include
     libdir/gcc/target/version/include
     /usr/target/include
     /usr/include

[링크 : http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html]  

음.. 저 긴 옵션을 다 줘야 하는 이유는 먼지 모르겠지만,
아무튼 확인해보면 /usr/local/include가 /usr/include 보다 우선적으로 검색하게 된다.
그런 이유로 opencv가 /usr/local/include에 설치되는 듯하다.
$ g++ -v -x c -E -
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 
COLLECT_GCC_OPTIONS='-v' '-E' '-shared-libgcc' '-mtune=generic' '-march=i486'
 /usr/lib/gcc/i486-linux-gnu/4.4.3/cc1 -E -quiet -v - -D_FORTIFY_SOURCE=2 -mtune=generic -march=i486 -fstack-protector
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.4.3/include
 /usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed
 /usr/include
End of search list.

[링크 : http://gcc.gnu.org/ml/gcc-help/2007-09/msg00216.html]   

'프로그램 사용 > gcc' 카테고리의 다른 글

ubuntu gcc가 바보  (2) 2013.09.19
gcc 64bit 확장  (0) 2013.01.13
gcc의 2진수 표기법  (0) 2011.12.28
c++ 컴파일 오류 - error: extra qualification  (0) 2011.10.12
gcc 컴파일 단계별 옵션  (0) 2010.03.04
Posted by 구차니