Make a bootable ISO from your Linux Virtual Machine!

3 min read 1 year ago
Published on Aug 02, 2024 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

In this tutorial, you'll learn how to create a bootable ISO from a custom Linux distribution running in a VirtualBox virtual machine. This process allows you to transfer your virtual machine setup to a USB stick or DVD, making it easy to install on another system.

Step 1: Prepare Your USB Stick

  • Insert your USB stick into the computer.
  • Wait for the USB stick to mount. You can check this in your file manager.
  • Open the VirtualBox settings for your virtual machine:
    • Go to the USB section.
    • Click on "Add new USB filter."
    • Select your USB device from the list (e.g., "Alexa or jump drive") and click "OK."

Step 2: Install Systemback

  • Start your virtual machine and log in to your Linux distro.
  • Open a terminal and install Systemback if it is not already installed. For Ubuntu-based systems, use the following command:
    sudo apt-get install systemback
    
  • Enter your password when prompted.

Step 3: Create the Bootable ISO

  • Launch Systemback from your applications menu.
  • Click on "Live System Create."
  • Set the working directory where the files will be stored; you can name it (e.g., "my Linux").
  • Important: If you're in a virtual machine, ensure that the target is set to your virtual drive.
  • Click "Create New" to start the process. This may take some time, so be patient.

Step 4: Write the ISO to USB Stick

  • Once the ISO is created, you will see a file named "my Linux.iso" in your home directory.
  • If your USB stick is still connected, select the ISO image and your USB drive in Systemback.
  • Click "Write to Target" to copy the ISO to your USB stick and make it bootable.

Step 5: Customize User Settings (Optional)

  • If you want new users on your installed system to have specific settings:
    • Open your home folder and press Ctrl + H to show hidden files.
    • Copy necessary configuration files from your home directory to /etc/skel.
    • Files in /etc/skel will be used as templates for new user accounts.

Conclusion

You have successfully created a bootable ISO from your Linux virtual machine. You can now use this ISO to install your custom Linux distribution on other systems. Remember to check your user settings to ensure new accounts have the configurations you desire. If you need further customization or face any issues, refer back to this guide for troubleshooting steps. Happy computing!