实验环境:
Ubuntu server 14.04
xen 4.4.2(我是源码编译安装的)
TPM-emulator v0.7.4(对应TPM1.2版本)
TSS已经安装(trousers v0.3.10和tpm-tools v1.3.8-1)
在创建vtpm manager的时候报错:
步骤为:
$ sudo dd if=/dev/zero of=/var/vtpmmgr-stubdom.img bs=16M count=1
新建了一个配置文件:vtpmmgr.cfg内容如下:
kernel="/usr/local/lib/xen/boot/vtpmmgr-stubdom.gz"
memory=16
disk=["file:/var/vtpmmgr-stubdom.img,hda,w"]
name="vtpmmgr"
iomem=["fed40,5"]
保存退出然后运行:
# xl create -c vtpmmgr.cfg
报错信息如下:
Parsing config from vtpmmgr.cfg
Xen Minimal OS!
start_info: 0xa3000(VA)
nr_pages: 0x1000
shared_inf: 0x83e8f000(MA)
pt_base: 0xa6000(VA)
nr_pt_frames: 0x5
mfn_list: 0x9b000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line:
stack: 0x5a800-0x7a800
MM: Init
_text: 0x0(VA)
_etext: 0x3a314(VA)
_erodata: 0x46000(VA)
_edata: 0x48c60(VA)
stack start: 0x5a800(VA)
_end: 0x9ae20(VA)
start_pfn: ae
max_pfn: 1000
Mapping memory range 0x400000 - 0x1000000
setting 0x0-0x46000 readonly
skipped 0x1000
MM: Initialise page allocator for b4000(b4000)-1000000(1000000)
MM: done
Demand map pfns at 1001000-2001001000.
Heap resides at 2001002000-4001002000.
Initialising timer interface
Initialising console ... done.
gnttab_table mapped at 0x1001000.
Initialising scheduler
Thread "Idle": pointer: 0x2001002050, stack: 0xd0000
Thread "xenstore": pointer: 0x2001002800, stack: 0xe0000
xenbus initialised on irq 1 mfn 0x26f129
Thread "shutdown": pointer: 0x2001002fb0, stack: 0xf0000
Dummy main: start_info=0x7a900
Thread "main": pointer: 0x2001003760, stack: 0x100000
"main"
Shutting down ()
Shutdown requested: 3
Thread "shutdown" exited.
INFO[VTPM]: Starting vTPM manager domain
INFO[VTPM]: Option: Using tpm_tis driver
******************* BLKFRONT for device/vbd/768 **********
backend at /local/domain/0/backend/qdisk/9/768
Failed to read /local/domain/0/backend/qdisk/9/768/feature-barrier.
32768 sectors of 512 bytes
**************************
blk_open(device/vbd/768) -> 3
============= Init TPM BACK ================
Thread "tpmback-listener": pointer: 0x20010043b0, stack: 0xf0000
============= Init TPM TIS Driver ==============
IOMEM Machine Base Address: FED40000
Enabled Localities: 0
1.2 TPM (device-id=0xFFFF vendor-id = FFFF rev-id = FF)
TPM interface capabilities (0xffffffff):
Burst Count Static
Command Ready Int Support
Interrupt Edge Falling
Interrupt Edge Rising
Interrupt Level Low
Interrupt Level High
Locality Change Int Support
Sts Valid Int Support
Data Avail Int Support
tpm_transmit: tpm_send: error 4294967291
transmit failed -5
tpm_transmit: tpm_send: error 4294967291
Could not get TPM timeouts and durations
Shutting down tpm_tis device
ERROR[VTPM]: Unable to initialize tpmfront device
Tpmback:Info Shutting down tpm backend
close(3)
Thread "tpmback-listener" exited.
close blk: backend=/local/domain/0/backend/qdisk/9/768 node=device/vbd/768
close(-1)
close(-1): Bad descriptor
INFO[VTPM]: VTPM Manager stopped.
ERROR[VTPM]: Unable to initialize vtpmmgr domain!
close(0)
close(1)
close(2)
main returned -1
Do_exit called!
base is 0x10fef8 caller is 0x1f3b3
base is 0x10ff18 caller is 0x1fc79
base is 0x10ff48 caller is 0x28edb
base is 0x10ff68 caller is 0x1fbf9
base is 0x10ffe8 caller is 0x343b
------解决思路----------------------
你去给论坛上的一些技术大牛们发私信,邀请他们。或许你邀请的人中,有的网友可能因为工作时间忙,没有时间回复你,但是还是会有人回复你的这个帖子的。
祝你好运。
