These are some pictures of ways to hold the end of a tube on a lathe toolpost rest so it can be coped.
The first 2 are of a very simple vise to build. The third picture is of a fancier version that might be worth adapting from a drillpress vise.