2013-04-06 17:04:51 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2014-07-09 19:45:49 +02:00
|
|
|
<section xmlns="http://docbook.org/ns/docbook"
|
|
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
|
version="5.0"
|
|
|
|
xml:id="windows-image">
|
2013-06-04 14:06:34 -04:00
|
|
|
<title>Example: Microsoft Windows image</title>
|
2013-04-06 17:04:51 -04:00
|
|
|
<para>We do not yet have a fully documented example of how to create a Microsoft Windows image.
|
|
|
|
You can use libvirt to install Windows from an installation DVD using the same approach as
|
|
|
|
with the CentOS and Ubuntu examples. Once the initial install is done, you will need to
|
|
|
|
perform some Windows-specific customizations.</para>
|
|
|
|
<simplesect>
|
|
|
|
<title>Install VirtIO drivers</title>
|
|
|
|
<para>Installing the <link
|
|
|
|
xlink:href="http://www.linux-kvm.org/page/WindowsGuestDrivers/Download_Drivers"
|
|
|
|
>VirtIO paravirtualizaion drivers for Windows</link> will improve virtual machine
|
|
|
|
performance when using KVM as the hypervisor to run Windows.</para>
|
|
|
|
</simplesect>
|
|
|
|
<simplesect><title>Sysprep</title>
|
|
|
|
<para>Microsoft has a special tool called <link
|
|
|
|
xlink:href="http://technet.microsoft.com/en-us/library/cc766049(v=ws.10).aspx"
|
|
|
|
>Sysprep</link> that must be run inside of a Windows guest to prepare it for use as
|
2014-08-07 19:44:15 +09:00
|
|
|
a virtual machine image. On Windows, invoke sysprep, as follows:
|
2013-06-04 14:06:34 -04:00
|
|
|
<screen><userinput>c:\windows\system32\sysprep\sysprep.exe</userinput></screen></para>
|
2013-04-06 17:04:51 -04:00
|
|
|
</simplesect>
|
|
|
|
<simplesect>
|
|
|
|
<title>cloudbase-init</title>
|
|
|
|
<para><link xlink:href="http://www.cloudbase.it/cloud-init-for-windows-instances/"
|
|
|
|
>cloudbase-init</link> is a Windows port of cloud-init that should be installed
|
|
|
|
inside of the guest. The <link xlink:href="https://github.com/cloudbase/cloudbase-init"
|
2014-08-14 17:14:36 +01:00
|
|
|
>source code</link> is available on GitHub.</para>
|
2013-04-06 17:04:51 -04:00
|
|
|
</simplesect>
|
|
|
|
<simplesect>
|
|
|
|
<title>Jordan Rinke's OpenStack Windows resources</title>
|
|
|
|
<para>Jordan Rinke maintains <link xlink:href="https://github.com/jordanrinke/openstack"
|
|
|
|
>a collection of resources</link> for managing OpenStack Windows virtual machine
|
2013-08-02 18:00:26 +02:00
|
|
|
guests.</para>
|
2013-04-06 17:04:51 -04:00
|
|
|
</simplesect>
|
2013-12-20 10:45:55 +08:00
|
|
|
<simplesect>
|
|
|
|
<title>Windows instances require the timezone to be "localtime"</title>
|
|
|
|
<para>When uploading Windows images, you must set the <literal>os_type</literal>
|
|
|
|
parameter to <literal>windows</literal>, which causes instances to use the
|
|
|
|
local time zone.
|
|
|
|
Failing to set this will cause the clock timezone to be UTC, which has unexpected
|
|
|
|
side effects in Windows.</para>
|
|
|
|
</simplesect>
|
2013-04-06 17:04:51 -04:00
|
|
|
</section>
|