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 05:35:32 +00:00
|
|
|
venus, err := host.ConnectHost(host.URI_QEMU_SSH_SYSTEM, "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()
|
2024-03-12 05:35:32 +00:00
|
|
|
log.Println(venus)
|
2024-03-12 01:39:17 +00:00
|
|
|
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
|
|
|
}
|