Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, lib, pkgs, ... }:
- {
- imports = [
- <nixpkgs/nixos/modules/profiles/qemu-guest.nix>
- ];
- networking.hostName = "xen-testing";
- system.stateVersion = "19.09";
- virtualisation.xen = {
- enable = true;
- package = pkgs.xenPackages.xen_4_10-light;
- package-qemu = pkgs.qemu_xen_4_10-light;
- domain0MemorySize = 0;
- bootParams = [
- "noreboot" "console=com1,vga" "com1=115200,8n1"
- ];
- trace = true;
- };
- boot.kernelParams = [
- "console=hvc0" "loglevel=8" "initcall_debug"
- ];
- boot.loader = {
- efi.canTouchEfiVariables = true;
- timeout = 3;
- grub = {
- enable = true;
- device = "nodev";
- efiSupport = true;
- extraConfig = ''
- serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
- '';
- };
- };
- boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "ehci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
- boot.kernelModules = [ "kvm-amd" ];
- boot.extraModulePackages = [ ];
- fileSystems."/" =
- { label = "xen-root";
- fsType = "ext4";
- };
- fileSystems."/boot" =
- { label = "xen-sys";
- fsType = "vfat";
- };
- swapDevices =
- [ { label = "xen-swap"; }
- ];
- nix.maxJobs = lib.mkDefault 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement