try using consistent volume naming for formatting disk

This commit is contained in:
Noah Masur
2025-07-03 18:34:09 -06:00
parent c5ad3c66ea
commit 5e2fca427d
2 changed files with 5 additions and 9 deletions

View File

@ -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"

View File

@ -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 = {