This question already has an answer here:
Name of a sci-fi movie where an alien vehicle collects sample of living beings on different planets. When it comes to Earth a boy becomes its friend. I don't remember much of the movie but one scene is that earthlings get a hold of the vehicle and keeps it in captive using big chains and heavy weights. Vehicle is silver in color and almond shaped.