Admin Shared folders beteewn virtual Windows XP and libvirt host.
2021-04-23 09:05:16

Windowss XP (SP3) is lightweight stable OS for running old windows applications. Its support is ended, nevertheless Windows XP is still very popular as a virtual machine.

Under linux/GNOME you can deploy virtual OS using virt-manager or gnome-boxes applications. The last one running by regular user has very limited options to configure network since creating a tap interface requires not only root permissions but also cap_net_admin capability for libvirtd under user. From other side, running virt-manager as su eliminates parsing of user virtual machines.

User virtual OS deploys default network usually in the range 192.168.122.0/24. For creating shared folders between guest and host the network card should be set to virtio to use virtual LAN. The SPICE has tools for Windows XP to use virtual clipboard (spice-guest-tools-latest) and shared folders (spice-webdavd versions 0.1.24/2.2/2.4 ) I did not find any difference between 0.1.24 and 2.2. The last version 2.4 cannot be installed since msi cannot launch webdavd service on Windows XP.

After installation of spice-webdavd which uses 9843 port and definition of the host shared directory gnome-boxes or virtviewer GUI you can browse shared folders with internet explorer at http://localhost:9843/ but attempting to define a shared folder or drive with windows file manager gives an error 67 : network name not found. The error arises in spite of you can ping localhost and check that webdavd is listening at 9843 port (e.g. in terminal: telnet localhost 9843).

The reason of the error in Windows XP WebClient service which is looking webdav folders only on 80 port. So you need to redirect tcp traffic from localhost:80 to localhost:9843. It can be done e.g. with help of PassPort_1_0_1 application. After redirection use standard procedure of "Add a network place" wizard from "My Network Places" and point it to http://localhost/HostSharedDir.

As an alternative one can deploy chezdav server on Windows and mount shared directory on linux host.

Comments
  • kkasvwsrMr.
  • 1
  • kkasvwsrMr.
  • 1
Add Comment
Welcome!
  • Boot Linux from USB. part I

    Multiple boot using GRUB2 from live ISO files located on USB
    Read more ...

  • Boot Linux from USB. part II

    Multiple boot using SYSLINUX from live ISO files located on USB
    Read more ...

  • Tweet update.

    Added tweet on @lloadm
    Read