Tag Archives: vmware

vmware module for 12.5.2 and linux 4.9.6-1-ARCH

here we are again,

vmware modules need some tweaks again … here you will find a quick and easy patch.
in short, you have to fix some conditions:

#!/bin/sh
cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
mv vmmon.tar vmmon.old.tar
sed -r -i -e ‘s/KERNEL_VERSION\(4, 6, 0\)/KERNEL_VERSION\(4, 9, 0\)/g’ vmmon-only/linux/hostif.c
sed -r -i -e ‘s/retval = get_user_pages\(\(unsigned long\)uvAddr, numPages, 0, 0, ppages, NULL\);/retval = get_user_pages\(\(unsigned long\)uvAddr, numPages, 0, ppages, NULL\);/g’ vmmon-only/linux/hostif.c
tar cf vmmon.tar vmmon-only
rm -r vmmon-only
tar xf vmnet.tar
mv vmnet.tar vmnet.old.tar
sed -r -i -e ‘s/KERNEL_VERSION\(4, 6, 0\)/KERNEL_VERSION\(4, 9, 0\)/g’ vmnet-only/userif.c
sed -r -i -e ‘s/retval = get_user_pages\(addr, 1, 1, 0, \&page, NULL\);/retval = get_user_pages\(addr, 1, 0, \&page, NULL\);/g’ vmnet-only/userif.c
tar cf vmnet.tar vmnet-only
rm -r vmnet-only

thanks “digger” for all the fish!

Resizing linux filesystem without lvm

Hey,

if you need to resize your virtual harddisk in your virtual guest system and you are not using LVM, then this tutorial may help you: Extending a root filesystem in Linux without LVM

Here are the important steps for fast forward how-to:

  1. expand harddisk in vmware
  2. reallocate partition table with fdisk and restart your guest
  3. resize it with resize2fs

Be aware that fdisk takes the same starting block, otherwise you will mess up your partition table!

Happy working ๐Ÿ˜‰

vmware on ubuntu revival

hey folks,

new version – new problems! ubuntu 10.10 with the 2.6.35-22 kernel needs more attention (see articel “installing vmware workstation 6.5.x on ubuntu”). here [1] i found the first solution for the problem “gcc and kernel headers must be installed”. it was necessary to link two header files to the include/linux directory. the next problem was the vsock module. the solution can be found here [2].

summarized there are following steps to be done:

in one terminal, run:

while true; do sudo killall -9 vmware-modconfig-console; sleep 1; done

in a second terminal, run:

sudo ./VMware-Workstation-6.5.4-246459.x86_64.bundle --ignore-errors

kill loop in first terminal.
and now those commands:

cd /tmp
vi vmnet-only/vnetUserListener.c (near line 37 add #include "compat_sched.h")
tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only
tar xf /usr/lib/vmware/modules/source/vmci.tar
vi vmci-only/linux/vmciKernelIf.c (add #include "compat_sched.h" around line 30)
vi vmci-only/include/pgtbl.h  (add #include "compat_sched.h" around line 30)
tar cf /usr/lib/vmware/modules/source/vmci.tar vmci-only
tar xf /usr/lib/vmware/modules/source/vmnet.tar
cd /usr/src/linux-headers-2.6.35-22-generic/include/linux/
ln -sf ../generated/autoconf.h .
ln -sf ../generated/utsrelease.h .
cd /usr/lib/vmware/modules/source
cp -a vsock.tar vsock-orig.tar
tar xf vsock.tar
cd /usr/lib/vmware/modules/sourcevsock-only/linux
patch -p0 < /path/to/vsock.patch
cd /usr/lib/vmware/modules/source
tar cf vsock.tar vsock-only
rm -rf vsock-only

and now finally

cd /tmp
sudo vmware-modconfig --console --install-all

hopefully everything went fine ๐Ÿ˜‰

thanks for all the fish!

[1] “VMWare Workstation 6.5.4 with Linux kernel 2.6.33.4” (http://bovitron.com/blogostu/2010/06/01/vmware-workstation-with-linux-kernel-2-6-33-4)

[2] “Persuading VMware Workstation 7.1 to cooperate with Linux kernel 2.6.35” (http://www.linuxinsight.com/persuading-vmware-workstation-7.1-to-cooperate-with-linux-kernel-2.6.35.html)

[3] vsock.patch

installing vmware workstation 6.5.x on ubuntu

hey folks!

today i’ve got the message that vmware workstation was updated and that version 6.5.4 is out. so, i downloaded it and wanted to install … *schmecks*

there was a problem – i remembered it, that the version 6.5.3 made similar troubles – the installer hung up at configuring the vmplayer. here and here we found again the solution. shortly briefed:

  • in one terminal, run: while true; do sudo killall -9 vmware-modconfig-console; sleep 1; done
  • in a second terminal, run: sudo ./VMware-Workstation-6.5.4-246459.x86_64.bundle –ignore-errors
  • kill loop in first terminal.
  • # cd /tmp
    # tar xf /usr/lib/vmware/modules/source/vmnet.tar
    # vi vmnet-only/vnetUserListener.c (near line 37 add #include “compat_sched.h”)
    # tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only
    # tar xf /usr/lib/vmware/modules/source/vmci.tar
    # vi vmci-only/linux/vmciKernelIf.c (add #include “compat_sched.h” around line 30)
    # vi vmci-only/include/pgtbl.h (add #include “compat_sched.h” around line 30)
    # tar cf /usr/lib/vmware/modules/source/vmci.tar vmci-only
  • run: sudo vmware-modconfig –console –install-all
  • edit /etc/vmware/bootstrap to add the line: VMWARE_USE_SHIPPED_GTK=force

and everything is fine ๐Ÿ™‚

thanks for all the fish!

iphone upgrade with vmware under ubuntu

as you have read on this page before, it is possible to upgrade an iphone under ubuntu with vmware. BUT, as i’ve read on this page, it is easier as you think! here is my actually setup …

  • iPhone 3G 8Gb
  • ubuntu 9.10 (karmic) on lenovo t61p, kernel 2.6.31-19-generic
  • vmware workstation 6.5.3 build-185404
  • guest: winxp professional sp3 with itunes 9.0.3.15

what has to be done?

1. create a file /etc/modprobe.d/blacklist-usb.conf

2. add usb modules not to be loaded into that file

blacklist snd_usb_audio
blacklist usbhid

3. reload kernel event manager for the changes to take effect

reload udev

4. restart vmware and make sure you also restart windows in vmware

5. now start iphone software update in itunes

6. after update is complete, you can remove the blacklist file and restart kernel event manager again

note that during firmware update iphone might get disconnected โ€“ just connect it again using vmware removable devices menu.

wish you happy upgrading!!!

vmware-tools under ubuntu 9.04

hi folks!

i’ve had a problem with java, netbeans and my ubuntu 9.04 x86_64 system. so, i’ve decided to start my vmware and install a 32bit system – facing another problem: vmware-tools, in particular the mouse and filesharing.

searching for solutions on the web, i found those two sites:
http://www.csi-labor.de/archives/52-Howto-Vmware-Tools-Installation-unter-Ubuntu-9.04.html
http://communities.vmware.com/thread/207410

in short: you have to patch the vmhgfs module and if you are using the gcc-4.3 also the vmware-config-tools.pl script. everything else please read by yourself.

wish you happy compiling ๐Ÿ˜‰

my new iphone, no brick anymore

hello!

i made it … upgrading the iphone out of a vmware win-xp guest system works.

  • my host machine: Linux meschmobile 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64 GNU/Linux; Ubuntu 8.10
  • the vmware:ย  VMwareยฎ Workstation 6.5.1 build-126130
  • the guest machine: Win XP SP3

now, how it works: start the upgrade process out of the itunes. the first initial process works out of the box, but after the first longer progress bar at itunes, you will see that your iphone gets also a progress bar. this is the time you maybe see some popup’s at your host-system with following error: “Unable to mount Apple, Inc. iPhone Error initializing camera: -1: Unspecified error”

now hurry up and start a console. if you look after your loaded modules, you will see, that there are a lot more usbmodules than before. type following two commandos as root (or use sudo):

rmmod usbhid snd_usb_audio

rmmod snd_usb_lib

back to the vmware, and “reconnect” the phone. you won’t see a usb-symbol anymore, its now a loudspeaker-symbol! Disconnect it – and afterwards connect it immediately! Haven’t tried to plug in and out the usb-cable… think, it would be the same (but caution, the host system could reinitiate the usb-modules again).

after a couple of seconds, the iphone starts the upgrade … and the progress bar rises up!!! ๐Ÿ˜Ž