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

com.github.jjYBdx4IL.utils.vmmgmt.LibvirtRunDomainTemplate.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>
    </os>
    <vcpu>${nvcpus}</vcpu>
    <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>
        <graphics type='vnc' port='-1' <#if keymap?has_content>keymap='${keymap}'</#if>/>
        <interface type='user'>
            <model type='virtio'/>
        </interface>
<#list sharedFolders as x>
        <filesystem type='mount' accessmode='squash'>
            <source dir='${x.source}'/>
            <target dir='${x.mountTag}'/>
        </filesystem>
</#list>
    </devices>
    <qemu:commandline>
        <qemu:arg value='-redir'/>
        <qemu:arg value='tcp:${sshFwdPort}::22'/>
    </qemu:commandline>
</domain>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy