Showing posts with label vmware. Show all posts
Showing posts with label vmware. Show all posts

Monday, July 5, 2010

vmware fusion -- network no connection

The following tip can fix "network bridge device on /dev/vmnet0 is not running" failure.


$ sudo /Library/Application\ Support/VMWare Fusion/boot.sh –-restart

Wednesday, July 30, 2008

Windows share folders with vmware Ubuntu

I have trouble to view share folder from Ubuntu 7.0.4. There are several ways to do it. One is through smb4k, the other is with vmware share folder settings. Neither works for me. So with the second way, I found out the solution from the Internet.

Here is the fix:

/*
#define INODE_SET_II_P(inode, info) do { (inode)->u.generic_ip = (info); } while (0)
#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->u.generic_ip)
*/
#define INODE_SET_II_P(inode, info) do { (inode)->i_private = (info); } while (0)
#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->i_private)

// inode->i_blksize = HGFS_BLOCKSIZE;

This fix changes the driver.c in /usr/lib/vmware-tools/modules/source. Make a backup on vmhgfs.tar, untar it (tar xvf vmhgfs.tar), make edit on driver.c, tar it back (tar cvf vmhgfs.tar vmhgfs-only) and re-run vmware-config-tools.pl.

Everything is fine on building hgfs module.

Wednesday, October 31, 2007

slackware 12 - on macbook

I install VMware fusion to my mac book, thus I can install other OS to my macbook, I am choosing slackware 12, the installation of slackware is quite simple. But to install VMWare tool is a little tricky, I never make it work before, because I don't know what to do when I see the menu item change to "cancell vmtool installation" and it hangs there forever. Now I know is just mount /dev/cdrom to /mnt/cdrom to run the install package from 'virtual' cdrom.

And to make vmtool install successfull, I have to install pam first, here is the build script:

./configure --prefix=/usr/local --sysconfdir=/etc
make
make install
ldconfig


also mkdir /etc/pam.d used by vmware tool,

cat << EOF > /etc/pam.d/vmware-authd
#%PAM-1.0
auth required /usr/local/lib/security/pam_unix.so shadow nullok
auth required /usr/local/lib/security/pam_nologin.so
account required /usr/local/lib/security/pam_unix.so
EOF


In case there are some problems, here is the way on use vmxnet driver


cp /etc/rc.d/rc.inet1 /etc/init.d/network
cp /etc/rc.d/rc.inet1 /etc/init.d/networking
/usr/bin/vmware-config.pl

/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start


Now it is time to enjoy vmware-toolbox!

Wednesday, October 24, 2007

VMWare - allocate disk space

Today I need to add another free disk for my new project, and my previous blog still works. Here is the steps, I am writing to create a new scsi virtual disk.


1. use vmware workstation to create a new disk 8G, and allocate spaces as well.

2. Start Fedora Core 5, run a terminal.

3. "fdisk -l /dev/sdc" to list the hard disk information, here there is no sdc1 sdc2 etc.

4. "fdisk /dev/sdc" to create a new primary disk with "n", use the all space for sdc1.

5. "mkfs.ext3 /dev/sdc1" to format the disk to ext3 format.

6. edit /etc/fstab, add a line "/dev/sdc1 /opt/marvell ext3 defaults 0 2".

7. Then I can mount /dev/sdc1 by "mount /dev/sdc1", but make sure the empty directory /opt/marvell is created first.

8. use "df" to check.