Jelle de Jong
2015-Jun-09 19:25 UTC
[libvirt-users] how do I use the same secret with the same ID on all libvrit/qemu/kvm hosts?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everybody, 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? Kind regards, Jelle de Jong -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iJwEAQECAAYFAlV3Pa0ACgkQ1WclBW9j5HmSsAP/ZqG0kqf+pQPD1Jng+qIA1Ih8 qEabjpZyBAz5AITP6RpeopP+ZAyXIlex4xmSGPBNZPT2OEC9J4jA0AcC65MiG44f 1ma2C7VckoPoONO0D9q8JLwqG8fFVqAFZBTszBz5sj7qzEPiIC5/g6b0czf8QUno b9LwvViwGCPgfETBkXU=zT/0 -----END PGP SIGNATURE-----
Jelle de Jong
2015-Jun-09 19:53 UTC
Re: [libvirt-users] how do I use the same secret with the same ID on all libvrit/qemu/kvm hosts?
-----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-----