After installation, XEN does not start vmtoolsd.service
Describe the bug
I am using Ubuntu 18.04 with open-vm-tools installed from the repository. After installation, Xen Version: 4.16.3-preliminary (save-AD) vmtoolsd.service does not start: ● open-vm-tools.service - Service for virtual machines hosted on VMware Downloaded: downloaded (/lib/systemd/system/open-vm-tools.service; enabled; vendor preset Active: inactive (dead) Condition: launch condition failed on Thu 2023-03-30 14:42:50 M; 2 hours 1 minute ago └─ Virtualization condition=vmware not met Documents: http://open-vm-tools.sourceforge.net/about.php
Reproduction steps
After installation, Xen Version: 4.16.3-preliminary (save-AD) vmtoolsd.service does not start
Expected behavior
start vmtoolsd.service
Additional context
No response
@redshift025 It is not clear what your configuration is.
What is you host?
What is the VMware hypervisor being used to run the Ubuntu 18.04 guest?
Where does the Xen hypervisor come into the configuratgion?
Are you running the Ubuntu 18.04 VM on the Xen hypervisor?
@johnwvmw Host - VMware ESXi, 6.5.0, Ubuntu 18.04 guest, Ubuntu 18.04 has XEN installed
The vmtoolsd service status says "launch condition failed" suggesting that the check for a VMware hypervisor did not see the ESXi server and may have noticed the internal running Xen?
What version of systemd is in use? What version of open-vm-tools is installed? What does vmware-check-vm report with Xen running and not running?
The description "Xen Version: 4.16.3-preliminary" suggests that you are trying a newer (maybe beta) Xen release.
Is that the case? Can you provide the URL for the Xen 4.16-3-preliminary package(s)? If so, is the same problem seen with an earlier Xen release?
Sorry for all the questions, but collecting the information that would be needed to reproduce the problem in house. Thanks.
@johnwvmw systemd 237 +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid
open-vm-tools 2:11.0.5-4ub amd64 Open VMware Tools for virtual mac
- Go to the directory with the unpacked installer.
- Check your server or virtual machine for compliance with the minimum system requirements. sudo xen/check-system-requirements.sh --slave
- Run the virtual environment installation script. For example sudo xen/install.sh --slave --virtual machine-number 1
- Upon completion of the script, the message Press [Enter] to reboot will appear.
@redshift025
Were you able to try running the vmware-check-vm command with and with out Xen running?
I have filed an internal PR to attempt to reproduce the failure that you are seeing.
Any additional information that you can provide would be a big help.
Thanks
A collegue has corrected my suggested command.
Collect the output of
-
vmware-checkvm -p -
lscpu | grep -i hyper
- vmware-checkvm -p Not running in a virtual machine.
- lscpu | grep -i hyper Hypervisor vendor: Xen Flags: fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc nopl nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault ssbd ibrs ibpb stibp fsgsbase bmi1 avx2 bmi2 rtm rdseed adx xsaveopt arch_capabilitie