Commit 12913c81 authored by papauxg's avatar papauxg
Browse files

add libvirt xml config for linux with sd rootfs and bridge or nat networking

parent 55c82fba
<domain type="kvm">
<name>linux310-sd</name>
<memory>131072</memory>
<currentMemory>131072</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch="armv7l" machine="vexpress-a15">hvm</type>
<kernel>/var/lib/libvirt/images/linux-3-10/zImage-sd</kernel>
<cmdline>console=ttyAMA0 mem=128M root=/dev/mmcblk0p1 rw rootfstype=ext3</cmdline>
<dtb>/var/lib/libvirt/images/linux-3-10/vexpress-v2p-ca15-tc1.dtb</dtb>
</os>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-arm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/linux-3-10/rootfs.qcow2' />
<target bus='sd' dev='sda'/>
</disk>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<interface type='bridge'>
<source bridge='br0'/>
<model type='lan9118'/>
</interface>
</devices>
</domain>
<domain type="kvm">
<name>linux310-sd</name>
<memory>131072</memory>
<currentMemory>131072</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch="armv7l" machine="vexpress-a15">hvm</type>
<kernel>/var/lib/libvirt/images/linux-3-10/zImage-sd</kernel>
<cmdline>console=ttyAMA0 mem=128M root=/dev/mmcblk0p1 rw rootfstype=ext3</cmdline>
<dtb>/var/lib/libvirt/images/linux-3-10/vexpress-v2p-ca15-tc1.dtb</dtb>
</os>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-arm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/linux-3-10/rootfs.qcow2' />
<target bus='sd' dev='sda'/>
</disk>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<interface type='network'>
<source network='default'/>
</interface>
</devices>
</domain>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment