{"id":20687494,"url":"https://github.com/mrakitin/vbox_files","last_synced_at":"2026-02-05T04:03:08.400Z","repository":{"id":88973998,"uuid":"102620171","full_name":"mrakitin/VBox_files","owner":"mrakitin","description":"VirtualBox files","archived":false,"fork":false,"pushed_at":"2017-09-06T22:43:58.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T12:03:11.507Z","etag":null,"topics":["configuration","documentation","readme","services","virtualbox"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrakitin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-06T14:40:20.000Z","updated_at":"2017-09-06T18:33:14.000Z","dependencies_parsed_at":"2023-06-13T09:30:21.497Z","dependency_job_id":null,"html_url":"https://github.com/mrakitin/VBox_files","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrakitin/VBox_files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrakitin%2FVBox_files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrakitin%2FVBox_files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrakitin%2FVBox_files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrakitin%2FVBox_files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrakitin","download_url":"https://codeload.github.com/mrakitin/VBox_files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrakitin%2FVBox_files/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29110590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T03:44:17.043Z","status":"ssl_error","status_checked_at":"2026-02-05T03:44:12.077Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["configuration","documentation","readme","services","virtualbox"],"created_at":"2024-11-16T22:57:30.871Z","updated_at":"2026-02-05T04:03:08.384Z","avatar_url":"https://github.com/mrakitin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a short README file regarding the VirtualBox shared installation on\n**nsls2expdev1** Windows 2012 server.\n\nI. VirtualBox shared directory\n--\nBy default, each user has his own configuration \u0026 machines in the VirtualBox \nenvironment. As of today, VirtualBox was configured to use a shared directory\navailable to all users, which is at `D:\\VMs\\`.\n\nThe instructions for multiple users access are adapted from\nhttp://lifeofageekadmin.com/allow-multiple-users/:\n- `VBOXUSERS` group was created with 2 users (`BNL\\chubar` and `BNL\\mrakitin`);\n- `VBOX_USER_HOME` environment variable was set to `D:\\VMs\\.VirtualBox` (that's\n  the path where all configuration files of the VirtualBox installation are\n  stored.\n\nII. VirtualBox service\n--\nFor MS Windows, VirtualBox does not have an option to run a VM as a service. For\nthat purpose third-party software packages exist. I've choosen a free \nimplementation [VBoxVmService](http://vboxvmservice.sourceforge.net/). This\nallows to install a service for a VM to run as the impersonated user (does not\nrequire to run a service as a domain user =\u003e no need to change the password for\nthe service every 3-6 months). The instructions for configuration of the service\nare available at http://techgenix.com/start-virtualbox-service/. The package is\ninstalled in `D:\\VMs\\VBoxVmService\\`, the [VBoxVmService.ini](VBoxVmService.ini) file should look like:\n```\n[Settings]\nVBOX_USER_HOME=D:\\VMs\\.VirtualBox\nRunWebService=no\nPauseShutdown=30000\n\n[Vm0]\nVmName=Sirepo\nShutdownMethod=savestate\nAutoStart=yes\n```\n\nThe service was installed in the Administrator mode by the following commands:\n```bat\n\u003e D:\\\n\u003e cd D:\\VMs\\VBoxVmService\\\n\u003e VmServiceControl.exe -i\n```\nor use `VmServiceControl.exe -u` and then `VmServiceControl.exe -i` to reinstall the service.\n\nThe startup type of the created service `VBoxVmService` should be updated to be \n`Automatic (Delayed Start)` to run 2 minutes after all Windows services have\nstarted.\n\n**Note:** the GUI will not display correct status of the VM since it runs in a\nseparate environment. Check the logs at `D:\\VMs\\VBoxVmService\\VBoxVmService.log` \nfor the correct status information. Something like the following should be in\nthe logs:\n```\n09/05/2017, 10:05:46 - VBoxVmService started.\n09/05/2017, 10:05:47 - List all the VMs found by VBoxVmService\n09/05/2017, 10:05:47 -   VM0: Sirepo is saved.\n09/05/2017, 10:05:53 -   VM Sirepo has been started up.\n```\n\nThe structure of `D:\\VMs\\`:\n- `.VirtualBox\\`    - general VirtualBox configuration files\n- `VBoxVmService\\`  - VBoxVmService files\n- `VirtualBox VMs\\` - Sirepo VM configuration and disk files\n\nIII. Sirepo services inside Sirepo VM:\n--\nConnect over ssh to `nsls2expdev1.bnl.gov:2222` with vagrant user and run:\n```\nscreen -R -D my\n```\n\n![](img/sirepo_screen.png)\n\nTo switch between screens use \u003ckbd\u003eCtrl\u003e\u003c/kbd\u003e+\u003ckbd\u003e^\u003c/kbd\u003e then \u003ckbd\u003eSpace\u003c/kbd\u003e bar.\n\n- screen 0:\n```bash\nhtop\n```\n\n- screen 1:\n\nIf there is an existing container, clean it by the [command](https://github.com/mrakitin/utils/blob/master/bash/clean_docker.sh):\n```bash\nbash ~/src/mrakitin/utils/bash/clean_docker.sh mgmt\n```\nThen run:\n```bash\ndocker pull rabbitmq:management\ndocker run --rm --hostname rabbit --name rabbit -p 5672:5672 -p 15672:15672 rabbitmq:management\n```\n\n- screen 2:\n```bash\ncelery worker -A sirepo.celery_tasks -l info -Q parallel,sequential\n```\n\n- screen 3:\n```bash\ncelery flower -A sirepo.celery_tasks\n```\n\n- screen 4:\n```bash\nsirepo service http\n```\n\n- screen 5 (used for console operations):\n```bash\ncd ~/src/radiasoft/sirepo\ngit pull --all  # pull the latest version of Sirepo\n```\n\nIV. Troubleshooting\n--\nIf Sirepo fails to open any of the predefined examples (e.g., Undulator Radiation), it may mean the server is missing some of the simulaiton codes.\n\nTo install the missing packages, execute the following commands:\n```bash\ncd ~/src/radiasoft/sirepo\npip install -r requirements.txt\n```\n\nTo install WARP, do the following:\n```bash\ncurl radia.run | bash -s code warp rsbeams\n```\n\n---\n2017-09-06 by Maksim Rakitin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrakitin%2Fvbox_files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrakitin%2Fvbox_files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrakitin%2Fvbox_files/lists"}