mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-13 13:46:46 +00:00
Merge pull request #5769 from jongwu/check_host_arm
kata-ctl: add host check for aarch64
This commit is contained in:
commit
c12bb5008d
@ -8,8 +8,18 @@ pub use arch_specific::*;
|
|||||||
|
|
||||||
mod arch_specific {
|
mod arch_specific {
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
|
use std::path::Path;
|
||||||
|
|
||||||
|
const KVM_DEV: &str = "/dev/kvm";
|
||||||
|
|
||||||
pub fn check() -> Result<()> {
|
pub fn check() -> Result<()> {
|
||||||
unimplemented!("Check not implemented in aarch64")
|
println!("INFO: check: aarch64");
|
||||||
|
if Path::new(KVM_DEV).exists() {
|
||||||
|
println!("Kata Containers can run on this host\n");
|
||||||
|
} else {
|
||||||
|
eprintln!("WARNING: Kata Containers can't run on this host as lack of virtulization support\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user