Skip to content

Instantly share code, notes, and snippets.

@link89
Last active March 11, 2024 03:33
Show Gist options
  • Save link89/9e2374b4c4c6af7d12040cf5d5bf6031 to your computer and use it in GitHub Desktop.
Save link89/9e2374b4c4c6af7d12040cf5d5bf6031 to your computer and use it in GitHub Desktop.
setup windows xp virtual machine with cockpit

Background

  • A windows XP guest machine exported from VMWare as OVF format

Tips

  • Install cockpit and cockpick-machines: sudo apt install cockpit cockpit-machines
  • Convert vmdk image to qcow2 with the following command: qemu-img convert -f vmdk -O qcow2 xp-wire-disk1.vmdk xp-wire-disk1.qcow2
  • Create winxp virtual machine by importing existed disk, OS type should select unknown, don't start vm after import.
  • Edit network interfaces, change model to e1000(PCI, legacy)
  • Download e1000 driver iso from: https://archive.org/details/intel-pro1000-mt-desktop-82540em-winxp
  • Add ISO as CD/ROM
  • Boot VM
  • After entering the system, ignore the new device wizard, goto my computer and click the CDROM to install driver.

FAQ

cockpit is slow

It looks like there are performance issue with cockpit-tls, to workaround this issue, edit /etc/cockpit/cockpit.conf and add

[WebService]
AllowUnencrypted = true

Access guest network from LAN

Change the network interface type to Direct attachment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment