arch-create-system.json: Config file

* initial version

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-01-25 13:50:19 +01:00
parent d7f00d3540
commit aae2fef40e
4 changed files with 817 additions and 0 deletions

108
arch-create-vm.json Normal file
View File

@@ -0,0 +1,108 @@
{
"version": "0.1.0",
"Environments": "Config-Environments",
"ConfigEnvironment": [
{
"_comment": "Config Environment 1",
"Name": "Single Disk",
"Disk-Type": "vhdx",
"Disk": [
{
"DiskId": "ArchLinux",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48644",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
}
]
},
{
"_comment": "Config Environment 2",
"Name": "Multi Disk",
"Disk-Type": "vhdx",
"Disk": [
{
"DiskId": "ArchLinux",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48601",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
},
{
"DiskId": "Machines",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48602",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
},
{
"DiskId": "Data",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48602",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"gPartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
}
]
}
]
}

235
etc/arch-create-system.json Normal file
View File

@@ -0,0 +1,235 @@
{
"version": "0.1.0",
"Environments": "Config-Environments",
"ConfigEnvironment": [
{
"_comment": "HyperV single disk",
"ConfigName": "HyperV-SingleDisk",
"ConfigType": "Single",
"ConfigEnv": "HyperV",
"Disk": [
{
"DiskId": "1",
"DiskName": "ArchLinux",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48644",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
}
]
},
{
"_comment": "HyperV with three disks",
"ConfigName": "HyperV-3Disks",
"ConfigType": "MultiDisk",
"ConfigEnv": "HyperV",
"Disk": [
{
"DiskId": "1",
"DiskName": "ArchLinux",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48601",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
},
{
"DiskId": "2",
"DiskName": "Machines",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Machines",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48602",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
},
{
"DiskId": "3",
"DiskName": "Data",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Data",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48603",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
}
]
},
{
"_comment": "Linux-Native OS=Raid1, Machines=Single, Data=Single",
"ConfigName": "Native-MultiDisks",
"ConfigType": "MultiDisk",
"ConfigEnv": "Native",
"Disk": [arch-create-system
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
{
"DiskId": "1",
"DiskName": "ArchLinux",
"DiskType": "Raid1",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48601",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
}
],
"Disk": [
{
"DiskId": "2",
"DiskName": "ArchLinux",
"DiskType": "Raid1",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48601",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
},
{
"DiskId": "3",
"DiskName": "Machines",
"DiskType": "Single",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Machines",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48602",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
},
{
"DiskId": "4",
"DiskName": "Data",
"DiskType": "Single",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Data",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48603",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
}
]
}
]
}

View File

@@ -0,0 +1,242 @@
{
"version": "0.1.0",
"Environments": "Config-Environments",
"ConfigIdDefault": "1",
"ConfigEnvironment": [
{
"_comment": "HyperV single disk",
"ConfigId": "1",
"ConfigName": "HyperV-SingleDisk",
"ConfigType": "Single",
"ConfigEnv": "HyperV",
"Disk": [
{
"DiskId": "1",
"DiskName": "ArchLinux",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48644",
"MOUNT": "/",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
}
]
},
{
"_comment": "HyperV with three disks",
"ConfigId": "2",
"ConfigName": "HyperV-3Disks",
"ConfigType": "MultiDisk",
"ConfigEnv": "HyperV",
"Disk": [
{
"DiskId": "1",
"DiskName": "ArchLinux",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48601",
"MOUNT": "/",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
},
{
"DiskId": "2",
"DiskName": "Machines",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Machines",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48602",
"MOUNT": "/var/lib/machines",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
},
{
"DiskId": "3",
"DiskName": "Data",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Data",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48603",
"MOUNT": "/data",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
}
]
},
{
"_comment": "Linux-Native OS=Raid1, Machines=Single, Data=Single",
"ConfigId": "3",
"ConfigName": "Native-MultiDisks",
"ConfigType": "MultiDisk",
"ConfigEnv": "Native",
"Disk": [
{
"DiskId": "1",
"DiskName": "ArchLinux",
"DiskType": "Raid1",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48601",
"MOUNT": "/",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
},
{
"DiskId": "2",
"DiskName": "ArchLinux",
"DiskType": "Raid1",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48601",
"MOUNT": "/",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
},
{
"DiskId": "3",
"DiskName": "Machines",
"DiskType": "Single",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Machines",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48602",
"MOUNT": "/var/lib/machines",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
},
{
"DiskId": "4",
"DiskName": "Data",
"DiskType": "Single",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Data",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48603",
"MOUNT": "/data",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
}
]
}
]
}

232
etc/arch-create-vm.json Normal file
View File

@@ -0,0 +1,232 @@
{
"version": "0.1.0",
"Environments": "Config-Environments",
"ConfigEnvironment": [
{
"_comment": "HyperV single disk",
"ConfigName": "HypervSingle",
"ConfigType": "Single",
"ConfigEnv": "HyperV",
"Disk": [
{
"DiskId": "1",
"DiskName": "ArchLinux",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48644",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
}
]
},
{
"_comment": "HyperV with three disks",
"ConfigName": "Hyperv3Disks",
"ConfigType": "MultiDisk",
"ConfigEnv": "HyperV",
"Disk": [
{
"DiskId": "1",
"DiskName": "ArchLinux",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48601",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
},
{
"DiskId": "2",
"DiskName": "Machines",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Machines",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48602",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
},
{
"DiskId": "3",
"DiskName": "Data",
"DiskType": "Single",
"HostType": "vhdx",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Data",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48603",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
}
]
},
{
"_comment": "Linux-Native OS=Raid1, Machines=Single, Data=Single",
"ConfigName": "Native-Raid",
"ConfigType": "MultiDisk",
"ConfigEnv": "Native",
"Disk": [
{
"DiskId": "1",
"DiskName": "ArchLinux",
"DiskType": "Raid1",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48601",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
}
],
"Disk": [
{
"DiskId": "2",
"DiskName": "ArchLinux",
"DiskType": "Raid1",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "OS",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48601",
"Partitions": [
{
"PartName": "EFI System",
"PartId": "1",
"PartType": "EF00",
"Start": "2048",
"Size": "512M"
},
{
"PartName": "Linux filesystem",
"PartId": "2",
"PartType": "8300",
"Size": "max"
}
]
}
]
},
{
"DiskId": "3",
"DiskName": "Machines",
"DiskType": "Single",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Machines",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48602",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
},
{
"DiskId": "4",
"DiskName": "Data",
"DiskType": "Single",
"HostType": "native",
"DiskAttributes": [
{
"TYPE": "btrfs",
"LABEL": "Data",
"UUID": "3343a5f-7ab2-409d-9bf2-878507c48603",
"Partitions": [
{
"PartName": "Linux filesystem",
"PartId": "1",
"PartType": "8300",
"Start": "2048",
"Size": "max"
}
]
}
]
}
]
}
]
}