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

[BUG] Selecting "VM" during install assumes /dev/vdX device. Should read hardware.nix #56

Open
dwilliam62 opened this issue Jan 14, 2025 · 8 comments

Comments

@dwilliam62
Copy link

I am using proxmox which provides /dev/sdX devices for the VMs

Selecting VM during the install causes grub to fail to find the device. "Bad ioctl for device"

Since it's looking for /dev/vda

@dwilliam62
Copy link
Author

I selected desktop and I still got Grub error but it booted Now on an update/rebuild I get it again
image

@dwilliam62
Copy link
Author

Nevermind. When I first set it up as VM that's the host entry it's still using. Let me try to update the config for hosts/'VM

@Frost-Phoenix
Copy link
Owner

Hi, the vm host was addend by @sleeyax in #15 and tbh I don't think I ever tried to install it, maybe he knows more about this (I don't know much about VMs).
Also I didn't do an install from zero in quite some time know, I think I will try to install the VM host tomorrow or in tow days to see if I could help.

@sleeyax
Copy link
Contributor

sleeyax commented Jan 14, 2025

I added the VM option at the very beginning for testing. Then I never touched it again. So not sure if I can be of help either, it's been so long ago. Maybe we can check the NX docs to see if anything needs to be changed to make it work again.

@dwilliam62
Copy link
Author

Cool. I will also look at the code more closely this week. It is working now that I made the change. Ideally the VM option would also enable VM guest services as well.

  ##QEMU Guest services
  vm.guest-services.enable = true;

But otherwise they behave the same as physical hosts

image

@dwilliam62
Copy link
Author

I work on a similar project for NixOS (and other distros) for Hyprland. I really like what you have done though.
https://github.com/JaKooLit/NixOS-Hyprland

@Frost-Phoenix
Copy link
Owner

Cool. I will also look at the code more closely this week. It is working now that I made the change. Ideally the VM option would also enable VM guest services as well.

  ##QEMU Guest services
  vm.guest-services.enable = true;

What did you change exactly ? Also I can't find the vm.guest-services.enable option, where did you enable it ?

@dwilliam62
Copy link
Author

Cool. I will also look at the code more closely this week. It is working now that I made the change. Ideally the VM option would also enable VM guest services as well.

  ##QEMU Guest services
  vm.guest-services.enable = true;

What did you change exactly ? Also I can't find the vm.guest-services.enable option, where did you enable it ?

This is from my setup I have not added it in to your config yet

{
 lib,
 pkgs,
 config,
 ...
}:
with lib;
let
 cfg = config.vm.guest-services;
in
{
 options.vm.guest-services = {
   enable = mkEnableOption "Enable Virtual Machine Guest Services";
 };

 config = mkIf cfg.enable {
   services.qemuGuest.enable = true;
   services.spice-vdagentd.enable = true;
   services.spice-webdavd.enable = true;
 };
}```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants