(vmcs *VMControlStructure)
| 53 | } |
| 54 | |
| 55 | func getVMCommandBuild(vmcs *VMControlStructure) *exec.Cmd { |
| 56 | vmCommandBuild := firecracker.VMCommandBuilder{}. |
| 57 | WithBin("firecracker"). |
| 58 | WithSocketPath(vmcs.VMConfig.SocketPath) |
| 59 | |
| 60 | if logrus.GetLevel() != logrus.InfoLevel { |
| 61 | vmCommandBuild = vmCommandBuild. |
| 62 | WithStdin(os.Stdin). |
| 63 | WithStdout(os.Stdout). |
| 64 | WithStderr(os.Stderr) |
| 65 | } |
| 66 | |
| 67 | return vmCommandBuild.Build(vmcs.Context) |
| 68 | } |
| 69 | |
| 70 | func StartFirecrackerVM(networkManager *NetworkPoolManager, vmcs *VMControlStructure, vmDebugMode bool, snapshotMetadata *SnapshotMetadata) (error, time.Duration, time.Duration, time.Duration) { |
| 71 | networkCreation := time.Now() |
no outgoing calls
no test coverage detected