Last active
September 26, 2018 17:04
-
-
Save gabrik/1f23c3b06dd8baccd8d557c3632ba5ca to your computer and use it in GitHub Desktop.
vm xml template
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><VM NAME></name> | |
<memory unit="MB">RAM</memory> | |
<vcpu placement="static">CPU</vcpu> | |
<os> | |
<type>hvm</type> | |
<boot dev="hd"/> | |
</os> | |
<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/qemu-system-x86_64</emulator> | |
<disk device="disk" type="file"> | |
<driver name="qemu" type="qcow2"/> | |
<source file="PATH_TO_VM_DISK"/> | |
<target dev="hda"/> | |
<address bus="0" controller="0" target="0" type="drive" unit="0"/> | |
</disk> | |
<disk device="cdrom" type="file"> | |
<source file="PATH_TO_CONFIGD_DISK"/> | |
<driver name="qemu" type="raw"/> | |
<target bus="ide" dev="hdc"/> | |
<readyonly/> | |
<address bus="1" controller="0" target="0" type="drive" unit="0"/> | |
</disk> | |
<interface type='bridge'> | |
<source network='default' bridge='virbr0'/> | |
<model type='virtio'/> | |
<alias name='net0'/> | |
</interface> | |
<serial type='pty'> | |
<target port='0'/> | |
</serial> | |
<console type='pty'> | |
<target type='serial' port='0'/> | |
</console> | |
</devices> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment