VirtualOS (Commandline)
What do you need?You need the bios.lua and the rom folder from the CraftOS Version you wish to run. If you use the same CraftOS Version that you want to run, you can use the normal /rom Folder. You can find the latest bios and rom Here. If you search for older Versions look here
Download:
wget https://gitlab.com/Wilma456/Computercraft/raw/master/Programs/virtualos.lua virtualos
Or with Packman/MinepackUsage:
It's very simple, if you has everything that you need:
virtualos --biosPath=/bios.lua --romPath=/rom --rootPath=/drive
biosPath is the Path to the bios.lua that you wish to runromPath is the Path to the rom folder
rootPath is the path to the virtual / of the VM
Just replace the Path with your local path.
Optional Options
–label=label Set the Computer label
–id=id Set the Computer ID
–notime os.time() will always return 7
–noday os.day() will always return 1
–titel=titel The titel in Multishell
–oldnative term.native is a table and not a function (Needed for CraftOS 1.5)
–host=host Set _HOST (Cannot start with "ComputerCraft")
–ccversion=version Set _CC_VERSION
–mcversion=version Set _MC_VERSION
–nohttp Disable http API
–sharePath=Path Path of a shared Folder
–shareName Filename of the shared Folder in the VM
–noper Disable Peripherals
–diskapi Enable disk API (Only needed for CraftOS 1.2)
–diskmount Give VM acces to all disks
–noepoch os.epoch() will always return 111600000
–noturtle Disable Turtle API
–nopocket Disable Pocket API
–nocomand Disable Commands API
–noclear The Screen is not cleared after shutting down the VM
Current Version: 4.2
VirtualOS Manager (GUI)
This is a GUI for VirtualOS wich download bios and rom automatic. It is very esay to use and it's mostly selfexplaining.
Instalation:
pastebin run B05YGPPy
Or with Packman/MinepackCurrent Version: 3.0
Sandboxing
term.native() from the VM return the term.current() of the host.All Events are sandboxed. The VM has no acces to the Events of the Host expected Events like char, key mouse_click.
The timer/alarm Event is only trigered, if the Timer/Alarm was set in the VM. All http Events are only trigered, if the request came from the VM.
If you want to queue a Event from Outside the VM, you need to run this:
os.queueEvent("VirtualOS_Event","char","a")
This will queue the char Event in all VMs