errors on Virtual box startup

Background:
This was done on Machine # 2 [in signature]
Followed install instructs as per this link: [ty caf4926] using Yast.
Used the 1st set of instructs labelled “EDIT — Adding the easiest option for 11.3”
Virtual Box (Sun Version) Install HowTo
Had no visible problems.
Created the virtual OS [WinXP] called Doze.
I have not installed the OS yet, because I haven’t got that far, before the troubles started.
Do I need to do this before I START ?
I get these two errors when I click on ‘Start’ in Virtual Box window:

ImageShack® - Online Photo and Video HostingImageShack® - Online Photo and Video Hosting

as suggested in the second error, I open a terminal and run /etc/init.d/vboxdrv setup
This is the outcome:

labud@linux-2pci:~> su
Password: 
linux-2pci:/home/labud # /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules                                                                               done
Uninstalling old VirtualBox DKMS kernel modules                                                                  done
Trying to register the VirtualBox kernel modules using DKMS                                                      failed
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules                                                                            failed
  (Look at /var/log/vbox-install.log to find out what went wrong)
linux-2pci:/home/labud # 

When I look at the log from that this is what is in the log:

Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make$

Not sure if I know where to go from here, why wouldn’t it find the sources of my current linux kernel?

Try installing the kernel sources. Run this as root (by doing su first)


zypper in -t pattern devel_kernel

Then run


/etc/init.d/vboxdrv setup

again

ty ah7013
Did these things and am now installing my OS in Virtual Box.
I did not realize that my kernel sources were not installed.
How would I have known that?

Easy read the log

Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make$

THANKS for THAT gogalthorp

my response to ah7013 was in earnest
i did not know
i did read the log and understood the words therein, but still do not comprehend that the sources were not installed.
how could the sources not be there if the kernel is?

Don’t need the source to have a running binary. You do need it to link a driver to the kernel. By default the source is not installed. Leaves more room on the media for other stuff. But if you install something that requires linking to the kernel then you need it. The error message said it could not find it. A big hint that maybe it might need installing.

Ok understanding a bit more

ty