在xhyve中运行RHEL/CentOS
在xhyve中运行CentOS 7
dd if=/dev/zero of=centos7.img bs=1g count=16dd if=/dev/zero bs=2k count=1 of=tmp.iso
dd if=CentOS-7-x86_64-Minimal-1810.iso bs=2k skip=1 >> tmp.iso
hdiutil attach tmp.isocp /Volumes/CentOS\ 7\ x86_64/isolinux/{vmlinuz,initrd.img} ~/vms/touch install_centos.sh
chmod +x install_centos.sh#!/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,rhel-8.0-beta-1-x86_64-dvd.iso"
IMG_HDD="-s 4,virtio-blk,rhel8.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"
sudo xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD -f kexec,$KERNEL,$INITRD,"$CMDLINE"在xhyve中运行RHEL 8 (未成功)
参考
Last updated