libguestfs는 가상머신 디스크 이미지에 대한 접근 및 수정하기 위한 다양한 도구를 제공하는 라이브러리이다. 이 라이브러를 통해 여러분들은 게스트 OS 내부의 파일을 수정하거나 VM에 대한 스크립트 작성, 가상 머신의 디스크 / 메모리 사용량 통계 모니터링, 게스트 생성, 백업, VM 복제, 디스크 포멧, 디스크 조정 등 다양한 작업을 할 수 있다. libguestfs는 C 라이브러리로 되어 있어 C/C++ 관리 프로그램들과 연결 가능하다. 현재 최신 버전의 libguestfs는 1.31.16 (2015.10.09 기준)이다.
설치 방법은 다음과 같다.
페도라 또는 레드햇 엔터프라이즈 버전
sudo yum install libguestfs-tools
우분트
sudo apt-get install libguestfs-tools
libguestfs-tools이 정상적으로 설치되었다면 다음과 같은 툴들이 설치 될 것이다.
guestfish — 대화식 쉘
guestmount — 호스트에서 게스트 파일 시스템 마운트
guestunmount — 게스트 파일 시스템 마운트 해제
virt-alignment-scan — 가상 머신 파티션 alignment 검사
virt-builder — 속성 이미지 빌더
virt-cat — 파일 내용 출력
virt-copy-in — VM으로 파일 또는 디렉토리 복사
virt-copy-out — VM에서 파일 또는 디렉토리 복사
virt-customize — 가상 머신 수정
virt-df — 디스크 사용량
virt-dib — safe diskimage-builder
virt-diff — differences
virt-edit — 파일 편집
virt-filesystems — 파일 시스템, 디바이스, LVM에 대한 정보 출력
virt-format — 디스크 삭제 및 빈 디스크 생성
virt-get-kernel — 디스크로 부터 커널 획득
virt-inspector — VM 이미지 검사
virt-list-filesystems — 파일 시스템 나열
virt-list-partitions — 파티션 나열
virt-log — 로그 파일 출력
virt-ls — 파일 나열
virt-make-fs — 파일 시스템 생성
virt-p2v — convert physical machine to run on KVM
virt-p2v-make-disk — P2V ISO 생성
virt-p2v-make-kickstart — P2V kickstart 생성
virt-rescue — 복구 쉘
virt-resize — 가상 머신 크기 재 설정
virt-sparsify — make virtual machines sparse (thin-provisioned)
virt-sysprep — unconfigure a virtual machine before cloning
virt-tar — archive and upload files
virt-tar-in — archive and upload files
virt-tar-out — archive and download files
virt-v2v — convert guest to run on KVM
virt-win-reg — export and merge Windows Registry keys
libguestfs-test-tool — test libguestfs
libguestfs-make-fixed-appliance — make libguestfs fixed appliance
hivex — extract Windows Registry hive
hivexregedit — merge and export Registry changes from regedit-format files
hivexsh — Windows Registry hive shell
hivexml — convert Windows Registry hive to XML
hivexget — extract data from Windows Registry hive
febootstrap — tool for building supermin appliances
febootstrap-supermin-helper — febootstrap helper
supermin — tool for building supermin appliances
supermin-helper — supermin helper
guestfsd — guestfs daemon
* 귀차니즘...
각 명령어에 대한 사용 방법은 man이나 help를 참고하기 바란다.
설치 방법은 다음과 같다.
페도라 또는 레드햇 엔터프라이즈 버전
sudo yum install libguestfs-tools
우분트
sudo apt-get install libguestfs-tools
libguestfs-tools이 정상적으로 설치되었다면 다음과 같은 툴들이 설치 될 것이다.
guestfish — 대화식 쉘
guestmount — 호스트에서 게스트 파일 시스템 마운트
guestunmount — 게스트 파일 시스템 마운트 해제
virt-alignment-scan — 가상 머신 파티션 alignment 검사
virt-builder — 속성 이미지 빌더
virt-cat — 파일 내용 출력
virt-copy-in — VM으로 파일 또는 디렉토리 복사
virt-copy-out — VM에서 파일 또는 디렉토리 복사
virt-customize — 가상 머신 수정
virt-df — 디스크 사용량
virt-dib — safe diskimage-builder
virt-diff — differences
virt-edit — 파일 편집
virt-filesystems — 파일 시스템, 디바이스, LVM에 대한 정보 출력
virt-format — 디스크 삭제 및 빈 디스크 생성
virt-get-kernel — 디스크로 부터 커널 획득
virt-inspector — VM 이미지 검사
virt-list-filesystems — 파일 시스템 나열
virt-list-partitions — 파티션 나열
virt-log — 로그 파일 출력
virt-ls — 파일 나열
virt-make-fs — 파일 시스템 생성
virt-p2v — convert physical machine to run on KVM
virt-p2v-make-disk — P2V ISO 생성
virt-p2v-make-kickstart — P2V kickstart 생성
virt-rescue — 복구 쉘
virt-resize — 가상 머신 크기 재 설정
virt-sparsify — make virtual machines sparse (thin-provisioned)
virt-sysprep — unconfigure a virtual machine before cloning
virt-tar — archive and upload files
virt-tar-in — archive and upload files
virt-tar-out — archive and download files
virt-v2v — convert guest to run on KVM
virt-win-reg — export and merge Windows Registry keys
libguestfs-test-tool — test libguestfs
libguestfs-make-fixed-appliance — make libguestfs fixed appliance
hivex — extract Windows Registry hive
hivexregedit — merge and export Registry changes from regedit-format files
hivexsh — Windows Registry hive shell
hivexml — convert Windows Registry hive to XML
hivexget — extract data from Windows Registry hive
febootstrap — tool for building supermin appliances
febootstrap-supermin-helper — febootstrap helper
supermin — tool for building supermin appliances
supermin-helper — supermin helper
guestfsd — guestfs daemon
* 귀차니즘...
각 명령어에 대한 사용 방법은 man이나 help를 참고하기 바란다.
댓글
댓글 쓰기