diff --git a/src/dragonball/src/vm/mod.rs b/src/dragonball/src/vm/mod.rs index 39f5483e9..4c4a8a7b1 100644 --- a/src/dragonball/src/vm/mod.rs +++ b/src/dragonball/src/vm/mod.rs @@ -520,6 +520,7 @@ impl Vm { let mem_type = self.vm_config.mem_type.clone(); let mut mem_file_path = String::from(""); if mem_type == "hugetlbfs" { + mem_file_path = self.vm_config.mem_file_path.clone(); let shared_info = self.shared_info.read() .expect("Failed to determine if instance is initialized because shared info couldn't be read due to poisoned lock"); mem_file_path.push_str("/dragonball/");