Ask Your Question
0

How can I make metadata accessible to a Guest from the Host; running on KVM/Qemu and Libvirt?

asked 2012-07-09 02:31:48 -0500

Renich gravatar image

updated 2012-07-10 21:50:38 -0500

I need a way to provide information within the Guests while using KVM/Qemu and Libvirt.

Is there a way, for example, to have some kind of metadata accesible from within the Guest? For example, SSH public keys and stuff like this?

here's a use case:

  • You create a Guest.
  • You add a public SSH key into the metadata
  • You add a script that checks for this at boot time and stores writes it into /root/.ssh/authorized_keys
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-07-10 06:42:42 -0500

Paolo Bonzini gravatar image

You can use libguestfs to fetch the required information directly from the VM after it has been installed.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-07-09 02:31:48 -0500

Seen: 537 times

Last updated: Jul 10 '12