Thursday, December 11, 2014

Solaris core analysis

root@sonada:/var/crash/sonada# savecore  -f /var/crash/sonada/vmdump.72 /var/crash/
savecore: System dump time: Fri Dec 12 12:22:49 2014

savecore: saving system crash dump in /var/crash//{unix,vmcore}.72
Constructing namelist /var/crash//unix.72
Constructing corefile /var/crash//vmcore.72
 0:22 100% done: 220581 of 220581 pages saved


root@sonada:/var/crash# mdb unix.72 vmcore.72
Loading modules: [ unix genunix specfs dtrace mac cpu.generic uppc pcplusmp scsi_vhci zfs ip hook neti sockfs arp usba uhci stmf stmf_sbd lofs random idm nfs sppp crypto ptm ipc ]
> ::status
debugging crash dump vmcore.72 (64-bit) from sonada
operating system: 5.11 oi_151a8 (i86pc)
image uuid: 2208e51c-870f-6f20-e9bd-b86a73b9806c
panic message: CONN_DEC_REF: connp(ffffff0374d34140) has ref = 0

dump content: kernel pages only


> ::msgbuf
MESSAGE
NOTICE: t4nex2: write-combine: using value 1
WARNING: t4nex2: Successfully configured using Firmware Configuration File version 0x14250014, computed checksum 0x565a5d42

pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x1c vector 0x62 ioapic 0xff intin 0xff is bound to cpu 0
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x1d vector 0x63 ioapic 0xff intin 0xff is bound to cpu 1
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x1e vector 0x64 ioapic 0xff intin 0xff is bound to cpu 2
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x1f vector 0x65 ioapic 0xff intin 0xff is bound to cpu 3
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x21 vector 0x66 ioapic 0xff intin 0xff is bound to cpu 0
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x22 vector 0x67 ioapic 0xff intin 0xff is bound to cpu 1
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x23 vector 0x68 ioapic 0xff intin 0xff is bound to cpu 2
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x24 vector 0x69 ioapic 0xff intin 0xff is bound to cpu 3
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x25 vector 0x6a ioapic 0xff intin 0xff is bound to cpu 0
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x26 vector 0x6b ioapic 0xff intin 0xff is bound to cpu 1
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x27 vector 0x6c ioapic 0xff intin 0xff is bound to cpu 2
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x28 vector 0x6d ioapic 0xff intin 0xff is bound to cpu 3
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x29 vector 0x6e ioapic 0xff intin 0xff is bound to cpu 0
pcplusmp: pciex1425,5401 (t4nex) instance 2 irq 0x2a vector 0x6f ioapic 0xff intin 0xff is bound to cpu 1
PCIE-device: pci1425,0@0,4, t4nex2
PCI Express-device: pci1425,0@0,4, t4nex2
t4nex2 is /pci@0,0/pci8086,340c@5/pci1425,0@0,4
NOTICE: t4nex2: 2x10G (4 rxq, 4 txq, 2 ofld_rxq, 4 ofld_txq per port) 14 MSI-X interrupts.
NOTICE: cxgbe4: Multiple Rings Enabled
NOTICE: cxgbe4 registered
cxgbe4 is port 0 on t4nex2
cxgbe4 is /pci@0,0/pci8086,340c@5/pci1425,0@0,4/cxgbe@0
NOTICE: cxgbe5: Multiple Rings Enabled
NOTICE: cxgbe5 registered
cxgbe5 is port 1 on t4nex2
cxgbe5 is /pci@0,0/pci8086,340c@5/pci1425,0@0,4/cxgbe@1
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
pseudo-device: dtrace0
dtrace0 is /pseudo/dtrace@0
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
pcplusmp: asy (asy) instance 0 irq 0x4 vector 0xb0 ioapic 0x1 intin 0x4 is bound to cpu 2
ISA-device: asy0
asy0 is /pci@0,0/isa@1f/asy@1,3f8
pcplusmp: asy (asy) instance 1 irq 0x3 vector 0xb1 ioapic 0x1 intin 0x3 is bound to cpu 3
ISA-device: asy1
asy1 is /pci@0,0/isa@1f/asy@1,2f8
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
xsvc0 at root: space 0 offset 0
xsvc0 is /xsvc@0,0
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
NOTICE: IRQ19 is being shared by drivers with different interrupt levels.
This may result in reduced system performance.
pseudo-device: pool0
pool0 is /pseudo/pool@0
NOTICE: cxgbe4 unregistered
NOTICE: cxgbe5 unregistered
NOTICE: e1000g1 unregistered
pseudo-device: pm0
pm0 is /pseudo/pm@0
NOTICE: cxgbe4: Multiple Rings Enabled
NOTICE: cxgbe4 registered
cxgbe4 is port 0 on t4nex2
cxgbe4 is /pci@0,0/pci8086,340c@5/pci1425,0@0,4/cxgbe@0
pseudo-device: devinfo0
devinfo0 is /pseudo/devinfo@0
pcplusmp: pciex8086,10d3 (e1000g) instance 1 irq 0x1b vector 0x61 ioapic 0xff intin 0xff is bound to cpu 0
NOTICE: e1000g1 registered
NOTICE: cxgbe4 link up, 10000 Mbps, full duplex
NOTICE: cxgbe5: Multiple Rings Enabled
NOTICE: cxgbe5 registered
cxgbe5 is port 1 on t4nex2
cxgbe5 is /pci@0,0/pci8086,340c@5/pci1425,0@0,4/cxgbe@1
NOTICE: cxgbe5 link up, 10000 Mbps, full duplex

panic[cpu1]/thread=ffffff0013806c40:
CONN_DEC_REF: connp(ffffff0374d34140) has ref = 0


ffffff0013806a10 toe:do_abort_rpl_squeue+36b ()
ffffff0013806a60 t4nex:handle_fw_rpl+87 ()
ffffff0013806b10 t4nex:t4_ring_rx+3af ()
ffffff0013806b50 t4nex:t4_intr_rx_work+8b ()
ffffff0013806b90 t4nex:t4_intr+4f ()
ffffff0013806be0 unix:av_dispatch_autovect+7c ()
ffffff0013806c20 unix:dispatch_hardint+33 ()
ffffff00137d6a00 unix:switch_sp_and_call+13 ()
ffffff00137d6a50 unix:do_interrupt+b8 ()
ffffff00137d6a60 unix:cmnint+ba ()
ffffff00137d6bc0 unix:acpi_cpu_cstate+2ae ()
ffffff00137d6bf0 unix:cpu_acpi_idle+82 ()
ffffff00137d6c00 unix:cpu_idle_adaptive+19 ()
ffffff00137d6c20 unix:idle+114 ()
ffffff00137d6c30 unix:thread_start+8 ()

syncing file systems...
 done
dumping to /dev/zvol/dsk/rpool/dump, offset 65536, content: kernel

Sunday, December 7, 2014

Openindiana



openindiana initial configuration:
-> svcadm disable svc:/network/physical:nwam
-> svcadm enable svc:/network/physical:default
-> create a file as shown below.
root@namchi:~# cat /etc/hostname.e1000g0
10.193.186.82
-> vi /etc/netmasks
10.193.184.0 255.255.252.0
10.193.186.0 255.255.252.0
-> add route
root@namchi:~# cat /etc/defaultrouter
10.193.184.1
-> vi /etc/hosts
10.193.186.82 namchi namchi.blr.asicdesigners.com
Enable SSH
Vi /etc/ssh/sshd_config
Root enable yes
Svcadm restart svc:/network/ssh:default
List interfaces with ipadm
root@namchi:~# ipadm show-if
IFNAME     STATE    CURRENT      PERSISTENT
lo0        ok       -m-v------46 ---
e1000g0    ok       bm--------4- ---
cxgbe0     ok       bm--------4- ---
cxgbe1     ok       bm--------4- ---
cxgbe2     ok       bm--------4- ---
cxgbe3     ok       bm--------4- ---
Creating vnic:
# dladm create-vnic -l cxgbe0 vnic_1
#dladm show-vnic
Creating VLAN:
root@namchi:~# dladm create-vlan -v 5 -l cxgbe0 port0
root@namchi:~# dladm show-vlan
LINK            VID      OVER         FLAGS
port0           5        cxgbe0       -----
Setting MTU:
# dladm set-linkprop -t -p mtu=9000 cxgbe0
Verification:
#dladm show-linkprop cxgbe0 | less
#dladm show-link
Crashdump:
dumpadm -c all -d /dev/zvol/dsk/rpool/dump -m 10%
root@namchi:/var/crash/namchi# savecore -vf /var/crash/namchi/vmdump.0
savecore: System dump time: Thu Sep 27 09:58:43 2012

savecore: saving system crash dump in /var/crash/namchi/{unix,vmcore}.0
Constructing namelist /var/crash/namchi/unix.0
Constructing corefile /var/crash/namchi/vmcore.0
pfn 2201262 not found for as=fffffffffbc302e0, va=ffffff000ff00000
pfn 2201263 not found for as=fffffffffbc302e0, va=ffffff000ff01000
pfn 2201136 not found for as=fffffffffbc302e0, va=ffffff000ff02000
pfn 2201137 not found for as=fffffffffbc302e0, va=ffffff000ff03000
pfn 2201138 not found for as=fffffffffbc302e0, va=ffffff000ff04000
pfn 2228014 not found for as=fffffffffbc302e0, va=ffffff000fe00000
pfn 2228015 not found for as=fffffffffbc302e0, va=ffffff000fe01000
pfn 2228016 not found for as=fffffffffbc302e0, va=ffffff000fe02000
pfn 2228017 not found for as=fffffffffbc302e0, va=ffffff000fe03000
pfn 2228146 not found for as=fffffffffbc302e0, va=ffffff000fe04000
savecore: stream tag 529 not in range 1..4
savecore: LZJB STREAMSTART: bad stream header
root@namchi:/var/crash/namchi# ls
bounds  unix.0  vmcore.0  vmdump.0
root@namchi:/var/crash/namchi#

static ip config:
1.       Disable the auto-magic network daemon
# svcadm disable physical:nwam
2.       Define in /etc/hosts, if not already, an entry for this host. For example:
192.168.1.1 solexpress
3.       then, enable the default physical service with svcadm and configure the interface:
4.       Enable manual mode for the default physical service via SMF
# svcadm enable physical:default
5.       Configure interface with ipadm
# ipadm create-addr -T static -a local=192.168.1.1/24 bge0/v4static
You cannot just specify the interface ‘bge0′, but must also include a ‘user_specified_string’ like ‘/v4static’ or ‘/ipv4static’.
Checking interrupts:
mdb –k
::echo interrupts


PCS checklist

Enable dbgptints.
Enable client.reg server.reg for more connections.

Enable remote
Join to domain (10.193.184.104)
Enable testsign

Enable debug and join to debugger (10.193.204.31)
bcdedit /set testsigning yes
bcdedit /dbgsettings
bcdedit /debug on
bcdedit /dbgsettings net hostip:10.193.204.31 port:6000X key:b.a.l.a
bcdedit /set "{dbgsettings}" busparams 3.0.0

netsh advfirewall set allprofiles state off
install hyper-v and failovercluster

Enable for PCS:
Enable-PSRemoting –Force
Enable-WSManCredSSP -DelegateComputer * -Role Client –Force
Enable-WSManCredSSP -Role Server –Force
Set-ExecutionPolicy Bypass –Force
netsh interface isatap set state disabled

install VMRT:
\\PLUTO\c$\pcs\vmrtInstall\vmrtinstall.exe /TARGETPARTITION HOST

Install Chelsio driver
\\10.193.204.4\c$\Users\administrator.FORND\Desktop\WinPreRelRelease\fre\x64

Assign IP’s
If machine is 10.193.204.11
IPs shoul be below
102.1.1.212
102.2.2.212

Controller:
-------------
1. setuppcs.ps1 should be success
2. upload reports
3. run .\Microsoft.HyperV.Test.PrivateCloudSimulator.CreatePCSRun.exe /SQLServer:JWALA /SetWTTValue:- /RunDescription:"March11"
4. open iexplore -> jwala/reports/
5. report builder -> open rsd file -> save it
6. start_pcs.ps1

Saturday, December 6, 2014

DVL

msbuild.exe <vcxprojectfile> /p:Configuration="Win8 Release" /p:Platform=x64 /target:sdv /p:inputs="/clean"
msbuild.exe <vcxprojectfile> /p:Configuration="Win8 Release" /p:Platform=x64 /target:sdv /p:inputs="/check:default.sdv"

msbuild.exe <vcxprojectfile> /p:Configuration="Win8 Release" /P:Platform=x64 /target:clean
msbuild.exe <vcxprojectfile> /p:Configuration="Win8 Release" /P:Platform=x64 /P:RunCodeAnalysisOnce=True


VBD:
====
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4vbd.vcxproj /p:Configuration="WinPreRel Release" /P:Platform=x64 /P:RunCodeAnalysisOnce=True
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4vbd.VcxProj /target:sdv /p:Configuration="WinPreRel Release" /P:Platform=x64 /p:inputs="/check:default.sdv"
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4vbd.VcxProj /target:dvl /p:Configuration="WinPreRel Release" /P:Platform=x64

NDIS:
=====
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4ndis.vcxproj  /p:Configuration="WinPreRel Release" /P:Platform=x64 /P:RunCodeAnalysisOnce=True
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4ndis.vcxproj /target:sdv /p:Configuration="WinPreRel Release" /P:Platform=x64 /p:inputs="/check:default.sdv"
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4ndis.VcxProj /target:dvl /p:Configuration="WinPreRel Release" /P:Platform=x64



To process the library, run a msbuild <driver project file> /p:configuration=
"<release configuration>" /p:platform=<Win32|x64|arm> /t:Sdv /p:inputs="/lib"
 command in the library's source folder.



  Run this command to view the results:msbuild <driver project file> /p:configuration="<release configuration>" /p:platform=<Win3
  2|x64|arm> /t:Sdv /p:inputs="/view"

Friday, December 5, 2014

RHEL foreman installer

1. we should have RHN account with RHEL subscription and openstack subscription
2. Install RHEL 6.5
3. make sure you have enabled for subscription
# subscription-manager repos --enable=rhel-6-server-rpms
# subscription-manager repos --enable=rhel-6-server-openstack-foreman-rpms
# subscription-manager repos --enable=rhel-server-rhscl-6-rpms

subscription-manager register

subscription-manager repos disable=*

attach 3 repos based on POOL id

subscription-manager attach --pool=pool_id

yum install httpd
# service httpd start
# chkconfig httpd on
# mkdir /var/www/html/SOURCE
dump RHEL7.0 DVD in above location.

we should see DVD content at http://ipaddress/source

yum install rhel-osp-installer

 rhel-osp-installer
provide network interface
provide root password
Done

Thursday, December 4, 2014

Solaris 10 Static IP Network configuration guide


This is pretty simple task. Although some find it difficult because it is different from other Linux distributions.

To configure Solaris 10 network interface in Local files mode, you must first remove the file /etc/dhcp.interface (for ex. /etc/dhcp.e1000g0), then you have to configure six files.

/etc/nodename
/etc/hostname.interface
/etc/inet/hosts
/etc/inet/ipnodes
/etc/defaultdomain
/etc/defaultrouter

In /etc/nodename, you must specify your name of the server/host.
Ex.

#cat /etc/nodename
solarisbox1

The interface names in solaris include ce, hme, bge, e1000g etc. So, if you have an interface called e1000g0 there should be a file named /etc/hostname.e1000g0 In this file, you must specify network configuration information such as IP address, netmask etc.
Ex.

#cat /etc/hostname.e1000g0
10.91.10.5 netmask 255.255.255.0
#cat /etc/hostname.qfe0
192.168.0.88 netmask 255.255.255.0

The /etc/inet/hosts file serves as local file name resolver. It resolves hostnames, log hosts etc. You can specify any number of hosts associted with IP addresses in it. You must specify hostname of you system in it.
Ex.

#cat /etc/inet/hosts
#
# Internet host table
#
::1          localhost
127.0.0.1    localhost loghost solarisbox1
10.91.10.5   solarisbox1
192.168.0.88 solarisbox1
10.91.10.6   solarisbox2

For Solaris 10 11/06 and earlier releases, you must keep /etc/inet/ipnodes updated.
Ex.

# vi /etc/inet/ipnodes
10.0.0.14 myhost

The /etc/defaultdomain file specifies nothing other than FQDN (Fully Qualified Domain Name) of the System.
Ex.

#cat /etc/defaultdomain
solarisbox1.solarisstudy.com

The /etc/defaultrouter file specifies your default router (or gateway) details.
Ex.

#touch /etc/defaultrouter
#echo 10.91.10.1 >> /etc/defaultrouter

This will help you progress towards basic interface configuration in Solaris 10.
This article refers Oracle Documentation and is made in simple format to help newbies to configure network interface quickly.
For more information see:
http://docs.oracle.com/cd/E19253-01/816-4554/ipconfig-1/index.html
Solaris 10 System Administration Guide: IP Services

Read more at http://kaustubhghanekar.blogspot.com/2012/05/configuring-static-network.html#EJbclfGMYYkYGUQC.99

Monday, December 1, 2014

Driver Install ESX

Driver installation:         
Copy the cxgb4 driver from meteor \\meteor\Projects\NIC\ESX\Builds\ESXi_5.0\T4\2011_12_27  to productLocker.
# cd productLocker/
# cp net-cxgb4-1.0.0-1OEM.500.0.0.4859.x86_64.vib /var/log/vmware/
# esxcli software vib install -v net-cxgb4-1.0.0-1OEM.500.0.0.4859.x86_64.vib --maintenance-mode //if it is installed then fine or if it gives error like [InstallationError]
('Chelsio_bootbank_net-cxgb4_1.0.0-1OEM.500.0.0.4859', 'Could not find a trusted signer.') then
# esxcli software vib install -v net-cxgb4-1.0.0-1OEM.500.0.0.4859.x86_64.vib --maintenance-mode --no-sig-check
#reboot
#vmkload_mod cxgb4
# esxcfg-module -d csiostor  //don’t load driver on boot
# esxcfg-module -e csiostor
~ # esxcfg-module -i csiostor  //Gives modules information
~ # vmkload_mod –l  //list the modules that are loaded
~ # vmkload_mod csiostor csio_loopback=1  //load with this param if you need it as loopback
# esxcfg-vswitch  //shows the available options
# esxcfg-vswitch  -a  <virtual switch name>
# esxcfg-vswitch -L <interface name> <vswitch name>
Uninstall:
esxcli software vib remove --maintenance-mode -f -n scsi-csiostor
# cd locker/
# cp libcsiostor_ima.so /usr/lib/vmware/ima_plugins/
# vmkload_mod csiostor
# /etc/init.d/hostd restart
# esxcli iscsi session list
# esxcli iscsi session remove -A vmhba34



Monday, November 24, 2014

virtual router manager

C:\Windows\system32>netsh wlan set hostednetwork mode=allow
The hosted network mode has been set to allow.

Thursday, November 20, 2014

Auto Login

$ gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true

To disable the “Ask for Confirmation” dialog

$ gconftool-2 -s -t bool /desktop/gnome/remote_access/prompt_enabled false

vi /etc/gdm/custom.conf
[daemon]
AutomaticLoginEnabled=true
AutomaticLogin=root

Secureboot procedure


1. Configured PK to enable Secure boot.

[ PK key is located in this directory ]
[ GUUID is located in signature guid directory ]

2. Configured Key Exchange Key (KEK) certificate downloaded from   http://www.microsoft.com/pkiops/certs/MicCorKEKCA2011_2011-06-24.crt
[KEK key is located in this directory ]
[ GUUID is located in signature guid directory ]

3.  Configured DB certificates -one for windows and one for uEFI certificate Autority (CA),downloaded from below

Windows DB:     http://www.microsoft.com/pkiops/certs/MicWinProPCA2011_2011-10-19.crt
UEFI DB:             http://www.microsoft.com/pkiops/certs/MicCorUEFCA2011_2011-06-27.crt

[ WIN DB key & uEFI DB key is located in this directory]
[ GUUID is located in signature guid directory ]


4. Tried loading /unloading signed & unsigned uEFI drivers on Secure boot cabable machine. Below is the status.
                                                                         
                                                                    SB Enabled   SB Disabled
Signed UEFI driver  loading  in EFI Shell    Success         Success
Unsigned UEFI driver loading in EFI shell    Failed         Success
       

5. We are able to do pxe boot and install Windows 8.1 successfully using the signed image. 

                                                                    SB Enabled    SB Disabled
Booting into Windows 8.1 after pxe installed     Success             Success

6. Tried executing powershell commands after booting into Windows 8.1 pxe installed os.

->If Secure boot was enabled in system bios.
                PS C:\> Confirm-SecureBootUEFI
                True
                 PS C:\> Get-SecureBootPolicy
                Publisher
                ------------
                77fa9abd-0359-4d32-bd60-28f4e78f7784b
   
->If Secure boot was disabled in system bios.

PS C:\> Confirm-SecureBootUEFI
               False
PS C:\> Get-SecureBootPolicy
Get-SecureBootPolicy : Secure boot policy is not enabled on this machine.

->Signed uEFI driver & OptionROM was taken from   : \\10.193.180.100\Projects\Boot\T4\v1_0_0_72\signed files

SUSE Register

This summary is not available. Please click here to view the post.

Wednesday, November 19, 2014

SMB


Server:
=======
1. mkdir c:\1
2. New-SmbShare -Name 1 -Path c:\1 -FullAccess everyone

Client:
=======
New-SmbMapping -LocalPath w: -RemotePath \\102.11.11.11\1 -Persistent $true

Creating testfile:
==================
fsutil.exe file createnew F:\testfile1.dat 1000000000

Running IO:
===========
.\sqlio2.exe -T100 -s50 -t8 -o8 -b512 -fsequential -LS -BN -dA testfile1.dat

Enabling shuntfilter:
=====================
copy the shuntfilter
.\starter.bat C:\


commands:
=========
Get-SmbConnection
list the connections

Get-SmbMapping
to see drives

Start-Process powershell "sqlio2.exe -T100 -s23 -t2 -o4 -b16 -fsequential -LS -BN -dA testfile2.dat" -NoNewWindow
To start io on multiple windows

Enable network debug:
=====================
 bcdedit /set testsigning yes
 bcdedit /dbgsettings
 bcdedit /debug on
 bcdedit /dbgsettings net hostip:10.193.204.31 port:60005 key:b.a.l.a
 bcdedit /set "{dbgsettings}" busparams 3.0.0
 netsh advfirewall set allprofiles state off

1) Enable debug on windows using bcdedit.
Windbg
2) press break button while boot os
3) type following commands  in kd> promt
1)  .reload /f nt
2)  x  nt!kd_default_mask
4) take the address and past it on memory
5) change first 0000 to 0800

Get-SmbShareAccess -Name cn1_1 | Grant-SmbShareAccess -AccountName Everyone -AccessRight full

Creating VMs:
=============
for($i=1; $i -le 30; $i++)
{
    New-VM -Name VM$i -Path \\core96cn2\core96cn1 -Memory 3GB -VHDPath \\core96cn2\core96cn1\vm$i.VHDX -Verbose
    SET-VMProcessor –VMName vm$i –count 2
    Write-Host "vm$i is successfully created";
    sleep 1;
}

icacls.exe I:\CORE96CN1\ /grant fornd\administrator':(OI)(CI)(F)' /t /c

PS C:\Users\administrator.FORND> Get-ClusterNode | Select-String core
PS C:\Users\administrator.FORND> $OtherNode

Name                 ID    State
----                 --    -----
CORE96CN1            21    Up


PS C:\Users\administrator.FORND> $OtherNode.name
CORE96CN1


Get-VMProcessor * | Set-VMProcessor -CompatibilityForMigrationEnabled 1

Set-VM myVM0 -NumCpu 4 -MemoryGB 8 -Confirm:$false
netsh winsock reset catalog


smbconnectstress:
=================

PS C:\Users\administrator.FORND\Desktop\SmbConnect> .\SmbConnect.exe
PS C:\Users\administrator.FORND\Desktop\SmbConnect> .\SmbConnect.exe /S core96cn2 /H smbcon /B 4096 /T 1000


PS C:\Users\administrator.FORND\Desktop> Install-WindowsFeature RSAT-AD-PowerShell

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
True    No             Success        {Remote Server Administration Tools, Activ...
WARNING: Windows automatic updating is not enabled. To ensure that your newly-installed role or feature is
automatically updated, turn on Windows Update.


PS C:\Users\administrator.FORND\Desktop> Enable-SmbDelegation -SmbServer core96cn2 -SmbClient core96cn3
CheckDelegationPrerequisites : SMB Delegation cmdlets require the Active Directory forest to be in Windows Server 2012
forest functional level.
At C:\windows\system32\windowspowershell\v1.0\Modules\SmbShare\SmbScriptModule.psm1:107 char:14
+     $check = CheckDelegationPrerequisites
+              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,CheckDelegationPrerequisites

PS C:\Users\administrator.FORND\Desktop>


PS C:\Users\administrator.FORND> verifier /rules disable 0x9200D

Rule 0x9200D disabled.

New verifier settings:

Enabled Flags Value: 0x01AAEFBB

Standard Flags:
  [X] (0x00000001) Special pool
  [X] (0x00000002) Force IRQL checking
  [X] (0x00000008) Pool tracking
  [X] (0x00000010) I/O verification
  [X] (0x00000020) Deadlock detection
  [X] (0x00000080) DMA checking
  [X] (0x00000100) Security checks
  [X] (0x00000800) Miscellaneous checks
  [X] (0x00020000) DDI compliance checking

Additional Flags:
  [ ] (0x00000004) Randomized low resources simulation
  [X] (0x00000200) Force pending I/O requests
  [X] (0x00000400) IRP logging
  [X] (0x00002000) Invariant MDL checking for stack
  [X] (0x00004000) Invariant MDL checking for driver
  [X] (0x00008000) Power framework delay fuzzing
  [ ] (0x00040000) Systematic low resources simulation
  [X] (0x00080000) DDI compliance checking (additional)
  [X] (0x00200000) NDIS/WIFI verification
  [X] (0x00800000) Kernel synchronization delay fuzzing
  [X] (0x01000000) VM switch verification

  [X] Indicates flag is enabled

Bootmode:
  Persistent

Rules:
  Disabled: 0x9200D (NdisTimedDataSend)
  All other rules using default settings.

Verified drivers:
  wdf01000.sys
  chvbdx64.sys
  chnetx64.sys
  ndis.sys

Fault injection:
================
 verifier /faultssystematic enableruntime
 verifier /faultssystematic querystatistics

9: kd> !verifier 0x800
No injections to report
9: kd> !verifier 0x4

windbg:
.dump /f G:\temp\lnclose\memory.dmp
!stacks 2 chnetx64

netsh advfirewall set allprofiles state off

Storage migration:
==================
Move-ClusterGroup -Name ssdfshare1 -Node core96cn22 -Verbose

09:56 07/08/2014
$iteration=1
while (1)
{
    Move-ClusterGroup -Name fserver -Verbose
    sleep 10
    $iteration=$iteration + 1
    echo "$iteration" >> c:\iteration.txt

}

18:12 07/04/2014
Remove cluster node:
Remove-ClusterNode core96cn5 -force

QFE:
gwmi -class "win32_quickfixengineering"
wmic qfe list
wusa /uninstall /kb:455999

CAU:
PS C:\Users\administrator.FORND> Add-CauClusterRole -ClusterName ndkstorcluster -CauPluginName Microsoft.WindowsUpdatePl
ugin, Microsoft.HotfixPlugin -CauPluginArguments @{ 'IncludeRecommendedUpdates' = 'True' }, @{ 'HotfixRootFolderPath' =
'\\ssdfshare1\HotfixRootFolderPath' } -StopOnPluginFailure -EnableFirewallRules -Force

12:53 24/04/2014
volatile:
verifier /volatile /removedriver ndis.sys


VBD:
====
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4vbd.vcxproj /p:Configuration="WinPreRel Release" /P:Platform=x64 /P:RunCodeAnalysisOnce=True
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4vbd.VcxProj /target:sdv /p:Configuration="WinPreRel Release" /P:Platform=x64 /p:inputs="/check:default.sdv"
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4vbd.VcxProj /target:dvl /p:Configuration="WinPreRel Release" /P:Platform=x64

NDIS:
=====
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4ndis.vcxproj  /p:Configuration="WinPreRel Release" /P:Platform=x64 /P:RunCodeAnalysisOnce=True
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4ndis.vcxproj /target:sdv /p:Configuration="WinPreRel Release" /P:Platform=x64 /p:inputs="/check:default.sdv"
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4ndis.VcxProj /target:dvl /p:Configuration="WinPreRel Release" /P:Platform=x64

Scale out file server:
=====================
new-smbshare -ContinuouslyAvailable $true -name ssdfshare1 -path C:\ClusterStorage\Volume2\pcs1

Assignign permissios to the share:
==================================
$AllowedAccounts = @("FORND\CORE96CN1$","FORND\CORE96CN4$","FORND\CORE96CN5$","FORND\CORE96CN6$","FORND\CORE96CN7$","FORND\CORE96CN8$","FORND\CORE96CN9$","FORND\CORE96CN10$","FORND\Administrator")

foreach($AllowedAccount in $AllowedAccounts)
 {
  $permission = "$AllowedAccount"+":(OI)(CI)(F)"
 
  icacls.exe C:\ClusterStorage\Volume2\pcs1 /grant $permission

  Grant-SmbShareAccess -AccountName $AllowedAccount -AccessRight Full -Name ssdfshare1 -Confirm:$false
 }


Grant-SmbShareAccess -Name ShareVolume -AccountName "domain computers" -AccessRight Full
Grant-SmbShareAccess -Name ShareVolume -AccountName "domain users" -AccessRight Full

deleting files:
--------------
for /D %f in (7*) do rmdir %f /s /Q

CTSserver:
=========
ctsTraffic.exe -listen:102.1.1.204 -protocol:tcp -p attern:duplex -verify:data -buffer:1048576 -transfer:1073741824 -port:5658
ctsTraffic.exe -listen:102.2.2.204 -protocol:tcp -p attern:duplex -verify:data -buffer:1048576 -transfer:1073741824 -port:5659

CTSClient:
==========
ctsTraffic.exe -target:102.1.1.204 -iterations:10 -pattern:duplex -connections:3 -protocol:tcp -verify:data -buffer:1048576 -transfer:1073741824 -port:5658
ctsTraffic.exe -target:102.2.2.204 -iterations:10 -pattern:duplex -connections:3 -protocol:tcp -verify:data -buffer:1048576 -transfer:1073741824 -port:5659

logman:
=======
logman start vmmdebug -p Microsoft-VirtualMachineManager-Debug -f bin -o C:\log.etl -ets

logman stop vmmdebug –ets

Set NDIS adv property:
=====================
Set-NetAdapterAdvancedProperty -Name “Ethernet 3” -DisplayName "Flow Control" -DisplayValue "Disabled"


====
PCS
====

Run creation:
=============
PS C:\pcs> .\Microsoft.HyperV.Test.Stress.PrivateCloud.CreatePCSRun.exe /SQLConnectionString:"Data Source=localhost;Init
ial Catalog=PrivateCloudStressMaster;Integrated Security=True" /TemplateSQLFile:Create_PCS_Template.sql /SetWTTValue:- /
RunDescription:"22July"

PrivateCloudStress.XML execution:
==============
.\start_pcs.ps1 -CSUcluster ndkcluspcs.fornd.com -CSUconfig .\PrivateCloudStress.xml

PrivateCloudStress_storage.XML execution:
===========
.\start_pcs.ps1 -CSUcluster ndkstorcluster.fornd.com -CSUconfig .\PrivateCloudStress_Storage.xml

logs:
-----
wevtutil epl System  ( (hostname)+"-system.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-VMMS-Analytic ( (hostname)+"-Hyper-V-VMMS-analytic.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-VMMS-Admin ( (hostname)+"-Hyper-V-VMMS-Admin.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-VMMS-Networking ( (hostname)+"-Hyper-V-VMMS-Networking.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-VMMS-Operational ( (hostname)+"-Hyper-V-VMMS-Operational.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-VMMS-Storage ( (hostname)+"-Hyper-V-VMMS-Storage.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-Worker-Admin ( (hostname)+"-Hyper-V-VMWP-Admin.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-Worker-Analytic ( (hostname)+"-Hyper-V-VMWP-Analytic.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-Worker-VDev-Analytic ( (hostname)+"-Hyper-V-VMWP-VDev-Analytic.evtx")

create run:
-----------
.\Microsoft.HyperV.Test.PrivateCloudSimulator.CreatePCSRun.exe /SQLServer:BRUCE /SetWTTValue:- /RunDescription:"sept16"