kubevirt: Support arm64 nodes (Unexpected enum value 0 for virDomainDeviceAddressType)
Is this a BUG REPORT or FEATURE REQUEST?:
Uncomment only one, leave it on its own line:
/kind bug
/kind enhancement
What happened:
by default (x86_64),launcher can not get the right cpu arch I debug it https://github.com/kubevirt/kubevirt/blob/v0.18.1/pkg/virt-launcher/virtwrap/api/defaults.go#L18
before I edit the source code ,the launcher log :
{"component":"virt-launcher","level":"info","msg":"Collected all requested hook sidecar sockets","pos":"manager.go:67","timestamp":"2019-07-10T09:19:31.064235Z"}
{"component":"virt-launcher","level":"info","msg":"Sorted all collected sidecar sockets per hook point based on their priority and name: map[]","pos":"manager.go:70","timestamp":"2019-07-10T09:19:31.064409Z"}
{"component":"virt-launcher","level":"info","msg":"Watchdog file created at /var/run/kubevirt/watchdog-files/kubevirt_testvmi","pos":"virt-launcher.go:156","timestamp":"2019-07-10T09:19:31.066740Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon: qemu:///system","pos":"libvirt.go:348","timestamp":"2019-07-10T09:19:31.067638Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon failed: virError(Code=38, Domain=7, Message='Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory')","pos":"libvirt.go:356","timestamp":"2019-07-10T09:19:31.094769Z"}
{"component":"virt-launcher","level":"info","msg":"libvirt version: 5.4.0, package: 2.fc31 (Fedora Project, 2019-06-20-16:38:00, )","subcomponent":"libvirt","thread":"49","timestamp":"2019-07-10T09:19:31.226000Z"}
{"component":"virt-launcher","level":"info","msg":"hostname: testvmi","subcomponent":"libvirt","thread":"49","timestamp":"2019-07-10T09:19:31.226000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"virDBusGetSystemBus:108","subcomponent":"libvirt","thread":"49","timestamp":"2019-07-10T09:19:31.226000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"virDBusGetSystemBus:108","subcomponent":"libvirt","thread":"49","timestamp":"2019-07-10T09:19:31.916000Z"}
{"component":"virt-launcher","level":"warning","msg":"DBus not available, disabling firewalld support in bridge_network_driver: internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"networkStateInitialize:694","subcomponent":"libvirt","thread":"49","timestamp":"2019-07-10T09:19:31.916000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:00:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.024000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:00:01.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.025000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:02:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.032000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:03:01.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.033000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:03:08.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.034000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:03:09.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.035000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:03:10.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.036000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:03:11.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.037000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:00:02.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.038000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:09:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.039000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:01.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.040000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:02.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.041000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:04.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.042000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0d:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.052000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0d:00.1/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.052000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0d:00.2/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.053000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0d:00.3/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.054000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:05.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.055000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0e:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.062000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:06.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.066000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0f:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.073000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:10:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.074000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:07.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.077000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:08.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.078000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:12:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.079000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:09.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.081000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:13:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.090000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:0a.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.108000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:14:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.109000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:0b.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.128000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:15:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"53","timestamp":"2019-07-10T09:19:32.129000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Cannot probe for supported suspend types","pos":"virNodeSuspendSupportsTarget:335","subcomponent":"libvirt","thread":"49","timestamp":"2019-07-10T09:19:33.316000Z"}
{"component":"virt-launcher","level":"warning","msg":"Failed to get host power management capabilities","pos":"virQEMUCapsInit:920","subcomponent":"libvirt","thread":"49","timestamp":"2019-07-10T09:19:33.316000Z"}
{"component":"virt-launcher","level":"error","msg":"this function is not supported by the connection driver: cannot detect host CPU model for aarch64 architecture","pos":"virCPUGetHost:452","subcomponent":"libvirt","thread":"49","timestamp":"2019-07-10T09:19:34.312000Z"}
{"component":"virt-launcher","level":"error","msg":"this function is not supported by the connection driver: cannot detect host CPU model for aarch64 architecture","pos":"virCPUGetHost:452","subcomponent":"libvirt","thread":"49","timestamp":"2019-07-10T09:19:34.312000Z"}
{"component":"virt-launcher","level":"info","msg":"Connected to libvirt daemon","pos":"libvirt.go:364","timestamp":"2019-07-10T09:19:34.334731Z"}
{"component":"virt-launcher","level":"info","msg":"Registered libvirt event notify callback","pos":"client.go:283","timestamp":"2019-07-10T09:19:34.339301Z"}
{"component":"virt-launcher","level":"info","msg":"Marked as ready","pos":"virt-launcher.go:73","timestamp":"2019-07-10T09:19:34.339652Z"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Executing PreStartHook on VMI pod environment","name":"testvmi","namespace":"kubevirt","pos":"manager.go:689","timestamp":"2019-07-10T09:20:44.655389Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Starting PreCloudInitIso hook","name":"testvmi","namespace":"kubevirt","pos":"manager.go:700","timestamp":"2019-07-10T09:20:44.655782Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"updated MAC for eth0 interface: old: ca:b0:c9:f2:fa:d2 -\u003e new: ca:b0:c9:6e:a9:37","pos":"common.go:203","timestamp":"2019-07-10T09:20:44.663906Z"}
{"component":"virt-launcher","kind":"","level":"info","msg":"bridge pod interface: VIF: { Name: eth0, IP: 10.244.247.24, Mask: ffffffff, MAC: ca:b0:c9:f2:fa:d2, Gateway: 169.254.1.1, MTU: 1500}","name":"testvmi","namespace":"kubevirt","pos":"podinterface.go:258","timestamp":"2019-07-10T09:20:44.671924Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"Found nameservers in /etc/resolv.conf: \n\n\u0001\n","pos":"converter.go:1394","timestamp":"2019-07-10T09:20:44.672211Z"}
{"component":"virt-launcher","level":"info","msg":"Found search domains in /etc/resolv.conf: kubevirt.svc.cluster.local svc.cluster.local cluster.local","pos":"converter.go:1395","timestamp":"2019-07-10T09:20:44.672368Z"}
{"component":"virt-launcher","level":"info","msg":"Starting SingleClientDHCPServer","pos":"dhcp.go:64","timestamp":"2019-07-10T09:20:44.672488Z"}
{"component":"virt-launcher","level":"info","msg":"Driver cache mode for /var/run/kubevirt-ephemeral-disks/container-disk-data/kubevirt/testvmi/disk_containerdisk/disk-image.qcow2 set to none","pos":"converter.go:166","timestamp":"2019-07-10T09:20:44.673243Z"}
{"component":"virt-launcher","level":"error","msg":"invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm","pos":"virCapabilitiesDomainDataLookupInternal:752","subcomponent":"libvirt","thread":"37","timestamp":"2019-07-10T09:20:44.676000Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Defining the VirtualMachineInstance failed.","name":"testvmi","namespace":"kubevirt","pos":"libvirt_helper.go:96","reason":"virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm ')","timestamp":"2019-07-10T09:20:44.676977Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Failed to sync vmi","name":"testvmi","namespace":"kubevirt","pos":"server.go:160","reason":"virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm ')","timestamp":"2019-07-10T09:20:44.677076Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Executing PreStartHook on VMI pod environment","name":"testvmi","namespace":"kubevirt","pos":"manager.go:689","timestamp":"2019-07-10T09:20:44.700544Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Starting PreCloudInitIso hook","name":"testvmi","namespace":"kubevirt","pos":"manager.go:700","timestamp":"2019-07-10T09:20:44.700940Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"Driver cache mode for /var/run/kubevirt-ephemeral-disks/container-disk-data/kubevirt/testvmi/disk_containerdisk/disk-image.qcow2 set to none","pos":"converter.go:166","timestamp":"2019-07-10T09:20:44.701202Z"}
{"component":"virt-launcher","level":"error","msg":"invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm","pos":"virCapabilitiesDomainDataLookupInternal:752","subcomponent":"libvirt","thread":"34","timestamp":"2019-07-10T09:20:44.701000Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Defining the VirtualMachineInstance failed.","name":"testvmi","namespace":"kubevirt","pos":"libvirt_helper.go:96","reason":"virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm ')","timestamp":"2019-07-10T09:20:44.702054Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Failed to sync vmi","name":"testvmi","namespace":"kubevirt","pos":"server.go:160","reason":"virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm ')","timestamp":"2019-07-10T09:20:44.702143Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Executing PreStartHook on VMI pod environment","name":"testvmi","namespace":"kubevirt","pos":"manager.go:689","timestamp":"2019-07-10T09:20:44.705894Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Starting PreCloudInitIso hook","name":"testvmi","namespace":"kubevirt","pos":"manager.go:700","timestamp":"2019-07-10T09:20:44.706224Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"Driver cache mode for /var/run/kubevirt-ephemeral-disks/container-disk-data/kubevirt/testvmi/disk_containerdisk/disk-image.qcow2 set to none","pos":"converter.go:166","timestamp":"2019-07-10T09:20:44.706480Z"}
{"component":"virt-launcher","level":"error","msg":"invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm","pos":"virCapabilitiesDomainDataLookupInternal:752","subcomponent":"libvirt","thread":"36","timestamp":"2019-07-10T09:20:44.707000Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Defining the VirtualMachineInstance failed.","name":"testvmi","namespace":"kubevirt","pos":"libvirt_helper.go:96","reason":"virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm ')","timestamp":"2019-07-10T09:20:44.707414Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Failed to sync vmi","name":"testvmi","namespace":"kubevirt","pos":"server.go:160","reason":"virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm ')","timestamp":"2019-07-10T09:20:44.707491Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Executing PreStartHook on VMI pod environment","name":"testvmi","namespace":"kubevirt","pos":"manager.go:689","timestamp":"2019-07-10T09:20:44.712801Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Starting PreCloudInitIso hook","name":"testvmi","namespace":"kubevirt","pos":"manager.go:700","timestamp":"2019-07-10T09:20:44.713095Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"Driver cache mode for /var/run/kubevirt-ephemeral-disks/container-disk-data/kubevirt/testvmi/disk_containerdisk/disk-image.qcow2 set to none","pos":"converter.go:166","timestamp":"2019-07-10T09:20:44.713312Z"}
{"component":"virt-launcher","level":"error","msg":"invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm","pos":"virCapabilitiesDomainDataLookupInternal:752","subcomponent":"libvirt","thread":"38","timestamp":"2019-07-10T09:20:44.713000Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Defining the VirtualMachineInstance failed.","name":"testvmi","namespace":"kubevirt","pos":"libvirt_helper.go:96","reason":"virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm ')","timestamp":"2019-07-10T09:20:44.714088Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Failed to sync vmi","name":"testvmi","namespace":"kubevirt","pos":"server.go:160","reason":"virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm ')","timestamp":"2019-07-10T09:20:44.714159Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Executing PreStartHook on VMI pod environment","name":"testvmi","namespace":"kubevirt","pos":"manager.go:689","timestamp":"2019-07-10T09:20:44.738345Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Starting PreCloudInitIso hook","name":"testvmi","namespace":"kubevirt","pos":"manager.go:700","timestamp":"2019-07-10T09:20:44.738688Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"Driver cache mode for /var/run/kubevirt-ephemeral-disks/container-disk-data/kubevirt/testvmi/disk_containerdisk/disk-image.qcow2 set to none","pos":"converter.go:166","timestamp":"2019-07-10T09:20:44.738939Z"}
{"component":"virt-launcher","level":"error","msg":"invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm","pos":"virCapabilitiesDomainDataLookupInternal:752","subcomponent":"libvirt","thread":"40","timestamp":"2019-07-10T09:20:44.739000Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Defining the VirtualMachineInstance failed.","name":"testvmi","namespace":"kubevirt","pos":"libvirt_helper.go:96","reason":"virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm ')","timestamp":"2019-07-10T09:20:44.740025Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Failed to sync vmi","name":"testvmi","namespace":"kubevirt","pos":"server.go:160","reason":"virError(Code=8, Domain=44, Message='invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm ')","timestamp":"2019-07-10T09:20:44.740109Z","uid":"d058e5f5-a2f3-11e9-ba6e-eeeeeeeeeeee"}
because I am working on arm64, so I modify the source code and build it
func SetDefaults_OSType(ostype *OSType) {
ostype.OS = "hvm"
if ostype.Arch == "" {
// ostype.Arch = "x86_64"
ostype.Arch = "aarch64"
}
// q35 is an alias of the newest q35 machine type.
// TODO: we probably want to select concrete type in the future for "future-backwards" compatibility.
if ostype.Machine == "" {
ostype.Machine = "q35"
}
}
and go on run it . next ,
I run kubevirt on arm64 k8s cluster
root@master1:/nas/kubevirt/yaml# kubectl get po -n kubevirt
NAME READY STATUS RESTARTS AGE
virt-api-559f9d6798-pgn6l 1/1 Running 0 10m
virt-controller-5c8cfc59f4-68h7j 1/1 Running 0 9m24s
virt-handler-67nml 1/1 Running 0 10m
virt-handler-988sr 1/1 Running 0 10m
virt-handler-bv4p2 1/1 Running 0 10m
virt-handler-l2fht 1/1 Running 0 10m
virt-handler-llp24 1/1 Running 0 10m
virt-launcher-testvmi-tvkzb 0/2 Completed 0 6m57s
virt-operator-7b75f7498d-882zx 1/1 Running 0 11m
virt-operator-7b75f7498d-sjf9t 1/1 Running 0 11m
I debug and get the generated file ‘domain.xml’
<domain type='kvm'>
<name>kubevirt_testvmi</name>
<uuid>38ff9488-9b02-452d-a132-42203cf19146</uuid>
<metadata>
<kubevirt xmlns="http://kubevirt.io">
<uid>00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee</uid>
<graceperiod>
<deletionGracePeriodSeconds>30</deletionGracePeriodSeconds>
</graceperiod>
</kubevirt>
</metadata>
<memory unit='KiB'>1000000</memory>
<currentMemory unit='KiB'>1000000</currentMemory>
<vcpu placement='static'>1</vcpu>
<iothreads>1</iothreads>
<sysinfo type='smbios'>
<system>
<entry name='uuid'>38ff9488-9b02-452d-a132-42203cf19146</entry>
</system>
</sysinfo>
<os>
<type arch='aarch64' machine='q35'>hvm</type>
<boot dev='hd'/>
</os>
<cpu mode='host-passthrough' check='none'>
<topology sockets='1' cores='1' threads='1'/>
</cpu>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-aarch64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/run/kubevirt-ephemeral-disks/container-disk-data/kubevirt/testvmi/disk_containerdisk/disk-image.qcow2'/>
<target dev='vda' bus='virtio'/>
<alias name='ua-containerdisk'/>
</disk>
<controller type='usb' index='0' model='none'/>
<controller type='virtio-serial' index='0'/>
<interface type='bridge'>
<mac address='52:54:00:92:53:9d'/>
<source bridge='k6t-eth0'/>
<model type='virtio'/>
<alias name='ua-default'/>
</interface>
<serial type='unix'>
<source mode='bind' path='/var/run/kubevirt-private/00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee/virt-serial0'/>
<target port='0'/>
</serial>
<console type='unix'>
<source mode='bind' path='/var/run/kubevirt-private/00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee/virt-serial0'/>
<target type='serial' port='0'/>
</console>
<channel type='unix'>
<target type='virtio' name='org.qemu.guest_agent.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<graphics type='vnc' socket='/var/run/kubevirt-private/00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee/virt-vnc'>
<listen type='socket' socket='/var/run/kubevirt-private/00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee/virt-vnc'/>
</graphics>
<video>
<model type='vga' vram='16384' heads='1' primary='yes'/>
</video>
<memballoon model='none'/>
<rng model='virtio'>
<backend model='random'>/dev/urandom</backend>
</rng>
</devices>
</domain>
kubectl logs virt-launcher-testvmi-tvkzb -c compute
{"component":"virt-launcher","level":"info","msg":"Collected all requested hook sidecar sockets","pos":"manager.go:67","timestamp":"2019-07-10T08:52:52.653910Z"}
{"component":"virt-launcher","level":"info","msg":"Sorted all collected sidecar sockets per hook point based on their priority and name: map[]","pos":"manager.go:70","timestamp":"2019-07-10T08:52:52.654100Z"}
{"component":"virt-launcher","level":"info","msg":"Watchdog file created at /var/run/kubevirt/watchdog-files/kubevirt_testvmi","pos":"virt-launcher.go:156","timestamp":"2019-07-10T08:52:53.062611Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon: qemu:///system","pos":"libvirt.go:348","timestamp":"2019-07-10T08:52:53.063535Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon failed: virError(Code=38, Domain=7, Message='Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory')","pos":"libvirt.go:356","timestamp":"2019-07-10T08:52:53.076901Z"}
{"component":"virt-launcher","level":"info","msg":"libvirt version: 5.4.0, package: 2.fc31 (Fedora Project, 2019-06-20-16:38:00, )","subcomponent":"libvirt","thread":"51","timestamp":"2019-07-10T08:52:53.227000Z"}
{"component":"virt-launcher","level":"info","msg":"hostname: testvmi","subcomponent":"libvirt","thread":"51","timestamp":"2019-07-10T08:52:53.227000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"virDBusGetSystemBus:108","subcomponent":"libvirt","thread":"51","timestamp":"2019-07-10T08:52:53.227000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"virDBusGetSystemBus:108","subcomponent":"libvirt","thread":"51","timestamp":"2019-07-10T08:52:53.920000Z"}
{"component":"virt-launcher","level":"warning","msg":"DBus not available, disabling firewalld support in bridge_network_driver: internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"networkStateInitialize:694","subcomponent":"libvirt","thread":"51","timestamp":"2019-07-10T08:52:53.920000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:00:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.031000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:00:01.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.032000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:02:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.040000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:03:01.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.041000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:03:08.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.042000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:03:09.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.043000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:03:10.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.044000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:03:11.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.045000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:00:02.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.046000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:09:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.047000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:01.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.047000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:02.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.048000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:04.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.049000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0d:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.059000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0d:00.1/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.060000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0d:00.2/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.061000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0d:00.3/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.061000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:05.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.062000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0e:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.070000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:06.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.073000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0f:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.081000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:10:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.081000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:07.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.084000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:08.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.085000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:12:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.086000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:09.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.089000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:13:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.096000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:0a.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.114000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:14:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.115000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:0a:0b.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.134000Z"}
{"component":"virt-launcher","level":"error","msg":"Failed to open config space file '/sys/bus/pci/devices/0000:15:00.0/config': Read-only file system","pos":"virPCIDeviceConfigOpen:303","subcomponent":"libvirt","thread":"55","timestamp":"2019-07-10T08:52:54.135000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Cannot probe for supported suspend types","pos":"virNodeSuspendSupportsTarget:335","subcomponent":"libvirt","thread":"51","timestamp":"2019-07-10T08:52:55.316000Z"}
{"component":"virt-launcher","level":"warning","msg":"Failed to get host power management capabilities","pos":"virQEMUCapsInit:920","subcomponent":"libvirt","thread":"51","timestamp":"2019-07-10T08:52:55.316000Z"}
{"component":"virt-launcher","level":"error","msg":"this function is not supported by the connection driver: cannot detect host CPU model for aarch64 architecture","pos":"virCPUGetHost:452","subcomponent":"libvirt","thread":"51","timestamp":"2019-07-10T08:52:56.933000Z"}
{"component":"virt-launcher","level":"error","msg":"this function is not supported by the connection driver: cannot detect host CPU model for aarch64 architecture","pos":"virCPUGetHost:452","subcomponent":"libvirt","thread":"51","timestamp":"2019-07-10T08:52:56.933000Z"}
{"component":"virt-launcher","level":"info","msg":"Connected to libvirt daemon","pos":"libvirt.go:364","timestamp":"2019-07-10T08:52:56.954032Z"}
{"component":"virt-launcher","level":"info","msg":"Registered libvirt event notify callback","pos":"client.go:283","timestamp":"2019-07-10T08:52:56.958928Z"}
{"component":"virt-launcher","level":"info","msg":"Marked as ready","pos":"virt-launcher.go:73","timestamp":"2019-07-10T08:52:56.959363Z"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Executing PreStartHook on VMI pod environment","name":"testvmi","namespace":"kubevirt","pos":"manager.go:689","timestamp":"2019-07-10T08:53:34.531288Z","uid":"00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Starting PreCloudInitIso hook","name":"testvmi","namespace":"kubevirt","pos":"manager.go:700","timestamp":"2019-07-10T08:53:34.531643Z","uid":"00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"updated MAC for eth0 interface: old: de:a7:40:98:07:e6 -\u003e new: de:a7:40:f3:32:40","pos":"common.go:203","timestamp":"2019-07-10T08:53:34.540588Z"}
{"component":"virt-launcher","kind":"","level":"info","msg":"bridge pod interface: VIF: { Name: eth0, IP: 10.244.247.22, Mask: ffffffff, MAC: de:a7:40:98:07:e6, Gateway: 169.254.1.1, MTU: 1500}","name":"testvmi","namespace":"kubevirt","pos":"podinterface.go:258","timestamp":"2019-07-10T08:53:34.548175Z","uid":"00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"Found nameservers in /etc/resolv.conf: \n\n\u0001\n","pos":"converter.go:1394","timestamp":"2019-07-10T08:53:34.548413Z"}
{"component":"virt-launcher","level":"info","msg":"Found search domains in /etc/resolv.conf: kubevirt.svc.cluster.local svc.cluster.local cluster.local","pos":"converter.go:1395","timestamp":"2019-07-10T08:53:34.548505Z"}
{"component":"virt-launcher","level":"info","msg":"Starting SingleClientDHCPServer","pos":"dhcp.go:64","timestamp":"2019-07-10T08:53:34.548671Z"}
{"component":"virt-launcher","level":"info","msg":"Driver cache mode for /var/run/kubevirt-ephemeral-disks/container-disk-data/kubevirt/testvmi/disk_containerdisk/disk-image.qcow2 set to none","pos":"converter.go:166","timestamp":"2019-07-10T08:53:34.549360Z"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Domain defined.","name":"testvmi","namespace":"kubevirt","pos":"manager.go:888","timestamp":"2019-07-10T08:53:35.324473Z","uid":"00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"DomainLifecycle event 0 with reason 0 received","pos":"client.go:248","timestamp":"2019-07-10T08:53:35.324763Z"}
{"component":"virt-launcher","level":"info","msg":"kubevirt domain status: Shutoff(5):Unknown(0)","pos":"client.go:179","timestamp":"2019-07-10T08:53:35.326967Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"virDBusGetSystemBus:108","subcomponent":"libvirt","thread":"36","timestamp":"2019-07-10T08:53:35.330000Z"}
{"component":"virt-launcher","level":"info","msg":"Detected domain with UUID 38ff9488-9b02-452d-a132-42203cf19146","pos":"virt-launcher.go:246","timestamp":"2019-07-10T08:53:35.332421Z"}
{"component":"virt-launcher","level":"info","msg":"Monitoring loop: rate 1s start timeout 5m0s","pos":"monitor.go:251","timestamp":"2019-07-10T08:53:35.332519Z"}
{"component":"virt-launcher","level":"info","msg":"processed event","pos":"client.go:235","timestamp":"2019-07-10T08:53:35.333708Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unexpected enum value 0 for virDomainDeviceAddressType","pos":"qemuBuildVirtioDevStr:479","subcomponent":"libvirt","thread":"36","timestamp":"2019-07-10T08:53:35.358000Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Starting the VirtualMachineInstance failed.","name":"testvmi","namespace":"kubevirt","pos":"manager.go:936","reason":"virError(Code=1, Domain=10, Message='internal error: Unexpected enum value 0 for virDomainDeviceAddressType')","timestamp":"2019-07-10T08:53:35.359823Z","uid":"00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Failed to sync vmi","name":"testvmi","namespace":"kubevirt","pos":"server.go:160","reason":"virError(Code=1, Domain=10, Message='internal error: Unexpected enum value 0 for virDomainDeviceAddressType')","timestamp":"2019-07-10T08:53:35.359995Z","uid":"00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"DomainLifecycle event 0 with reason 1 received","pos":"client.go:248","timestamp":"2019-07-10T08:53:35.616350Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"virDBusGetSystemBus:108","subcomponent":"libvirt","thread":"39","timestamp":"2019-07-10T08:53:35.620000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unexpected enum value 0 for virDomainDeviceAddressType","pos":"qemuBuildVirtioDevStr:479","subcomponent":"libvirt","thread":"39","timestamp":"2019-07-10T08:53:35.636000Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Starting the VirtualMachineInstance failed.","name":"testvmi","namespace":"kubevirt","pos":"manager.go:936","reason":"virError(Code=1, Domain=10, Message='internal error: Unexpected enum value 0 for virDomainDeviceAddressType')","timestamp":"2019-07-10T08:53:35.638251Z","uid":"00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"kubevirt domain status: Shutoff(5):Failed(6)","pos":"client.go:179","timestamp":"2019-07-10T08:53:35.638357Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Failed to sync vmi","name":"testvmi","namespace":"kubevirt","pos":"server.go:160","reason":"virError(Code=1, Domain=10, Message='internal error: Unexpected enum value 0 for virDomainDeviceAddressType')","timestamp":"2019-07-10T08:53:35.638396Z","uid":"00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"info","msg":"processed event","pos":"client.go:235","timestamp":"2019-07-10T08:53:35.639842Z"}
......
{"component":"virt-launcher","level":"info","msg":"kubevirt domain status: Shutoff(5):Failed(6)","pos":"client.go:179","timestamp":"2019-07-10T08:59:20.303609Z"}
{"component":"virt-launcher","kind":"","level":"error","msg":"Failed to sync vmi","name":"testvmi","namespace":"kubevirt","pos":"server.go:160","reason":"virError(Code=1, Domain=10, Message='internal error: Unexpected enum value 0 for virDomainDeviceAddressType')","timestamp":"2019-07-10T08:59:20.303644Z","uid":"00f149a9-a2f0-11e9-ba6e-eeeeeeeeeeee"}
{"component":"virt-launcher","level":"error","msg":"Failed to upate agent poller domain info","pos":"agent_poller.go:138","timestamp":"2019-07-10T08:59:20.304992Z"}
{"component":"virt-launcher","level":"info","msg":"processed event","pos":"client.go:235","timestamp":"2019-07-10T08:59:20.305072Z"}
{"component":"virt-launcher","level":"info","msg":"Timed out waiting for final delete notification after calling kill.","pos":"virt-launcher.go:302","timestamp":"2019-07-10T08:59:20.335797Z"}
{"component":"virt-launcher","level":"info","msg":"stopping cmd server","pos":"server.go:313","timestamp":"2019-07-10T08:59:20.335921Z"}
{"component":"virt-launcher","level":"info","msg":"Exiting...","pos":"virt-launcher.go:497","timestamp":"2019-07-10T08:59:20.336299Z"}
{"component":"virt-launcher","level":"error","msg":"received signal terminated but can't signal virt-launcher to shut down","pos":"virt-launcher.go:539","reason":"os: process already finished","timestamp":"2019-07-10T08:59:24.675284Z"}
problem:
- Does Dbus error effect?
- what’s the error “Unexpected enum value 0 for virDomainDeviceAddressType”?
What you expected to happen: expect it run nomal How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
launcher image:
FROM kylincloud2.hub/kube-system/libvirt:5.4.0
RUN dnf -y clean all && \
test $(id -u qemu) = 107 # make sure that the qemu user really is 107
COPY virt-launcher /usr/bin/virt-launcher
#COPY .version /.version
# Allow qemu to bind privileged ports
#RUN setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/qemu-system-aarch64
RUN mkdir -p /usr/share/kubevirt/virt-launcher
COPY sock-connector /usr/share/kubevirt/virt-launcher/
ENTRYPOINT [ "/usr/bin/virt-launcher" ]
libvirt image:
FROM arm64v8/fedora:31
ENV container docker
#ENV LIBVIRT_VERSION 5.1.0
RUN dnf install -y dnf-plugins-core && \
dnf copr enable -y @virtmaint-sig/virt-preview && \
dnf install -y \
libvirt-daemon-kvm.aarch64 \
libvirt-client.aarch64 \
socat \
genisoimage \
selinux-policy selinux-policy-targeted \
augeas && \
dbus-daemon.aarch64 && \
edk2-aarch64.noarch && \
edk2-arm.noarch && \
mkdir /run/dbus/ && \
dnf clean all
COPY augconf /augconf
RUN augtool -f -s /augconf
COPY libvirtd.sh /libvirtd.sh
RUN chmod a+x /libvirtd.sh
RUN setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/qemu-system-aarch64
CMD ["/libvirtd.sh"]
Environment:
- KubeVirt version (use
virtctl version):
root@master1:/nas/kubevirt/yaml/log# virtctl version
Client Version: version.Info{GitVersion:"v0.0.0-master+$Format:%h$", GitCommit:"$Format:%H$", GitTreeState:"", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/arm64"}
Server Version: version.Info{GitVersion:"v0.0.0-master+$Format:%h$", GitCommit:"$Format:%H$", GitTreeState:"", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/arm64"}
- Kubernetes version (use
kubectl version):
root@master1:/nas/kubevirt/yaml/log# kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"archive", BuildDate:"2019-05-29T08:20:47Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/arm64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"archive", BuildDate:"2019-05-29T08:20:47Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/arm64"}
- VM or VMI specifications:
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
name: testvmi
spec:
terminationGracePeriodSeconds: 30
domain:
machine:
type: ""
resources:
requests:
memory: 1024M
features:
acpi:
enabled: false
cpu:
model: host-passthrough
devices:
disks:
- name: containerdisk
disk:
bus: virtio
interfaces:
- name: default
bridge: {}
rng: {}
volumes:
- name: containerdisk
containerDisk:
image: kylincloud2.hub/kube-system/ubuntu-disk:18-disk
- Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a):Linux master1 4.4.58-20171215.kylin.server.YUN+-generic #kylin SMP Fri Dec 22 16:41:06 CST 2017 aarch64 aarch64 aarch64 GNU/Linux - Install tools:
- Others:
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 21 (12 by maintainers)
you are really dragging this one out