From a2b0b7f9f1f6b81e0b406a70c65f2a683d6c5a6a Mon Sep 17 00:00:00 2001 From: Bryon Baker Date: Sun, 25 Aug 2019 09:14:26 +1000 Subject: [PATCH 1/2] Added Centos scrtipts to buiild and run Centos. --- centos/install_centos.sh | 11 +++++++++++ centos/xhyverun-centos.sh | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 centos/install_centos.sh create mode 100755 centos/xhyverun-centos.sh diff --git a/centos/install_centos.sh b/centos/install_centos.sh new file mode 100755 index 0000000..eafbf2a --- /dev/null +++ b/centos/install_centos.sh @@ -0,0 +1,11 @@ +#!/bin/bash +KERNEL="vmlinuz" +INITRD="initrd.img" +CMDLINE="earlyprintk=serial console=ttyS0 acpi=off sshd=1" +MEM="-m 1G" +NET="-s 2:0,virtio-net" +IMG_CD="-s 3,ahci-cd,CentOS-7-x86_64-Minimal-1810.iso" +IMG_HDD="-s 4,virtio-blk,hdd.img" +PCI_DEV="-s 0:0,hostbridge -s 31,lpc" +LPC_DEV="-l com1,stdio" +xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD -f kexec,$KERNEL,$INITRD,"$CMDLINE" diff --git a/centos/xhyverun-centos.sh b/centos/xhyverun-centos.sh new file mode 100755 index 0000000..cba1c7d --- /dev/null +++ b/centos/xhyverun-centos.sh @@ -0,0 +1,12 @@ +#!/bin/bash +KERNEL="vmlinuz-3.10.0-957.el7.x86_64" +INITRD="initramfs-3.10.0-957.el7.x86_64.img" +CMDLINE="root=UUID=ad6a4283-c0a1-445a-9b56-629d9aff7aba ro crashkernel=auto acpi=off console=ttyS0 LANG=en_US.UTF-8" +MEM="-m 1G" +#SMP = "- C 2" # number of processors +NET="-s 2:0,virtio-net" +IMG_HDD="-s 4,virtio-blk,hdd.img" +PCI_DEV="-s 0:0,hostbridge -s 31,lpc" +LPC_DEV="-l com1,stdio" +UUID="-U 0C1F891D-7C67-4391-8C22-7A31F27EF8A3" +xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD $UUID -f kexec,$KERNEL,$INITRD,"$CMDLINE" From abdf601746e5f640ae5028965d9680dae960695f Mon Sep 17 00:00:00 2001 From: Bryon Baker Date: Sun, 25 Aug 2019 23:01:04 +1000 Subject: [PATCH 2/2] Updated gitignore. --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index e4f0a8d..d085239 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ DerivedData cscope.* tags TAGS +*.code-workspace \ No newline at end of file