From c38ae4ae8a4e0920d2bea78a7100b464fd93198e Mon Sep 17 00:00:00 2001 From: Arthur Date: Sun, 28 Jan 2024 20:40:59 -0500 Subject: [PATCH] feat: pass nvme disks into infra vm --- README.md | 7 +++- okd/vms/xml/infra-1.xml | 79 +++++++--------------------------------- okd/vms/xml/infra-2.xml | 73 ++++++++----------------------------- okd/vms/xml/infra-3.xml | 81 +++++++---------------------------------- 4 files changed, 48 insertions(+), 192 deletions(-) diff --git a/README.md b/README.md index 4cfd5b47d..0b205b581 100644 --- a/README.md +++ b/README.md @@ -207,10 +207,15 @@ sudo virsh dumpxml worker-6 > worker-6.xml #### OKD Longhorn Secondary Disk Setup ```bash +# https://askubuntu.com/questions/144894/add-physical-disk-to-kvm-virtual-machine +sudo mkfs.ext4 -L longhorn /dev/nvme0n1 +sudo mkfs.ext4 -L longhorn1 /dev/nvme1n1 + +# Sandbox sudo mkfs.ext4 -L longhorn /dev/vdb sudo mkfs.ext4 -L longhorn1 /dev/vdc -# Pre Machine Config +# Pre Machine Config (Sandbox) sudo su echo "/dev/vdb /var/mnt/longhorn auto nofail" > /etc/fstab sudo reboot diff --git a/okd/vms/xml/infra-1.xml b/okd/vms/xml/infra-1.xml index 74daba0f1..8b5818819 100644 --- a/okd/vms/xml/infra-1.xml +++ b/okd/vms/xml/infra-1.xml @@ -1,4 +1,4 @@ - + infra-1 b590d381-7c39-4665-be05-b0a5f536cc2f @@ -9,9 +9,6 @@ 7340032 7340032 4 - - /machine - hvm @@ -39,182 +36,132 @@ /usr/libexec/qemu-kvm - - + -
- - - - + + + -
- + - - + -
-
- - - + -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
- - - - + - - - - +
- - - - - - + +