AVX2 and AVX flags on VM

millzee

New Member
Apr 18, 2021
2
0
1
54
Hi,
i am trying to do a POC and get tensorflow server servicing client requests using a ubuntu vm with cpu setup.

if i do "cat /proc/cpuinfo" then on my vm, i dont see the avx ir avx2 flags.

Is there a setting I am missing when create the vm in proxmox?
 
Thanks Ramalama,
should there be an option for this in advance options? i'm on 6.2-15

also, is it good practice to use host? are there any potential dangers doing it like this?
 
no, tbh, i think almost everyone uses "host" here.
There are downsides if you do "live" migrations between 2 proxmox hosts, if the cpu on host 1 is completely different as on host 2.

in any other case, use simply "host".
 
  • Like
Reactions: hacmieu and alebeta
OMG. I was trying to run some tensorflow code in docker on a VM this morning. Was getting Illegal instruction (core dumped). Lots of googling, came to the avx instruction set missing conclusion. Didn't think it would be possible, but changing the processor type to host worked. Thank you @Ramalama !!!
 
  • Like
Reactions: lixaotec
OMG. I was trying to run some tensorflow code in docker on a VM this morning. Was getting Illegal instruction (core dumped). Lots of googling, came to the avx instruction set missing conclusion. Didn't think it would be possible, but changing the processor type to host worked. Thank you @Ramalama !!!
Hello Can you please specify the linux commands you used to achieve this :
PS : I am on Ubuntu VM 20.04
Thanks a lot !
 
Hi,
What about LXC containers ? Is there an option to change the CPU to "Host" ?
LXC containers already run directly on the host CPU.