This module provides to communicate Libvirt server for PowerShell v5.1 or later.
-
Download module archive from release page.
-
If need, remove Zone.Identifier from archive.
Unblock-File PwshVirt.zip
-
Extract archive to PSModulePath. The module's folder name is 'PwshVirt'.
This module connects to Libvirt server with TCP or TLS.
Configure Libvirt server in /etc/libvirt/libvirtd.conf
-
TCP
listen_tcp = 1 auth_tcp=none
-
TLS
listen_tls = 1
Import-Module PwshVirt
# connect to Libvirt server using tcp protocol.
Connect-VirtServer -Transport tcp
# list all defined domain.
Get-VirtDomain
# disconnect from Libvirt server.
Disconnect-VirtServer
see docs directory.