diff --git a/ChangeLog b/ChangeLog index 8acedad883fff3f0a2f50058bd3c0a4fc07aacce..034befd8dbb8b7cf4490cc8987948e0285f6e5ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Nov 29 16:19:00 GMT 2007 Richard W.M. Jones + + * docs/libvir.html, docs/windows.html: Updated Windows + documentation now that we have shared libraries and Python + working. + Thu Nov 29 09:15:00 GMT 2007 Richard W.M. Jones * src/virsh.c: Added #include so it can compile diff --git a/docs/libvir.html b/docs/libvir.html index bb4aa945fd83776f32aa4e092548087cd897a437..825b251af72e6bba24f4036fa8777a10fc370163 100644 --- a/docs/libvir.html +++ b/docs/libvir.html @@ -1593,6 +1593,11 @@ latest version from CVS
  • The latest source patch from the download area.
  • + +
  • A version of Cygwin sunrpc, patched to support building + librpc.dll. + A patch and a binary package are available from + the download area.
  • @@ -1659,7 +1664,7 @@ source on Windows: Packages openssh
    - sunrpc
    + sunrpc ≥ 4.0-4 (see below)
    @@ -1678,6 +1683,23 @@ source on Windows: Note that you need to do this as Windows Administrator.

    +
  • +

    Install Cygwin sunrpc ≥ 4.0-4 package, patched to include + librpc.dll. + To do this, first check to see whether /usr/lib/librpc.dll + exists. If it does, you're good to go and can skip to the next + step.

    + +

    + If you don't have this file, either install the binary package + sunrpc-4.0-4.tar.bz2 (just unpack it, as Administrator, in the Cygwin root directory). + Or you can download the + source patch + and apply it by hand to the Cygwin sunrpc package (eg. using + cygport). +

    +
  • +
  • Check out @@ -1745,23 +1767,45 @@ src/virsh.exe -c qemu://remote/system make install

  • - - +
    +python
    +>>> import libvirt
    +>>> conn = libvirt.open ("test:///default")
    +>>> conn.listDomainsID ()
    +[1]
    +>>> dom = conn.lookupByID (1)
    +>>> dom.XMLDesc (0)
    +"<domain type='test' id='1'> ..."
    +
    + +

    + The most common failure will be with import libvirt + which usually indicates that either PYTHONPATH is + wrong or a DLL cannot be loaded. +

    + + +

    Remote support

    diff --git a/docs/windows.html b/docs/windows.html index cc960c2a9880220b031cdb3128582cddd478c3be..c0aca155bedc0cc17968721d27fd392598c73c56 100644 --- a/docs/windows.html +++ b/docs/windows.html @@ -39,6 +39,11 @@ latest version from CVS
  • The latest source patch from the download area.
  • + +
  • A version of Cygwin sunrpc, patched to support building + librpc.dll. + A patch and a binary package are available from + the download area.
  • These are the steps to take to compile libvirt from source on Windows: @@ -87,7 +92,7 @@ source on Windows: Packages openssh
    - sunrpc
    + sunrpc ≥ 4.0-4 (see below)

  • @@ -103,6 +108,23 @@ source on Windows: Note that you need to do this as Windows Administrator.

  • +
  • +

    Install Cygwin sunrpc ≥ 4.0-4 package, patched to include + librpc.dll. + To do this, first check to see whether /usr/lib/librpc.dll + exists. If it does, you're good to go and can skip to the next + step.

    + +

    + If you don't have this file, either install the binary package + sunrpc-4.0-4.tar.bz2 (just unpack it, as Administrator, in the Cygwin root directory). + Or you can download the + source patch + and apply it by hand to the Cygwin sunrpc package (eg. using + cygport). +

    +
  • +
  • Check out @@ -170,4 +192,42 @@ src/virsh.exe -c qemu://remote/system make install

  • + +
  • +

    + The above steps should also build and install Python modules. + However for reasons which I don't fully understand, Python won't + look in the + non-standard /usr/local/lib/python*/site-packages/ + directory by default so you may need to set the environment + variable PYTHONPATH: +

    + +
    +export PYTHONPATH=/usr/local/lib/python2.5/site-packages
    +
    + +

    + (Change the version number to your version of Python). You + can test Python support from the command line: +

    + +
    +python
    +>>> import libvirt
    +>>> conn = libvirt.open ("test:///default")
    +>>> conn.listDomainsID ()
    +[1]
    +>>> dom = conn.lookupByID (1)
    +>>> dom.XMLDesc (0)
    +"<domain type='test' id='1'> ..."
    +
    + +

    + The most common failure will be with import libvirt + which usually indicates that either PYTHONPATH is + wrong or a DLL cannot be loaded. +

    +
  • +