# Nixos as vmware guest

**URL:** https://discourse.nixos.org/t/nixos-as-vmware-guest/7441
**Category:** Help
**Created:** [May 31, 2020, 9:05am UTC](https://discourse.nixos.org/t/nixos-as-vmware-guest/7441 "2020-05-31T09:05:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bikallem](https://discourse.nixos.org/user_avatar/discourse.nixos.org/bikallem/32/4051_2.png) [@bikallem](https://discourse.nixos.org/u/bikallem)
#### Post date: [May 31, 2020, 9:05am UTC](https://discourse.nixos.org/t/nixos-as-vmware-guest/7441/1 "2020-05-31T09:05:16Z")

</div>

Hi,

I am new to nixos. I managed to install and run nixos (latest) as vmware guest. However, my mouse integration doesn’t seem to be working, i.e. I need to press ‘Ctrl+Alt’ to release mouse if I want to move out.

More importantly, ‘Fit guest now’ option is greyed out. I have enabled `virtualisation.vmware.guest.enable = true;` in my configuration.nix however that doesn’t seem to solve the issue. Any pointers?

Warm regards  
Bikal

---

<div class="post-metadata">

### Author: ![dalto](https://discourse.nixos.org/user_avatar/discourse.nixos.org/dalto/32/2176_2.png) [@dalto](https://discourse.nixos.org/u/dalto)
#### Post date: [May 31, 2020, 12:31pm UTC](https://discourse.nixos.org/t/nixos-as-vmware-guest/7441/2 "2020-05-31T12:31:23Z")

</div>

I import this into my VMs and it works without any further configuration:

```auto
{
    virtualisation.vmware.guest.enable = true;
}

```

Unless I am missing something, that is exactly what you have already.

Which DE/WM are you using? How complicated is your configuration.nix, is it possible there is something strange going on in there? Can we see it?

---

<div class="post-metadata">

### Author: ![megapro17](https://discourse.nixos.org/user_avatar/discourse.nixos.org/megapro17/32/1645_2.png) [@megapro17](https://discourse.nixos.org/u/megapro17)
#### Post date: [September 1, 2023, 10:46pm UTC](https://discourse.nixos.org/t/nixos-as-vmware-guest/7441/3 "2023-09-01T22:46:49Z")

</div>

Should I necropost or not, but after adding this line guest tools seems to be installed, mouse is grabbed and a vmware- tools are avaliable, but screen is not resizing, as well as fit guest now option is doing nothing  
I have a Nixos install with plasma without any changes

---

<div class="post-metadata">

### Author: ![codethief](https://discourse.nixos.org/user_avatar/discourse.nixos.org/codethief/32/31696_2.png) [@codethief](https://discourse.nixos.org/u/codethief)
#### Post date: [April 5, 2025, 3:11pm UTC](https://discourse.nixos.org/t/nixos-as-vmware-guest/7441/4 "2025-04-05T15:11:21Z")

</div>

I’m having the same issue with auto-fitting/resizing as @bikallem and @megapro17. Guest tools (aka open-vm-tools) are installed and running, as confirmed by `systemctl status vmware.service`, and I did make sure to add enough video memory to my VM as per [open-vm-tools does not resize the display on Ubuntu 15.04 · Issue #54 · vmware/open-vm-tools · GitHub](https://github.com/vmware/open-vm-tools/issues/54#issuecomment-233053305) . However “Fit guest now” remains grayed out and the screen resolution does not adjust automatically.

What I noticed, though, is that `xrandr` will output a different “preferred” resolution (marked with the plus +), depending on the VM’s window size. It just doesn’t switch to that resolution automatically. Running `xrandr --output <output name> --preferred` changes that. It’s still annoying to run that command manually but, hey, at least now I can bind it to some key in i3wm.

EDIT: I have created a ticket here: [open-vm-tools: Auto-resizing / auto-adjusting the guest resolution to VMware window size does not work · Issue #396378 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/issues/396378)
