You are not logged in.

#1 2006-07-15 11:17:07

jw
Member
Registered: 2005-01-08
Posts: 88

VMWare Server: Cannot create new virtual machine

I've been trying to install VMWare Server on my system. I was able to install the program just fine. The problem is that when I run `vmware' I don't actually seem to be able to do anything.

A dialog pops up asking me to supply a host/username/pw. I've tried entering various hostnames, but cannot connect. If I just press cancel the item `File->New->Virtual Machine' is grayed out.

Can anyone tell me how I can actually create a new machine?


For reference, here's what I did to install:

1. I modified the VMWare Workstation PKGBUILD in AUR, basically editing filenames to install VMWare Server instead of VMWare Workstation
2. I installed the pkg with pacman and ran /opt/vmware/bin/vmware-config.pl
3. I answered the default to all queries and entered a serial when asked
4. Now I can run vmware (as root), but cannot do anything else. Who can help?

Offline

#2 2006-07-15 12:26:00

jw
Member
Registered: 2005-01-08
Posts: 88

Re: VMWare Server: Cannot create new virtual machine

OK. I've figured it out. The PKGBUILD omitted some files in the sbin/ directory. I modified the PKBUILD to include these and now things seem to work. Here's the PKGBUILD for reference:

# Contributor: Michal Krenek <mikos>

pkgname=vmware-server
pkgver=1.0.0.28343
pkgrel=0
_realver=1.0.0-28343
_patchver=101
pkgdesc="Virtual machine (x86) software"
url="http://www.vmware.com/products/ws"
license=('custom')
depends=('xorg-server' 'perl' 'pciutils' 'openssl' 'popt' 'gtk2')
makedepends=()
conflicts=()
replaces=()
backup=()
install=vmware.install
source=(http://download3.vmware.com/software/wkst/VMware-server-${_realver}.tar.gz 
        vmware.rc vmware.sh 00-vmware.rules 
        ${pkgname}-${_realver}-config.patch 
        ${pkgname}-${_realver}-config2.patch 
#        ${pkgname}-${_realver}-config3.patch 
        http://ftp.cvut.cz/vmware/vmware-any-any-update${_patchver}.tar.gz)
#md5sums=('6101deb381beb49f5b99cb1f8a81a532' 'bca0cbb13d41113a1610a7d652c8ac7b'
#         '4af7561a9b20264886f97063a1e9efda' '96844db25f2a3778b2dfdf72dfed566c'
#         '36eed3bfa298f6884fee70272b1a784f' '3df74f4dfaa783b6a2f9eba3f0030afa'
#         'c97a07443c0b9124d7cecec1e15bee07' 'b3ce457f5b9ae8b606fd70f56084877d')

options=('NOSTRIP')

build() {
  cd $startdir/src/vmware-server-distrib
  chmod 755 lib/bin/vmware bin/vmnet-bridge lib/bin/vmware-vmx lib/bin-debug/vmware-vmx

  # Patches from Gentoo
  patch -Np1 -i $startdir/src/${pkgname}-${_realver}-config.patch || return 1
  #patch -Np1 -i $startdir/src/${pkgname}-${_realver}-config2.patch || return 1
  #patch -Np1 -i $startdir/src/${pkgname}-${_realver}-config3.patch || return 1

  # Vmware-any-any-update
  mv -f $startdir/src/vmware-any-any-update${_patchver}/*.tar lib/modules/source/

  mkdir -p $startdir/pkg/opt/vmware

  # Install binary files
  mkdir -p $startdir/pkg/opt/vmware/bin
  cp -a bin/* $startdir/pkg/opt/vmware/bin/
  chmod u+s $startdir/pkg/opt/vmware/bin/vmware-ping
  mkdir -p $startdir/pkg/opt/vmware/sbin
  cp -a sbin/* $startdir/pkg/opt/vmware/sbin/

  # Install libs
  mkdir -p $startdir/pkg/opt/vmware/lib
  cp -dr lib/* $startdir/pkg/opt/vmware/lib/
  rm -rf $startdir/pkg/opt/vmware/lib/modules/binary
  chmod u+s $startdir/pkg/opt/vmware/lib/bin/vmware-vmx

  # Install docs
  mkdir -p $startdir/pkg/opt/vmware/doc
  cp -a doc/* $startdir/pkg/opt/vmware/doc/

  # Install man
  mkdir -p $startdir/pkg/opt/vmware/man
  cp -a man/* $startdir/pkg/opt/vmware/man/

  # Create profile.d
  mkdir -p $startdir/pkg/etc/profile.d
  cp $startdir/src/vmware.sh $startdir/pkg/etc/profile.d/
  chmod +x $startdir/pkg/etc/profile.d/vmware.sh

  # Create rc.d
  mkdir -p $startdir/pkg/etc/rc.d
  cp $startdir/src/vmware.rc $startdir/pkg/etc/rc.d/vmware
  chmod +x $startdir/pkg/etc/rc.d/vmware

  # Create udev rules
  mkdir -p $startdir/pkg/etc/udev/rules.d
  cp $startdir/src/00-vmware.rules $startdir/pkg/etc/udev/rules.d/

  # Create /etc/vmware
  mkdir -p $startdir/pkg/etc/vmware
  cp -a etc/* $startdir/pkg/etc/vmware/

  mkdir $startdir/pkg/etc/vmware/init.d
  for a in `seq 0 6`; do
    mkdir $startdir/pkg/etc/vmware/init.d/rc$a.d
  done

  cp -a installer/services.sh $startdir/pkg/etc/vmware/init.d/vmware
  sed -i 's|/sbin/lsmod|/bin/lsmod|' $startdir/pkg/etc/vmware/init.d/vmware
  sed -i 's|/sbin/lsmod|/bin/lsmod|' $startdir/pkg/opt/vmware/bin/vm-support
  sed -i 's|/sbin/lsmod|/bin/lsmod|' $startdir/pkg/opt/vmware/lib/net-services.sh
  sed -i 's/mknod -m 600/mknod -m 660/' $startdir/pkg/etc/vmware/init.d/vmware
  sed -i '/c 119 "$vHubNr"/ a
      chown root:vmware /dev/vmnet*
  ' $startdir/pkg/etc/vmware/init.d/vmware

  # Adding answers to /etc/vmware/locations
  echo "answer BINDIR /opt/vmware/bin" >> $startdir/pkg/etc/vmware/locations
  echo "answer LIBDIR /opt/vmware/lib" >> $startdir/pkg/etc/vmware/locations
  echo "answer MANDIR /opt/vmware/man" >> $startdir/pkg/etc/vmware/locations
  echo "answer DOCDIR /opt/vmware/doc" >> $startdir/pkg/etc/vmware/locations
  echo "answer RUN_CONFIGURATOR no" >> $startdir/pkg/etc/vmware/locations
  echo "answer INITDIR /etc/vmware/init.d" >> $startdir/pkg/etc/vmware/locations
  echo "answer INITSCRIPTSDIR /etc/vmware/init.d" >> $startdir/pkg/etc/vmware/locations

  # Make symlink for vmware
  mkdir -p $startdir/pkg/usr/bin
  cd $startdir/pkg/usr/bin
  ln -s /opt/vmware/bin/vmware vmware

  # Copy VMware EULA to standard licenses location
  mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
  cd $startdir/src/vmware-server-distrib
  cp -a doc/EULA doc/open_source_licenses.txt $startdir/pkg/usr/share/licenses/$pkgname/
}

There are still some glitches:

* If I run as normal user the system seems to freeze on connect. I have to run as root.
* When running vmware-config.pl it complains of a missing SBINDIR variable, which should be /opt/vmware/sbin and has to be added by hand to /etc/vmware/locations

Would appreciate it if someone could help out.

Offline

#3 2006-07-15 15:29:05

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,964

Re: VMWare Server: Cannot create new virtual machine

running as normal user : check if your user is in the vmware group. (adding your user to the vmware group is also necessary to run workstation as normal user)

Note : if you get it right, please put the pkgbuild in the aur.

see: http://bbs.archlinux.org/viewtopic.php?t=21349


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2006-07-15 15:39:25

jw
Member
Registered: 2005-01-08
Posts: 88

Re: VMWare Server: Cannot create new virtual machine

jep. i am part of the vmware group. just to be clear: the console does indeed start, but freezes at 100% cpu when I connect.

Offline

#5 2006-07-18 09:22:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: VMWare Server: Cannot create new virtual machine

jw wrote:

A dialog pops up asking me to supply a host/username/pw.

jw wrote:

The PKGBUILD omitted some files in the sbin/ directory. I modified the PKBUILD to include these and now things seem to work.

I'm using your PKGBUILD, and I'm still getting the host/username/pw request. When you say "things seem to work", do you mean that you're no longer seeing that dialog, or that you've figured out what to enter in it? If it's the latter, what are you putting in it?

jw wrote:

* When running vmware-config.pl it complains of a missing SBINDIR variable, which should be /opt/vmware/sbin and has to be added by hand to /etc/vmware/locations.

I just added an extra line to the section of the PKGBUILD dealing with /etc/vmware/locations, like this:

  # Adding answers to /etc/vmware/locations
  echo "answer BINDIR /opt/vmware/bin" >> $startdir/pkg/etc/vmware/locations
  echo "answer SBINDIR /opt/vmware/sbin" >> $startdir/pkg/etc/vmware/locations      ###  New Line ###
  echo "answer LIBDIR /opt/vmware/lib" >> $startdir/pkg/etc/vmware/locations
  echo "answer MANDIR /opt/vmware/man" >> $startdir/pkg/etc/vmware/locations
  echo "answer DOCDIR /opt/vmware/doc" >> $startdir/pkg/etc/vmware/locations
  echo "answer RUN_CONFIGURATOR no" >> $startdir/pkg/etc/vmware/locations
  echo "answer INITDIR /etc/vmware/init.d" >> $startdir/pkg/etc/vmware/locations
  echo "answer INITSCRIPTSDIR /etc/vmware/init.d" >> $startdir/pkg/etc/vmware/locations

Offline

Board footer

Powered by FluxBB