cockpit-project / cockpit-machines

Cockpit UI for virtual machines
GNU Lesser General Public License v2.1
289 stars 74 forks source link

VM: Automatic Windows driver support #1863

Open garrett opened 18 hours ago

garrett commented 18 hours ago

When adding a shared folder to a Windows guest I had to find a guide to find and install relevant drivers. The guides are easy to find, however.

Originally posted by @Betonhaus in https://github.com/cockpit-project/cockpit-machines/issues/680#issuecomment-2415891714

garrett commented 18 hours ago

The Windows driver ISO link is at https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md

The direct link from that document is https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso (for the stable version; there is a "latest" version too, which I guess is probably built from the main branch).

There's also an EXE @ https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win-guest-tools.exe

We could download (then cache for future VMs) and auto-mount the ISO when creating a Windows VM.

Or we could copy the EXE into the Windows VM, like to the Desktop so it's easy to see, perhaps. The ISO one feels like that'd be more possible and less fragile. However, the EXE is 29 MB whereas the ISO is 692 MB, so if we can use the EXE, that'd be better.

Betonhaus commented 17 hours ago

Reference for the steps required Requires WinFSB and virtio-win-guest-tools.exe and then enabling the VirtIO-FS Service, I don't see how cockpit-machines can simplify that aside from making their own installer for the guest tools, maybe just provide a link to instructions and the installer beside the button for adding shared volumes?