All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jjYBdx4IL.utils.vmmgmt.LibvirtInstallDomainTemplate.xml Maven / Gradle / Ivy

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
    <!-- https://libvirt.org/formatdomain.html -->
    <name>${name}</name>
    <title>${title}</title>
    <os>
        <type>hvm</type>
        <kernel>${vmlinuzFile}</kernel>
        <initrd>${initrdFile}</initrd>
        <!-- https://www.debian.org/releases/wheezy/example-preseed.txt -->
        <cmdline>${cmdline} netcfg/enable=false</cmdline>
    </os>
    <memory unit='MiB'>${ram}</memory>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>destroy</on_reboot>
    <on_crash>destroy</on_crash>
    <on_lockfailure>poweroff</on_lockfailure>
    <features>
        <acpi/>
        <apic/>
    </features>
    <devices>
        <disk type='file' device='disk'>
            <driver name='qemu' type='qcow2' cache='none' discard='unmap'/>
            <source file='${diskImg}'/>
            <target dev='sda' bus='scsi'/>
        </disk>
        <disk type='file' device='cdrom'>
            <source  file='${isoImg}'/>
            <driver name='qemu' type='raw'/>
            <target dev='hdc' bus='ide'/>
            <readonly/>
        </disk>
        <graphics type='vnc' port='-1' <#if keymap?has_content>keymap='${keymap}'</#if>/>
        <interface type='user'>
            <model type='virtio'/>
        </interface>
    </devices>
</domain>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy