martes, junio 02, 2009

Problema al instalar VMWare server en Linux

No se vosotros pero yo me he encontrado con un problema bastante molesto y que me costó un par de horas solventar. Este surge cuando instalo VMWare server en una distribución Linux (uso Fedora 6 normalmente, aunque con Ubuntu también me ha pasado) y reinicio la máquina. Al volver a iniciar sesión el servicio vmware me da problemas al arrancar y hay que volver a ejecutar el script .pl para que vuelva a funcionar todo correctamente, lo cual es un autentico coñazo.

La forma de resolverlo la he sacado del blog de Ben Kevan, donde explica en dos pasos como evitar este molesto problema. Se justifica en algún que otro punto diciendo que no es la mejor manera de hacerlo pero bueno, funciona.

Los pasos son los siguientes:


  1. Instalar VMWare server.

  2. Seguir los pasos que Ben describe en su blog, que vienen a ser:


    1. Cambiar:

      check_configured() {
      if [ -e "$vmware_etc_dir"/not_configured ]; then
      echo “`vmware_product_name`”‘ is installed, but it has not been correctly configured’
      echo ‘for the running kernel. To (re-)configure it, invoke the’
      echo ‘following command: ‘”$vmdb_answer_BINDIR”‘/vmware-config.pl.’
      echo
      exit 1
      fi
      }

      a

      check_configured() {
      if [ -e "$vmware_etc_dir"/not_configured ]; then
      rm -f “$vmware_etc_dir”/not_configured
      fi
      if [ -e "$vmware_etc_dir"/not_configured ]; then
      echo “`vmware_product_name`”‘ is installed, but it has not been correctly configured’
      echo ‘for the running kernel. To (re-)configure it, invoke the’
      echo ‘following command: ‘”$vmdb_answer_BINDIR”‘/vmware-config.pl.’
      echo
      exit 1
      fi
      }


    2. Cambiar:

      if [ "$exitcode" -gt 0 -a `vmware_product` != "ws" ]; then
      # Set the ‘not configured’ flag
      touch “$vmware_etc_dir”‘/not_configured’
      chmod 644 “$vmware_etc_dir”‘/not_configured’
      db_add_file “$vmware_db” “$vmware_etc_dir”‘/not_configured’ \
      $vmware_etc_dir”‘/not_configured’
      exit 1
      fi

      a

      if [ "$exitcode" -gt 0 -a `vmware_product` != "ws" ]; then
      # Set the ‘not configured’ flag
      # START EDIT
      # touch “$vmware_etc_dir”‘/not_configured’
      # chmod 644 “$vmware_etc_dir”‘/not_configured’
      # db_add_file “$vmware_db” “$vmware_etc_dir”‘/not_configured’ \
      # “$vmware_etc_dir”‘/not_configured’
      # END EDIT
      exit 1
      fi



  3. Al reiniciar la máquina ejecutar /etc/init.d/vmware restart (¡ojo! con start solo no me ha funcionado)

Etiquetas: , , , , , , ,