runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

How to create image file ? #82

Open KiPSOFT-zz opened 9 years ago

KiPSOFT-zz commented 9 years ago

Hi, i want to run on virtualbox. this possible ? and how to create image file ?

iefserge commented 9 years ago

Yes, it's possible to create an ISO image to load from on VirtualBox. The process is a bit complicated and could probably be automated.

I did on Linux using GRUB tools (not sure they're available on Mac):

mkdir disk
set timeout=0
set default=0

menuentry "runtime" {
    multiboot /runtime-0.1.14
    module /initrd
    boot
}

So, we have 3 files in the disk directory:

initrd
runtime-0.1.14
boot/grub/grub.cfg

Then grub-mkrescue to create runtime.iso:

grub-mkrescue -o runtime.iso disk/

Now it should be possible to boot from the created CD iso image.

Notes:

VBoxManage modifyvm <vm_name> --hpet on

Other than network issue I was able to run runtime in VirtualBox successfully.

KiPSOFT-zz commented 9 years ago

Thanks for great document. I have a problem. EFI options unchecked virtual machine crashed but checked this option, my virtual machine open on UEFI.

I'm enabled hpet.

Virtualbox log - https://gist.github.com/KiPSOFT/f6a82e98fa7d0812c82d

What's problem ?

iefserge commented 9 years ago

hm, are you able to boot into grub menu? you can test this by deleting grub.cfg from the iso or just by adding a menu timeout. or does it crash later during the startup?

KiPSOFT-zz commented 9 years ago

i don't see any boot screen. vm loading and crash.

iefserge commented 9 years ago

sounds like there is some issue with ISO you're using or maybe VirtualBox configuration, so GRUB cannot start.

KiPSOFT-zz commented 9 years ago

Do you think PAE / NX should be enabled? because it is not active, it must give enable warning.This can create problems?

iefserge commented 9 years ago

64 bit is required (the only supported architecture is x86_64) and it should work without NX support.