Realign partitioning
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
versionScope="nonSxS"
|
versionScope="nonSxS"
|
||||||
>
|
>
|
||||||
|
|
||||||
<!-- UEFI GPT disk layout -->
|
<!-- UEFI GPT disk layout: EFI + MSR + OS + Recovery -->
|
||||||
<DiskConfiguration>
|
<DiskConfiguration>
|
||||||
<Disk wcm:action="add">
|
<Disk wcm:action="add">
|
||||||
<DiskID>0</DiskID>
|
<DiskID>0</DiskID>
|
||||||
@@ -74,6 +74,11 @@
|
|||||||
<CreatePartition wcm:action="add">
|
<CreatePartition wcm:action="add">
|
||||||
<Order>3</Order>
|
<Order>3</Order>
|
||||||
<Type>Primary</Type>
|
<Type>Primary</Type>
|
||||||
|
<Size>${os_partition_mb}</Size>
|
||||||
|
</CreatePartition>
|
||||||
|
<CreatePartition wcm:action="add">
|
||||||
|
<Order>4</Order>
|
||||||
|
<Type>Primary</Type>
|
||||||
<Extend>true</Extend>
|
<Extend>true</Extend>
|
||||||
</CreatePartition>
|
</CreatePartition>
|
||||||
</CreatePartitions>
|
</CreatePartitions>
|
||||||
@@ -91,6 +96,13 @@
|
|||||||
<Label>Windows</Label>
|
<Label>Windows</Label>
|
||||||
<Letter>C</Letter>
|
<Letter>C</Letter>
|
||||||
</ModifyPartition>
|
</ModifyPartition>
|
||||||
|
<ModifyPartition wcm:action="add">
|
||||||
|
<Order>3</Order>
|
||||||
|
<PartitionID>4</PartitionID>
|
||||||
|
<Format>NTFS</Format>
|
||||||
|
<Label>Recovery</Label>
|
||||||
|
<TypeID>de94bba4-06d1-4d40-a16a-bfd50179d6ac</TypeID>
|
||||||
|
</ModifyPartition>
|
||||||
</ModifyPartitions>
|
</ModifyPartitions>
|
||||||
</Disk>
|
</Disk>
|
||||||
</DiskConfiguration>
|
</DiskConfiguration>
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ source "proxmox-iso" "ws2022" {
|
|||||||
locale = var.locale
|
locale = var.locale
|
||||||
timezone = var.timezone
|
timezone = var.timezone
|
||||||
virtio_drive = var.virtio_drive_letter
|
virtio_drive = var.virtio_drive_letter
|
||||||
|
os_partition_mb = var.os_partition_mb
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
cd_label = "OEMDRV"
|
cd_label = "OEMDRV"
|
||||||
|
|||||||
@@ -47,7 +47,13 @@ variable "vm_cores" {
|
|||||||
|
|
||||||
variable "disk_size" {
|
variable "disk_size" {
|
||||||
type = string
|
type = string
|
||||||
default = "60G"
|
default = "80G"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "os_partition_mb" {
|
||||||
|
type = number
|
||||||
|
default = 80692
|
||||||
|
description = "OS (C:) partition size in MB. Formula: (disk_size_MB - 100 EFI - 128 MSR - 1000 Recovery). Default matches 80G disk."
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "network_bridge" {
|
variable "network_bridge" {
|
||||||
|
|||||||
Reference in New Issue
Block a user