Is there a minimal/lightweight Linux distro that directly boots into Xen / VBox so I can create/boot into one or more Virtual Machines?

7,438

Well, I don't know if you can skip the bootloader, as it's necessary for even 1 OS/Kernel. Regardless, the bootloader is tiny and you can set the timeout to 0 or 1.

As for minimal/lightweight Linux, you can install a base CentOS distro without any custom packages and load it with Xen. I've done this very thing and I can get a bare-bones CentOS distro down to around 300MB (and probably smaller if I spent more time). It boots into Xen and starts up all the VMs I have created.

Once you have a base CentOS installed, run the following to install Xen:

# yum groupinstall Xen

Once it's all done, make sure you edit your /etc/grub/grub.conf config to boot the Xen kernel (set default to 0).

This guide may also be helpful for installing additional VMs:

http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU

I hope this helps!

Share:
7,438
pjz
Author by

pjz

For work I do sysadmin, java, and QA. For fun I do python, embedded linux, and more sysadmin.

Updated on September 17, 2022

Comments

  • pjz
    pjz over 1 year

    Is there a minimal/lightweight Linux distro that directly boots into Xen / VBox so I can create/boot into one or more Virtual Machines?

    If not, How do I make one?

    • I have four partitions
    • I do not want to use a LiveCD. I want this to be installed in the first partition.
    • I do not want have a Bootloader menu (can directly boot into this custom OS)

    So if I switch on the notebook: -> I'd see BIOS -> I'd see the Custom OS booting directly -> I'd see Xen / Vbox or the Virtualization appearing as the only app running. -> I'd Create a New VM or Start an Existing VM -> I'd maintain hard-disks of these VMs on the free space available on other partitions

    Thank you for your advice/help/direction in advance.