testdriver: Add vsock example

This commit is contained in:
Cole Robinson 2019-01-06 18:08:04 -05:00
parent 021d2938af
commit e66823a173
5 changed files with 17 additions and 12 deletions

View File

@ -7,9 +7,9 @@
</metadata>
<memory unit="KiB">409600</memory>
@@
<panic model="s390"/>
<panic model="pseries"/>
<panic model="hyperv"/>
<vsock model="virtio">
<cid auto="no" address="5"/>
</vsock>
+ <disk type="file" device="disk">
+ <driver name="qemu" type="qcow2"/>
+ <source file="/dev/default-pool/testvol1.img"/>

View File

@ -1,6 +1,6 @@
<panic model="s390"/>
<panic model="pseries"/>
<panic model="hyperv"/>
<vsock model="virtio">
<cid auto="no" address="5"/>
</vsock>
+ <disk type="file" device="disk">
+ <driver name="qemu" type="qcow2"/>
+ <source file="/dev/default-pool/testvol1.img"/>

View File

@ -7,9 +7,9 @@
</metadata>
<memory unit="KiB">409600</memory>
@@
<panic model="s390"/>
<panic model="pseries"/>
<panic model="hyperv"/>
<vsock model="virtio">
<cid auto="no" address="5"/>
</vsock>
+ <interface type="bridge">
+ <source bridge="eth0"/>
+ <mac address="00:11:22:33:44:55"/>

View File

@ -1,6 +1,6 @@
<panic model="s390"/>
<panic model="pseries"/>
<panic model="hyperv"/>
<vsock model="virtio">
<cid auto="no" address="5"/>
</vsock>
+ <interface type="bridge">
+ <source bridge="eth0"/>
+ <mac address="00:11:22:33:44:55"/>

View File

@ -549,6 +549,11 @@ Foo bar baz &amp; yeah boii &lt; &gt; yeahfoo
<!-- memballoon device -->
<memballoon model='virtio'/>
<!-- vsock device -->
<vsock model='virtio'>
<cid address='5'/>
</vsock>
</devices>
<seclabel model='selinux' type='dynamic' relabel='yes'/>