Automate Boot Camp Installation *Now with Bittorrent!

Total Page:16

File Type:pdf, Size:1020Kb

Automate Boot Camp Installation *Now with Bittorrent! Automate Boot Camp Installation *Now with BitTorrent! Bryan S. Lee A Legal Use For Torrents Or How I Learned To Push Windows Images The Fun Way History & Background • Clemson University holds Student Computer workshops throughout the summer for entering freshmen during orientation sessions • Prefer to use automated installers for settings and software deployment on non- university systems History & Background • 2007: Used a combination of netbooting and imaging • 2008: Developed a separate, web-based installer for Windows XP * Manually installed drivers for various hardware • 2009: Changed to Windows Vista * Pre-installed Boot Camp drivers utilizing sysprep for hardware setup History & Background • Download time increasing during workshops (45 minutes vs. 4 minutes) • 2009 Fall: Began testing BitTorrent delivery • 2010-Present: BitTorrent based installer Ingredients • Windows installation media • Windows Automated Installation Kit • Apple PackageMaker • Winclone • Various BitTorrent software (Vuze, BTPD, ctorrent) Ingredients • Web Server • MAMP • Rivet Tracker • iHook • Favorite Script Editor Build Windows Image • Install and patch operating system • Install software • Set creature comforts Audit Mode • Enter for editing a sysprep image before login, unless first image creation • Use shift-ctrl-F3 to access audit mode on sysprepped image Modify Windows Image • Prepare drivers provided by Apple • RAR Expander • Add new drivers as necessary and install Boot Camp software • Additional cleanup Modify Windows Image • Add prepared Boot Camp drivers C:\drivers • Add Registry Redirect for Drivers HKLM\Software\Microsoft \Windows\CurrentVersion \DevicePath REG_EXPAND_SZ %SystemRoot%\inf;C:\drivers Modify Windows Image • Use Windows Automated Installation Kit (WAIK) to create sysprep.xml • Add sysprep.xml c:\windows\system32\sysprep\ Modify Windows Image • Add cmd script to C:\Windows\system32\Clemson \del_drivers.cmd Which contains the following command: rmdir /s /Q c:\drivers • Modify registry to engage command on first boot: HKLM\Software\Microsoft\Windows \CurrentVersion\RunOnce Name: del_drivers Type: string Path: C:\Windows\system32\Clemson \del_drivers.cmd Initiate Sysprep • From Administrative Command Prompt: cd c:\windows\system32\sysprep\ sysprep /generalize /oobe /shutdown /unattend:sysprep.xml • Wait for sysprep to complete and computer to shutdown Back to the Mac Winclone • Install Winclone • Run terminal commands: touch /tmp/emptyfile • diskutil unmount /dev/ disk0s3 • path/to/ntfscp /dev/disk0s3 / tmp/emptyfile pagefile.sys • diskutil mount /dev/disk0s3 Winclone • Change prefs to make smaller image file • Shrink Windows partition • Create Image Vuze • Create Torrent file of image • Set announce URL • 4 MB pieces • Private tracker PackageMaker • Familiar deployment for user • Small delivery size • Check System Requirements • Provide choices for partition size • Customize setup Installer Script • Downloads Windows image • Partitions hard drive • Clones Windows image http://bigmaconcampus.wordpress.com Installer Script • Engages BitTorrent client locally (BTPD) • If unsuccessful with BitTorrent, switches to direct HTTP download • HTTP vs. BitTorrent can be controlled server-side • Provides feedback via iHook Installer Script • Apply choice for partition size • Partition hard drive • Must account for Windows image being on 4th partition on Lion systems • Provides feedback via iHook Installer Script • Engage Winclone for cloning • Must account for Windows image being on 4th partition on Lion systems winclone.perl -ntfs_partition=/dev/disk0s4 --self-extract & • Provides feedback via iHook Modifications to winclone.perl • Alter winclone.perl to send output to file to monitor for communication with installer script if (-e "${image_dir}/boot.img.gz") { unmount_volume($ntfs_partition); do_command("=====restoring image======","/usr/bin/gunzip -c \"$ {image_dir}/boot.img.gz\"| \"$ntfstools_dir/ntfsclone\" --restore-image --rescue --overwrite \"$ntfs_partition\" - 2>&1 > /private/tmp/clemson/windows7/ winclone_progress.txt"); • Alter winclone.perl to create a flag file to communicate with parent script that MBR has been set do_command("=====Syncing GPT with MBR Partition Table, setting partition to bootable, and restoring boot sector==============","\"$gpt_refresh_path/gptrefresh\" ${arg_string}"); open(TEXT,'>/tmp/clemson/windows7/update_mbr_complete'); Web Server • Xserve • Apache web server • Internal use only Torrent Server • MAMP • Rivet Tracker • cTorrent • Internal use only Rivet Tracker Torrent Seed • cTorrent • Flexibility • Multiple seeds • Seed strategy Want a larger Windows partition? Click Customize. Check the box. Click Install. If you chose to customize, select a size. Sysprep • Several reboots • Configures Hardware • Finalizes Windows Setup Reboots • chkdsks • Hardware setup • Operating system Setup Conclusions • Sysprep is a must for universal image creation • Dependent on Apple Boot Camp updates Conclusions • HTTP download times are faster but vary depending on number of simultaneous connections (range from 4 minutes to - 45 minutes) • BitTorrent downloads are slower but consistent (8-10 minutes) irregardless of number of simultaneous connections Direct HTTP download BitTorrent download Conclusions BitTorrent is: • less intensive on the server network bandwidth • less intensive on the infrastructure network bandwidth • less intensive on the server CPU • more secure The Future The Future Mountain Lion Compatibility Winclone 3 Rebuild For Better Feedback • Apple PackageMaker http://www.apple.com • Windows Automated Installation Kit http://www.microsoft.com • RAR Expander http://rarexpander.sourceforge.net/ • Winclone http://twocanoes.com/ • BitTorrent Clients: Vuze, BTPD, ctorrent http://www.vuze.com https://github.com/btpd/ http://www.rahul.net/dholmes/ctorrent • Rivet Tracker http://www.rivetcode.com • MAMP http://www.mamp.info • iHook http://sourceforge.net/projects/ihook/ Bryan S. Lee • [email protected] • twitter.com/bryan_lee • http://bigmaconcampus.wordpress.com.
Recommended publications
  • How to Use the Sysprep Tool to Automate Successful Deployment of Windows XP Page 1 of 5
    How to use the Sysprep tool to automate successful deployment of Windows XP Page 1 of 5 How to use the Sysprep tool to automate successful deployment of Windows XP This article was previously published under Q302577 Article ID : 302577 On This Page Last Review : April 14, 2005 INTRODUCTION Revision : 2.2 MORE INFORMATION Requirements for running the Sysprep tool Prepare a reference computer for Sysprep deployment Create the Sysprep.inf answer file Sysprep.inf answer file format and parameters Use the Setup Manager tool to create the Sysprep.inf answer file Sysprep parameters REFERENCES INTRODUCTION This step-by-step article describes how to use the System Preparation Tool (Sysprep) to automate the successful deployment of Microsoft Windows XP. Sysprep is a tool that is designed for system administrators, Original Equipment Manufacturers (OEMs), and others who must automatically deploy the Windows XP operating system on multiple computers. After you perform the initial setup steps on a single computer, you can run the Sysprep tool to prepare the sample computer for cloning. MORE INFORMATION Requirements for running the Sysprep tool Before you can use the Sysprep tool, your computer hardware and related devices must meet the following requirements: • The reference and destination computers must have compatible HALs. For example, Advanced Programmable Interrupt Controller (APIC)–based MPS (multiprocessor systems) must use the same APIC HAL. A standard HAL Programmable Interrupt Controller (PIC)–based system is not compatible with either the APIC HAL or the MPS HAL. • The reference and destination computers must have the same Advanced Configuration and Power Interface (ACPI) support.
    [Show full text]
  • Windows 10 Iot Enterprise LTSB 2016 for Dell Wyse 5470 All-In-One Thin Client Release Notes Notes, Cautions, and Warnings
    Windows 10 IoT Enterprise LTSB 2016 for Dell Wyse 5470 All-in-One Thin Client Release Notes Notes, cautions, and warnings NOTE: A NOTE indicates important information that helps you make better use of your product. CAUTION: A CAUTION indicates either potential damage to hardware or loss of data and tells you how to avoid the problem. WARNING: A WARNING indicates a potential for property damage, personal injury, or death. © 2019 Dell Inc. or its subsidiaries. All rights reserved. Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. 2019 - 12 Rev. A01 Contents 1 Release summary..........................................................................................................................5 Priority and recommendations.............................................................................................................................................5 2 Compatibility............................................................................................................................... 6 Build details.............................................................................................................................................................................6 Connection brokers............................................................................................................................................................... 6 Supported languages.............................................................................................................................................................6
    [Show full text]
  • Running EDIUS 7 on an Apple Mac Computer Under Boot Camp Steve Leeflang March 2015 APPLICATION NOTE RUNNING EDIUS 7 on an APPLE MAC COMPUTER UNDER BOOT CAMP
    Running EDIUS 7 on an Apple Mac Computer under Boot Camp Steve Leeflang March 2015 APPLICATION NOTE RUNNING EDIUS 7 ON AN APPLE MAC COMPUTER UNDER BOOT CAMP Installing Boot Camp pple’s free Boot Camp utility permits installation of Microsoft’s Windows 7 or 8 64-bit operating system just as if it were being installed normally on other types of PCs. When running Windows under Boot Camp the user has access to all editing hardware and software, A including the Grass Valley, a Belden Brand, EDIUS nonlinear editing program. Important Note: Please refer to Apple’s website to find out which version of Boot Camp and Windows are supported on your Mac. https://support.apple.com/en-us/HT204048 Before starting the installation, check for updates for the Mac. Go to the Apple Menu > Updates and in- stall all available updates. Installation: In OS X, launch the Boot Camp Assistant (from the “other” folder in Launch Pad). Next, create a partition. Create a second partition for Windows. www.grassvalley.com 2 APPLICATION NOTE RUNNING EDIUS 7 ON AN APPLE MAC COMPUTER UNDER BOOT CAMP Installing Boot Camp (Cont.) The user then decides how much space they want to allocate to Windows. EDIUS, with all its third-party applica- tions, requires around 6 GB of hard disk space for installation. Depending on the available free disk space, it is a good idea to have at least 20 to 32 GB for the Windows partition. (A second disk can be chosen especially for Windows.) To change the allocated space for the Windows partition, click the small divider between Mac OS X and Windows, and drag it to the left.
    [Show full text]
  • Copyrighted Material
    Exam MD-100 COPYRIGHTED MATERIAL c01.indd 07/04/2019 Page 1 Chapter Windows 10 1 Installation MICROSOFT EXAM OBJECTIVES COVERED IN THIS CHAPTER: ✓ Deploy Windows 10 ■ Configure language packs; migrate user data; perform a clean installation; perform an in-place upgrade (using tools such as MDT, WDS, ADK, etc.); select the appropriate Windows edition; troubleshoot activation issues. ✓ Manage updates ■ Check for updates; troubleshoot updates; validate and test updates; select the appropriate servicing channel; configure Windows update options. c01.indd 07/04/2019 Page 3 This book is for exam MD-100, and this is the fi rst of two Windows 10 exams (MD-100 and MD-101) for the Microsoft 365 Certifi ed: Modern Desktop Administrator Associate. If you are using both of the Sybex books for the Microsoft 365 Certifi ed: Modern Desktop Administrator Associate certifi cation, you will notice that many of the topics in Chapter 1 are the same in both books. The reason for this is that no matter what test you take, the process for installing Windows 10 is the same. Let me be the fi rst to welcome you to Windows 10 and the beginning of a new journey. But as with the start of any journey, we must take our fi rst steps. The fi rst step for this exam is to learn about the Windows 10 installation process. It is important that you understand the different versions of Windows 10 and which one is right for you and your organization. In this chapter, I will show you the many different features of Windows 10, and then I will describe each edition.
    [Show full text]
  • Download Deploying Windows 7, Essential Guidance
    FROM THE Windows® 7 Resource Kit Mitch Tulloch, Tony Northrup, Jerry Honeycutt, Ed Wilson, and the Windows 7 Team at Microsoft I Chapter 3 Deployment Platform .............................................. 85 I Chapter 4 Planning Deployment ............................................ 113 I Chapter 5 Testing Application Compatability ........................... 139 I Chapter 6 Developing Disk Images ......................................... 179 I Chapter 7 Migrating User State Data ...................................... 223 I Chapter 8 Deploying Applications .......................................... 247 I Chapter 9 Preparing Windows PE ........................................... 273 I Chapter 10 Confi guring Windows Deployment Services .............. 293 I Chapter 11 Using Volume Activation ........................................ 335 I Chapter 12 Deploying with Microsoft Deployment Toolkit ........... 355 DEPLOYING WINDOWS 7 83 Chapter 3 Deployment Platform n Tools Introduction 85 n Windows 7 Deployment Terminology 87 n Platform Components 89 n Deployment Scenarios 99 n Understanding Setup 101 n Basic Deployment Process 105 n Microsoft Deployment Toolkit Process 107 n Summary 110 n Additional Resources 111 uilding on technology that the Windows Vista operating system introduced, Windows 7 Bdeployment technology has evolved significantly since Windows XP Professional . For example, it supports file-based disk imaging to make high-volume deployments quicker, more efficient, and more cost effective . The Windows 7 operating system also provides
    [Show full text]
  • Windows Could Not Finish Configuring the System...Restart 10-11-17 8:53 AM
    Windows could not finish configuring the system...restart 10-11-17 8:53 AM United States (English) Sign in Search Windows with Bing Home Windows 7 Windows Vista Windows XP Library Forums Windows Client TechCenter > Windows 7 IT Pro Forums > Windows 7 Installation, Setup, and Deployment > Need Help with Forums? (FAQ) Windows could not finish configuring the system...restart My Forum Links Ask a question Search Forums: Search Windows 7 Installation, Setup, and Deployment Forum Sign In To Forums Forums Home Windows could not finish configuring the Browse Forums Users system...restart flicknstock Sunday, January 11, 2009 6:13 AM Not sure what happened, but I keep getting the error: Windows could not finish configuring the system. To attempt to resume configuration, restart the 0 computer. Sign In to Vote I tried to boot in safe mode and it gave me the same error. Any thoughts on what to try or is this a lost cause? I can't remember all the stats of the computer since it is a backup one, but it does surpass all the requirements. Reply Quote Related Topics Answers = Unanswered = Answered flicknstock Tuesday, January 13, 2009 4:12 AM Windows could not finish configuring the system... restart failure Vista is stuck on the "configuring updates" After formatting the hard drive and re-installing everything I was able to get past my issue. My guess is that some file was left from the random files previously on the HD and win7 wasn't able screen... 0 to format it correctly. Sign In to Vote In case anyone else needs...I used GParted to format the drive.
    [Show full text]
  • Optimizing Windows 10, Build 2004, for a Virtual Desktop Role
    Optimizing Windows 10, Build 2004, for a Virtual Desktop role Written by Robert M. Smith, Program Manager, Azure Global Customer Engineering Date Created: May 12, 2020 Date Updated: July 08, 2020 Date Published: tbd Contributors: Tim Muessig, Senior Premier Field Engineer; Narklis Engler, Principal Program Manager Version 1.2 Document Change History Version Changes 1.0 Adding verbiage for Windows Virtual Desktop, and Windows 10 build 2004 specifically 1.1 Additional updates for 2004 1.2 Final pass, updated group policy, services, tasks, and added info about Storage Sense for disk cleanup. Introduction This article is intended to provide suggestions for configurations for Windows 10, build 2004, for optimal performance in Virtualized Desktop environments, including Virtual Desktop Infrastructure (VDI) and Windows Virtual Desktop (WVD). All settings in this guide are suggested optimization settings only and are in no way requirements. The information in this guide is pertinent to Windows 10, version 2004, operating system (OS) build 19041. The guiding principles to optimize performance of Windows 10 in a virtual desktop environment are to minimize graphic redraws and “effects”, background activities that have no major benefit to the virtual desktop environment, and generally reduce running processes to the bare minimum. A secondary goal is to reduce disk space usage in the base image to the bare minimum. With virtual desktop implementations, the smallest possible base, or “gold” image size, can slightly reduce memory utilization on the host system, as well as a small reduction in overall network operations required to deliver the desktop environment to the consumer. No optimizations should reduce the user experience.
    [Show full text]
  • Conference 2017
    Conference 2017 Learning to Live with Windows 10 What we’ve learned at UVic Where the journey started • Early adopters of Windows 10 in Fall 2015 • Limited deployment in Spring 2016 with version 1511 • Moved to Windows 10 on all standard computers purchased after June 2016 Conference 2017 Learning to Live with Windows 10 2 Where we are today • All standard computers deployed with version 1607 1 • /3 of our managed fleet are using Windows 10 Conference 2017 Learning to Live with Windows 10 3 A few common terms first Term Description A new Windows 10 release that contains additional features and Upgrade capabilities, released two to three times per year. Packages of security fixes, reliability fixes, and other bug fixes that are released periodically, typically once a month on Update Tuesday Update (sometimes referred to as Patch Tuesday). With Windows 10, these are cumulative in nature. The windows servicing branch is one of four choices: Windows Insider, Current Branch, Current Branch for Business, or Long-Term Servicing Branch Branch. Branches are determined by the frequency with which the computer is configured to receive feature updates. A ring is a groups of PCs that are all on the same branch and have the Ring same update settings. Rings can be used internally by organizations to better control the upgrade rollout process. Source: https://technet.microsoft.com/de-de/itpro/windows/manage/introduction-to-windows-10-servicing Conference 2017 Learning to Live with Windows 10 4 What did we learn During the build process • Don’t try to
    [Show full text]
  • Apple Filevault 2 on T2 Systems Running Macos Catalina 10.15 Administrative Guidance Document
    Apple FileVault 2 on T2 systems running macOS Catalina 10.15 Administrative Guidance Document Prepared By: Acumen Security, LLC www.acumensecurity.net Prepared for: Apple One Apple Park Way Cupertino, CA 95014 Document Version: 0.8 Date: April 19, 2021 Table of Contents 1 Administrative Guidance Document Introduction .............................................................. 6 1.1 TOE Overview .............................................................................................................. 6 1.1.1 TOE Product Type ................................................................................................ 6 1.2 TOE Description ........................................................................................................... 6 1.2.1 Evaluated Configuration ....................................................................................... 6 1.2.2 Physical Boundaries ........................................................................................... 12 1.3 TOE Delivery .............................................................................................................. 12 1.4 TOE Self-Tests .......................................................................................................... 12 1.4.1 Software/Firmware Integrity Tests ..................................................................... 12 2 Prerequisites for Installation ............................................................................................. 15 2.1 TOE Management Functions ....................................................................................
    [Show full text]
  • Paragon Camptune X
    PARAGON Software GmbH Heinrich-von-Stephan-Str. 5c 79100 Freiburg, Germany Tel. +49 (0) 761 59018201 Fax +49 (0) 761 59018130 Internet www.paragon-software.com E-mail [email protected] Paragon Camptune X Quick User Guide Copyright© 1994-2015 Paragon Software GmbH. All rights reserved 2 Contents Introduction ...................................................................................................................... 3 Features Overview ............................................................................................................. 3 Key Features ........................................................................................................................................................ 3 Supported Media.................................................................................................................................................. 3 Getting Started .................................................................................................................. 4 System Requirements ........................................................................................................................................... 4 Redistributing Free Space in Boot Camp ................................................................................................................ 4 Creating Boot Media ............................................................................................................................................. 7 Disabling SIP ........................................................................................................................................................
    [Show full text]
  • Paragon System Recovery Sysprep- Integrated Solution
    Paragon System Recovery Sysprep- Integrated Solution Workshop February 2006 Table of Contents Paragon System Recovery General Scheme ........................................................................................ 3 Introduction .......................................................................................................................................... 4 Overview .............................................................................................................................................. 4 Terms.................................................................................................................................................... 5 PSR Sysprep-Integrated solution ......................................................................................................... 6 PSR Sysprep-Integrated Workflow Diagram....................................................................................... 7 How it works ........................................................................................................................................ 8 Preparation ....................................................................................................................................... 8 Command line execution............................................................................................................ 12 PSRSysprep.msi command line execution............................................................................. 12 Sysprep utility command line execution ...............................................................................
    [Show full text]
  • Steps on Downloading Windows 7 on a Mac Using Boot Camp Assistant: Here's How You Do It: Steps and Images to Guide You 1. Clos
    The Simple Way - Installing Windows 7 on a Mac Steps on downloading Windows 7 on a Mac using Boot Camp Assistant: A few things you need before getting started: 1. All firmware updates installed on your Mac 2. Latest OS X Leopard or Snow Leopard installed 3. Around 30 GB of empty hard drive space on your Mac 4. It is important you backup your Mac in case anything goes wrong 5. Full version of Windows 7 operating system software (Windows 8 is not compatible with Mac) - you will need to use the 64 bit disk 6. An optical disk drive for the software 7. USB Flash drive (in order to transform Mac compatibilities) Here’s How You Do It: Steps and Images To Guide You 1. Close all applications to ensure nothing interferes with the installation process. 2. Plug in the USB Flash drive 3. Go to Spotlight and search for “Boot Camp Assistant” 4. Once Boot Camp Assistant is open read the introduction and press continue. 5. You will now have the option to select tasks you want Boot Camp to perform 5.1. Uncheck the ones that do no apply to you. 6. Now you have to decide how much space you want to allocate to Windows 7. You must partition the hard drive. Usually you opt for over 20GB but no more than 30GB. Make sure you choose enough to actually install the software. 7. To change the amount of space to dedicate to Windows 7, click the small divide between Mac OS X and Windows and drag it.
    [Show full text]