fix: remove swap from lvm #7
@ -57,17 +57,16 @@ clearpart --all --initlabel
|
||||
|
||||
### Modify partition sizes for the virtual machine hardware.
|
||||
### Create primary system partitions.
|
||||
part /boot --fstype xfs --size=1024 --label=BOOTFS
|
||||
part /boot --fstype xfs --size=2048 --label=BOOTFS
|
||||
part /boot/efi --fstype vfat --size=512 --label=EFIFS
|
||||
part pv.01 --size=18 --grow
|
||||
part pv.01 --size=17 --grow
|
||||
|
||||
### Create a logical volume management (LVM) group.
|
||||
volgroup vg00 --pesize=4096 pv.01
|
||||
|
||||
### Modify logical volume sizes for the virtual machine hardware.
|
||||
### Create logical volumes.
|
||||
logvol swap --fstype swap --name=lv_swap --vgname=vg00 --size=2048 --label=SWAPFS
|
||||
logvol / --fstype xfs --name=lv_root --vgname=vg00 --size=8192 --label=ROOTFS
|
||||
logvol / --fstype xfs --name=lv_root --vgname=vg00 --size=10240 --label=ROOTFS
|
||||
logvol /home --fstype xfs --name=lv_home --vgname=vg00 --size=2048 --label=HOMEFS
|
||||
logvol /tmp --fstype xfs --name=lv_tmp --vgname=vg00 --size=512 --label=TMPFS --fsoptions="nosuid,noexec,nodev"
|
||||
logvol /var --fstype xfs --name=lv_var --vgname=vg00 --size=2048 --label=VARFS --fsoptions="nosuid"
|
||||
|
@ -98,7 +98,7 @@ variable "vm_cpu_sockets" {
|
||||
variable "vm_cpu_cores" {
|
||||
type = number
|
||||
description = "The number of virtual CPUs cores per socket."
|
||||
default = 1
|
||||
default = 2
|
||||
}
|
||||
|
||||
variable "vm_cpu_type" {
|
||||
@ -110,7 +110,7 @@ variable "vm_cpu_type" {
|
||||
variable "vm_mem_size" {
|
||||
type = number
|
||||
description = "The size for the virtual memory in MB."
|
||||
default = 1024
|
||||
default = 2048
|
||||
}
|
||||
|
||||
variable "vm_disk_size" {
|
||||
|
Loading…
Reference in New Issue
Block a user