Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VirtualMachine Friendliness #27

Closed
Axarva opened this issue Mar 27, 2021 · 22 comments
Closed

VirtualMachine Friendliness #27

Axarva opened this issue Mar 27, 2021 · 22 comments
Labels
bug Something isn't working help wanted Extra attention is needed virtualmachine Issues affected by this setup's incapability to function properly in a virtualmachine environment.

Comments

@Axarva
Copy link
Owner

Axarva commented Mar 27, 2021

Describe the bug
The configuration does not seem to work at all in a vm environment.

To Reproduce
Steps to reproduce the behavior:
Install the configs on a linux virtual machine.

Expected behavior
The configuration to work properly.

Screenshots
None.

Desktop:

  • OS: Any [Bug confirmed for ArchLinux, suspected on other distributions]

Additional context
None.

@Axarva Axarva added bug Something isn't working help wanted Extra attention is needed labels Mar 27, 2021
@Axarva Axarva pinned this issue Mar 27, 2021
@stefanasandei
Copy link

I installed this on an Arch vm but everything is very laggy, I can't even type. I'm using vmware. My virtual machine specs are 4 cores with 16gb of ram.

@Axarva
Copy link
Owner Author

Axarva commented Apr 3, 2021

I wish I could fiddle around with virtualmachines currently, but other personal issues demand my attention at the moment. If anyone could look into this for now, it'd be of great help.

@Axarva Axarva added the virtualmachine Issues affected by this setup's incapability to function properly in a virtualmachine environment. label Apr 24, 2021
@bhugoo
Copy link

bhugoo commented Apr 25, 2021

I also having troubles using a vm. Same situation as @NikolaTesla13, I can open the terminal (takes about forever though) but can't type anything. How can I navigate around and edit files when it logs in directly when I enter username and password?

@iSparsh
Copy link

iSparsh commented Apr 25, 2021

can you try pressing ctrl + alt + f4? it opens a tty screen. Maybe fiddle around from there?

@bhugoo
Copy link

bhugoo commented Apr 25, 2021

Yea it does, I gotta log in again though and it just opens the desktop again, this time totally empty. However I guess this is me being new to linux and not anything related to this project.

@iSparsh
Copy link

iSparsh commented Apr 30, 2021

its gonna be a little difficult, but try if you can open your .xinitrc file. if you can just paste the contents over on pastebin and comment again here..
General points:-
remove these lines from .xinitrc if they exist

if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
  exec startx
fi

if you don't you may wanna check your xsession or xprofile files.

@Axarva
Copy link
Owner Author

Axarva commented May 7, 2021

If you're using startx, could you also make sure that the only contents in your ~/.xinitrc is /usr/bin/xmonad ?

@Kellegram
Copy link
Contributor

I have some theories, will investigate a few things first tho before making any claims, will be back on that.

@Kellegram
Copy link
Contributor

Kellegram commented May 20, 2021

Edit: So I did more investigation and it seems like the issues with performance and freezes have a lot of different reasons. I have issues with VMs on my motherboard so I do not know of the actual performance, I would love if people could test this optimised config on theirs: #47

VirtualBox is really bad, especially its 3D acceleration, without which blur simply does not perform well, many things in picom don't. Picom needs good drivers and acceleration, so in general I would not expect this config to ever run well in a VM, perhaps with a different compositor?

@Nikhil-John
Copy link

@Axarva I have the same problem. After asking for the paru installation where I give yes, it shows failed at build(), aborting and then stops completely. I'm running Arch on Virtual Box.
Is this a problem with Virtual Box?
Will appreciate any fixes..
Thanks

@Kellegram
Copy link
Contributor

@Axarva I have the same problem. After asking for the paru installation where I give yes, it shows failed at build(), aborting and then stops completely. I'm running Arch on Virtual Box.
Is this a problem with Virtual Box?
Will appreciate any fixes..
Thanks

Are you able to show more of the error? This is too vague. I installed this setup on VirtualBox multiple times and it doesn't fail to build, however in general VirtualBox is garbage, especially the 3D Acceleration is non-existent so expect picom to cause lags, you need to use the picom.conf in VM folder that I made for it to be in any way usable.

@Nikhil-John
Copy link

@Kellegram Hi, I'm attaching a video of my installation attempt.

PS: I had installed the NVIDIA tools required as per SavvyNik's video on YoutTube and hence I skipped the video drivers part during the installation.

Thanks

Arch.Linux.VirtualBox.Xmonad.Installation.mp4

@Kellegram
Copy link
Contributor

@Nikhil-John Please install base-devel via pacman then try again.

@Kellegram
Copy link
Contributor

Kellegram commented May 30, 2021

This is an error that can apparently be fixed by running rustup install stable then rustup default stable but I don't get why you would see this error, I never needed to install rustup in the first place.

(Well, I guess I did, but something I install in base arch OR in this asks me to get this).

@Nikhil-John
Copy link

@Kellegram Definitely will try that again. Just to know... if I do rustup install stable and rustup default stable then should I type "no" where it asks to if I need to install Paru? Also before I do the above two commands do I have to install rustup?

P.S: Sorry, I'm new to Arch and has only been a few days...😅

@Axarva
Copy link
Owner Author

Axarva commented May 31, 2021

Hmm, getting the base-devel package should have fixed this. This is getting weird. First it was rofi-git, now paru...

@Nikhil-John
Copy link

This is an error that can apparently be fixed by running rustup install stable then rustup default stable but I don't get why you would see this error, I never needed to install rustup in the first place.

(Well, I guess I did, but something I install in base arch OR in this asks me to get this).

Well this worked actually.. Thing is, I hadn't installed zsh on my system.. So it showed the following and quit out...
May I know what I must do next?
I did install zsh by doing sudo pacman -S zsh. How do I continue with the installation?
Arch Linux XMonad VM

@Nikhil-John
Copy link

Hmm, getting the base-devel package should have fixed this. This is getting weird. First it was rofi-git, now paru...

I had base-devel installed when I installed Arch on my VM... So that shouldn't have been a problem... Then again just to be sure I did a reinstall of it and yet the probelm persisted... It did work upto the point where it asked me to install zsh after doing rustup install stable and rustup default stable as suggested by @Kellegram

@Kellegram
Copy link
Contributor

@Nikhil-John I think I see what's going on. You are using the modified branch aren't you? My pull requests to fix things were only to main branch, my guess is @Axarva did not mirror some changes to the installer to modified branch, hence the issue. Using the installer from main branch is a better idea, although also keep in mind that regardless of which one you choose, unless you can get 3D acceleration to work in virtual box, picom, the compositor, will run quite poorly.

@Nikhil-John
Copy link

Nikhil-John commented May 31, 2021

@Nikhil-John I think I see what's going on. You are using the modified branch aren't you? My pull requests to fix things were only to main branch, my guess is @Axarva did not mirror some changes to the installer to modified branch, hence the issue. Using the installer from main branch is a better idea, although also keep in mind that regardless of which one you choose, unless you can get 3D acceleration to work in virtual box, picom, the compositor, will run quite poorly.

Yea I tried with the modified branch... will try with the main branch next. Will check and report the status.
Thanks 🤗

@Axarva
Copy link
Owner Author

Axarva commented Jun 1, 2021

@Nikhil-John Sorry for the inconvenience. The modified branch should function just fine now. Please do give it a retry if you feel like it, after all, it is just one git pull away.

@Axarva
Copy link
Owner Author

Axarva commented Jul 20, 2021

Well, since I haven’t heard of any more issues with virtualmachines after @Kellegram had a look into it, I will assume this long-standing bug has been fixed. I’ll be closing this, but it will remain a pinned issue on the repo. Thank you everyone who gave a look into this, and specially @Kellegram !

@Axarva Axarva closed this as completed Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed virtualmachine Issues affected by this setup's incapability to function properly in a virtualmachine environment.
Projects
None yet
Development

No branches or pull requests

6 participants