# Generate a libvirt domain XML for a VM that behaves like a real machine # (BIOS/q35, virtio disk, bridged NIC, VNC display). # # The NIC is pinned to q35 PCI bus 0x02 and the disk to bus 0x04 so the guest # sees the same interface name it did under the former KubeVirt (enp2s0) and the same # device ordering. { lib }: { name, uuid, vcpu, memoryGiB, disk, mac, bridge ? "br0", vncPort, }: '' ${name} ${uuid} ${toString memoryGiB} ${toString vcpu} hvm destroy restart
/dev/urandom ''