INSTALL
=======

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

Configure VMM.
    cd vmm
    make config
    cd ..

Configure Guest BIOS
    cd bios
    make menuconfig
    cd ..

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 vm=vm0,vm1 vm1.mem=80000000-200000000 vm1.cpu=6,7 vm1.pci=00:1c.0 shell=5
    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)'
        search --no-floppy --fs-uuid --set f2da741b-5bb1-414c-b586-79b0605fc954
        echo    'Loading VMM ...'
        multiboot   /boot/vmm.elf vm=vm0,vm1 vm1.mem=80000000-200000000 vm1.cpu=6,7 vm1.pci=00:1c.0 shell=5
        echo    'Loading guest BIOS ...'
        module  /boot/bios.bin
}

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

Configure VMM.
    cd vmm
    make config
    cd ..

Configure Guest BIOS
    cd bios
    make menuconfig
    cd ..

Build the VMM.
    make

If you install VMM for the first time:
    su
    ./install_to_usb.sh -f -c 'vm0.boot_int18' /dev/sdd bootloader/bootloader vmm/vmm.elf bios/out/bios.bin

Otherwise:
    su
    ./install_to_usb.sh -c 'vm0.boot_int18' /dev/sdd bootloader/bootloader vmm/vmm.elf bios/out/bios.bin
