Ver código fonte

[cloud] Show CPU vendor and model in example cloud boot scripts

Some problems arise only when running on a specific CPU type (e.g.
non-functional timer interrupts as observed in Azure AMD instances).
Include the CPU vendor and model within the sample cloud boot scripts,
to assist in debugging such problems.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 anos atrás
pai
commit
90fc2f273a

+ 1
- 0
src/config/cloud/aws.ipxe Ver arquivo

@@ -1,6 +1,7 @@
1 1
 #!ipxe
2 2
 
3 3
 echo Amazon EC2 - iPXE boot via user-data
4
+echo CPU: ${cpuvendor} ${cpumodel}
4 5
 ifstat ||
5 6
 dhcp ||
6 7
 route ||

+ 1
- 0
src/config/cloud/gce.ipxe Ver arquivo

@@ -1,6 +1,7 @@
1 1
 #!ipxe
2 2
 
3 3
 echo Google Compute Engine - iPXE boot via metadata
4
+echo CPU: ${cpuvendor} ${cpumodel}
4 5
 ifstat ||
5 6
 dhcp ||
6 7
 route ||

+ 4
- 0
src/config/cloud/settings.h Ver arquivo

@@ -0,0 +1,4 @@
1
+/* It can often be useful to know the CPU on which a cloud instance is
2
+ * running (e.g. to isolate problems with Azure AMD instances).
3
+ */
4
+#define CPUID_SETTINGS

Carregando…
Cancelar
Salvar