[libvirt] regarding the network information for Domain

anuj rampal rampal.anuj at gmail.com
Fri Sep 18 12:56:17 UTC 2009


Hi all,

im trying to call libvirt api from windows.

I have created a guest OS(windows) using the libvirt api from my windows
machine.
It gets created fine it also gets the the IP address from the DHCP also.
So all works fine.

Now to RDP into the machine what I have to do is
1. logon to my host machine.
2. open the guest OS using either "virt-viewer" or "virt-manager".
3. check out the IP address of the machine.
4. then RDP into the guest OS.

My Question:

Is there a way to find The IP address of the Guest OS.???

----------------------------------------------------------------------------------------------------------------------------

im also trying to cross compile "virt-viewer 0.0.3" but this is what i get
when i do make:


[root at FC-11 virt-viewer-0.0.3]# make
make  all-recursive
make[1]: Entering directory `/root/virt-viewer-0.0.3'
Making all in src
make[2]: Entering directory `/root/virt-viewer-0.0.3/src'
/bin/sh ../libtool --tag=CC   --mode=link i686-pc-mingw32-gcc -mms-bitfields
-I/usr/i686-pc-mingw32/sys-root/mingw/include/gtk-vnc-1.0
-I/usr/i686-pc-mingw32/sys-root/mingw/include/gtk-2.0
-I/usr/i686-pc-mingw32/sys-root/mingw/include
-I/usr/i686-pc-mingw32/sys-root/mingw/lib/gtk-2.0/include
-I/usr/i686-pc-mingw32/sys-root/mingw/include/atk-1.0
-I/usr/i686-pc-mingw32/sys-root/mingw/include/cairo
-I/usr/i686-pc-mingw32/sys-root/mingw/include/pango-1.0
-I/usr/i686-pc-mingw32/sys-root/mingw/include/glib-2.0
-I/usr/i686-pc-mingw32/sys-root/mingw/lib/glib-2.0/include
-I/usr/i686-pc-mingw32/sys-root/mingw/include/pixman-1
-I/usr/i686-pc-mingw32/sys-root/mingw/include/libpng12   -mms-bitfields
-I/usr/i686-pc-mingw32/sys-root/mingw/include/gtk-2.0
-I/usr/i686-pc-mingw32/sys-root/mingw/lib/gtk-2.0/include
-I/usr/i686-pc-mingw32/sys-root/mingw/include/atk-1.0
-I/usr/i686-pc-mingw32/sys-root/mingw/include/cairo
-I/usr/i686-pc-mingw32/sys-root/mingw/include/pango-1.0
-I/usr/i686-pc-mingw32/sys-root/mingw/include/glib-2.0
-I/usr/i686-pc-mingw32/sys-root/mingw/lib/glib-2.0/include
-I/usr/i686-pc-mingw32/sys-root/mingw/include/pixman-1
-I/usr/i686-pc-mingw32/sys-root/mingw/include/libpng12
-I/usr/i686-pc-mingw32/sys-root/mingw/include/libxml2
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall
-Wmissing-prototypes -std=c99 -Wnested-externs -Wpointer-arith -Wextra
-Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Winline
-Wredundant-decls -Wno-sign-compare   -g -O2   -o virt-viewer.exe
virt_viewer-main.o -Wl,-luuid -L/usr/i686-pc-mingw32/sys-root/mingw/lib
-lgtk-vnc-1.0 -lgtk-win32-2.0 -lgnutls -lgdk-win32-2.0 -limm32 -lshell32
-lole32 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lcairo
-lpangowin32-1.0 -lgdi32 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 -lintl   -Wl,-luuid -L/usr/i686-pc-mingw32/sys-root/mingw/lib
-lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell32 -lole32 -latk-1.0
-lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lcairo -lpangowin32-1.0 -lgdi32
-lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
-L/usr/i686-pc-mingw32/sys-root/mingw/lib -lxml2   -lvirt -lpthread
../libtool: line 834: X--tag=CC: command not found
../libtool: line 867: libtool: ignoring unknown tag : command not found
../libtool: line 834: X--mode=link: command not found
../libtool: line 1001: *** Warning: inferring the mode of operation is
deprecated.: command not found
../libtool: line 1002: *** Future versions of Libtool will require
--mode=MODE be specified.: command not found
../libtool: line 2074: X-mms-bitfields: command not found
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/gtk-vnc-1.0: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/gtk-2.0: No such file or
directory
../libtool: line 2239: X-I/usr/i686-pc-mingw32/sys-root/mingw/include: No
such file or directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/lib/gtk-2.0/include: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/atk-1.0: No such file or
directory
../libtool: line 2239: X-I/usr/i686-pc-mingw32/sys-root/mingw/include/cairo:
No such file or directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/pango-1.0: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/glib-2.0: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/lib/glib-2.0/include: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/pixman-1: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/libpng12: No such file or
directory
../libtool: line 2074: X-mms-bitfields: command not found
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/gtk-2.0: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/lib/gtk-2.0/include: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/atk-1.0: No such file or
directory
../libtool: line 2239: X-I/usr/i686-pc-mingw32/sys-root/mingw/include/cairo:
No such file or directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/pango-1.0: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/glib-2.0: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/lib/glib-2.0/include: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/pixman-1: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/libpng12: No such file or
directory
../libtool: line 2239:
X-I/usr/i686-pc-mingw32/sys-root/mingw/include/libxml2: No such file or
directory
../libtool: line 2239: X-Wp,-D_FORTIFY_SOURCE=2: command not found
../libtool: line 2239: X-fexceptions: command not found
../libtool: line 2239: X-fstack-protector: command not found
../libtool: line 2239: X--param=ssp-buffer-size=4: command not found
../libtool: line 2239: X-fasynchronous-unwind-tables: command not found
../libtool: line 2239: X-Wall: command not found
../libtool: line 2239: X-Wmissing-prototypes: command not found
../libtool: line 2239: X-std=c99: command not found
../libtool: line 2239: X-Wnested-externs: command not found
../libtool: line 2239: X-Wpointer-arith: command not found
../libtool: line 2239: X-Wextra: command not found
../libtool: line 2239: X-Wshadow: command not found
../libtool: line 2239: X-Wcast-align: command not found
../libtool: line 2239: X-Wwrite-strings: command not found
../libtool: line 2239: X-Waggregate-return: command not found
../libtool: line 2239: X-Winline: command not found
../libtool: line 2239: X-Wredundant-decls: command not found
../libtool: line 2239: X-Wno-sign-compare: command not found
../libtool: line 2239: X-g: command not found
../libtool: line 2239: X-O2: command not found
../libtool: line 2202: X-Wl,-luuid: command not found

Fatal server error:
Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.


Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.

../libtool: line 1958: X-L/usr/i686-pc-mingw32/sys-root/mingw/lib: No such
file or directory
../libtool: line 1981: X/root/virt-viewer-0.0.3/src: No such file or
directory
../libtool: line 2202: X-Wl,-luuid: command not found

Fatal server error:
Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.


Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.

../libtool: line 1958: X-L/usr/i686-pc-mingw32/sys-root/mingw/lib: No such
file or directory
../libtool: line 1981: X/root/virt-viewer-0.0.3/src: No such file or
directory
../libtool: line 1958: X-L/usr/i686-pc-mingw32/sys-root/mingw/lib: No such
file or directory
../libtool: line 1981: X/root/virt-viewer-0.0.3/src: No such file or
directory
../libtool: line 2408: Xvirt-viewer.exe: command not found
../libtool: line 2413:
X/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:
No such file or directory
../libtool: line 2420: Xvirt-viewer.exe: command not found
../libtool: line 2555: X-lgtk-vnc-1.0: command not found
../libtool: line 2555: X-lgtk-win32-2.0: command not found
../libtool: line 2555: X-lgnutls: command not found
../libtool: line 2555: X-lgdk-win32-2.0: command not found
../libtool: line 2555: X-limm32: command not found
../libtool: line 2555: X-lshell32: command not found
../libtool: line 2555: X-lole32: command not found
../libtool: line 2555: X-latk-1.0: command not found
../libtool: line 2555: X-lgdk_pixbuf-2.0: command not found
../libtool: line 2555: X-lpangocairo-1.0: command not found
../libtool: line 2555: X-lgio-2.0: command not found
../libtool: line 2555: X-lcairo: command not found
../libtool: line 2555: X-lpangowin32-1.0: command not found
../libtool: line 2555: X-lgdi32: command not found
../libtool: line 2555: X-lpango-1.0: command not found
../libtool: line 2555: X-lgobject-2.0: command not found
../libtool: line 2555: X-lgmodule-2.0: command not found
../libtool: line 2555: X-lglib-2.0: command not found
../libtool: line 2555: X-lintl: command not found
../libtool: line 2555: X-lgtk-win32-2.0: command not found
../libtool: line 2555: X-lgdk-win32-2.0: command not found
../libtool: line 2555: X-limm32: command not found
../libtool: line 2555: X-lshell32: command not found
../libtool: line 2555: X-lole32: command not found
../libtool: line 2555: X-latk-1.0: command not found
../libtool: line 2555: X-lgdk_pixbuf-2.0: command not found
../libtool: line 2555: X-lpangocairo-1.0: command not found
../libtool: line 2555: X-lgio-2.0: command not found
../libtool: line 2555: X-lcairo: command not found
../libtool: line 2555: X-lpangowin32-1.0: command not found
../libtool: line 2555: X-lgdi32: command not found
../libtool: line 2555: X-lpango-1.0: command not found
../libtool: line 2555: X-lgobject-2.0: command not found
../libtool: line 2555: X-lgmodule-2.0: command not found
../libtool: line 2555: X-lglib-2.0: command not found
../libtool: line 2555: X-lintl: command not found
../libtool: line 2555: X-lxml2: command not found
../libtool: line 2555: X-lvirt: command not found
../libtool: line 2555: X-lpthread: command not found
../libtool: line 2637: X-L/root/virt-viewer-0.0.3/src: No such file or
directory
../libtool: line 2555: X-lgtk-vnc-1.0: command not found
../libtool: line 2555: X-lgnutls: command not found
../libtool: line 2555: X-lgtk-win32-2.0: command not found
../libtool: line 2555: X-lgdk-win32-2.0: command not found
../libtool: line 2555: X-limm32: command not found
../libtool: line 2555: X-lshell32: command not found
../libtool: line 2555: X-lole32: command not found
../libtool: line 2555: X-latk-1.0: command not found
../libtool: line 2555: X-lgdk_pixbuf-2.0: command not found
../libtool: line 2555: X-lpangocairo-1.0: command not found
../libtool: line 2555: X-lgio-2.0: command not found
../libtool: line 2555: X-lcairo: command not found
../libtool: line 2555: X-lpangowin32-1.0: command not found
../libtool: line 2555: X-lgdi32: command not found
../libtool: line 2555: X-lpango-1.0: command not found
../libtool: line 2555: X-lgobject-2.0: command not found
../libtool: line 2555: X-lgmodule-2.0: command not found
../libtool: line 2555: X-lglib-2.0: command not found
../libtool: line 2555: X-lintl: command not found
../libtool: line 2555: X-lxml2: command not found
../libtool: line 2555: X-lvirt: command not found
../libtool: line 2555: X-lpthread: command not found
../libtool: line 2637: X-L/root/virt-viewer-0.0.3/src: No such file or
directory
../libtool: line 2555: X-lgtk-vnc-1.0: command not found
../libtool: line 2555: X-lgnutls: command not found
../libtool: line 2555: X-lgtk-win32-2.0: command not found
../libtool: line 2555: X-lgdk-win32-2.0: command not found
../libtool: line 2555: X-limm32: command not found
../libtool: line 2555: X-lshell32: command not found
../libtool: line 2555: X-lole32: command not found
../libtool: line 2555: X-latk-1.0: command not found
../libtool: line 2555: X-lgdk_pixbuf-2.0: command not found
../libtool: line 2555: X-lpangocairo-1.0: command not found
../libtool: line 2555: X-lgio-2.0: command not found
../libtool: line 2555: X-lcairo: command not found
../libtool: line 2555: X-lpangowin32-1.0: command not found
../libtool: line 2555: X-lgdi32: command not found
../libtool: line 2555: X-lpango-1.0: command not found
../libtool: line 2555: X-lgobject-2.0: command not found
../libtool: line 2555: X-lgmodule-2.0: command not found
../libtool: line 2555: X-lglib-2.0: command not found
../libtool: line 2555: X-lintl: command not found
../libtool: line 2555: X-lxml2: command not found
../libtool: line 2555: X-lvirt: command not found
../libtool: line 2555: X-lpthread: command not found
../libtool: line 5172: Xi686-pc-mingw32-gcc "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" -o @OUTPUT@ virt_viewer-main.o
-L/root/virt-viewer-0.0.3/src -lgtk-vnc-1.0 -lgnutls -lgtk-win32-2.0
-lgdk-win32-2.0 -limm32 -lshell32 -lole32 -latk-1.0 -lgdk_pixbuf-2.0
-lpangocairo-1.0 -lgio-2.0 -lcairo -lpangowin32-1.0 -lgdi32 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lxml2 -lvirt -lpthread: No
such file or directory
../libtool: line 5173: Xi686-pc-mingw32-gcc "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" -o @OUTPUT@ virt_viewer-main.o
-L/root/virt-viewer-0.0.3/src -lgtk-vnc-1.0 -lgnutls -lgtk-win32-2.0
-lgdk-win32-2.0 -limm32 -lshell32 -lole32 -latk-1.0 -lgdk_pixbuf-2.0
-lpangocairo-1.0 -lgio-2.0 -lcairo -lpangowin32-1.0 -lgdi32 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lxml2 -lvirt -lpthread: No
such file or directory

Fatal server error:
Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.


Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.

../libtool: line 5182: : command not found
make[2]: Leaving directory `/root/virt-viewer-0.0.3/src'
Making all in man
make[2]: Entering directory `/root/virt-viewer-0.0.3/man'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/virt-viewer-0.0.3/man'
Making all in plugin
make[2]: Entering directory `/root/virt-viewer-0.0.3/plugin'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/virt-viewer-0.0.3/plugin'
make[2]: Entering directory `/root/virt-viewer-0.0.3'
make[2]: Leaving directory `/root/virt-viewer-0.0.3'
make[1]: Leaving directory `/root/virt-viewer-0.0.3'
could any1 help me out with this.

Thanks in advance.

Regards
Anuj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090918/39873b40/attachment-0001.htm>


More information about the libvir-list mailing list