PING PXE on Windows Server

Where to start? PING = Partimage Is Not Ghost.  Ok, I get it.

THE biggest hurdle to getting this to run? For some reason, I figured a machine that could get an IP address for the PXE process could get an IP address later on. Not true. Oh, and make sure you have ONE dhcp server on your network – this one! I didn’t make that mistake, but I see how you could. I actually set this up on Windows Virtual PC’s as a pilot for a customer, but I finally got it all working…

So, here’s how it seems to work – or at least close enough to get it working. PXE gets an IP address, then PXE downloads the OS over TFTP. Then it does something like a pseudo reboot and uses the initrd as part of the final “build” on the client computer.

Ok, so, if it can get an IP address to do the TFTP, why can’t {what I am calling} the final build?

Anyway, so what do you do about this? The answer is pretty simple. The file “default” that they ask you to make? Well, you hard code the IP address of both the client computer, the server (where you will store your images) the subnet mask, the default gateway, and, what the heck, you might as well hard code the user name and password there too!. I will post my ‘default’ file.

The second thing I did to get this to actually work? I downloaded their files and put them where I think they belong. Which wound up being 2 separate places. And then it didn’t seem to work. So, I downloaded the PING iso file, and copied all the files from there. So, some combination of files was missing, but now I seem to have them all.

Hint – I now get the PING logo, whereas before I didn’t.

Now let’s walk thru this. TFTPD32 settings – note, I did the ‘service’ install – watch which one you download!

Contents of the ‘default’ file (if you copy and paste, make sure you know what is on one line and what isn’t, and that you get it all!). And NO, I do NOT get a nice menu to pick from. But it does work.

DEFAULT default
PROMPT 1
TIMEOUT 300
DISPLAY boot.msg
LABEL default
KERNEL kernel
APPEND vga=normal devfs=nomount pxe ramdisk_size=33000 load_ramdisk=1 init=/linuxrc prompt_ramdisk=0 initrd=initrd.gz root=/dev/ram0 rw noapic nolapic lba combined_mode=libata ide0=noprobe nomce pci=nomsi irqpoll IP=192.168.1.222 Netmask=255.255.255.0 Gateway=192.168.1.201 Server=192.168.1.201 Share=images user=images passwd=images
LABEL backup
KERNEL kernel
APPEND vga=normal devfs=nomount pxe ramdisk_size=33000 load_ramdisk=1 init=/linuxrc prompt_ramdisk=0 initrd=initrd.gz root=/dev/ram0 rw noapic nolapic lba combined_mode=libata ide0=noprobe nomce pci=nomsi irqpoll IP=192.168.1.222 Netmask=255.255.255.0 Gateway=192.168.1.201 Server=192.168.1.201 Share=images user=images passwd=images
LABEL restore
KERNEL kernel
APPEND vga=normal devfs=nomount pxe ramdisk_size=33000 load_ramdisk=1 init=/linuxrc prompt_ramdisk=0 initrd=initrd.gz root=/dev/ram0 rw noapic nolapic lba combined_mode=libata ide0=noprobe nomce pci=nomsi irqpoll IP=192.168.1.222 Netmask=255.255.255.0 Gateway=192.168.1.201 Server=192.168.1.201 Share=images user=images passwd=images
LABEL dummy
KERNEL kernel

Notes:
Server is 192.168.1.201, subnet mask is 255.255.255.0, the PXE “client” will be 192.168.1.222, the share is called images, as is the user name and password.

In following my “shotgun” approach, all this is duplicated under Create_New_Image.

Good luck!

Advertisements

Posted February 19, 2011 by mmdmurphy in freeware, Linux, sbs2003, tips, windows

Tagged with , , ,

%d bloggers like this: