Mass roll out of Linux with Windows Mass roll out of Linux with - - PowerPoint PPT Presentation

mass roll out of linux with windows mass roll out of
SMART_READER_LITE
LIVE PREVIEW

Mass roll out of Linux with Windows Mass roll out of Linux with - - PowerPoint PPT Presentation

Mass roll out of Linux with Windows Mass roll out of Linux with Windows as a VM Guest as a VM Guest Steven Sykes Systems Admin Department of Computer Science and Software Engineering University of Canterbury steven.sykes@canterbury.ac.nz


slide-1
SLIDE 1

Mass roll out of Linux with Windows Mass roll out of Linux with Windows as a VM Guest as a VM Guest

Steven Sykes – Systems Admin Department of Computer Science and Software Engineering University of Canterbury steven.sykes@canterbury.ac.nz Linux Conf 2015, Auckland, New Zealand

slide-2
SLIDE 2

2

The old setup

  • Over 260 machines in labs and offices
  • Used Fedora Linux and Windows 7 – dual boot
  • All Linux authentication and account

information came from LDAP

slide-3
SLIDE 3

3

Why change anything?

  • Dual booting is just a pain
  • Both Linux and Windows got behind on updates
  • Fedora release schedule and life cycle awkward
  • Fedora seemed to be too bleeding edge
slide-4
SLIDE 4

4

Why change anything?

  • Dual booting is just a pain
  • Both Linux and Windows got behind on updates
  • Fedora release schedule and life cycle awkward
  • Fedora seemed to be too bleeding edge

This could be better...

slide-5
SLIDE 5

5

What to do? Virtualise!

  • Run a barebones Linux as hypervisor, with

another Linux and Windows as guest VMs

  • Use Windows as the host OS with Linux as the

guest VM – yeah right

  • Use Linux as the host OS with Windows as the

guest VM – using Linux Mint LTS and VirtualBox Methods considered:

slide-6
SLIDE 6

6

Some preliminary stuff

  • A flat file database contains machine info:

hostname, MAC, VM hostname, VM MAC, Organisational Unit in AD

  • VM hostnames are based on host OS

hostname

  • VM MAC address comes from a precreated

pool of 10,000 addresses

  • Machine entries created with a Python program
slide-7
SLIDE 7

7

The Linux side of it

  • Linux Mint installs from a USB memory stick.

Some changes to the ISO made with modified UCK

  • When installing, a machine looks up the active

NIC's MAC address in the database to get intended hostname

  • Post install script configures mail, SSH, auto

mounter, adds machine to AD with SSSD, NVIDIA driver, PolicyKit and a truck load of other stuff

slide-8
SLIDE 8

8

Creating the Windows guest

  • Create a VM with network bridging, install Windows and

VirtualBox guest tools

  • Add it to a domain, install all updates
  • Install SCCM client
  • Disjoin domain and reboot
  • Copy unattend.xml, various PowerShell and Command

scripts in place

  • Run Sysprep utility
  • Export as an OVA
slide-9
SLIDE 9

9

Importing the VM on machines

  • A special user is made
  • The sysprepped Windows 7 is copied down and

imported into VirtualBox

  • Various settings in VirtualBox get set, extension

pack is imported, VM MAC address set

  • Cron entries for night time are made
  • udev rule for USB access from Linux and

Windows is made

slide-10
SLIDE 10

10

In the wee small hours...

  • Cron starts the Windows VM using VirtualBox's

headless mode

  • First use in Windows initialises OS, then

PowerShell scripts fetches the hostname, rename the guest and adds it to AD

  • SCCM and Group Policy does the rest
  • Graceful shutdown at 5am
slide-11
SLIDE 11

11

The Result?

  • Students often don't bother with Windows and

just use what's in front of them

  • Exceptions are MS Office and XBox camera

SDK

  • Feedback from staff and students has been

very positive

slide-12
SLIDE 12

Questions?