Closed antonyveyre closed 6 years ago
Can you show what lscpu
on the Ubuntu host outputs?
Agreed that the loop should skip mismatching lines, but uname -m
would be better anyways.
ubuntu@master0:~$ uname -m x86_64
ubuntu@master0:~$ lscpu Architecture : x86_64 Mode(s) opératoire(s) des processeurs :32-bit, 64-bit Boutisme : Little Endian Processeur(s) : 2 Liste de processeur(s) en ligne :0,1 Thread(s) par cœur : 1 Cœur(s) par socket : 1 Socket(s) : 2 Nœud(s) NUMA : 1 Identifiant constructeur :AuthenticAMD Famille de processeur :23 Modèle : 1 Nom de modèle : AMD Ryzen 7 1800X Eight-Core Processor Révision : 1 Vitesse du processeur en MHz :3599.999 BogoMIPS : 7199.99 Constructeur d'hyperviseur :VMware Type de virtualisation :complet Cache L1d : 32K Cache L1i : 64K Cache L2 : 512K Cache L3 : 16384K Nœud NUMA 0 de processeur(s) :0,1 Drapaux : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw cpb ssbd vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt xsaveopt xsavec clzero arat
Respectueusement, Antony VEYRE
Le 7 août 2018 à 12:38, Tero Marttila notifications@github.com a écrit :
Can you show what lscpu on the Ubuntu host outputs? Agreed that the loop should skip mismatching lines, but uname -m would be better anyways. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Architecture : x86_64
Looks like there's extra whitespace before the colon that we're not matching?
Mode(s) opératoire(s) des processeurs :32-bit, 64-bit
Uuh... I think we need some LC_ALL=C.UTF-8
to negate any locales getting sent over SSH... we may only be testing with en_*
locales?
with LC_ALL=en_us.UTF-8 it's ok :
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 2
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 23
Model: 1
Model name: AMD Ryzen 7 1800X Eight-Core Processor
Stepping: 1
CPU MHz: 3599.999
BogoMIPS: 7199.99
Hypervisor vendor: VMware
Virtualization type: full
L1d cache: 32K
L1i cache: 64K
L2 cache: 512K
L3 cache: 16384K
NUMA node0 CPU(s): 0,1
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw cpb ssbd vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt xsaveopt xsavec clzero arat
bash: warning: setlocale: LC_ALL: cannot change locale (en_us.UTF-8)
do you want a pull-request for change lscpu
to uname -m
?
do you want a pull-request for change lscpu to uname -m ?
In this case the only thing being read from lscpu
is the Architecture
, so sure... using uname -m
instead would be an improvement.
Although avoid using strip!
to mutate strings... just use arch.strip
, the .tap { ... }
is unnecessary.
will fix that and make a pull-request if it's ok.
Fixed in #505
Launching pharos from Mac os to ubuntu on vmware give this issue.
Traceback :
Found solution: