Hi, I''d like to use some advanced functions of vTPM, such as migration. So, I try to port the old version of vTPM tools (tools/vtpm and tools/vtpm_manager in Xen-3.4.2 ) to Xen-4.3 unstable. Now, the vtm-manager can communicate with vtmd, but DomU cannot boot when it''s configured with a vtpm option in the config file. I think maybe xl doesn''t support the old vTPM tools very well. If this is the case, can you give me some advice on how to modify the xl to support the old vTPM? Thank you very much. -- Best Regards, Bei Guan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Hi, Guan Could you enable vTPM now? My vTPM is always print out below error when I enable vtpm-stubdom. ERROR[VTPM]: LoadKey failure: Unrecognized uuid! f70b429c-c7e4-41be-948f-76991f57a3bf ERROR[VTPM]: Failed to load key ERROR in vtpmmgr_LoadHashKey at vtpm_cmd_handler.c:78 code: TPM_BAD_PARAMETER. Could you share some experience? Thanks in advance. Quan From: xen-devel-bounces@lists.xen.org [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of Bei Guan Sent: Wednesday, June 26, 2013 1:01 PM To: xen-devel Subject: [Xen-devel] How to make xl support the old version of vTPM tools Hi, I''d like to use some advanced functions of vTPM, such as migration. So, I try to port the old version of vTPM tools (tools/vtpm and tools/vtpm_manager in Xen-3.4.2 ) to Xen-4.3 unstable. Now, the vtm-manager can communicate with vtmd, but DomU cannot boot when it''s configured with a vtpm option in the config file. I think maybe xl doesn''t support the old vTPM tools very well. If this is the case, can you give me some advice on how to modify the xl to support the old vTPM? Thank you very much. -- Best Regards, Bei Guan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Do you use the new version of vTPM, which uses the vtpm-stubdom? I failed to make it work in my computer before. Moreover, it doesn''t support the VM migration now. So, I just port the old version vTPM (got it from the Xen-3.4.2/tools/) to the Xen-4.3-unstable. It doesn''t use the vtpm-stubdom. 2013/6/26 Xu, Quan <quan.xu@intel.com>> Hi, Guan**** > > Could you enable vTPM now? My vTPM is always print out below error > when I enable vtpm-stubdom.**** > > ** ** > > ERROR[VTPM]: LoadKey failure: Unrecognized uuid! > f70b429c-c7e4-41be-948f-76991f57a3bf**** > > ERROR[VTPM]: Failed to load key**** > > ERROR in vtpmmgr_LoadHashKey at vtpm_cmd_handler.c:78 code: > TPM_BAD_PARAMETER.**** > > ** ** > > ** ** > > Could you share some experience? Thanks in advance.**** > > ** ** > > Quan**** > > ** ** > > ** ** > > *From:* xen-devel-bounces@lists.xen.org [mailto: > xen-devel-bounces@lists.xen.org] *On Behalf Of *Bei Guan > *Sent:* Wednesday, June 26, 2013 1:01 PM > *To:* xen-devel > *Subject:* [Xen-devel] How to make xl support the old version of vTPM > tools**** > > ** ** > > Hi,**** > > ** ** > > I''d like to use some advanced functions of vTPM, such as migration. So, I > try to port the old version of vTPM tools (tools/vtpm and > tools/vtpm_manager in Xen-3.4.2 ) to Xen-4.3 unstable.**** > > ** ** > > Now, the vtm-manager can communicate with vtmd, but DomU cannot boot when > it''s configured with a vtpm option in the config file. I think maybe xl > doesn''t support the old vTPM tools very well. If this is the case, can you > give me some advice on how to modify the xl to support the old vTPM?**** > > ** ** > > Thank you very much.**** > > ** ** > > -- > Best Regards,**** > > Bei Guan**** >-- Best Regards, Bei Guan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Yes, I try to enable vTPM in Xen-4.3-unstable. There are some difference between xen 4.3 and previous version. in Xen 4.3 we’ll be moving to a “stubdomain-only” model, unifying the vtpm system and making it much more secure. How to deal with migration is an interesting and necessary topic for vTPM. BTW my team will try to enable below 3 topics: 1. enable xen vTPM to allow programs to interact with a TPM in a virtual machine, the same way they interact with a TPM on the physical system. 2. intergrate xen vTPM in openstack cloud. virtual machine in OpenStack can work with Xen vTPM. 3. promote TPM 2.0 in Xen. Xen vTPM can run on TPM 2.0. What about trying to enable vTPM together first. In Xen release note wiki (http://wiki.xen.org/wiki/Xen_4.3_Release_Notes), it noted ‘qemu-upstream is now the default for VMs not using stub domains. You can change this by adding device_model_version = "qemu-xen-traditional" to your config file.’ Maybe it is a good approach to make it work. I will try it this afternoon. BTW: XSM should enable first. Thanks Quan Xu From: Bei Guan [mailto:gbtju85@gmail.com] Sent: Wednesday, June 26, 2013 2:12 PM To: Xu, Quan Cc: xen-devel Subject: Re: [Xen-devel] How to make xl support the old version of vTPM tools Do you use the new version of vTPM, which uses the vtpm-stubdom? I failed to make it work in my computer before. Moreover, it doesn't support the VM migration now. So, I just port the old version vTPM (got it from the Xen-3.4.2/tools/) to the Xen-4.3-unstable. It doesn't use the vtpm-stubdom. 2013/6/26 Xu, Quan <quan.xu@intel.com<mailto:quan.xu@intel.com>> Hi, Guan Could you enable vTPM now? My vTPM is always print out below error when I enable vtpm-stubdom. ERROR[VTPM]: LoadKey failure: Unrecognized uuid! f70b429c-c7e4-41be-948f-76991f57a3bf ERROR[VTPM]: Failed to load key ERROR in vtpmmgr_LoadHashKey at vtpm_cmd_handler.c:78 code: TPM_BAD_PARAMETER. Could you share some experience? Thanks in advance. Quan From: xen-devel-bounces@lists.xen.org<mailto:xen-devel-bounces@lists.xen.org> [mailto:xen-devel-bounces@lists.xen.org<mailto:xen-devel-bounces@lists.xen.org>] On Behalf Of Bei Guan Sent: Wednesday, June 26, 2013 1:01 PM To: xen-devel Subject: [Xen-devel] How to make xl support the old version of vTPM tools Hi, I'd like to use some advanced functions of vTPM, such as migration. So, I try to port the old version of vTPM tools (tools/vtpm and tools/vtpm_manager in Xen-3.4.2 ) to Xen-4.3 unstable. Now, the vtm-manager can communicate with vtmd, but DomU cannot boot when it's configured with a vtpm option in the config file. I think maybe xl doesn't support the old vTPM tools very well. If this is the case, can you give me some advice on how to modify the xl to support the old vTPM? Thank you very much. -- Best Regards, Bei Guan -- Best Regards, Bei Guan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
2013/6/26 Xu, Quan <quan.xu@intel.com>> Yes, I try to enable vTPM in Xen-4.3-unstable. There are some difference > between xen 4.3 and previous version. in Xen 4.3 we’ll be moving to a > “stubdomain-only” model, unifying the vtpm system and making it much more > secure.**** > > How to deal with migration is an interesting and necessary topic for vTPM. > BTW my team will try to enable below 3 topics:**** > > 1. enable xen vTPM to allow programs to interact with a TPM in a virtual > machine, the same way they interact with a TPM on the physical system.**** > > 2. intergrate xen vTPM in openstack cloud. virtual machine in OpenStack > can work with Xen vTPM.**** > > 3. promote TPM 2.0 in Xen. Xen vTPM can run on TPM 2.0.**** > > What about trying to enable vTPM together first. >It''s a great idea. I''d like to. But, I don''t have the TPM physical chip in my computer. The work I did with latest vTPM in Xen-4.3-unstable is based on the TPM emulator. As the Xen guys advised before, it seems that it will be easier to make vTPM work on the TPM physical chip than a emulate one.> **** > > In Xen release note wiki (http://wiki.xen.org/wiki/Xen_4.3_Release_Notes), > it noted ‘qemu-upstream is now the default for VMs not using stub domains. > You can change this by adding device_model_version = "qemu-xen-traditional" > to your config file.’**** > > Maybe it is a good approach to make it work. I will try it this afternoon. > **** > > BTW:**** > > XSM should enable first. >I use the PV guest and maybe this option device_model_version doesn''t work.> **** > > ** ** > > ** ** > > Thanks **** > > Quan Xu**** > > ** ** > > ** ** > > ** ** > > *From:* Bei Guan [mailto:gbtju85@gmail.com] > *Sent:* Wednesday, June 26, 2013 2:12 PM > *To:* Xu, Quan > *Cc:* xen-devel > *Subject:* Re: [Xen-devel] How to make xl support the old version of vTPM > tools**** > > ** ** > > Do you use the new version of vTPM, which uses the vtpm-stubdom? I failed > to make it work in my computer before. Moreover, it doesn''t support the VM > migration now. So, I just port the old version vTPM (got it from the > Xen-3.4.2/tools/) to the Xen-4.3-unstable. It doesn''t use the vtpm-stubdom. > **** > > ** ** > > 2013/6/26 Xu, Quan <quan.xu@intel.com>**** > > Hi, Guan**** > > Could you enable vTPM now? My vTPM is always print out below error > when I enable vtpm-stubdom.**** > > **** > > ERROR[VTPM]: LoadKey failure: Unrecognized uuid! > f70b429c-c7e4-41be-948f-76991f57a3bf**** > > ERROR[VTPM]: Failed to load key**** > > ERROR in vtpmmgr_LoadHashKey at vtpm_cmd_handler.c:78 code: > TPM_BAD_PARAMETER.**** > > **** > > **** > > Could you share some experience? Thanks in advance.**** > > **** > > Quan**** > > **** > > **** > > *From:* xen-devel-bounces@lists.xen.org [mailto: > xen-devel-bounces@lists.xen.org] *On Behalf Of *Bei Guan > *Sent:* Wednesday, June 26, 2013 1:01 PM > *To:* xen-devel > *Subject:* [Xen-devel] How to make xl support the old version of vTPM > tools**** > > **** > > Hi,**** > > **** > > I''d like to use some advanced functions of vTPM, such as migration. So, I > try to port the old version of vTPM tools (tools/vtpm and > tools/vtpm_manager in Xen-3.4.2 ) to Xen-4.3 unstable.**** > > **** > > Now, the vtm-manager can communicate with vtmd, but DomU cannot boot when > it''s configured with a vtpm option in the config file. I think maybe xl > doesn''t support the old vTPM tools very well. If this is the case, can you > give me some advice on how to modify the xl to support the old vTPM?**** > > **** > > Thank you very much.**** > > **** > > -- > Best Regards,**** > > Bei Guan**** > > > > **** > > ** ** > > -- > Best Regards,**** > > Bei Guan**** >-- Best Regards, Bei Guan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
From: xen-devel-bounces@lists.xen.org [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of Bei Guan Sent: Wednesday, June 26, 2013 4:03 PM To: Xu, Quan Cc: Daniel De Graaf; xen-devel Subject: Re: [Xen-devel] How to make xl support the old version of vTPM tools 2013/6/26 Xu, Quan <quan.xu@intel.com<mailto:quan.xu@intel.com>> Yes, I try to enable vTPM in Xen-4.3-unstable. There are some difference between xen 4.3 and previous version. in Xen 4.3 we’ll be moving to a “stubdomain-only” model, unifying the vtpm system and making it much more secure. How to deal with migration is an interesting and necessary topic for vTPM. BTW my team will try to enable below 3 topics: 1. enable xen vTPM to allow programs to interact with a TPM in a virtual machine, the same way they interact with a TPM on the physical system. 2. intergrate xen vTPM in openstack cloud. virtual machine in OpenStack can work with Xen vTPM. 3. promote TPM 2.0 in Xen. Xen vTPM can run on TPM 2.0. What about trying to enable vTPM together first. It's a great idea. I'd like to. But, I don't have the TPM physical chip in my computer. The work I did with latest vTPM in Xen-4.3-unstable is based on the TPM emulator. As the Xen guys advised before, it seems that it will be easier to make vTPM work on the TPM physical chip than a emulate one. Pat Pat, as Xen-4.3-unstable/docs/misc/vtpm.txt, you must have an machine with a TPM on the motherboard. ….. Prerequisites: -------------- You must have an x86 machine with a TPM on the motherboard. ….. Emulate TPM does NOT work for Xen-4.3-unstable vTPM. In Xen release note wiki (http://wiki.xen.org/wiki/Xen_4.3_Release_Notes), it noted ‘qemu-upstream is now the default for VMs not using stub domains. You can change this by adding device_model_version = "qemu-xen-traditional" to your config file.’ Maybe it is a good approach to make it work. I will try it this afternoon. BTW: XSM should enable first. I use the PV guest and maybe this option device_model_version doesn't work. Thanks Quan Xu From: Bei Guan [mailto:gbtju85@gmail.com<mailto:gbtju85@gmail.com>] Sent: Wednesday, June 26, 2013 2:12 PM To: Xu, Quan Cc: xen-devel Subject: Re: [Xen-devel] How to make xl support the old version of vTPM tools Do you use the new version of vTPM, which uses the vtpm-stubdom? I failed to make it work in my computer before. Moreover, it doesn't support the VM migration now. So, I just port the old version vTPM (got it from the Xen-3.4.2/tools/) to the Xen-4.3-unstable. It doesn't use the vtpm-stubdom. 2013/6/26 Xu, Quan <quan.xu@intel.com<mailto:quan.xu@intel.com>> Hi, Guan Could you enable vTPM now? My vTPM is always print out below error when I enable vtpm-stubdom. ERROR[VTPM]: LoadKey failure: Unrecognized uuid! f70b429c-c7e4-41be-948f-76991f57a3bf ERROR[VTPM]: Failed to load key ERROR in vtpmmgr_LoadHashKey at vtpm_cmd_handler.c:78 code: TPM_BAD_PARAMETER. Could you share some experience? Thanks in advance. Quan From: xen-devel-bounces@lists.xen.org<mailto:xen-devel-bounces@lists.xen.org> [mailto:xen-devel-bounces@lists.xen.org<mailto:xen-devel-bounces@lists.xen.org>] On Behalf Of Bei Guan Sent: Wednesday, June 26, 2013 1:01 PM To: xen-devel Subject: [Xen-devel] How to make xl support the old version of vTPM tools Hi, I'd like to use some advanced functions of vTPM, such as migration. So, I try to port the old version of vTPM tools (tools/vtpm and tools/vtpm_manager in Xen-3.4.2 ) to Xen-4.3 unstable. Now, the vtm-manager can communicate with vtmd, but DomU cannot boot when it's configured with a vtpm option in the config file. I think maybe xl doesn't support the old vTPM tools very well. If this is the case, can you give me some advice on how to modify the xl to support the old vTPM? Thank you very much. -- Best Regards, Bei Guan -- Best Regards, Bei Guan -- Best Regards, Bei Guan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2013-Jun-26 08:44 UTC
Re: How to make xl support the old version of vTPM tools
On Wed, 2013-06-26 at 13:00 +0800, Bei Guan wrote:> Now, the vtm-manager can communicate with vtmd, but DomU cannot boot > when it''s configured with a vtpm option in the config file. I think > maybe xl doesn''t support the old vTPM tools very well.Of course not, since we no longer support that mode why would it?> If this is the case, can you give me some advice on how to modify the > xl to support the old vTPM?I think basically you will need to understand how this stuff fits together and then implement the required xl support, there are unlikely to be any short cuts or quick hacks. Certainly you will have to do a lot more leg work such that you are able to ask more specific technical questions. Ian.
2013/6/26 Ian Campbell <Ian.Campbell@citrix.com>> On Wed, 2013-06-26 at 13:00 +0800, Bei Guan wrote: > > > Now, the vtm-manager can communicate with vtmd, but DomU cannot boot > > when it''s configured with a vtpm option in the config file. I think > > maybe xl doesn''t support the old vTPM tools very well. > > Of course not, since we no longer support that mode why would it? > > > If this is the case, can you give me some advice on how to modify the > > xl to support the old vTPM? > > I think basically you will need to understand how this stuff fits > together and then implement the required xl support, there are unlikely > to be any short cuts or quick hacks. Certainly you will have to do a lot > more leg work such that you are able to ask more specific technical > questions. >Because we will hit the deadline, we don''t have much time to work on the vTPM. Well, it seems there is huge amount of work to make xl support the old vTPM. Oh, in your opinion, is it possible to make xm re-work in the Xen-4.3-unstable in short time? If it''s possible, maybe we can use xm to support the old vTPM in the latest Xen. Thanks a lot.> > Ian. > >-- Best Regards, Bei Guan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2013-Jun-26 11:33 UTC
Re: How to make xl support the old version of vTPM tools
On Wed, 2013-06-26 at 17:35 +0800, Bei Guan wrote:> > > > 2013/6/26 Ian Campbell <Ian.Campbell@citrix.com> > On Wed, 2013-06-26 at 13:00 +0800, Bei Guan wrote: > > > Now, the vtm-manager can communicate with vtmd, but DomU > cannot boot > > when it''s configured with a vtpm option in the config file. > I think > > maybe xl doesn''t support the old vTPM tools very well. > > > Of course not, since we no longer support that mode why would > it? > > > If this is the case, can you give me some advice on how to > modify the > > xl to support the old vTPM? > > > I think basically you will need to understand how this stuff > fits > together and then implement the required xl support, there are > unlikely > to be any short cuts or quick hacks. Certainly you will have > to do a lot > more leg work such that you are able to ask more specific > technical > questions. > Because we will hit the deadline, we don''t have much time to work on > the vTPM. > Well, it seems there is huge amount of work to make xl support the old > vTPM. > > > Oh, in your opinion, is it possible to make xm re-work in the > Xen-4.3-unstable in short time?I''m afraid I have no idea.> If it''s possible, maybe we can use xm to support the old vTPM in the > latest Xen. Thanks a lot. > > > > > Ian. > > > > > > -- > Best Regards, > Bei Guan