Event-driven OS kernel built on V8 JavaScript engine
People
Repo info
Activity
Serge
@iefserge
QEMU is more like a development feature though, it would run differently on a cloud provider
austinfrey
@austinfrey
that makes sense. I'll keep working on it. it might come in handy if environment variable come in to play runtimejs/runtime#134
Serge
@iefserge
thanks, merged your PRs!
austinfrey
@austinfrey
@iefserge when you say QEMU is more for development, how do you picture runtime working on a larger scale/production?
Serge
@iefserge
This message was deleted
@aafrey I think it would use cloud provider API for launching instances with custom *.iso image (iso can be created out of kernel and initrd files), or using kernel/initrd files directly if allowed
Serge
@iefserge
on bare hardware you could use KVM with pretty much the same command line as QEMU
austinfrey
@austinfrey
Could we find in something like libvirt? I think there are some node bindings floating around
@iefserge@facekapow i took a preliminary stab at adding some libvirt functionality to runtime-cli. i added a few simple test commands, but I'd appreciate some feedback before I go to much further. i added 'deployto spin up a VM from an .xml config file,psto view all defined VM's and running VM's, and adestroy` command to shutdown and remove a VM. https://github.com/aafrey/runtime-cli/tree/libvirt
let me know what you think
Serge
@iefserge
nice thanks, i'll take a look
austinfrey
@austinfrey
@iefserge@facekapow I was just messing around today and setup a remote server. I successfully deployed a few runtime instances to the remote machine using the some of the new runtime-cli commands. I wrote up some instructions if anyone wants to give it a go: https://github.com/aafrey/runtime-cli/wiki/Libvirt-and-runtime.js
It's definitely not polished but it's fun!
Serge
@iefserge
@aafrey wow pretty nice! where do you deploy them? locally or on a cloud machine?
austinfrey
@austinfrey
Both. Depending on what connection URI you choose you can spin them up locally or on a remote server. I deployed a few to a server on scaleway this afternoon
austinfrey
@austinfrey
@iefserge does runtime support multiple CPU's?
Serge
@iefserge
@aafrey nope
austinfrey
@austinfrey
gotcha. thanks for the info
Serge
@iefserge
@aafrey libvirt commands are pretty cool, the only concern I have is that it uses native bindings and its a pretty large dependency. Should it be a standalone module? Something like runtime-libvirt command?
austinfrey
@austinfrey
that could definitely work.
it would keep the runtime-cli package from balooning up for sure
you have a chance to try it out at all?
Serge
@iefserge
not yet, but looked at the code. Are there cloud providers I can try it on? Needs bare metal machines probably?
ok, don't have much experience with libvirt, just curious how many providers support it
austinfrey
@austinfrey
well libvirt just provides the orchestration piece, you can use it to deploy to xen, kvm, virtualbocx etc
I honestly don't have much experience with it either, i kinda stumbled upon it last week, but I'd imagine as long as you have the ability to install teh libvirt daemon on the target host, you should be ok
Serge
@iefserge
yeah cool, but can i use it with google cloud for example? kvm on top of google's kvm would not work probably
austinfrey
@austinfrey
I wouldn't know about that, it would make kind of a nested hypervisor scenario and I wouldn't know how that would work
I could lookinto it further. I'll also write up the exact process I used to push to Scaleway
Serge
@iefserge
ok, looks like nested hypervisor isn't supported
austinfrey
@austinfrey
Bummer...
Mohendran
@Mohendran
hi... I tried the example server ... can anyone tell me how to implement a view engine in the index.js to give a html file as a response
Serge
@iefserge
@Mohendran hi! you should be able to read html files using fs.readFileSync('./path/to/file', 'utf8'). Then you can send it as http response
Mohendran
@Mohendran
Yeah... i made it work..... Thanks for ur reply
Mohendran
@Mohendran
Can Runtime be installed as an Operating System?
Or is there a work around to make it an Operating System?
Mohendran
@Mohendran
@iefserge Can I run a C program on top of runtime?
Serge
@iefserge
yeah via web assembly should work
on previous question, runtime isn't really installable, runs entirely from memory
doesn't use disk by default
Mohendran
@Mohendran
@iefserge thanks.... Im really interested in your project.... It is really awesome..... and i have been wanting to explore it.... U really did a great work....
Serge
@iefserge
Thanks, though it's a hobby project, don't really have time to work on it lately. Not sure it'll ever be production ready
Mohendran
@Mohendran
I could understand... but what if you just explained the basics and key concepts and all in a documentation or a video lecture of the total project... The project could get a lot more momentum? Just a hunch....
There might be many people just itching to get their hands dirty on this project
Mohendran
@Mohendran
@iefserge
pdoria
@pdoria
hi guys. anyone stumbled upon this: "TypeError: crypto.readFileSync is not a function"? .. this is an 'rolled' up app that required mongodb-client-encryption module to be bundled although I don't use encryption...