INSTALL
=======

Install VMM to a file system of Linux
-------------------------------------

Configure VMM.
    make config

Configure Guest BIOS
    make biosconfig

Build the VMM.
    make

Copy the VMM file and guest BIOS file to /boot directory.
    su
    cp vmm/vmm.elf /boot
    cp bios/out/bios.bin /boot

Add the entry to /boot/grub/menu.list when you are using legacy GRUB.

    title VMM
    root (hd0,0)
    kernel /boot/vmm.elf
    module /boot/bios.bin

Add the entry to /etc/grub.d/40_custom and run update-grub when you
are using GRUB2.

menuentry 'VMM (vm0, vm1)' --class vmm {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        echo    'Loading VMM ...'
        multiboot   /boot/vmm.elf
        echo    'Loading guest BIOS ...'
        module  /boot/bios.bin
}

Install VMM to a USB memory or HDD
----------------------------------

Configure VMM.
    make config

Configure Guest BIOS
    make biosconfig

Build the VMM.
    make

If you install VMM for the first time:
    su
    ./install_to_usb.sh -f -c 'vm0.boot_int18' /dev/sdd

Otherwise:
    su
    ./install_to_usb.sh -c 'vm0.boot_int18' /dev/sdd
