mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 08:03:40 +00:00
feat: nvme disk on m6
This commit is contained in:
parent
54a4c423a6
commit
eb9d2a76df
9 changed files with 240 additions and 22 deletions
|
|
@ -159,9 +159,11 @@ func (d *Daemon) buildMachineSpec(machineID contracthost.MachineID, artifact *mo
|
|||
drives := make([]firecracker.DriveSpec, 0, len(userVolumes))
|
||||
for i, volume := range userVolumes {
|
||||
drives = append(drives, firecracker.DriveSpec{
|
||||
ID: fmt.Sprintf("user-%d", i),
|
||||
Path: volume.Path,
|
||||
ReadOnly: false,
|
||||
ID: fmt.Sprintf("user-%d", i),
|
||||
Path: volume.Path,
|
||||
ReadOnly: false,
|
||||
CacheType: firecracker.DriveCacheTypeUnsafe,
|
||||
IOEngine: d.config.DriveIOEngine,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -179,9 +181,9 @@ func (d *Daemon) buildMachineSpec(machineID contracthost.MachineID, artifact *mo
|
|||
ID: "root_drive",
|
||||
Path: systemVolumePath,
|
||||
CacheType: firecracker.DriveCacheTypeUnsafe,
|
||||
IOEngine: firecracker.DriveIOEngineSync,
|
||||
IOEngine: d.config.DriveIOEngine,
|
||||
},
|
||||
KernelArgs: defaultGuestKernelArgs,
|
||||
KernelArgs: guestKernelArgs(d.config.EnablePCI),
|
||||
Drives: drives,
|
||||
MMDS: mmds,
|
||||
Vsock: guestVsockSpec(machineID),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue