hyperv

package
v1.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddVirtualMachineHardDiskDrive added in v1.1.2

func AddVirtualMachineHardDiskDrive(vmName string, vhdRoot string, vhdName string, vhdSizeBytes int64, vhdBlockSize int64, controllerType string) error

func CloneVirtualMachine added in v1.1.1

func CloneVirtualMachine(cloneFromVmxcPath string, cloneFromVmName string, cloneFromSnapshotName string, cloneAllSnapshots bool, vmName string, path string, harddrivePath string, ram int64, switchName string) error

func CompactDisks

func CompactDisks(expPath string, vhdDir string) error

func ConnectVirtualMachine added in v1.2.4

func ConnectVirtualMachine(vmName string) (context.CancelFunc, error)

func ConnectVirtualMachineNetworkAdapterToSwitch

func ConnectVirtualMachineNetworkAdapterToSwitch(vmName string, switchName string) error

func CopyExportedVirtualMachine

func CopyExportedVirtualMachine(expPath string, outputPath string, vhdDir string, vmDir string) error

func CopyVmxcVirtualMachine added in v1.1.1

func CopyVmxcVirtualMachine(exportPath string, cloneFromVmxcPath string) error

func CreateDvdDrive

func CreateDvdDrive(vmName string, isoPath string, generation uint) (uint, uint, error)

func CreateExternalVirtualSwitch

func CreateExternalVirtualSwitch(vmName string, switchName string) error

func CreateVirtualMachine

func CreateVirtualMachine(vmName string, path string, harddrivePath string, vhdRoot string, ram int64, diskSize int64, diskBlockSize int64, switchName string, generation uint, diffDisks bool, fixedVHD bool) error

func CreateVirtualSwitch

func CreateVirtualSwitch(switchName string, switchType string) (bool, error)

func DeleteAllDvdDrives

func DeleteAllDvdDrives(vmName string) error

func DeleteDvdDrive

func DeleteDvdDrive(vmName string, controllerNumber uint, controllerLocation uint) error

func DeleteVirtualMachine

func DeleteVirtualMachine(vmName string) error

func DeleteVirtualSwitch

func DeleteVirtualSwitch(switchName string) error

func DisableAutomaticCheckpoints added in v1.1.1

func DisableAutomaticCheckpoints(vmName string) error

func DisconnectVirtualMachine added in v1.2.4

func DisconnectVirtualMachine(cancel context.CancelFunc)

func EnableVirtualMachineIntegrationService

func EnableVirtualMachineIntegrationService(vmName string, integrationServiceName string) error

func ExportVirtualMachine

func ExportVirtualMachine(vmName string, path string) error

func ExportVmxcVirtualMachine added in v1.1.1

func ExportVmxcVirtualMachine(exportPath string, vmName string, snapshotName string, allSnapshots bool) error

func GetExternalOnlineVirtualSwitch

func GetExternalOnlineVirtualSwitch() (string, error)

func GetHostAdapterIpAddressForSwitch

func GetHostAdapterIpAddressForSwitch(switchName string) (string, error)

func GetVirtualMachineGeneration added in v1.1.1

func GetVirtualMachineGeneration(vmName string) (uint, error)

func GetVirtualMachineNetworkAdapterAddress

func GetVirtualMachineNetworkAdapterAddress(vmName string) (string, error)

func GetVirtualMachineSwitchName

func GetVirtualMachineSwitchName(vmName string) (string, error)

func ImportVmxcVirtualMachine added in v1.1.1

func ImportVmxcVirtualMachine(importPath string, vmName string, harddrivePath string, ram int64, switchName string) error

func IpAddress

func IpAddress(mac string) (string, error)

func IsOff

func IsOff(vmName string) (bool, error)

func IsRunning

func IsRunning(vmName string) (bool, error)

func Mac

func Mac(vmName string) (string, error)

func MountDvdDrive

func MountDvdDrive(vmName string, path string, controllerNumber uint, controllerLocation uint) error

func MountFloppyDrive

func MountFloppyDrive(vmName string, path string) error

func RestartVirtualMachine

func RestartVirtualMachine(vmName string) error

func SetBootDvdDrive

func SetBootDvdDrive(vmName string, controllerNumber uint, controllerLocation uint, generation uint) error

func SetNetworkAdapterVlanId

func SetNetworkAdapterVlanId(switchName string, vlanId string) error

func SetVirtualMachineCpuCount

func SetVirtualMachineCpuCount(vmName string, cpu uint) error

func SetVirtualMachineDynamicMemory

func SetVirtualMachineDynamicMemory(vmName string, enableDynamicMemory bool) error

func SetVirtualMachineMacSpoofing

func SetVirtualMachineMacSpoofing(vmName string, enableMacSpoofing bool) error

func SetVirtualMachineSecureBoot

func SetVirtualMachineSecureBoot(vmName string, enableSecureBoot bool, templateName string) error

func SetVirtualMachineVirtualizationExtensions

func SetVirtualMachineVirtualizationExtensions(vmName string, enableVirtualizationExtensions bool) error

func SetVirtualMachineVlanId

func SetVirtualMachineVlanId(vmName string, vlanId string) error

func SetVmNetworkAdapterMacAddress added in v1.2.0

func SetVmNetworkAdapterMacAddress(vmName string, mac string) error

func ShutDown

func ShutDown(vmName string) error

func StartVirtualMachine

func StartVirtualMachine(vmName string) error

func StopVirtualMachine

func StopVirtualMachine(vmName string) error

func TurnOff

func TurnOff(vmName string) error

func TypeScanCodes

func TypeScanCodes(vmName string, scanCodes string) error

func UnmountDvdDrive

func UnmountDvdDrive(vmName string, controllerNumber uint, controllerLocation uint) error

func UnmountFloppyDrive

func UnmountFloppyDrive(vmName string) error

func UntagVirtualMachineNetworkAdapterVlan

func UntagVirtualMachineNetworkAdapterVlan(vmName string, switchName string) error

func Uptime

func Uptime(vmName string) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL