Created
April 12, 2016 07:03
-
-
Save yuuichi-fujioka/9ea4851f8c4c84a2f6ea253401002784 to your computer and use it in GitHub Desktop.
domain xml for install windows to kvm.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<domain type='kvm'> | |
<name>win</name> | |
<uuid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</uuid> | |
<memory unit='MiB'>4096</memory> | |
<currentMemory unit='MiB'>4096</currentMemory> | |
<vcpu>2</vcpu> | |
<os> | |
<type arch='x86_64'>hvm</type> | |
</os> | |
<cpu mode='custom' match='exact'> | |
<model fallback='allow'>kvm64</model> | |
<feature policy='require' name='lahf_lm'/> | |
</cpu> | |
<features> | |
<acpi/><apic/><pae/> | |
</features> | |
<clock offset='utc'/> | |
<on_poweroff>destroy</on_poweroff> | |
<on_reboot>restart</on_reboot> | |
<on_crash>restart</on_crash> | |
<devices> | |
<emulator>/usr/bin/kvm-spice</emulator> | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='qcow2'/> | |
<source file='/path/to/windows/hdd.img'/> | |
<target dev='vda' bus='virtio'/> | |
<boot order='1'/> | |
</disk> | |
<disk type='file' device='cdrom'> | |
<driver name='qemu' type='raw'/> | |
<source file='/path/to/windows/installer.iso'/> | |
<target dev='hdc' bus='ide'/> | |
<readonly/> | |
<boot order='2'/> | |
</disk> | |
<disk type='file' device='cdrom'> | |
<driver name='qemu' type='raw'/> | |
<source file='/path/to/virtio/driver.iso'/> | |
<target dev='hdd' bus='ide'/> | |
<readonly/> | |
</disk> | |
<interface type='bridge'> | |
<source bridge='br0'/> | |
<virtualport type='openvswitch'/> | |
<mac address='00:00:00:00:00:00'/> | |
<target dev='win10-eth0'/> | |
</interface> | |
<input type='mouse' bus='ps2'/> | |
<graphics type='vnc' port='-1' keymap='ja' listen='0.0.0.0'/> | |
<serial type='pty'/> | |
<console type='pty'/> | |
<video> | |
<model type='cirrus'/> | |
</video> | |
</devices> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment