InfamousSYN / packer

A public store of my packer templates and provisioning scripts. Packer offers a simplified process to build vagrant base boxes from an ISO file, to know exactly what you get.
https://app.vagrantup.com/ainfamoussyn/
0 stars 1 forks source link

github-actions hosted runner nest virtualisation roadblock #18

Open InfamousSYN opened 2 years ago

InfamousSYN commented 2 years ago

GH hosted runner does not nested virtualisation capability

Run cat /proc/cpuinfo
  cat /proc/cpuinfo
  shell: /usr/bin/bash -e {0}
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 85
model name  : Intel(R) Xeon(R) Platinum 8171M CPU @ [2](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:2).60GHz
stepping    : 4
microcode   : 0xffffffff
cpu MHz     : 2095.19[3](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:3)
cache size  : 36608 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 2
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 21
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse[4](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:4)_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx[5](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:5)12f avx512dq rdseed adx smap clflushopt avx512cd avx512bw avx512vl xsaveopt xsavec xsaves md_clear
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
bogomips    : 4190.38
clflush size    : [6](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:6)4
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model       : 85
model name  : Intel(R) Xeon(R) Platinum 81[7](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:7)1M CPU @ 2.60GHz
stepping    : 4
microcode   : 0xffffffff
cpu MHz     : 2095.193
cache size  : 3660[8](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:8) KB
physical id : 0
siblings    : 2
core id     : 1
cpu cores   : 2
apicid      : 1
initial apicid  : 1
fpu     : yes
fpu_exception   : yes
cpuid level : 21
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt avx512cd avx512bw avx512vl xsaveopt xsavec xsaves md_clear
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
bogomips    : 41[9](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:9)0.[38](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:38)
clflush size    : 64
cache_alignment : 64
address sizes   : [46](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:46) bits physical, [48](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:48) bits virtual
power management:
InfamousSYN commented 2 years ago

egrep -c '(vmx|svm)' /proc/cpuinfo

InfamousSYN commented 2 years ago

solution 1: use github action to build bespoke EC2 instances using a HVM AMI. Once built, install virtualisation and packer software and run the packer build