Advertisement
Guest User

checklist

a guest
May 18th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1.  
  2.  
  3. general help / a step-by-step tutorial
  4.  
  5. Postby mattz » 4. Jul 2008, 14:39
  6. The parameter "RunAtDomain=" MUST NOT BE EMPTY, OR ELSE VBoxVmService WILL FAIL!
  7.  
  8. If you are not running within a domain-controlled environment, paste your local computer's name here (e.g. "RunAtDomain=winserver" -- as always: no quotes here or anywhere else within the .INI-file!!!!)
  9.  
  10. 'This is my .INI file (works like a charm):
  11.  
  12. Code: Select all Expand view
  13. [Settings]
  14. ServiceName=VBoxVmService
  15. PathToVBoxSDL=C:\vbox\VBoxSDL.exe
  16. PathToVBoxVRDP=C:\vbox\VBoxHeadless.exe
  17. PathToVBoxManage=C:\vbox\VBoxManage.exe
  18. RunAsUser=vboxuser
  19. RunAtDomain=winserver
  20. UserPassword=vboxsecret123
  21. [Vm0]
  22. VmName=ubuntuserver-dev
  23. CommandLineUp=c:\vms\startup.exe 0
  24. CommandLineDown=c:\vms\shutdown.exe 0
  25. WorkingDir=C:\vms
  26. StartupMethod=vrdp
  27. ShutdownMethod=savestate
  28. VrdpPort=3389
  29.  
  30.  
  31.  
  32. Some comments:
  33.  
  34. The host-machine's hostname IS "winserver".
  35. There is an actual user-account on this local system: "vboxuser" (that's the login-name!)
  36. This user-account "vboxuser" has administrative privileges (or else VboxVmService will not run!).
  37. A password has to be set for the user' account! In my demo-case, this password is: "vboxsecret123". Passwords on Windows are case-sensitive!
  38.  
  39. I used the account "vboxuser" to create the virtual machines, that are to be controlled by the service. This user has to have FULL ACCESS to the Machines' configuration data as well as their .vdi-files!
  40. Any hardlinks in the filesystem point to the original VirtualBox.xml-file that was created for this user and is located at: "C:\Documents and Settings\VboxUser\.VirtualBox\VirtualBox.xml".
  41.  
  42. Double check, that you have:
  43. ---------------------------------------------------------------
  44. - Microsoft Windows 2003 Resource Kit Tools
  45. - Microsoft Visual C++ Runtime (version 2005 or later)
  46. - Microsoft Dotnet Framework 2.0
  47.  
  48. installed on your host machine.
  49.  
  50.  
  51.  
  52. Checklist:
  53. -------------------------------------------------------------------------
  54.  
  55. 0. set your host-computer's name to "winserver", save & reboot
  56.  
  57. 1. create a local user "vboxuser" with admin-privileges
  58.  
  59. 2. secure this account with the password "vboxsecret123"
  60.  
  61. 3. log out of your winbox
  62.  
  63. 4. log on to the system as "vboxuser"
  64.  
  65. 5. fire up your virtualbox-application
  66.  
  67. 6. create a vm called "vmtest" for testing purposes and install some linux within
  68.  
  69. 7. start the vm "vmtest" - make sure that it works alright
  70.  
  71. 8. shut down the vm
  72.  
  73. 9. uninstall VBoxVmService if you have it installed:
  74. type: VboxVmService.exe -u [ENTER] in a command-prompt
  75.  
  76. 10. unzip a fresh copy of the latest vboxvmservice-package to "c:\vms"
  77.  
  78. 11. open a command prompt
  79.  
  80. 12. type:
  81. del "C:\Documents and Settings\LocalService\.VirtualBox\*.*" [ENTER]
  82.  
  83. 13. type:
  84. del "C:\Documents and Settings\NetworkService\.VirtualBox\*.*" [ENTER]
  85.  
  86. 14. type: fsutil hardlink create "C:\Documents and Settings\LocalService\.VirtualBox\VirtualBox.xml"
  87. "C:\Documents and Settings\vboxuser\.VirtualBox\VirtualBox.xml" [ENTER]
  88.  
  89. 14a. type: fsutil hardlink create "C:\Documents and Settings\NetworkService\.VirtualBox\VirtualBox.xml"
  90. "C:\Documents and Settings\vboxuser\.VirtualBox\VirtualBox.xml" [ENTER]
  91.  
  92. 15. type: cd c:\vms [ENTER]
  93.  
  94. 16. type: notepad VBoxVmService.ini [ENTER]
  95.  
  96. 17. delete all contents within the ini-file, then paste the following:
  97.  
  98. Code: Select all Expand view
  99. [Settings]
  100. ServiceName=VBoxVmService
  101. PathToVBoxSDL=C:\Path\to\your\VirtualBox\install\VBoxSDL.exe
  102. PathToVBoxVRDP=C:\Path\to\your\VirtualBox\install\VBoxHeadless.exe
  103. PathToVBoxManage=C:\Path\to\your\VirtualBox\install\VBoxManage.exe
  104. RunAsUser=vboxuser
  105. RunAtDomain=winserver
  106. UserPassword=vboxsecret123
  107. [Vm0]
  108. VmName=vmtest
  109. CommandLineUp=c:\vms\startup.exe 0
  110. CommandLineDown=c:\vms\shutdown.exe 0
  111. WorkingDir=C:\vms
  112. StartupMethod=vrdp
  113. ShutdownMethod=savestate
  114. VrdpPort=3389
  115.  
  116.  
  117.  
  118. 18. update "C:\Path\to\your\VirtualBox\install\" to match your local system's setup, save the file and quit notepad
  119.  
  120. 19. type: VBoxVmService.exe -i [ENTER]
  121.  
  122. 20. open up the windows taskmanager, change to the process tab and check the option "show processes for all users"
  123.  
  124. 21. switch back to the command prompt and type: startup_cli.exe 0 [ENTER]
  125.  
  126. 22. you should be seeing several "cmd.exe" processes appearing and disappearing within taskmanager's process list. "VBoxSVC.exe" should come up first, then "VBoxHeadless.exe"
  127.  
  128. 23. all done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement