You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/uvm/create.go
+24-13Lines changed: 24 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -44,20 +44,31 @@ type UVMOptions struct {
44
44
LayerFolders []string// Set of folders for base layers and scratch. Ordered from top most read-only through base read-only layer, followed by scratch
45
45
46
46
// LCOW specific parameters
47
-
BootFilesPathstring// Folder in which kernel and root file system reside. Defaults to \Program Files\Linux Containers
48
-
KernelFilestring// Filename under BootFilesPath for the kernel. Defaults to `kernel`
49
-
RootFSFilestring// Filename under BootFilesPath for the UVMs root file system. Defaults are `initrd.img` or `rootfs.vhd`.
50
-
PreferredRootFSType*PreferredRootFSType// Controls searching for the RootFSFile.
51
-
KernelBootOptionsstring// Additional boot options for the kernel
52
-
EnableGraphicsConsolebool// If true, enable a graphics console for the utility VM
53
-
ConsolePipestring// The named pipe path to use for the serial console. eg \\.\pipe\vmpipe
54
-
SCSIControllerCount*int// The number of SCSI controllers. Defaults to 1 if omitted. Currently we only support 0 or 1.
47
+
BootFilesPathstring// Folder in which kernel and root file system reside. Defaults to \Program Files\Linux Containers
48
+
KernelFilestring// Filename under BootFilesPath for the kernel. Defaults to `kernel`
49
+
RootFSFilestring// Filename under BootFilesPath for the UVMs root file system. Defaults are `initrd.img` or `rootfs.vhd`.
50
+
KernelBootOptionsstring// Additional boot options for the kernel
51
+
EnableGraphicsConsolebool// If true, enable a graphics console for the utility VM
52
+
ConsolePipestring// The named pipe path to use for the serial console. eg \\.\pipe\vmpipe
53
+
SCSIControllerCount*int// The number of SCSI controllers. Defaults to 1 if omitted. Currently we only support 0 or 1.
55
54
56
55
// Fields that can be configured via OCI annotations in runhcs.
57
-
AllowOvercommit*bool// Memory for UVM. Defaults to true. For physical backed memory, set to false. io.microsoft.virtualmachine.computetopology.memory.allowovercommit=true|false
58
-
EnableDeferredCommit*bool// Memory for UVM. Defaults to false. For virtual memory with deferred commit, set to true. io.microsoft.virtualmachine.computetopology.memory.enabledeferredcommit=true|false
59
-
VPMemDeviceCount*uint32// Number of VPMem devices. Limit at 128. If booting UVM from VHD, device 0 is taken. LCOW Only. io.microsoft.virtualmachine.devices.virtualpmem.maximumcount
60
-
VPMemSizeBytes*uint64// Size of the VPMem devices. LCOW Only. Defaults to 4GB. io.microsoft.virtualmachine.devices.virtualpmem.maximumsizebytes
56
+
57
+
// Memory for UVM. Defaults to true. For physical backed memory, set to false. io.microsoft.virtualmachine.computetopology.memory.allowovercommit=true|false
58
+
AllowOvercommit*bool
59
+
60
+
// Memory for UVM. Defaults to false. For virtual memory with deferred commit, set to true. io.microsoft.virtualmachine.computetopology.memory.enabledeferredcommit=true|false
61
+
EnableDeferredCommit*bool
62
+
63
+
// Number of VPMem devices. Limit at 128. If booting UVM from VHD, device 0 is taken. LCOW Only. io.microsoft.virtualmachine.devices.virtualpmem.maximumcount
64
+
VPMemDeviceCount*uint32
65
+
66
+
// Size of the VPMem devices. LCOW Only. Defaults to 4GB. io.microsoft.virtualmachine.devices.virtualpmem.maximumsizebytes
67
+
VPMemSizeBytes*uint64
68
+
69
+
// Controls searching for the RootFSFile. Defaults to initrd (0). Can be set to VHD (1). io.microsoft.virtualmachine.lcow.preferredrootfstype
70
+
// Note this uses an arbitrary annotation strict which has no direct mapping to the HCS schema.
0 commit comments