Windows Server Installation Checklist

2
Average: 2 (4 votes)
Your rating: None

Parameters:

Hostname buildserver
Domain name buildserver.project.mirousek.eu
  • Create LVM disks (you can extend any partition in seconds anytime)
# lvcreate -L 20G vms -n buildserver.project-disk-ide0
# lvcreate -L 20G vms -n buildserver.project-disk-ide1
  • Create libvirt config in
    /etc/libvirt/qemu/buildserver.project.mirousek.eu.xml
<domain type='kvm'>
  <name>buildserver.project.mirousek.eu</name>
  <description>buildserver for project</description>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>4</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
    <bootmenu enable='yes'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/dev/vms/buildserver.project-disk-ide0'/>
      <target dev='vda' bus='virtio'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/dev/vms/buildserver.project-disk-ide1'/>
      <target dev='vdb' bus='virtio'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/storage1/install/windows/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/storage1/install/virtio/virtio-win-0.1-30.iso'/>
      <target dev='hdd' bus='ide'/>
      <readonly/>
    </disk>
    <interface type='bridge'>
      <mac address='52:53:00:ae:00:55'/>
      <source bridge='br0'/>
      <model type='e1000'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='*' keymap='en-us'>
      <listen type='address' address='*'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>
    <memballoon model='virtio'>
    </memballoon>
  </devices>
</domain>
  • Define libvirt domain and start it
# virsh define /etc/libvirt/qemu/buildserver.project.mirousek.eu.xml
# virsh start buildserver.project.mirousek.eu
# virsh vncdisplay buildserver.project.mirousek.eu
  • Connect to vnc
  • Press
    F12
    to select boot device, then press
    3
    to select Windows installation, then press any key to boot from ISO
  • Load disk drivers from second CD-ROM (WIN7\AMD64\VIOSTOR.INF)
  • Install Windows
  • Setup Windows Explorer
    • Show file extensions
    • Show hidden & system files
    • Show full path
  • Download browser (this is probably both first and last time you need IE)
  • Create partition on 2nd disk
  • Install server role IIS + features (don't forget IIS6.0 Management Console)
  • Install .NET Framework 4.0 (download)
  • Install .NET into IIS
> c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i
  • Shutdown VM
# virsh shutdown buildserver.project.mirousek.eu
  • Change CD-ROM files to point to MSSQL and Visual Studio installations
<disk type='file' device='cdrom'>
  <driver name='qemu' type='raw'/>
  <source file='/mnt/storage1/install/sql_server/SQLFULL_ENU.iso'/>
  <target dev='hdc' bus='ide'/>
  <readonly/>
</disk>
<disk type='file' device='cdrom'>
  <driver name='qemu' type='raw'/>
  <source file='/mnt/storage1/install/vs/VS2012_PRO_enu.iso'/>
  <target dev='hdd' bus='ide'/>
  <readonly/>
</disk>
  • Install MSSQL Server
Data dir d:\db\data
Backup dir d:\db\backup
  • Install Visual Studio
Keywords: KVM, Libvirt, Windows