「libvmdk」

  CREATED BY JENKINSBOT

问题描述

该笔记将记录:介绍 libvmdk 的安装、使用,以及常见问题处理。

libvmdk 是用于访问 VMware Virtual Disk (VMDK) 格式文件的库。

Homepage: https://github.com/libyal/libvmdk

Docs: https://github.com/libyal/libvmdk/wiki

安装

git clone https://github.com/libyal/libvmdk
cd libvmdk

./synclibs.sh

./autogen.sh

./configure && make && make install

安装的命令

vmdkmount

vmdkinfo

常见错误整理

Error #1

如果源码是github上检出的,要先运行源码目录下autogen.sh,然后产生错误:

configure.ac:208: error: required file ‘libcerror/Makefile.in’ not found

configure.ac:209: error: required file ‘libcthreads/Makefile.in’ not found

……

configure.ac:219: error: required file ‘libfdata/Makefile.in’ not found

configure.ac:220: error: required file ‘libfvalue/Makefile.in’ not found

Makefile.am:3: error: required directory ./libcerror does not exist

……

Makefile.am:3: error: required directory ./libfvalue does not exist

libvmdk/Makefile.am: installing ‘./depcomp’

parallel-tests: installing ‘./test-driver’

autoreconf: automake failed with exit status: 1

Solved #1

先运行源码目录下的synclibs.sh

然后运行源码目录下的autogen.sh

然后得到configure

Error #2

vmdkmount 20170226

No sub system to mount VMDK.

Solved #2

原因:编译时没有安装libfuse的头文件,下面是之前configure输出:

configure:

Building:

libcerror support: local

libcthreads support: local

libcdata support: local

libclocale support: local

libcnotify support: local

libcsplit support: local

libuna support: local

libcfile support: local

libcpath support: local

libbfio support: local

libfcache support: local

libfdata support: local

libfvalue support: local

DEFLATE compression support: zlib

FUSE support: no

Features:

Multi-threading support: pthread

Wide character type support: no

vmdktools are build as static executables: no

Python (pyvmdk) support: no

Python version 2 (pyvmdk) support: no

Python version 3 (pyvmdk) support: no

Verbose output: no

Debug output: no

解决:没有安装libfuse 的 头文件,安装之后重新 configure :

config.status: creating po/POTFILES

config.status: creating po/Makefile

configure:

Building:

libcerror support: local

libcthreads support: local

libcdata support: local

libclocale support: local

libcnotify support: local

libcsplit support: local

libuna support: local

libcfile support: local

libcpath support: local

libbfio support: local

libfcache support: local

libfdata support: local

libfvalue support: local

DEFLATE compression support: zlib

FUSE support: libfuse

Features:

Multi-threading support: pthread

Wide character type support: no

vmdktools are build as static executables: no

Python (pyvmdk) support: no

Python version 2 (pyvmdk) support: no

Python version 3 (pyvmdk) support: no

Verbose output: no

Debug output: no

TODO 重新整理libvmdk