.
Signed-off-by: RouxAntoine <antoinroux@hotmail.fr>
This commit is contained in:
parent
bf5f33b116
commit
856954c2ab
12
cmd/main.go
12
cmd/main.go
@ -93,14 +93,14 @@ func setupEnv() int {
|
||||
|
||||
cfg := firecracker.Config{
|
||||
SocketPath: socketPath,
|
||||
KernelImagePath: "./vmlinux-5.10.204",
|
||||
LogPath: "./firecracker.log",
|
||||
KernelImagePath: "./out/vmlinux-5.10.204",
|
||||
LogPath: "./out/firecracker.log",
|
||||
LogLevel: "Debug",
|
||||
KernelArgs: "console=ttyS0 reboot=k panic=1 pci=off",
|
||||
Drives: []models.Drive{
|
||||
{
|
||||
DriveID: firecracker.String("rootfs"),
|
||||
PathOnHost: firecracker.String("./rootfs.ext4"),
|
||||
PathOnHost: firecracker.String("./out/rootfs.ext4"),
|
||||
IsReadOnly: firecracker.Bool(false),
|
||||
IsRootDevice: firecracker.Bool(true),
|
||||
},
|
||||
@ -132,9 +132,9 @@ func setupEnv() int {
|
||||
firecracker.VMCommandBuilder{}.
|
||||
WithBin("firecracker").
|
||||
WithSocketPath(socketPath).
|
||||
WithStdin(os.Stdin).
|
||||
WithStdout(os.Stdout).
|
||||
WithStderr(os.Stderr).
|
||||
//WithStdin(os.Stdin).
|
||||
//WithStdout(os.Stdout).
|
||||
//WithStderr(os.Stderr).
|
||||
Build(ctx),
|
||||
),
|
||||
firecracker.WithLogger(logrus.NewEntry(log)),
|
||||
|
Loading…
Reference in New Issue
Block a user