My First Post

This is a code test

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import "libvirt.org/go/libvirtxml"

func addVSock(domain *libvirtxml.Domain) {
	domain.Devices.VSock = &libvirtxml.DomainVSock{
		Model: "virtio",
		CID: &libvirtxml.DomainVSockCID{
			Auto: "yes",
		},
	}
}

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
import "libvirt.org/go/libvirtxml"

func addVSock(domain *libvirtxml.Domain) {
	domain.Devices.VSock = &libvirtxml.DomainVSock{
		Model: "virtio",
		CID: &libvirtxml.DomainVSockCID{
			Auto: "yes",
		},
	}
}

and let’s also try some XML

<vsock model='virtio'>
    <cid auto='yes'/>
</vsock>

This is a test

  • enum #1
  • enum #2
  • enum #3