mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
cli: Add --tpm backend.encryption.secret=
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
0254558e6e
commit
0eb571f9e1
@ -193,6 +193,7 @@
|
||||
<tpm model="tpm-crb">
|
||||
<backend type="passthrough">
|
||||
<device path="/dev/tpm0"/>
|
||||
<encryption secret="11111111-2222-3333-4444-5555555555"/>
|
||||
</backend>
|
||||
</tpm>
|
||||
<graphics type="vnc" port="-1"/>
|
||||
@ -433,6 +434,7 @@
|
||||
<tpm model="tpm-crb">
|
||||
<backend type="passthrough">
|
||||
<device path="/dev/tpm0"/>
|
||||
<encryption secret="11111111-2222-3333-4444-5555555555"/>
|
||||
</backend>
|
||||
</tpm>
|
||||
<graphics type="vnc" port="-1"/>
|
||||
|
@ -535,7 +535,7 @@ memnode0.cellid=1,memnode0.mode=strict,memnode0.nodeset=2
|
||||
--filesystem /foo/source,/bar/target
|
||||
--memballoon virtio,autodeflate=on,stats.period=10
|
||||
--watchdog ib700,action=pause
|
||||
--tpm passthrough,model=tpm-crb,path=/dev/tpm0
|
||||
--tpm passthrough,model=tpm-crb,path=/dev/tpm0,backend.encryption.secret=11111111-2222-3333-4444-5555555555
|
||||
--rng egd,backend_host=127.0.0.1,backend_service=8000,backend_type=udp,backend_mode=bind,backend_connect_host=foo,backend_connect_service=708,rate.bytes=1234,rate.period=1000,model=virtio
|
||||
--panic iobase=0x506
|
||||
""", "singleton-config-2")
|
||||
|
@ -3542,6 +3542,7 @@ class ParserTPM(VirtCLIParser):
|
||||
cls.add_arg("backend.type", "type")
|
||||
cls.add_arg("backend.version", "version")
|
||||
cls.add_arg("backend.device.path", "device_path")
|
||||
cls.add_arg("backend.encryption.secret", "encryption_secret")
|
||||
|
||||
|
||||
#################
|
||||
|
@ -28,6 +28,7 @@ class DeviceTpm(Device):
|
||||
version = XMLProperty("./backend/@version")
|
||||
model = XMLProperty("./@model")
|
||||
device_path = XMLProperty("./backend/device/@path")
|
||||
encryption_secret = XMLProperty("./backend/encryption/@secret")
|
||||
|
||||
|
||||
##################
|
||||
|
Loading…
Reference in New Issue
Block a user