curl request command not working in VMs