I always do it the way wagscat123 said.
Install Grub to the MBR when you install 17.10
That Grub will list 17.04 - so you can then boot 17.04 and run
and
Code:
sudo grub-install /dev/sda
Make a backup copy of 17.04's grub.cfg before you start, for reference.
You can install 17.10 without installing Grub if you start the installation program (ubiquity) from a terminal, with the command
. But you would still have to run
in 17.04 to put 17.10 on that Grub menu.