refactoring create_vm script. worked version for centos65 under windows.