This repository was archived by the owner on Feb 8, 2021. It is now read-only.
File tree 3 files changed +6
-0
lines changed
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ type KvmtoolContext struct {
42
42
func InitDriver () * KvmtoolDriver {
43
43
cmd , err := exec .LookPath (KVMTOOL_EXEC )
44
44
if err != nil {
45
+ glog .Errorf ("LookPath %s failed: %v" , KVMTOOL_EXEC , err )
45
46
return nil
46
47
}
47
48
Original file line number Diff line number Diff line change @@ -44,13 +44,17 @@ func qemuContext(ctx *hypervisor.VmContext) *QemuContext {
44
44
func InitDriver () * QemuDriver {
45
45
cmd , err := exec .LookPath (QEMU_SYSTEM_EXE )
46
46
if err != nil {
47
+ glog .Errorf ("LookPath %s failed: %v" , QEMU_SYSTEM_EXE , err )
47
48
return nil
48
49
}
49
50
50
51
var hasVsock bool
51
52
_ , err = exec .Command ("/sbin/modprobe" , "vhost_vsock" ).Output ()
52
53
if err == nil {
54
+ glog .V (3 ).Infof ("Current system supports vsock" )
53
55
hasVsock = true
56
+ } else {
57
+ glog .V (3 ).Infof ("Current system doesn't support vsock because modprobe vhost_vsock failed" )
54
58
}
55
59
56
60
return & QemuDriver {
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ type XenPvContext struct {
35
35
func InitDriver () * XenPvDriver {
36
36
cmd , err := exec .LookPath (XENLIGHT_EXEC )
37
37
if err != nil {
38
+ glog .Errorf ("LookPath %s failed: %v" , XENLIGHT_EXEC , err )
38
39
return nil
39
40
}
40
41
You can’t perform that action at this time.
0 commit comments