@george1421 Bingo bango bongo! We have liftoff.
Thank you George. Wonderful work.
@george1421 Bingo bango bongo! We have liftoff.
Thank you George. Wonderful work.
Hmmm … In the left column; lose the word management. It’s kinda, redundant. If home is the dashboard, call it dashboard or vice versa.
I see my mistake now. Though there is a /etc/sysconfig/selinux , I wanted to edit /etc/selinux/config .
To cover my bases I’m editing both. I suspect that the first is generated by the second:
setenforce 0
sed -i "s/=enforcing/=disabled/g" /etc/sysconfig/selinux
sed -i "s/=enforcing/=disabled/g" /etc/selinux/config
… and checking … yep, that did the trick.
Now for an actual Fog install.
Not quite an uninstall but it did the trick for what I wanted.
mysql -u root -p
DROP DATABASE fog;
mv /opt/fog /opt/fog.old
Add this to your C:\Windows\Setup\Scripts\SetupComplete.cmd
REM "C:\Windows\Setup\Scripts\SetupComplete.cmd is executed as final step of coming out of Sysprep under SYSTEM account"
REM "Clean up problems caused by using COPYPROFILE=TRUE"
rd /s /q "C:\Users\Administrator\AppData\Local\Microsoft\Windows\WebCache"
rd /s /q "C:\Users\Administrator\AppData\Local\Microsoft\Windows\INetCache"
del /f /q /a:sh "C:\Users\Administrator\AppData\Local\Microsoft\Windows\WebCacheLock.dat"
rd /s /q "C:\Users\Default\AppData\Local\Microsoft\Windows\WebCache"
rd /s /q "C:\Users\Default\AppData\Local\Microsoft\Windows\INetCache"
del /f /q /a:sh "C:\Users\Default\AppData\Local\Microsoft\Windows\WebCacheLock.dat"
I have successfully captured Windows Server 2012 R2 Update 1 from Hyper-V R2, generation 1 machine as of SVN 3504 using kernel 3.18.5 . Newer version kernels do not work; for me at least, I haven’t heard from anyone else.
This same capture was successfully deployed to a virtual machine running on VMWare ESXi 5.5 using SVN 3731 and kernel 3.0.1 .
Well I have FOG running happily on CentOS 7.1 now.
As much as enjoy Debian 8.2 over Ubuntu 14/15 now, I dare say I may prefer CentOS 7.1 now.
In my environment, I’ve honed in a compression level of 3.
level 6
level 3
I wonder what level 1 would do? …hmm…
Adding drivers using pnputil and forfiles will bloat your registry and risk killing your image irrevocably.
I extract the drivers to the point I can see the .inf . If I can then manually install that driver without issue by using dpinst32 or dpinst64, I know I can proceed with dumping that driver into my repository.
I then test that driver against other versions of the same or similar drivers. That means I have a sample of every hardware out there for testing on.
That repository “xinf” is copied to c:\windows\inf .
Windows 7 recursively searches c:\windows\inf for drivers when coming out of sysprep with no other configuration.
This does not apply to those drivers that require supporting apps, like Intel USB3.0, and Infrared Receivers. For those I’ve crafted a script that applies those OEM and brand-specific drivers and apps during an Administrative auto-logon after sysprep completes.
There are also situations where a driver is badly crafted, identifying as for Hardware A but is meant for Hardware B, then loads Hardware B’s driver onto Hardware A, poisoning the system.
It is straight forward but there is a LOT of testing.
Here’s a list of the driver folders in my xinf:
AMD Graphics Radeon HD (2xxx,3xxx,4xxx)
AMD Graphics Radeon HD (5xxx,6xxx,7xxx,8xxx,R5,R7,R9)
Authentec Inc. (AES16(16)0,2501b,2550,266(015),2810)
Broadcom Ethernet NetXtreme I Desktop-Mobile
Broadcom Wireless 802.11abgn (BCM43xx)
Dell P2212H
Dell Wireless
DisplayLink USB Display Adapter
Intel Chipset Device Software
Intel Ethernet Connections Software
Intel Graphics (82945 Express)
Intel Graphics (GMA 3150)
Intel Graphics (GMA B43, G41, G43, G45, Q43, Q45 Express, 4 Series)
Intel Graphics (GMA G31, G33, G35, Q33, Q35, Q963, Q965 Express)
Intel Graphics 1st Gen Core (HD)
Intel Graphics 2nd Gen Core (HD 2000,3000)
Intel Graphics 3rd Gen Core (HD 2500,4000)
Intel Graphics 4th Gen Core (HD 4(246)00,5(012)00)
Intel Management Engine Interface (AMT)
Intel Matrix Storage Manager (3,4,5 Series, 900 Series)
Intel Rapid Start Technology
Intel Rapid Storage Technology
Intel Smart Connect Technology
Intel USB 3.0 eXtensible Host Controller
Intel Wireless Networking
Lava Dual Serial 16550 PCI (Minitel)
nVidia Graphics GeForce ((89)xxx,GTX(1234567)xx)
O2Micro USB CCID Smartcard Reader (OZ776)
Prolific Technology USB-to-Serial COM Port (PL-2303 HXD,EA,RA,SA,TA,TB)
Qualcomm Atheros Ethernet (PCIE 1Gb)
Qualcomm Atheros Wireless Adapter
Realtek Card Reader (RTS51xx,52xx,84xx)
Realtek Ethernet (PCIE 1Gb)
Realtek HD Audio
Realtek WiFi 802.11bgn Single-Chip (RTL8188,8191,8192)
Renesas Electronics USB 3.0 Host Controller (UPD720200)
Ricoh PCIe Media Controller R5(c8xx,u23x,u24x)
SoundMAX HD Audio (AD1882,1986,1988)
SoundMAX HD Audio (AD1984)2015-03-02 04:11 PM <DIR>
ST Microelectronics Accelerometer (DE351DL)
Startech PEX2S5521P
Texas Instruments USB 3.0 xHCI Host Controller (TUSB73x0)
TOSHIBA HDD Protection Utility
Validity Sensors
Vimicro Video Camera
Within these folders are the many extracted x86 AND x64 drivers that can be automatically distinguished and installed correctly by Windows 7.
For instance, the Dell Wireless folder has these drivers:
drv&util.Win7(32+64) - 6.20.55.51
drv.Win7(32) - 9.2.0.512
drv.Win7(64) - 9.2.0.512
… and the Intel Management Engine Interface (AMT) folder has these extracted drivers:
drv.MEI.Win(32+64) - 9.5.15.1730
drv.MEI.Win7(32+64) - 3.2.20.1046
drv.MEI.Win7(32+64) - 5.2.0.1008
drv.MEI.Win7(32+64) - 6.0.0.1179
drv.SOL.Win(32+64) - 9.5.15.1730
drv.SOL.Win7(32+64) - 5.4.1.1051
drv.SOL.Win7(32+64) - 5.5.1.1012
drv.SOL.Win7(32+64) - 8.1.0.1252
… and the Intel Rapid Storage Technology folder has:
11.2.0.1006 (4 Series - unsigned)
12.9.0.1001 (8 Series, C220 Series)
My particular Universal Image recipe is compatible with the following Systems:
I recommend starting simply with just the chipset, controller, ethernet and wireless drivers, which shouldn’t require any post-sysprep scripting to add OEM programs.
As I’ve re-edited above, it appears the file system footprint was a result of installing CentOS 7 using the default Partition Scheme LVM and the file system, which happens to be XFS.
Switching the install to use Standard Partitions and the ext4 File system for sda1/2/3 results in a fs footprint on par with Debian at 5.5GB. And by footprint I mean .vhdx file size.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
CentOS_7.2.1511 - Install Minimal Server +20161005
=-=-=-=-=-
For a Physical FOG Server
i. Flash & Program System BIOS for ODD Boot
ii. Install HDD #1 (120+ GiB & zeroed) on first controller port
iii. Install ODD #1 on last controller port
iv. Insert CentOS-7-x86_64-NetInstall-1511CD
=-=-=-=-=-
For a Hyper-V Virtual FOG Server
i. Create a New Virtual Machine: <Name of Choice>, Generation 1, 512MB Dynamic Memory, Onboard Network, Create a virtual hard disk
ii. Boot from CD
iii. Maximum RAM 2048MB
iv. 1 Virtual Processor
v. DVD Drive Image File: "CentOS-7-x86_64-NetInstall-1511.iso"
vi. REMOVE: SCSI Controller
vii. Automatic Start Action: Nothing
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
01> Install CentOS_7.2.1511
@ CentOS 7
@ What language would you like to use during the installation process?
@ Installation Summary
/ Network & Host Name
/ Date & Time
/ Installation Source
/ Software Selection
/ Installation Destination
@ Manual Partitioning
/sda1
Mount Point: /boot
Desired Capacity: 500 MB
Device Type: Standard Partition
File System: xfs
/sda2
Mount Point: swap
Desired Capacity: 2 GiB
Device Type: Standard Partition
File System: swap
/sda3
Mount Point: /
Desired Capacity: 20 GiB
Device Type: Standard Partition
File System: ext4
@ Summary of Changes
= Accept Changes
@ Installation Summary
= Begin Installation
@ Configuration
/ Root Password
/ User Creation
@ CentOS is now successfully installed …
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
02> Determine IPv4 Address
ip addr
exit
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
03> Update OS & Recompile Kernel
sudo su
sed -i "s|#PermitRootLogin yes|PermitRootLogin no|g" /etc/ssh/sshd_config
systemctl restart sshd.service
sed -i 's|#add_drivers+="|add_drivers+="ahci|g' /etc/dracut.conf
sed -i 's|#hostonly="yes|hostonly="no|g' /etc/dracut.conf
yum clean all
yum makecache
yum update -y
history -c
shutdown now
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
04> End of Minimal CentOS_7.2.1511
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
05> Export and Capture from here
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Continues at How I Create a Ready-to-Deploy FOG Server git1.3.0-RC-10_svn5955 on CentOS 7.x VM
It is indeed possible to OEM activate a non-OEM image.
How you do it depends on exactly what kind of OEM license it is, whether it’s OEM:SLP, OEM:NON-SLP or OEM:COA. Read this to see the differences.
‘Activation Backup & Restore 1.7 BETA 1’ can be used to extract OEM:SLP Licensing key and certificate which is tied to the manufacturer, the BIOS, the key, the cert and the OS from an original OEM image.
backup-cert.xrm-ms
backup-key.txt
You can then use the same program to restore the OEM:SLP key and cert to a non-OEM image (like GVLK aka KMS).
There are other tools and methods but you’ll have to do some careful digging.
Success on all fronts.
I have successfully created a generalized virtual server running CentOS 7.1 with FOG Build 4820. I can dump an image of it onto any hardware we use, mobile, desktop or virtual and it works exactly as desired.
I like it so much I’m making it my new standard.
There were some new hoops to jump through, but the CentOS community and online documentation provided solutions using native commands and features.
I even succeeded with no issues whatsoever in converting my vm development fog from Debian8.2 to CentOS7.1 in about 15 minutes.
I love slaying dragons.
My favourite suggestion… have you tried zeroing the destination drive?
You alsop could create a virtual machine with a dynamically expanding 500 GB virtual drive. Image to that then recapture it as single disk resizable.
Looks like you mean to say the following to list available branches:
git branch -a
It’s not a v1703 thing. I ran into it with v1607 as well.
After you copy the shortcuts to desktop you must edit the permissions for each to:
ADD Users Read & Execute, Read
We started off with Ubuntu Desktop, then Server (no gui), then I switched up to Debian Server, and now I’m running CentOS 7 no GUI on a minimal server install for my development server. Whatever I’m using for dev eventually makes it out to our production/live servers.
IMO Debian is head and shoulders better than Ubuntu, and I’ve found CentOS to be the most stable and trouble free of the bunch.
FYI, using svn3504 I successfully captured and deployed a sysprepped Windows Server Standard 2012 R2 virtual machine using setting “Windows 8.1 - (7)”.