diff --git a/internal/virter/vm.go b/internal/virter/vm.go index f4ab456..1176900 100644 --- a/internal/virter/vm.go +++ b/internal/virter/vm.go @@ -107,6 +107,10 @@ func (v *Virter) VMInfo(vmName string) (*VMInfo, error) { } meta := metaWrapper{} + if desc.Metadata == nil { + // not a virter VM + return &VMInfo{Name: vmName}, nil + } err = xml.Unmarshal([]byte(desc.Metadata.XML), &meta) if err != nil { // not a virter VM