Skip to content

Conversation

@MOBergeron
Copy link
Contributor

Description

This pull request is to add better support for the Incus agent under Windows as a service with the installation scripts.

Not so Sure About Those...

I'm not sure about m.agentCmd.mountHostShares() at line 48 in os_windows.go if it is necessary. There might be things missing but I was not sure it they were necessary such as the notification channels.

How to Use

Simply add the CD-ROM to the virtual machine with incus config device add my-windows-vm cdrom disk source=agent:config and then, run as an administrator the install.ps1 from the CD-ROM drive within the virtual machine.

@MOBergeron MOBergeron requested a review from stgraber as a code owner November 18, 2025 04:33
@MOBergeron MOBergeron changed the title Added Windows agent install scripts. Support of Windows's Incus Agent as a Service Nov 18, 2025
@MOBergeron MOBergeron changed the title Support of Windows's Incus Agent as a Service Support for the Incus Agent as a Service on Windows Nov 18, 2025
Copy link
Member

@stgraber stgraber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few nits and code style things

Signed-off-by: Marc Olivier Bergeron <mbergeron28@proton.me>
@stgraber
Copy link
Member

Thanks a lot, that will make it a LOT more approachable for Windows users!

Could you add another commit to tweak the documentation?
https://linuxcontainers.org/incus/docs/main/howto/instances_create/#on-windows

That should be in doc/howto/instances_create.md

Signed-off-by: Marc Olivier Bergeron <mbergeron28@proton.me>
@github-actions github-actions bot added the Documentation Documentation needs updating label Nov 18, 2025
@MOBergeron MOBergeron requested a review from stgraber November 18, 2025 16:38
@stgraber stgraber merged commit 09e0f36 into lxc:main Nov 19, 2025
36 of 72 checks passed
@MOBergeron MOBergeron deleted the windows-agent branch December 5, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Documentation needs updating

Development

Successfully merging this pull request may close these issues.

2 participants