Friday, 11 March 2011

How to setup PXE boot server on Windows XP Part II

Ok After you got PXE boot server,The remaining steps are adding OS image for installation.Below steps are only for windows vista/2008/7 both 32 and 64 bit edition.

1. Install WinPE3.0 -> WAIK (Note: you need to install .NET Framework 2.0 and MSXML 6 SP1 as well)
2. Run [4a_WinPE.cmd] and [4b_WinPE.cmd] so easy.
3. Configure file
C:\PXE\tftpboot\pxelinux.cfg\default by adding below entry

LABEL winpe
MENU LABEL WinPE 3.0
KERNEL /boot/pxeboot.0

4.
Add option for OS installation
  • If adding Windows Vista, copy all files and folder from Windows Vista source to C:\PXE\tftpboot\vista\ - share C:\PXE\tftpboot\vista\ as vista
  • If adding Windows 2008, copy all files and folder from Windows 2008 source to C:\PXE\tftpboot\2008\ - share C:\PXE\tftpboot\2008\ as 2008
  • If adding Windows 7, copy all files and folder from Windows 7 source to C:\PXE\tftpboot\seven\ - share C:\PXE\tftpboot\seven\ as seven
5. Start C:\PXE\tftpd32\tftpd32.exe
6.
Start C:\PXE\binl\binlsrv.exe
7.
Boot the client PC using PXE boot option
8. Select an option from the menu
9. Select the first Ramdisk options entry if your source files are 32-bit or Select the second Ramdisk options entry if your source files are 64-bit
10. Once WinPE has booted enter command.Select one below:
Vista : net use z: \\[your server's ip]\vista /u:[your server's ip]\[your server's user] "[your user's password]"
2008 : net use z: \\[your server's ip]\2008 /u:[your server's ip]\[your server's user] "[your user's password]"
7 : net use z: \\[your server's ip]\7 /u:[your server's ip]\[your server's user] "[your user's password]"
10. Enter drive Z:
11. run setup.exe then enjoy!!!

Thursday, 10 March 2011

How to setup PXE boot server on Windows XP

Credit by : http://diddy.boot-land.net/pxe/files/walkthrough.htm
Thank you so much
Link for script and a cool guide -> http://diddy.boot-land.net/ccount12/click.php?id=3

[My steps are quite for a dummy user,don't need to know anything about the theories;If you would like to understand about PXE,read the cool guide above.]

System Requirement:
1. PXE boot server : Windows XP sp3 32bit
2. PXE client : Support PXE boot sequence.
3. Network setup in the same lan.

Preparation phase on PXE boot server:
1. Create mandatory directory c:\PXE Recommand use creating script [1_create_folders.cmd]
2. Share C:\PXE\tftpboot\ as tftpboot - simple file sharing must be used for the share [Just click Right and share it]
3. Add registry patch and reboot PC - open notepad,copy and paste code below

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"NullSessionPipes"=hex(7):43,00,4f,00,4d,00,4e,00,41,00,50,00,00,00,43,00,4f,00,4d,00,4e,00,4f,00,44,00,45,00,00,00,53,00,51,00,4c,00,5c,00,51,00,55,00,45,00,52,00,59,00,00,00,53,00,50,00,4f,00,4f,00,4c,00,53,00,53,00,00,00,4c,00,4c,00,53,00,52,00,50,00,43,00,00,00,62,00,72,00,6f,00,77,00,73,00,65,00,72,00,00,00,73,00,72,00,76,00,73,00,76,00,63,00,00,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"RestrictAnonymous"=dword:00000000

save as PXEboot.reg and exit,then double click the file.Don't forget reboot your server.
4. Install helpful tools
4.1 7-zip Windows 32 command line version -> http://www.7-zip.org/ download and install it after that copy file C:\Program Files\7-Zip\7z.exe to C:\PXE\tools.Change the exe file name from 7z to 7za because our script uses this format!!
4.2 Download gsar -> http://gnuwin32.sourceforge.net/packages/gsar.htm download and install it that copy file C:\Program Files\GnuWin32\bin\gsar.exe to C:\PXE\tools.
4.3 Download syslinux version x.xx -> http://www.kernel.org/pub/linux/utils/boot/syslinux/ download and save it in C:\PXE\tools
4.4 Download tftpd32 -> http://tftpd32.jounin.net/tftpd32_download.html download and save it in C:\PXE\tftpd32\
4.5 Download binl.zip -> http://diddy.boot-land.net/ccount12/click.php?id=5 and extract the contents to C:\PXE\binl\
5. Modified script [_parameters.cmd]

set SERVER_IP=[your server's ip]

The default is 192.168.2.2.Change it!!!

set syslinux=[your syslinux zip file name]

The default is syslinux-3.80.zip.Change it!!!
6. Run [2a_syslinux.cmd]
7. Configure C:\PXE\tftpd32\tftpd32.exe.Read carefully
7.1 Click Settings button
7.2 On the Global tab -> select only TFTP server and DHCP server
7.3 On TFTP tab -> set Base Directory as C:\PXE\tftpboot , TFTP security as Read only ,Advanced TFTP options select only Option negotiation.
7.4 On DHCP tab -> set DHCP Pool definition depends on your requirement.Boot file needs to be pxelinux.0

OK..Now we got the PXE boot server,Let's try by starting your client and booting it with PXE.
Boot menu will appear but no selectable OS..absolutely continue in part II.

Thursday, 1 October 2009

How to check memory size in Solaris

ref : http://sysdigg.blogspot.com/2007/12/how-to-check-memory-size-in-solaris.html
There are various options to check memory in Solaris. I am running Solaris 8 on Sun Fire server, these Solaris commands can run on any x86 or SPARC platforms.

1. Check real/physical memory size in Solairs using dmesg (message information during boot time ):

# dmesg |grep mem

Dec 14 21:56:21 bos-solaris unix: [ID 168242 kern.info] mem = 523836K (0x1ff8f000)

This Solaris server has 512 mb physical memory ,dmesg output show memory in kilobytes which is 512 Megabytes.

2. Check memory size in solairs using prtdiag (only on sparc) :

# /usr/platform/sun4u/sbin/prtdiag |grep Memory

Memory size: 512 Megabytes

Running prtdiag output show memory as 512 megabyes

3. Check Memory size in Solaris using prtconf :

# prtconf -v |grep Mem

Memory size: 512 Megabytes

Running prtconf with –v shows memory size in megabytes