Skip to content

Instantly share code, notes, and snippets.

@Javvadilakshman
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save Javvadilakshman/7728a4611401fdd0803f to your computer and use it in GitHub Desktop.

Select an option

Save Javvadilakshman/7728a4611401fdd0803f to your computer and use it in GitHub Desktop.
VMWare Related Tips,Tricks etc...

VmWare

### VMWare Related Tips,Tricks etc...

Error Installing Vmware Workstation On Ubuntu

VmWare
VmWare

To fix this we will need to apply this patch to filter.c in VMware Player module sources.

Step No 1

Create a file in tmp directory name filter.c.diff and copy paste the following code init.

nano /tmp/filter.c.diff

	205a206
	> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
	206a208,210
	> #else
	> VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:
	> #endif
	255c259,263
	<    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
	---
	>    #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
	>       transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
	>    #else
	>       transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
	>    #endif

Step No 2

	sudo -E -s
	
	cd /usr/lib/vmware/modules/source/ 
	
	cp vmnet.tar vmnet.tar.original
	
	tar xvf vmnet.tar vmnet-only/filter.c
	
	patch vmnet-only/filter.c < /tmp/filter.c.diff
	
	tar -uvf vmnet.tar vmnet-only/filter.c
	
	rm -rf vmnet-only/

After that just run vmware and it will work fine.

####Note : You also need to chown the .vmware directory otherwise your vmware changes will not save ####Example

	sudo chown -R one:one .vmware

###Where one is my username and one is my group. sudo chown -R $USER:$USER .vmware

sudo vmware-installer -u vmware-workstation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment