<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>InstallationProcedure/VirtualMachine</title><revhistory><revision><revnumber>3</revnumber><date>2020-03-07 03:32:14</date><authorinitials>ClintonEbadi</authorinitials><revremark>update machine-template git repo link (moved to zz_old)</revremark></revision><revision><revnumber>2</revnumber><date>2013-07-14 02:50:27</date><authorinitials>ClintonEbadi</authorinitials><revremark>note that macvtap is the way to go in the future for networking</revremark></revision><revision><revnumber>1</revnumber><date>2012-12-30 23:47:22</date><authorinitials>ClintonEbadi</authorinitials><revremark>initial install steps</revremark></revision></revhistory></articleinfo><para>This document was written with using the GUI <code>virt-manager</code> to deploy a <ulink url="https://wiki.hcoop.net/InstallationProcedure/VirtualMachine/KernelVirtualMachine#">KernelVirtualMachine</ulink> using our <ulink url="https://wiki.hcoop.net/InstallationProcedure/VirtualMachine/AutomatedSystemInstall#">AutomatedSystemInstall</ulink>. It's probably worth automating this with <code>virsh</code>/<code>virtinst</code> after solidifying things a bit more. </para><section><title>Update postinst</title><para>Create a post install script in the <ulink url="http://git.hcoop.net/hcoop/zz_old/machine-template.git">machine-template</ulink>. A post install script should extract kerberos keys, install any additional hcoop config packages needed, bootstrap domtool, and install a reasonable set of base software depending on the intended use. This is the install step most in need of improvement. </para></section><section><title>Provision Resources</title><para>Create a new VM named after the host, select a network install using the current Debian stable, and add the preseed options specified on <ulink url="https://wiki.hcoop.net/InstallationProcedure/VirtualMachine/AutomatedSystemInstall#">AutomatedSystemInstall</ulink> to the kernel command line. Allocate a reasonable number of maximum cores, RAM, and disk (less than 40G is not recommended, although we are using LVM and can resize disks if needed). Set network using a shared device, currently <code>br0:$HOST</code> (which may be the Wrong Way (tm)). </para><para>It does appear that there is a better way than bridged networking: <ulink url="http://virt.kernelnewbies.org/MacVTap">MacVTap</ulink> in bridged mode works without manual configuration. </para></section><section><title>Debian Install</title><para>The installation is mostly automated.  </para><itemizedlist><listitem><para>Set the keyboard/language settings (accept the default), and enter the static network information specified on <ulink url="https://wiki.hcoop.net/InstallationProcedure/VirtualMachine/IpAddresses#">IpAddresses</ulink>. The preseed will then be fetched and take over. </para></listitem><listitem><para>Create a root password (<code>pwgen -cny</code> with a length &gt;= 9 is sufficient) when prompted, and store it in the password stash. </para></listitem><listitem><para>Confirm that the partition table should be written </para></listitem></itemizedlist><para>After the first reboot, log in as an admin user and run the post install script to integrate it into our infrastructure. You may have to reboot the machine once more to fully complete the process. Afterward, the machine should be fully functional (in the world of the ideal at least). </para><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="https://wiki.hcoop.net/InstallationProcedure/VirtualMachine/CategorySystemAdministration#">CategorySystemAdministration</ulink> </para></section></article>