I want to make a .iso image of a bootable OS DVD, to use in VirutalBox.
Nautilus can make a .iso, but only of data files, it seems.
The .iso it created was not bootable.
What is available to make a bootable .iso from a bootable DVD?
You can use Brasero to copy a CD to an .iso. It can be installed by sudo apt install brasero.
Select the option to copy a CD, select the CD drive as the source, and an image file as the target...
Or from inside Nautilus: go to "Computer", right-click on the CD drive, and select "Copy Disc...". (Or something like that, I'm using a local language system here.)
A bit late to the party, but since the accepted Answer's Brasero is no longer installed by default (or not under that name), the next best thing with vanilla ubuntu is the "Disks" utility. [just as a general hot it looks]
In there, select the DVD/CD you want, click the 3 dots in the title bar (next to the minimize window button) and select "create disk image" from the dropdown that appears.
First up, you can give VMs access to the host's DVD drive in VBox, this is done where you would normally add an ISO as a drive.
If this doesn't suit you, try ISO Master, available through apt/synaptic. It has some nice advanced features for ripping the boot sector out of existing DVD/CDs and adding that boot sector image to an ISO.
That said, ripping an image of the ISO with ISO Master should take the boot sector intact, and you won't need to transfer it manually.
Here is how to do this with default tools from the command line:
mount in the terminal to see the designation of the DVD drive. Most often this is /dev/sr0.sudo dd if=/dev/sr0 of=filename.iso bs=2048 to copy the DVD to filename.iso.If you get errors when copying with dd you can try ddrescue.
I don't have the exact syntax handy, but the dd command can copy the contents of the DVD bit for bit, and the resulting .iso file should be bootable for a VM. Haven't tried this in this direction, though I have used dd to copy an ISO to a USB stick with success. I normally keep the .iso files I download so I can recreate a USB stick or CD/DVD when needed.