# go-esxi **Repository Path**: bzsometest/go-esxi ## Basic Information - **Project Name**: go-esxi - **Description**: go操作esxi - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-10-30 - **Last Updated**: 2025-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # go-esxi 使用go语言管理exsi,进行虚拟机启停、克隆、备份等操作 esxi功能过于单一,无法克隆、自动快照、自动备份、虚拟机磁盘回收等 使用本程序弥补上述功能缺陷 govc相关命令:govc_demo.bat ## 参照教程 github.com/2spmohanty/gosphere/operation github.com/vmware/govmomi https://github.com/vmware/govmomi/blob/main/govc/USAGE.md#hostinfo https://www.flow-ever.com/vsphere-govc安装及使用入门/ ## 功能测试 代码测试,goland编辑启动设置,Program Args = -pass=123456 ## 功能说明 - 虚拟机文件复制,已实现,相关代码[vmdk_cp_test.go](vm%2Fvmdk_cp_test.go) - 虚拟机克隆,未实现,仅有部分代码[vm_clone_test.go](vm%2Fvm_clone_test.go) - 事件监听,实现关机自动快照等等 - 虚拟机磁盘回收 - web界面管理,未实现,后期开发