I want to start an instance using libvirt API. I want to provide ssh access for the user of the vm. Anyone know how to embed an ssh key into the instance. I came across cloud-init . but couldn't get a tutorial . Thanks in advance. -- Thank You Sarath P R | cell +91.999.502.4287 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120118/d36a1052/attachment.htm>
The 18/01/12, Sarath P R wrote:> I want to start an instance using libvirt API. I want to provide ssh > access for the user of the vm. Anyone know how to embed an ssh key into > the instance. I came across cloud-init . but couldn't get a tutorial .What do you call a "instance using libvirt API"? virsh? virt-manager? Something else? Do you want to provide ssh for inside the vm or give users administration rights on libvirt for a vm? -- Nicolas Sebrecht
[ Please, keep cc'ing the list. ] The 18/01/12, Sarath P R wrote:> I am trying to start create an instance by passing configurations in xml > file > > dom = con.domainDefineXML(xmlDesc); > ??????????????? int id = dom.create(); > > I want to provide ssh access to the newly created vm. I am trying to > provide cloud service. so i want? the creation of vm and embedding ssh > inside the vm everything happen programatically.I think you're looking for libguestfs at http://libguestfs.org/ . Another approach would be you to have root ssh access to the guest and tunning the guest configuration via ssh. -- Nicolas Sebrecht