You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/02/23 17:34:47 UTC

[GitHub] [cloudstack] abdelouahabb edited a comment on issue #4715: Cloudstack management asks for rpm command on debian distribution

abdelouahabb edited a comment on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-784374080


   > @abdelouahabb what you report may look like an error but it isn't a failure [1], it checks if the KVM machine is UEFI enabled and looks like whoever added that didn't add a suitable support for Ubuntu. If host addition is failing due to keystore setup, chances are the host does not have kvm or hardware acceleration. I'm not sure if VirtualBox now supported nested VMs with hardware acceleration (vmx or svm supported). Easy way to check is to run `kvm-ok` or `ls /dev/kvm`. The other issue with keystore setup could be lack of entroy in the nested KVM (your Ubuntu VM on VirtualBox), which may be fixed by installed haveged (https://packages.ubuntu.com/bionic/haveged) and try to add host again.
   > 
   > [1] https://github.com/apache/cloudstack/blob/master/server/src/main/java/com/cloud/hypervisor/kvm/discoverer/LibvirtServerDiscoverer.java#L262
   
   - For `haveged` isent useful if it will be added to the docs ? 
   - For Virtualbox, on Windows the GUI dont give access to enable it, I have to use the commandline :  
   ```
   VBoxManage modifyvm CloudStack --nested-hw-virt on 
   ```
   Where `CloudStack` is the name of the Virtual Machine, once enabled : 
   
   ```
   $ ls -l /dev/kvm 
   crw-rw---- 1 root kvm 10, 232 févr. 23 18:18 /dev/kvm
   abdelouahab@alien:~
   $ kvm-ok 
   INFO: /dev/kvm exists
   KVM acceleration can be used
   abdelouahab@alien:~
   $ lsmod | grep kvm
   kvm_intel             217088  0
   kvm                   614400  1 kvm_intel
   irqbypass              16384  1 kvm
   abdelouahab@alien:~
   $ cat /proc/cpuinfo | grep -E 'vmx|svm'
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm pti tpr_shadow flexpriority
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm pti tpr_shadow flexpriority
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org