-
Notifications
You must be signed in to change notification settings - Fork 44
CentOS 6 and iohyve
pr1ntf edited this page Apr 8, 2016
·
2 revisions
This page is outdated and only should be used for archive purposes. Please see the README for up to date info on how to run CentOS under iohyve.
Try out CentOS 6:
iohyve set centguest loader=grub-bhyve
iohyve set centguest os=centos6
iohyve set centguest ram=512M # CentOS6 Requirement
iohyve install centguest CentOS-6.7-x86_64-netinstall.iso
# Okay whoa, hold on, we can go two ways here.
# There the hacky way, and the more hacky way.
# Option 1: Update a property everytime the kernel is updated.
# Option 2: Do some things, compile things, not worry so much.
# Option 1:
iohyve set centguest os=custom # Do this once
iohyve set centguest autogrub='linux%1s(hd0,msdos1)/vmlinuz-2.6.32-573.el6.x86_64%1sroot=/dev/mapper/VolGroup-lv_root\ninitrd%1s(hd0,msdos1)/initramfs-2.6.32-573.el6.x86_64.img\nboot\n'
# I know, right? Do that everytime you update your Linus kernel.
# Option 2:
iohyve set centguest os=default
iohyve start centguest # Do some things
iohyve console centos guest
# Find the kernel and things to boot the first time.
grub>ls (hd0,msdos1)/
lost+found/ grub/ efi/ System.map-2.6.32-504.el6.x86_64 config-2.6.32-504.el6.x
86_64 symvers-2.6.32-504.el6.x86_64.gz vmlinuz-2.6.32-504.el6.x86_64 initramfs-
2.6.32-504.el6.x86_64.img
grub>linux (hd0,msdos1)/vmlinuz-2.6.32-504.el6.x86_64 root=/dev/mapper/VolGroup-lv_root
grub>initrd (hd0,msdos1)/initramfs-2.6.32-504.el6.x86_64.img
grub>boot
# Stuff may scroll across screen
CentOS release 6.7 (Final)
Kernel 2.6.32-573.el6.x86_64 on an x86_64 # Don't panic
localhost.localdomain login: root # Okay panic a little
# Install Grub2
[root@localhost ~]# yum install wget bison gcc flex nano
[root@localhost ~]# wget ftp://ftp.gnu.org/gnu/grub/grub-2.00.tar.gz
[root@localhost ~]# tar -xzf grub-2.00.tar.gz
[root@localhost ~]# cd grub-2.00
[root@localhost grub-2.00]# ./configure
[root@localhost grub-2.00]# make install
[root@localhost grub-2.00]# /usr/local/sbin/grub-mkconfig -o /boot/grub/grub.cfg
[root@localhost grub-2.00]# /usr/local/sbin/grub-install /dev/sda
[root@localhost grub-2.00]# init 0
# Exit the terminal (To make sure) [Enter] [Enter] (~ ~ .)
iohyve destroy centos # Double tap
iohyve set centos6 os=centos6 # Set it back.
iohyve start centos # "Should" work.
How-to journals:
- USB 3.0 PCI Controller Pass through
- Installation of iohyve on HardenedBSD
- Running Windows Under iohyve
- Using iohyve over WiFi
- X11 Forwarding with Kali Linux and bhyve
- Installing CentOS7 on FreeNAS
Documentation:
Status pages:
Updating:
Contributing:
Archives: