[OPEN] Service virtual-machine-check.service hangs

Post Reply
pavel
Crewman
Posts: 3
Joined: Tue Feb 23, 2021 9:49 am

[OPEN] Service virtual-machine-check.service hangs

Post by pavel »

I installed ArcoLinux as a virtual machine in VMware Workstation 16 Pro on Windows 10 1803. After reboot, the VM hangs on trying to start the service virtual-machine-check.service (checks if installed on virtual machine or not).
The only work around is to boot again into live distro, mount the partition with ArcoLinux, then chroot and afterwords disable the service:

Code: Select all

$ sudo mount /dev/sda1 /mnt
$ sudo arch-chroot /mnt
# systemctl disable virtual-machine-check.service
After that boots the VM without problems.
I would be happy with this solution (workaround), but after updating the system with "sudo pacman -Syu" the service gets enabled again :(
Does anybody also have this experience with ArcoLinux running in a VM?
Does anybody know why the service is hanging at boot? Is it a timing issue?

The service does not much, it only calls one script:

Code: Select all

$ cat /usr/lib/systemd/system/virtual-machine-check.service
[Unit]
Description=checks if installed on virtual machine or not
Before=multi-user.target display-manager.service

[Service]
Type=oneshot
ExecStart=/usr/local/bin/arcolinux-virtual-machine-check

[Install]
WantedBy=multi-user.target

When the VM already runs, the script runs without a problem:

Code: Select all

[pavel@arch-vm ~]$ sudo /usr/local/bin/arcolinux-virtual-machine-check
[sudo] Passwort für pavel: 
[pavel@arch-vm ~]$ echo $?
0
Also the script, which is used by /usr/local/bin/arcolinux-virtual-machine-check to do the check, runs well:

Code: Select all

[pavel@arch-vm ~]$ sudo systemd-detect-virt
vmware
[pavel@arch-vm ~]$

User avatar
erikdubois
Captain
Posts: 3870
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Service virtual-machine-check.service hangs

Post by erikdubois »

There is no reason for it to hang.

I will give it some more thought.

Virtualbox is our standard vm machine that we support and use all the time.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

pavel
Crewman
Posts: 3
Joined: Tue Feb 23, 2021 9:49 am

Re: [OPEN] Service virtual-machine-check.service hangs

Post by pavel »

I removed "quiet" kernel parameter before boot and made a screenshot after a while. I could post it, but don't know how.
The boot hangs on message:

Code: Select all

[***    ] A start job is running for checks if installed on virtual machine or not (5min 21s / no limit)
As I said, the only solution for me at the moment is to disable the service.
Last edited by pavel on Tue Feb 23, 2021 11:38 am, edited 1 time in total.

User avatar
erikdubois
Captain
Posts: 3870
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Service virtual-machine-check.service hangs

Post by erikdubois »

I will see if I can get hold of that vmware version on W10.

What version are you using exactly?
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

pavel
Crewman
Posts: 3
Joined: Tue Feb 23, 2021 9:49 am

Re: [OPEN] Service virtual-machine-check.service hangs

Post by pavel »

Windows 10 Enterprise, Version 1803 (Build 17134.1967)

Product: VMware® Workstation 16 Pro
Version: 16.1.0 build-17198959

User avatar
erikdubois
Captain
Posts: 3870
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Service virtual-machine-check.service hangs

Post by erikdubois »

Here is what I did.



No issues occurred.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

pavel
Crewman
Posts: 3
Joined: Tue Feb 23, 2021 9:49 am

Re: [OPEN] Service virtual-machine-check.service hangs

Post by pavel »

I activated sshd on that VM. After boot stopped on virtual-machine-check.service, I logged in via ssh from a different Linux VM to see the running processes:

root 273 0.0 0.0 7688 3576 ? Ss 16:35 0:00 /bin/bash /usr/local/bin/arcolinux-virtual-machine-check
root 430 0.0 0.1 17248 5944 ? S 16:35 0:00 \_ systemctl start vmtoolsd.service

The script /usr/local/bin/arcolinux-virtual-machine-check (the one started by virtual-machine-check.service) was hanging and waiting for vmtoolsd.service to start.
As I killed the process 430, the ArcoLinux VM could boot.
It looks to me like a timing problem. Does virtual-machine-check.service start too early?

Post Reply

Return to “Installation issues of ArcoLinux iso”