[libvirt] Execute a command in a Guest Domain using libvirt.

Daniel P. Berrange berrange at redhat.com
Fri Apr 16 11:08:05 UTC 2010


On Fri, Apr 16, 2010 at 11:02:45AM +0530, Kumar L Srikanth-B22348 wrote:
> Hi,
> 
> I created a Domain using libvirt virsh console.
> 
> Can I execute a command [like 'ifconfig'] in Guest Domain and get the
> output using libvirt?

Libvirt doesn't currently provide any APIs for interacting with the OS
inside the guest domain. You'll need to either hardcode IP address or
set some static DHCP mapping, so you can reliably determine what to
connect to.


Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list