On Tue, Aug 5, 2014 at 6:33 PM, Eric Blake <eblake@xxxxxxxxxx> wrote:
On 08/05/2014 03:02 PM, Yuanzhen Gu wrote:
> Good afternoon guys,
>
> I created the VM from XML dump,
> # virsh create vm4.xml
>
> and # virsh list I can see the VM running,
> and I know the ip address for the VM,
>
> but how can I know the username and password to login the running VM, which
> is created from XML dump? is there any place to edit and add the username
> and password in guest domain XML ? thanks a lot!!
Libvirt is only concerned with what virtual hardware you present to theguest, not with the OS running in that guest or what username/passwordcombinations will let you log into that guest OS. libguestfs may beable to do some introspection for learning usernames, and also has theability to create guest clones where you control the usernames andpasswords to be used in the new guest.
Thanks! so do you mean that I can use libvirt clone a new guest with which I can give username and password?
But it is up to you to manageyour VMs to where you know what username/password pairs are stored for agiven guest image.
but I've no idea where the username and passwd be stored, create it with dumpXML of a VM, I've tried that original VM's username and passwd via ssh, but it didn't work.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
_______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users