Skip to content

Instantly share code, notes, and snippets.

@oldsj
Created March 16, 2018 13:24
Show Gist options
  • Save oldsj/50ea245a05d9f2d9bccc4af740dd2eff to your computer and use it in GitHub Desktop.
Save oldsj/50ea245a05d9f2d9bccc4af740dd2eff to your computer and use it in GitHub Desktop.
ok-sc-cs01.xml
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>ok-sc-cs01</name>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<vcpu placement='static'>4</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>
<loader type='rom'>/home/ubuntu/OVMF.fd</loader>
</os>
<features>
<acpi/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none' io='native'/>
<source file='/srv/salt-images/ok-sc-cs01/system.qcow2'/>
<target dev='hda' bus='ide'/>
</disk>
<interface type='bridge'>
<source bridge='br0'/>
<model type='virtio'/>
</interface>
<serial type='tcp'>
<source mode='bind' host='0.0.0.0' service='8888'/>
<protocol type='telnet'/>
<target port='0'/>
</serial>
</devices>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment