Resolving issues after cloning Virtual box virtual machine

Some times we may encounter few issues with cloned virtual machines at start up .

After cloning a linux Guest I tried to increase memory and started it but it is failed with an error message

Failed to open a session for the virtual machine

VT-x is not available.(VERR_VMX_NO_VMX).


Result Code:
E_FAIL (0x80004005)
IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}

I just changed RAM size back and started it then increased RAM (We need to shut down virtual machine to change it).

I think this issue can be fixed by also changing entries in vbox settings file , this file can be found in Virtualbox directory on host machine. We can open it with a text editor and make changes .

Cloned machine may not be able to start network interface at startup.My guest OS was showing just loopback interface after startup .
I just changed mac address of new cloned device to match with it’s own macadderss in file /etc/sysconfig/network-scripts/ifcfg-eth0 .
Network interface settings file location is different in other Linux distro for example ubuntu,debian will have network settings in /etc/network/interfaces file. I also changed mac address in /etc/udev/rules.d/70-persistent-net.rules ( we can find the macaddress from virtual machine settings—>Network) .


Error while Importing Large files into Mysql database

We may need to adjust maximum allowed file size in my.cnf  file  to avoid   erros such as ” ERROR at line xxx:  MySQL server  has gone  away”.



adding an entry “max_allowed_packet = 100M”  to my.cnf has fixed the issue

PHP mailfunction error.




Session “default” started at 2013-04-20T12:31:45+0000

#1 ERROR: Error: mail() [<a href=’function.mail’>function.mail</a>]: Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set() in ‘C:\wamp\www\public\projects\library\swift\lib\classes\Swift\Transport\SimpleMailInvoker.php’ on line 50 (error code: 2)
Time since start: 1.4565789699554 seconds

Session “default” started at 2013-04-20T12:37:42+0000

#1 ERROR: Error: fsockopen() [<a href=’function.fsockopen’>function.fsockopen</a>]: unable to connect to ssl:// (Unable to find the socket transport &quot;ssl&quot; – did you forget to enable it when you configured PHP?) in ‘C:\wamp\www\public\projects\library\PEAR\Net\Socket.php’ on line 136 (error code: 2)
Time since start: 0.4566478729248 seconds



1.enable extension=php_openssl.dll in php.ini

2.Check if include path pointed  to correct PEAR  directory

3. find out which php.ini is using by webserver by creating a test file with content  <?php phpinfo(); ?>

4.  open  the correct php.ini found in step 3 e and search for

; Windows: “\path1;\path2”
include_path = “.;c:\PEAR”

if it is linux you may need to change back-slash to forward-slash(/).

Failed to initialize storage module- PHP error -IIS

PHP Error  :

Fatal error: session_start() [function.session-start]: Failed to initialize storage module: files (path: )


Uncomment   session.save_path =    line  and define the tmp folder for example “C:\tmp” , so  the line looks like

session.save_path =  “C:\tmp”

Also make sure that tmp directory is writable by IIS user




git error


Error: failed to push some refs to 'git@myproject.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Merge the remote changes (e.g. 'git pull') hint: before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

I used force switch when I got above error while pushing the code

#git push -f myproject master

myproject is the repository name