Bjorn, there are several ways to get that gray. If shooting a closer portrait, I prefer to have a white background and let the light fall off (inverse square law) do its thing and let the bg fade to gray. On larger portraits, such as this, the light fall off may work, but keeping shadows off becomes more difficult. Getting a gray background and lighting it independently from the subject may be they way to go then. As others have said, have enough separation that the subject's lighting and shadows don't influence the bg.