Public bug reported:

Hello!

Upon reproducing bug 1832394 I found another issue - it's seems like
sometimes qemu start on core with wrong microarchitecture . Which is, I
guess, doesn't happen on ARM servers, but do happen on SBC due to
big.LITTLE architecture.

Tested hardware: NanoPC-T4 and ROCKPro64.
Both of Ubuntu 18.04 and 19.04 was tested, so it's known that this issue is 
reproducible with at least libvirt 5.0.0, qemu 3.1 and virt-manager 2.0.0. 

I also tested not only latest stable Linux 4.4 release but also Linux
5.1 on every board.

Logs is below:

~$ virt-install --name=ubuntu-server --ram=2048 --arch=aarch64 --vcpus=1
--virt-type=kvm --hvm --os-type=linux --os-variant=ubuntu18.04 --boot
loader=/usr/share/AAVMF/AAVMF_CODE.fd,loader_ro=yes,loader_type=pflash,nvram=/var/lib/libvirt/qemu/nvram
/ubuntu-server_VARS.fd --location=/var/lib/libvirt/images/ubuntu-19.04
-server-arm64.iso --disk=/var/lib/libvirt/images/ubuntu-server.img
--network=bridge=br0,model=virtio

Starting install...
Retrieving file .treeinfo...                                                    
                                             |    0 B  00:00:00     
Retrieving file content...                                                      
                                             |    0 B  00:00:00     
Retrieving file info...                                                         
                                             |   62 B  00:00:00     
Retrieving file vmlinuz...                                                      
                                             | 8.6 MB  00:00:00     
Retrieving file initrd.gz...                                                    
                                             |  10 MB  00:00:00     
Allocating 'virtinst-vmlinuz.FoXAzF'                                            
                                             | 8.6 MB  00:00:00     
Transferring virtinst-vmlinuz.FoXAzF                                            
                                             | 8.6 MB  00:00:00     
Allocating 'virtinst-initrd.gz.CoM13X'                                          
                                             |  10 MB  00:00:00     
Transferring virtinst-initrd.gz.CoM13X                                          
                                             |  10 MB  00:00:00     
ERROR    internal error: process exited while connecting to monitor: 
kvm_init_vcpu failed: Invalid argument
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start ubuntu-server
otherwise, please restart your installation.


Another attempt with "--cpu=host-passthrough": 

~$ virt-install --name=ubuntu-server --ram=2048 --arch=aarch64 --vcpus=1
--virt-type=kvm --hvm --cpu=host-passthrough --os-type=linux --os-
variant=ubuntu18.04 --boot
loader=/usr/share/AAVMF/AAVMF_CODE.fd,loader_ro=yes,loader_type=pflash,nvram=/var/lib/libvirt/qemu/nvram
/ubuntu-server_VARS.fd --location=/var/lib/libvirt/images/ubuntu-19.04
-server-arm64.iso --disk=/var/lib/libvirt/images/ubuntu-server.img
--network=bridge=br0,model=virtio

Starting install...
Retrieving file .treeinfo...                                                    
                                             |    0 B  00:00:00     
Retrieving file content...                                                      
                                             |    0 B  00:00:00     
Retrieving file info...                                                         
                                             |   62 B  00:00:00     
Retrieving file vmlinuz...                                                      
                                             | 8.6 MB  00:00:00     
Retrieving file initrd.gz...                                                    
                                             |  10 MB  00:00:00     
Allocating 'virtinst-vmlinuz.6qngzC'                                            
                                             | 8.6 MB  00:00:00     
Transferring virtinst-vmlinuz.6qngzC                                            
                                             | 8.6 MB  00:00:00     
Allocating 'virtinst-initrd.gz.X5ZnUW'                                          
                                             |  10 MB  00:00:00     
Transferring virtinst-initrd.gz.X5ZnUW                                          
                                             |  10 MB  00:00:00     
ERROR    internal error: process exited while connecting to monitor: 2019-06-11 
18:35:40.283+0000: Domain id=5 is tainted: host-cpu
kvm_init_vcpu failed: Invalid argument
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start ubuntu-server
otherwise, please restart your installation.

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: qemu (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: virt-manager (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: qemu (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: virt-manager (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1832395

Title:
  "kvm_init_vcpu failed: Invalid argument" error on ARM big.LITTLE
  boards

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1832395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to