You are on page 1of 8

VMWare: v4.0.

5 for Windows workstations: Operating system: Install:


Linux: Debian: v3.0

---

NOTE: LINUX DEBIAN is not officially supported by VMWare.

---

Steps: Overview:

---

1. -create a new virtual Linux machine in VMWare (choose the defaults)


(possibly reduce the memory assigned to it to say 64 megabytes,
if your machine has only 256 megabyte and is running Windows XP,
as otherwise your machine might slow significantly or even freeze
in some circumstances)

2. -insert CD1 of Linux Debian v3.0

3. -in the start screen type the option

bf24 (=this will start the installation with 2.4 kernel)

then press <ENTER>

4. -choose the defaults, until the details of the disk partitioning

5. -choose 'Partition a Hard Disk'

6. -choose '/dev/sda' at 'Select your disk drive',

7. -then press 3 times <ENTER> to accept the defaults and


go to the next screens.

8. -At 'do you wish to start with a zero table', I chose 'N'o

(only press the 'N', and not <ENTER> after this,


or you will pass the next screen)

(if you should choose 'Y'es, it will assign your


complete available disk space to one partition,
so you have one large disk (and no swap))

9. -Choose 'Y'es, to create new partition

10. -Choose 'New'

11. -Choose 'Logical' partition

12. -Choose the filesize (e.g. 5% of your available space),


in my case 293 megabyte of a total of 4293 megabyte.

13. -Put this in the 'Beginning' of your free space

14. -Make it 'Boot'able

15. -Goto the 'Free Space' (with your cursor, by moving


it down in the list on the screen)

16. -Choose 'New'


17. -Choose create a 'Primary' partition

18. -Choose the filesize (e.g. 95% of your available


space),
in my case the total available of 4000 of 4293
megabytes.

19. -Do *not* put this in the 'Beginning' of your space


(as the swap partition is the one that should be
there)

20. -This partition will be sda2 (in my case)

21. -When finished, type 'Write' to write this table


to disk

22. -Choose 'Write', then 'yes' to write this chosen


partition table to disk

This created a disk called 'sda5' - Logical - boot - 296 MB - for


the small partition
This created a disk called 'sda2' - Primary - 3997 MB - for the
large partition

23. -Choose 'Quit'

24. -do *not* reboot your Linux Debian in


VMWare for Windows (or your system
will hang as it looks on your
unfinalized disk)

25. -Choose 'do without a swap partition'

26. -Choose 'Yes'

26. -Choose 'Initialize a partition'

27. -Choose 'Ext2: Traditional GNU/Linux filesystem'

28. -Choose the largest partition (=primary


partition),
(e.g. /dev/sda2)

29. -Choose 'No' when ask to scan for bad-block

30. -Yes to start

31. -Choose 'Mount as your root system'

32. -Choose 'No'

Here you will have to mount the first partition (/dev/sda5) as your
root system. (sylvain piren)
---

I then chose to do without a swap partition, as it did not work out:

33. -Choose 'do without a swap partition'

34. -Choose 'Yes'


(these two steps don't seem necessary, we skipped the swap partition
already)
35. -Choose 'Install Kernel and other modules'

36. -Choose 'Yes' to install from CD

37. -Choose 'Next' to configure device driver


modules

38. -I installed as an extra device driver


in ..\video (scroll down in the list of device
drivers to install)

the 'aty128fb'

(I also tried the 'Radeon' driver, which


I have in my computer, but that failed,
as it could not detect this card)

39. -from then on, I continued to accept


most of the defaults:

40. -after selecting the packages to install,


insert CD1

41. -Give your network details


(do not choose 'DHCP' if you want to fill in
the
details (like IP address) yourself)

42. -Choose 'Make system bootable'

43. -I chose to install LiLo in the MBR'

44. -I chose to 'reboot the system'

45. -I choose 'Yes' to reboot Linux Debian v3.0 in


VMWare

46. -After starting, it says you have successfully


installed Debian. Press <OK> to continue.

47. -Give the time details

48. -Give your root password

49. -Possibly create an extra user account


(=user name + full name + password)

50. -Debian will now start installing packages.


Press 'Y'es to let it also scan CD 2.

51. -When finished it says that 'Apt' is now


configured.

52. -Answer 'Yes' to 'Run tasksel'

53. -Press 'Yes' to continue

54. -Insert again CD 1

55. -This will start the installation of the


selected
packages

---

About configuring the graphics card, just take the lowest options,
as 'VMWare Tools' installation later will handle the resolution of
the screen anyhow:

56. -I continued installation until the screen


'Configuring Gdm'
(a display manager is a program that provides
graphical login capabilities for the X Window
system. I selected 'Gdm' (and not 'Xdm'),
then pressed <OK>

57. -I choose 'Yes' to manage X server wrapper


configuration file with debconf
(the file '/etc/X11/XF86Config-4' contains
the configuration information for the
XFree86 version 4 X server, can be handled
automatically by debconf or manually by you).

58. -Now very important, choose 'vga' from the


list of 'desired X server driver'.

59. -I choose 'Yes' to 'Use kernel framebuffer


device interface'

60. -As the video mode I choose '640 x 480' (the


lowest)

---

61. Restart your Debian in VMWare

62. When Debian restarts, you will see a black screen,


where you only will be able to type some
command line commands.

63. Install VMware Tools Package in Virtual Machine

see also:
http://www.faqts.com/knowledge_base/view.phtml/aid/23411/fid/1144

-you must be in text mode in Debian

-login as root (type 'su', then give root password)

-click in VMWare menu->'file'->'install VMWare tools'


and wait a while until the installation has finished

-type:

umount /mnt

(it possibly says 'umount: /mnt: not mounted)

-type:

mount /dev/cdrom /mnt


(it possibly says: 'mount: block device /dev/cdromo is write
protected, mounting read-only)

-type:

cd /tmp

-type:

tar zxf /mnt/vmware-linux-tools.tar.gz

-type:

cd vmware-tools-distrib

-type:

./vmware-install.pl

-answer the questions:

Installing the content of the package:

-In which directory do you want to install the binary files?

[/usr/bin], press <ENTER> to accept this default

-In which directory do you want to install the daemon files?

[/usr/bin], press <ENTER> to accept this default

-In which directory do you want to install the library files?

[/usr/lib/vmware-tools], press <ENTER> to accept this default

-The path "/usr/lib/vmware-tools" does not exist currently.


This program is going to create it, including parent
directories. Is this what you want?

[yes], press <ENTER> to accept this default

-In which directory do you want to install the documentation


files?

[/usr/share/doc/vmware-tools], press <ENTER> to accept this


default

-The path "/usr/share/doc/vmware-tools" does not exist


currently.
This program is going to create it, including parent
directories. Is this what you want?

-What is the directory that contains the init directories?


(rc0.d/ to rc6.d)?

[/etc/rc.d], press <ENTER> to accept this default

-What is the directory that contains the init scripts?

[/etc/rc.d/init.d], press <ENTER> to accept this default

You should then see something like:


Unmounting the Tools ISO image mnt.
The installation of VMWare Tools 4.0.0 build-4460
for Linux completed successfully.
You can decide to remove this software from your
system at any time by invoking the following command:

"/usr/bin/vmware-uninstall-tools.pl"

Before running VMWare Tools for the first time,


you need to configure it by invoking the following
command:

"/usr/bin/vmware-config-tools.pl"

Do you want this program to invoke the command for you


now?

[yes], press <ENTER> to accept this default

You will now see:

None of VMWare Tool's pre-built vmhgfs modules is


suitable for your running kernel.
Do you want this program to try to build the
vmhgfs module for your system
(you need to have a C compiler installed on your
system)?

[yes], press <ENTER> to accept this default

Using compiler "/usr/bin/gcc".


Use environment variable CC to override.

What is the location of the directory of C header files


that match your running kernel?

[/usr/src/linux/include], press <ENTER> to accept this


default

It complains now that this is a not existing directory.

I did then a search on the Internet http://www.google.com


(searched for 'Install C header Debian VMWare'),
http://lists.progeny.com/archive/progeny-
debian/200110/msg00078.html
and used the suggestion to search for the
'version.h' file
After restarting Linux debian, I typed on a command
prompt

find / | grep version.h

and found the directory '/usr/include/linux/version.h'

I reran the installation steps of VMWare tools,


as described above,
and when prompted for the location of the C header
file I answered and tried:

/usr/include/
then pressed <ENTER>.

It showed then:
"The directory of kernel headers (version 2.4.18)
does not match your running kernel
(version 2.4.18-bf2.4).
Even if the module were to compile successfully,
it would not load into the running kernel".

/usr/include/gnu/libc-version.h

/usr/lib/R/include/Rversion.h

/usr/lilb/yorick/1.5/include/yversion.h

I pressed then <CTRL><C> to stop the VMWare tools


installation.

---

Suggestion: maybe you have to rebuild the kernel,


in order to have access to these source files?

According to the
http://vmware.itst.org/posting.php?mode=quote&p=410
the location should be:

/usr/src/kernel-headers-2.4.18-bf2.4/include

---

Got this to work. You need to run

apt-get install kernel-headers-2.4.18-bf2.4

This will install the file /usr/src/kernel-headers-2.4.18-


bf2.4/include

Then follow the above instruction.

DLS.

---
---

Internet: see also:

---

VMWare v4.0 for Windows workstation: Install: Linux: Debian: v3.0: How
increase graphics resolution?
http://www.faqts.com/knowledge_base/view.phtml/aid/27231/fid/1597

---

Kylix Under VMware


http://www.efg2.com/Lab/Library/Kylix/VMware

---

http://homepages.borland.com/efg2lab/Library/Kylix/VMware/
---

VMWare: v4.0: Operating system: Install: All: Overview


[Windows/Linux/Unix/FreeBSD/Solaris/Novell]
http://www.faqts.com/knowledge_base/view.phtml/aid/22119/fid/1149

-----------------------------------------------------------------------