Yuanzhen Gu
2014-Aug-05 21:02 UTC
[libvirt-users] username and passwd after create VM from XML dump
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!! Best, Yuanzhen
Eric Blake
2014-Aug-05 22:33 UTC
Re: [libvirt-users] username and passwd after create VM from XML dump
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 the guest, not with the OS running in that guest or what username/password combinations will let you log into that guest OS. libguestfs may be able to do some introspection for learning usernames, and also has the ability to create guest clones where you control the usernames and passwords to be used in the new guest. But it is up to you to manage your VMs to where you know what username/password pairs are stored for a given guest image. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Yuanzhen Gu
2014-Aug-06 17:11 UTC
Re: [libvirt-users] username and passwd after create VM from XML dump
On Tue, Aug 5, 2014 at 6:33 PM, Eric Blake <eblake@redhat.com> 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 the > > guest, not with the OS running in that guest or what username/password > > combinations will let you log into that guest OS. libguestfs may be > > able to do some introspection for learning usernames, and also has the > > ability to create guest clones where you control the usernames and > > passwords 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 manage > > your VMs to where you know what username/password pairs are stored for a > > given 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 > >
Maybe Matching Threads
- Re: username and passwd after create VM from XML dump
- Re: username and passwd after create VM from XML dump
- Re: username and passwd after create VM from XML dump
- Re: username and passwd after create VM from XML dump
- Re: username and passwd after create VM from XML dump