Difference between revisions of "VirtualBox 4.0 on SME Server v8 beta 6"

From SME Server
Jump to navigationJump to search
(Created page with "<ol> <li>Setup SME Server v8 beta 6</li> <li>Do a yum update</li> <pre>yum update<br /> signal-event post-upgrade<br /> signal-event reboot</pre> ...")
 
Line 1: Line 1:
 
<ol>
 
<ol>
   <li>Setup SME Server v8 beta 6</li>
+
   <li>Setup SME Server v8 beta 6.</li>
   <li>Do a yum update</li>
+
   <li>Do a yum update.</li>
  
 
       <pre>yum update<br />
 
       <pre>yum update<br />
      signal-event post-upgrade<br />
+
signal-event post-upgrade<br />
      signal-event reboot</pre>
+
signal-event reboot</pre>
  
   <li>Check your current kernel</li>
+
   <li>Check your current kernel.</li>
  
 
       <pre>uname -r</pre>
 
       <pre>uname -r</pre>
  
   <li>Install kernel-devel to get the latest development tree (2.6.18-238.12.1.el5PAE-i686)</li>
+
   <li>Install kernel-devel to get the latest development tree (2.6.18-238.12.1.el5PAE-i686).</li>
  
       <pre>yum install kernel-PAE-devel</pre>       `only if you have a PAE kernel`<br />
+
      Use this command only if you have PAE kernel installed:<br/>
       <pre>yum install kernel-devel</pre>            `otherwise'<br />
+
       <pre>yum install kernel-PAE-devel</pre>
 +
      Otherwise,
 +
       <pre>yum install kernel-devel</pre>
  
  
Line 25: Line 27:
 
       <pre>ln –s /usr/src/kernels/’uname  –r’-i686 /lib/modules/`uname -r`/build</pre>
 
       <pre>ln –s /usr/src/kernels/’uname  –r’-i686 /lib/modules/`uname -r`/build</pre>
  
 +
  <li>Install DKMS</li>
 +
      <pre>wget http://packages.sw.be/dkms/dkms-2.1.1.2-1.el5.rf.noarch.rpm<br/>
 +
yum install  dkms-2.1.1.2-1.el5.rf.noarch.rpm</pre>
  
 +
  <li>Enable fopen on php.ini (line 65) located on /etc/</li>
 +
      <pre>allow_url_fopen = On</pre>
 +
 +
  <li>Install VirtualBox v4.0 (At the time of writing, the latest version is v4.0.8).</li>
 +
      <pre>wget http://download.virtualbox.org/virtualbox/4.0.8/VirtualBox-4.0-4.0.8_71778_rhel5-1.i386.rpm<br/>
 +
yum install VirtualBox-4.0-4.0.8_71778_rhel5-1.i386.rpm -y</pre>
 +
Note: you will get an error message, which you can ignore.
 +
 +
  <li>Setup VirtualBox as a service so it starts automatically after a reboot by copying the vboxwebsrv from rc5.d to rc7.d.</li>
 +
      <pre>cp /etc/rc5.d/S30vboxdrv /etc/rc7.d/.<br/>
 +
cp /etc/rc5.d/S35vboxballoonctrl /etc/rc7.d/.<br/>
 +
cp /etc/rc5.d/S35vboxweb-service /etc/rc7.d/.</pre>
 +
 +
  <li>Create a vbox.cfg file on your /etc/vbox/.
 +
      <pre>nano /etc/vbox/vbox.cfg</pre>
 +
 +
      vbox.cfg should have this content.
 +
      <pre>VBOXWEB_USER='root'<br/>
 +
VBOXWEB_HOST=127.0.0.1<br/>
 +
VBOXWEB_PORT=18083<br/></pre>
 +
 +
Note: Without the vbox.cfg, vbox services on your rc7.d folder will not start.
 +
  </li>
 +
 +
  <li>Before we install <b>[http://code.google.com/p/phpvirtualbox/ phpVirtualBox]</b>, make sure you install SOAP first.</li>
 +
      <pre>yum install php-soap</pre>
 +
 +
  <li>Login to the server-manager page and create an ibay for <b>phpvbox</b>. Don’t forget to assign a password.</li>
 +
  <li></li>
  
 
</ol>
 
</ol>

Revision as of 06:03, 5 July 2011

  1. Setup SME Server v8 beta 6.
  2. Do a yum update.
  3. yum update<br />
    signal-event post-upgrade<br />
    signal-event reboot
  4. Check your current kernel.
  5. uname -r
  6. Install kernel-devel to get the latest development tree (2.6.18-238.12.1.el5PAE-i686).
  7. Use this command only if you have PAE kernel installed:
    yum install kernel-PAE-devel
          Otherwise,
    
    yum install kernel-devel


  8. Create a symbolic link
  9. ln –s /usr/src/kernels/2.6.18-238.12.1.el5PAE-i686 /lib/modules/`uname -r`/build

    or

    ln –s /usr/src/kernels/’uname  –r’-i686 /lib/modules/`uname -r`/build
  10. Install DKMS
  11. wget http://packages.sw.be/dkms/dkms-2.1.1.2-1.el5.rf.noarch.rpm<br/>
    yum install  dkms-2.1.1.2-1.el5.rf.noarch.rpm
  12. Enable fopen on php.ini (line 65) located on /etc/
  13. allow_url_fopen = On
  14. Install VirtualBox v4.0 (At the time of writing, the latest version is v4.0.8).
  15. wget http://download.virtualbox.org/virtualbox/4.0.8/VirtualBox-4.0-4.0.8_71778_rhel5-1.i386.rpm<br/>
    yum install VirtualBox-4.0-4.0.8_71778_rhel5-1.i386.rpm -y

    Note: you will get an error message, which you can ignore.

  16. Setup VirtualBox as a service so it starts automatically after a reboot by copying the vboxwebsrv from rc5.d to rc7.d.
  17. cp /etc/rc5.d/S30vboxdrv /etc/rc7.d/.<br/>
    cp /etc/rc5.d/S35vboxballoonctrl /etc/rc7.d/.<br/>
    cp /etc/rc5.d/S35vboxweb-service /etc/rc7.d/.
  18. Create a vbox.cfg file on your /etc/vbox/.
    nano /etc/vbox/vbox.cfg
          vbox.cfg should have this content.
    
    VBOXWEB_USER='root'<br/>
    VBOXWEB_HOST=127.0.0.1<br/>
    VBOXWEB_PORT=18083<br/>

    Note: Without the vbox.cfg, vbox services on your rc7.d folder will not start.

  19. Before we install phpVirtualBox, make sure you install SOAP first.
  20. yum install php-soap
  21. Login to the server-manager page and create an ibay for phpvbox. Don’t forget to assign a password.