mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 08:00:14 +00:00
try using consistent volume naming for formatting disk
This commit is contained in:
@ -90,6 +90,10 @@ resource "oci_core_instance" "my_compute_instance" {
|
||||
boot_volume_vpus_per_gb = 20 # Highest free tier option
|
||||
}
|
||||
|
||||
launch_options {
|
||||
is_consistent_volume_naming_enabled = true # Sets boot device path to /dev/oracleoci/oraclevda
|
||||
}
|
||||
|
||||
create_vnic_details {
|
||||
subnet_id = oci_core_subnet.my_public_subnet.id # Use the created subnet's ID
|
||||
display_name = "primary_vnic"
|
||||
|
@ -121,14 +121,6 @@ rec {
|
||||
"virtio_gpu"
|
||||
];
|
||||
|
||||
# # Explicitly enable a getty on ttyS0
|
||||
# systemd.services."getty@ttyS0" = {
|
||||
# enable = true;
|
||||
# after = [ "sysinit.target" ];
|
||||
# # Adjust baud rate if needed, but 115200 is standard
|
||||
# # execConfig = [ "- BaudRate=115200" ];
|
||||
# };
|
||||
|
||||
networking.useDHCP = true;
|
||||
# networking = {
|
||||
# defaultGateway = "10.0.0.1";
|
||||
@ -142,7 +134,7 @@ rec {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/sda";
|
||||
device = "/dev/oracleoci/oraclevda"; # Consistent volume naming
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
|
Reference in New Issue
Block a user