Homestead up command hangs

I have installed laravel homestead in ROSA Desktop Fresh R6.

Box is downloaded and the necessary configurations are done in files like .bash_profile, /etc/hosts and homestead.yaml

And when the command ‘homestead up’ is issued, it boots the virtual machine and in the process, when mounting NFS shared folders, it hangs… Here is the output in the terminal:

prabhuchelladurai@Hershel-Harleen ~ $ homestead up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 80 => 8000 (adapter 1)
    default: 443 => 44300 (adapter 1)
    default: 3306 => 33060 (adapter 1)
    default: 5432 => 54320 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address:
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
[sudo] password for prabhuchelladurai:
sudo: /etc/init.d/nfs-kernel-server: command not found
==> default: Mounting NFS shared folders...

Any suggestions on what could be the flaw? Or any guidance to follow some procedure?



The one thing from the output is clear. There is not command to start NFS daemon. Either it is not installed or perhaps your system is using systemd and you need to issue systemd command to start your NFS.

Hope it helps.



Thanks for the advice and I followed that and got output as:

prabhuchelladurai@Hershel-Harleen ~ $ systemd
Failed to create root cgroup hierarchy: Permission denied
Failed to allocate manager object: Permission denied
prabhuchelladurai@Hershel-Harleen ~ $ sudo systemd
[sudo] password for prabhuchelladurai: 
Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
prabhuchelladurai@Hershel-Harleen ~ $

The process stops at the same point.


I was referring to the virtual machine itself.



Sorry friend. I couldn’t get what you actually mean. Since I am new to Laravel, VM and all, it would be better if you could explain it, step by step, if you would not mind. If I need to change anything, please advice me which file, where it is located, etc., step by step. Pl bear.

Thanks a lot. :slight_smile: