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 if 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 if you are using GRUB2.

    menuentry 'VMM (vm0)' --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
    }

Execute update-grub or grub2-mkconfig -o /boot/grub2/grub.cfg, if you
are using GRUB2.


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

Configure VMM.
    make config

Configure Guest BIOS
    make biosconfig

Build the VMM.
    make

Make one partition if there is no pattiion in usb memory.

    su
    /sbin/fdisk /dev/sdd
    exit

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

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