atk777

FreeBSD 10 Kernel conf

Mar 29th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.81 KB | None | 0 0
  1. ## FreeBSD 10 kernel on VMware
  2. ## /usr/src/sys/amd64/conf/r3d-v3
  3. ##
  4. ## Credits : Calomel.org , me
  5.  
  6. include GENERIC
  7. ident r3d-v3
  8. cpu   HAMMER
  9.  
  10. # change kernel message color to green on black
  11. # while all other text is white on black
  12. options SC_KERNEL_CONS_ATTR=(FG_GREEN|BG_BLACK)
  13.  
  14. # enable Pf without ALTQ (HFSC)
  15. device pf
  16. device pflog
  17. device pfsync
  18. options ALTQ
  19. options ALTQ_HFSC
  20. options ALTQ_NOPCC
  21.  
  22. nodevice    lpt
  23. nodevice    fdc
  24. nodevice    wlan
  25. nodevice    mmc
  26. nodevice    mmcsd
  27. nodevice    sdhci
  28.  
  29. # forward packets without decrementing
  30. # the time to live (TTL) counter
  31. options IPSTEALTH
  32.  
  33. # IPsec (Internet Protocol Security)
  34. #options IPSEC
  35. #options IPSEC_NAT_T
  36. #device  crypto
  37.  
  38. # Crypto and AES-NI support
  39. # also add aesni_load="YES" to /boot/loader.conf
  40. # verify AES speeds before and after with "openssl speed -evp aes-256-cbc -elapsed"
  41. # as /dev/crypto can be slower then no /dev/crypto on some systems. Also, the
  42. # ports version of /usr/local/bin/openssl is significantly faster then the
  43. # default /usr/bin/openssl version which comes with freebsd.
  44. #device crypto
  45. #device cryptodev
  46. #device aesni
  47.  
  48. #############################################
  49.  
  50. makeoptions DEBUG=-g        # Build kernel with gdb(1) debug symbols
  51. makeoptions WITH_CTF=1      # Run ctfconvert(1) for DTrace support
  52.  
  53. options     SCHED_ULE       # ULE scheduler
  54. options     PREEMPTION      # Enable kernel thread preemption
  55. options     INET            # InterNETworking
  56. options     INET6           # IPv6 communications protocols
  57. options     TCP_OFFLOAD     # TCP offload
  58. options     SCTP            # Stream Control Transmission Protocol
  59. options     FFS             # Berkeley Fast Filesystem
  60. options     SOFTUPDATES     # Enable FFS soft updates support
  61. options     UFS_ACL         # Support for access control lists
  62. options     UFS_DIRHASH     # Improve performance on big directories
  63. options     UFS_GJOURNAL    # Enable gjournal-based UFS journaling
  64. options     QUOTA           # Enable disk quotas for UFS
  65. options     MD_ROOT         # MD is a potential root device
  66. options     NFSCL           # New Network Filesystem Client
  67. options     NFSD            # New Network Filesystem Server
  68. options     NFSLOCKD        # Network Lock Manager
  69. options     NFS_ROOT        # NFS usable as /, requires NFSCL
  70. options     MSDOSFS         # MSDOS Filesystem
  71. options     CD9660          # ISO 9660 Filesystem
  72. options     PROCFS          # Process filesystem (requires PSEUDOFS)
  73. options     PSEUDOFS        # Pseudo-filesystem framework
  74. options     GEOM_PART_GPT   # GUID Partition Tables.
  75. options     GEOM_RAID       # Soft RAID functionality.
  76. options     GEOM_LABEL      # Provides labelization
  77. options     COMPAT_FREEBSD32    # Compatible with i386 binaries
  78. options     COMPAT_FREEBSD4     # Compatible with FreeBSD4
  79. options     COMPAT_FREEBSD5     # Compatible with FreeBSD5
  80. options     COMPAT_FREEBSD6     # Compatible with FreeBSD6
  81. options     COMPAT_FREEBSD7     # Compatible with FreeBSD7
  82. options     SCSI_DELAY=5000     # Delay (in ms) before probing SCSI
  83. options     KTRACE          # ktrace(1) support
  84. options     STACK           # stack(9) support
  85. options     SYSVSHM         # SYSV-style shared memory
  86. options     SYSVMSG         # SYSV-style message queues
  87. options     SYSVSEM         # SYSV-style semaphores
  88. options     _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
  89. options     PRINTF_BUFR_SIZE=128    # Prevent printf output being interspersed.
  90. options     KBD_INSTALL_CDEV    # install a CDEV entry in /dev
  91. options     HWPMC_HOOKS     # Necessary kernel hooks for hwpmc(4)
  92. options     AUDIT           # Security event auditing
  93. options     CAPABILITY_MODE     # Capsicum capability mode
  94. options     CAPABILITIES        # Capsicum capabilities
  95. options     PROCDESC        # Support for process descriptors
  96. options     MAC         # TrustedBSD MAC Framework
  97. options     KDTRACE_FRAME       # Ensure frames are compiled in
  98. options     KDTRACE_HOOKS       # Kernel DTrace hooks
  99. options     DDB_CTF         # Kernel ELF linker loads CTF data
  100. options     INCLUDE_CONFIG_FILE     # Include this file in kernel
  101.  
  102. # Debugging support.  Always need this:
  103. options     KDB             # Enable kernel debugger support.
  104. options     KDB_TRACE       # Print a stack trace for a panic.
  105.  
  106. # Make an SMP-capable kernel by default
  107. options     SMP             # Symmetric MultiProcessor Kernel
  108.  
  109. # CPU frequency control
  110. device      cpufreq
  111.  
  112. # Bus support.
  113. device      acpi
  114. device      pci
  115.  
  116. # ATA controllers
  117. device      ahci        # AHCI-compatible SATA controllers
  118. device      ata     # Legacy ATA/SATA controllers
  119.  
  120. # ATA/SCSI peripherals
  121. device      scbus       # SCSI bus (required for ATA/SCSI)
  122. device      da      # Direct Access (disks)
  123. device      cd      # CD
  124.  
  125. # atkbdc0 controls both the keyboard and the PS/2 mouse
  126. device      atkbdc      # AT keyboard controller
  127. device      atkbd       # AT keyboard
  128. device      psm     # PS/2 mouse
  129.  
  130. device      kbdmux      # keyboard multiplexer
  131.  
  132. device      vga     # VGA video card driver
  133. options     VESA        # Add support for VESA BIOS Extensions (VBE)
  134.  
  135. device      splash      # Splash screen and screen saver support
  136.  
  137. # syscons is the default console driver, resembling an SCO console
  138. device      sc
  139. options     SC_PIXEL_MODE   # add support for the raster text mode
  140.  
  141. device      agp     # support several AGP chipsets
  142.  
  143. # PCI Ethernet NICs.
  144. device      em      # Intel PRO/1000 Gigabit Ethernet Family
  145. device      igb     # Intel PRO/1000 PCIE Server Gigabit Family
  146. device      ixgbe       # Intel PRO/10GbE PCIE Ethernet Family
  147.  
  148. # Pseudo devices.
  149. device      loop        # Network loopback
  150. device      random      # Entropy device
  151. #device     padlock_rng # VIA Padlock RNG
  152. device      rdrand_rng  # Intel Bull Mountain RNG
  153. device      ether       # Ethernet support
  154. device      vlan        # 802.1Q VLAN support
  155. device      tun     # Packet tunnel.
  156. device      md      # Memory "disks"
  157. device      gif     # IPv6 and IPv4 tunneling
  158. device      faith       # IPv6-to-IPv4 relaying (translation)
  159. device      firmware    # firmware assist module
  160.  
  161. # The `bpf' device enables the Berkeley Packet Filter.
  162. # Be aware of the administrative consequences of enabling this!
  163. # Note that 'bpf' is required for DHCP.
  164. device      bpf     # Berkeley packet filter
  165.  
  166. # USB support
  167. options     USB_DEBUG   # enable debug msgs
  168. device      uhci        # UHCI PCI-USB interface
  169. device      ohci        # OHCI PCI-USB interface
  170. device      ehci        # EHCI PCI-USB interface (USB 2.0)
  171. device      xhci        # XHCI PCI-USB interface (USB 3.0)
  172. device      usb     # USB Bus (required)
  173. device      ukbd        # Keyboard
  174. device      umass       # Disks/Mass storage - Requires scbus and da
  175.  
  176.  
  177. # HyperV drivers
  178. device      hyperv          # HyperV drivers
  179.  
  180. # VMware support
  181. device      vmx         # VMware VMXNET3 Ethernet
Add Comment
Please, Sign In to add comment