2024-03-10 07:15:49 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
2024-03-12 01:39:17 +00:00
|
|
|
|
|
|
|
"git.staur.ca/stobbsm/clustvirt/lib/host"
|
2024-03-10 07:15:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
log.Println("Starting clustvirt, the libvirt cluster manager")
|
|
|
|
|
2024-03-12 01:39:17 +00:00
|
|
|
venus, err := host.ConnectHost("venus.staur.ca")
|
2024-03-10 07:15:49 +00:00
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
2024-03-12 01:39:17 +00:00
|
|
|
defer venus.Close()
|
|
|
|
lm, err := venus.GetGuestByName("logan-minecraft")
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
2024-03-10 07:15:49 +00:00
|
|
|
}
|
2024-03-12 01:39:17 +00:00
|
|
|
defer lm.Close()
|
|
|
|
log.Println(lm)
|
2024-03-10 07:15:49 +00:00
|
|
|
}
|