openstack-config: enable tty1
This appears to be the "default" console for openstack, but my evidence is experience on just one provider.
This commit is contained in:
parent
1c0b76b5c4
commit
0a086bf7bf
|
@ -13,7 +13,10 @@ in
|
||||||
../profiles/qemu-guest.nix
|
../profiles/qemu-guest.nix
|
||||||
|
|
||||||
# Note: While we do use the headless profile, we also explicitly
|
# Note: While we do use the headless profile, we also explicitly
|
||||||
# turn on the serial console on ttyS0 below.
|
# turn on the serial console on tty1 below.
|
||||||
|
# Note that I could not find any documentation indicating tty1 was
|
||||||
|
# the correct choice. I picked tty1 because that is what one
|
||||||
|
# particular host was using.
|
||||||
../profiles/headless.nix
|
../profiles/headless.nix
|
||||||
|
|
||||||
# The Openstack Metadata service exposes data on an EC2 API also.
|
# The Openstack Metadata service exposes data on an EC2 API also.
|
||||||
|
@ -36,13 +39,13 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.growPartition = true;
|
boot.growPartition = true;
|
||||||
boot.kernelParams = [ "console=ttyS0" ];
|
boot.kernelParams = [ "console=tty1" ];
|
||||||
boot.loader.grub.device = if (!cfg.efi) then "/dev/vda" else "nodev";
|
boot.loader.grub.device = if (!cfg.efi) then "/dev/vda" else "nodev";
|
||||||
boot.loader.grub.efiSupport = cfg.efi;
|
boot.loader.grub.efiSupport = cfg.efi;
|
||||||
boot.loader.grub.efiInstallAsRemovable = cfg.efi;
|
boot.loader.grub.efiInstallAsRemovable = cfg.efi;
|
||||||
boot.loader.timeout = 1;
|
boot.loader.timeout = 1;
|
||||||
boot.loader.grub.extraConfig = ''
|
boot.loader.grub.extraConfig = ''
|
||||||
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
|
serial --unit=1 --speed=115200 --word=8 --parity=no --stop=1
|
||||||
terminal_output console serial
|
terminal_output console serial
|
||||||
terminal_input console serial
|
terminal_input console serial
|
||||||
'';
|
'';
|
||||||
|
@ -59,8 +62,8 @@ in
|
||||||
|
|
||||||
users.users.root.initialPassword = "foobar";
|
users.users.root.initialPassword = "foobar";
|
||||||
|
|
||||||
# Enable the serial console on ttyS0
|
# Enable the serial console on tty1
|
||||||
systemd.services."serial-getty@ttyS0".enable = true;
|
systemd.services."serial-getty@tty1".enable = true;
|
||||||
|
|
||||||
# Force getting the hostname from Openstack metadata.
|
# Force getting the hostname from Openstack metadata.
|
||||||
networking.hostName = mkDefault "";
|
networking.hostName = mkDefault "";
|
||||||
|
|
Loading…
Reference in a new issue