kola: Print qemu command line
To help figure out why the qemu command fails.
@@ -23,6 +23,7 @@ import (
"strings"
"sync"
+ "github.com/coreos/pkg/capnslog"
"github.com/satori/go.uuid"
"github.com/coreos/mantle/platform"
@@ -56,6 +57,10 @@ type Cluster struct {
*local.LocalCluster
}
+var (
+ plog = capnslog.NewPackageLogger("github.com/coreos/mantle", "kola/platform/machine/qemu")
+)
+
// NewCluster creates a Cluster instance, suitable for running virtual
// machines in QEMU.
func NewCluster(conf *Options, outputDir string) (platform.Cluster, error) {
@@ -186,6 +191,8 @@ func (qc *Cluster) NewMachine(cfg string) (platform.Machine, error) {
}
defer tap.Close()
+ plog.Debugf("NewMachine: %q", qmCmd)
+
qm.qemu = qm.qc.NewCommand(qmCmd[0], qmCmd[1:]...)
qc.mu.Unlock()
