-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09/06/15 21:25, Jelle de Jong wrote:
Every time I use [virsh secret-define --file secret.xml] I get an
unique id back and I use this id in my vm guests xml configs, but
this is preventing me from live migrating between kvm host.
Maybe im using the wrong methods, but i normaly dumpxml the config
and define it in the other kvm hosts (scripted) but now this other
host has an other unique id and the kvm guests fails so I'm
guessing I need to use the same secret id betwen all my kvm hosts
but how do i do this?
To answer my own question:
virsh secret-list
virsh secret-dumpxml db9190b4-b74c-41d7-9b0a-e609bd1207d8 >
/tmp/db9190b4-b74c-41d7-9b0a-e609bd1207d8.xml
scp -P 22 /tmp/db9190b4-b74c-41d7-9b0a-e609bd1207d8.xml root@ceph02:/tmp/
scp -P 22 /tmp/db9190b4-b74c-41d7-9b0a-e609bd1207d8.xml root@ceph03:/tmp/
virsh secret-define /tmp/db9190b4-b74c-41d7-9b0a-e609bd1207d8.xml
virsh secret-undefine 9354dd33-3037-443d-abd5-964d84590d3e
That seem to work :)
Kind regards,
Jelle de Jong
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iJwEAQECAAYFAlV3RDgACgkQ1WclBW9j5HluEgP/VsIITLLH+f6OT6SB+JBEFEx6
TQ+tOItpKtAIJV+K0fMlkDkHUzWB79/sGBo7Dsk3wrHhf+IfBcUeyR6mGu73JqIF
OC9ctOQ7LkolZG6UKW6+/cSsTGSPY4GUmAAAr7ZuzeSWKVfYgODq5CWs36kxXjku
lcfBedB2XLSlIPAVfdM=
=HZRu
-----END PGP SIGNATURE-----