bhyve centos7

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

bhyve centos7

Eric Melville-3
I am trying to run Centos7 under bhyve. Centos6 works great. Centos7 gets problematic because of XFS.

Since grub2-bhyve does not understand XFS, and for some bizarre reason Centos has no ability to change partitioning or file system types in the textual installer, I took more drastic measures. One of which was to boot the Centos7 installer via Virtual Box and set up a VMDK with ext4, then pull that VMDK and convert it ro raw with qemu-img. At least I was able to get a kernel loaded and booting, but then it failed to mount the root file system no matter what options I specified.

Has anyone else gotten further?
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: bhyve centos7

The Doctor
On Tue, Jan 24, 2017 at 01:48:49AM -0800, Eric Melville wrote:
> I am trying to run Centos7 under bhyve. Centos6 works great. Centos7 gets problematic because of XFS.
>
> Since grub2-bhyve does not understand XFS, and for some bizarre reason Centos has no ability to change partitioning or file system types in the textual installer, I took more drastic measures. One of which was to boot the Centos7 installer via Virtual Box and set up a VMDK with ext4, then pull that VMDK and convert it ro raw with qemu-img. At least I was able to get a kernel loaded and booting, but then it failed to mount the root file system no matter what options I specified.
>
> Has anyone else gotten further?

I did install Centos 7 with grub2-bhyve and with UEFI

Not using XFS in FreeBsd 11.

And it is still working.

Same with current versions od Debian, Fedora and Ubuntu.

> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[hidden email]"

--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising!
http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
Birthdate 29 Jan 1969 Redhill Surrey England
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: bhyve centos7

Eric Melville-3
The issue is not XFS support in FreeBSD, the issue is that Centos7 wants an XFS root and grub2-bhyve is unable to read the kernel or other boot files from the guest image. Centos6, Debian, and every other distribution I have tried is fine.

How did you install?

> On Jan 24, 2017, at 4:33 AM, The Doctor <[hidden email]> wrote:
>
> I did install Centos 7 with grub2-bhyve and with UEFI
>
> Not using XFS in FreeBsd 11.
>
> And it is still working.
>
> Same with current versions od Debian, Fedora and Ubuntu.

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: bhyve centos7

The Doctor
On Tue, Jan 24, 2017 at 08:56:23AM -0800, Eric Melville wrote:

> The issue is not XFS support in FreeBSD, the issue is that Centos7 wants an XFS root and grub2-bhyve is unable to read the kernel or other boot files from the guest image. Centos6, Debian, and every other distribution I have tried is fine.
>
> How did you install?
>
> > On Jan 24, 2017, at 4:33 AM, The Doctor <[hidden email]> wrote:
> >
> > I did install Centos 7 with grub2-bhyve and with UEFI
> >
> > Not using XFS in FreeBsd 11.
> >
> > And it is still working.
> >
> > Same with current versions od Debian, Fedora and Ubuntu.
>


There are 2 moethods.

1)  in the virtualization page you will see the grub-bhyve method

2)  There is a bhyve/UEFI method.

--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising!
http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
Birthdate 29 Jan 1969 Redhill Surrey England
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: bhyve centos7

Boris Samorodov-2
In reply to this post by Eric Melville-3
Hi!

24.01.2017 12:48, Eric Melville пишет:

> Since grub2-bhyve does not understand XFS

Are you sure? This is one instance:
-----
% cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)
% df -T
Filesystem              Type     1K-blocks     Used Available Use%
Mounted on
/dev/mapper/centos-root xfs       19351552 13931836   5419716  72% /
devtmpfs                devtmpfs   3995416        0   3995416   0% /dev
tmpfs                   tmpfs      4005368        0   4005368   0% /dev/shm
tmpfs                   tmpfs      4005368   278792   3726576   7% /run
tmpfs                   tmpfs      4005368        0   4005368   0%
/sys/fs/cgroup
/dev/vda1               xfs         508588   295664    212924  59% /boot
tmpfs                   tmpfs       801076        0    801076   0%
/run/user/1000
-----

The host is HEAD, but CentOS runs on it, well, since the beginning
of 2016. And I use sysutils/vm-bhyve.

Here is the conf:
-----
guest="linux"
loader="grub"
cpu=8
memory=8G
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
uuid="XXX"
network0_mac="XXX"
grub_run_partition="msdos1"
grub_run_dir="/grub2"
-----

Last two lines differ from v-bhyve docs.

HTH
--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: bhyve centos7

Eric Melville-3
No I am not sure, but a web search reveals that I am definitely not the only one with this problem, and booting from XFS sounds problematic if not wholly unsupported. Did you install CentOS 7 directly or update to it?

I think using bhyve-uefi or perhaps vm-bhyve may be the answer. The FreeBSD handbook explains how to install via serial but CentOS gives no disk configuration options via serial.

> Are you sure? This is one instance:
> -----
> % cat /etc/centos-release
> CentOS Linux release 7.2.1511 (Core)
> % df -T
> Filesystem              Type     1K-blocks     Used Available Use% Mounted on
> /dev/mapper/centos-root xfs       19351552 13931836   5419716  72% /
> devtmpfs                devtmpfs   3995416        0   3995416   0% /dev
> tmpfs                   tmpfs      4005368        0   4005368   0% /dev/shm
> tmpfs                   tmpfs      4005368   278792   3726576   7% /run
> tmpfs                   tmpfs      4005368        0   4005368   0% /sys/fs/cgroup
> /dev/vda1               xfs         508588   295664    212924  59% /boot
> tmpfs                   tmpfs       801076        0    801076   0% /run/user/1000
> -----
>
> The host is HEAD, but CentOS runs on it, well, since the beginning
> of 2016. And I use sysutils/vm-bhyve.
>
> Here is the conf:
> -----
> guest="linux"
> loader="grub"
> cpu=8
> memory=8G
> network0_type="virtio-net"
> network0_switch="public"
> disk0_type="virtio-blk"
> disk0_name="disk0.img"
> uuid="XXX"
> network0_mac="XXX"
> grub_run_partition="msdos1"
> grub_run_dir="/grub2"
> -----
>
> Last two lines differ from v-bhyve docs.
>
> HTH
> --
> WBR, Boris Samorodov (bsam)
> FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[hidden email]"

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: bhyve centos7

Boris Samorodov-2
Please, do not use top-posting.

31.01.2017 04:28, Eric Melville пишет:

>> Are you sure? This is one instance:
>> -----
>> % cat /etc/centos-release
>> CentOS Linux release 7.2.1511 (Core)
>> % df -T
>> Filesystem              Type     1K-blocks     Used Available Use% Mounted on
>> /dev/mapper/centos-root xfs       19351552 13931836   5419716  72% /
>> devtmpfs                devtmpfs   3995416        0   3995416   0% /dev
>> tmpfs                   tmpfs      4005368        0   4005368   0% /dev/shm
>> tmpfs                   tmpfs      4005368   278792   3726576   7% /run
>> tmpfs                   tmpfs      4005368        0   4005368   0% /sys/fs/cgroup
>> /dev/vda1               xfs         508588   295664    212924  59% /boot
>> tmpfs                   tmpfs       801076        0    801076   0% /run/user/1000
>> -----
>>
>> The host is HEAD, but CentOS runs on it, well, since the beginning
>> of 2016. And I use sysutils/vm-bhyve.
>>
>> Here is the conf:
>> -----
>> guest="linux"
>> loader="grub"
>> cpu=8
>> memory=8G
>> network0_type="virtio-net"
>> network0_switch="public"
>> disk0_type="virtio-blk"
>> disk0_name="disk0.img"
>> uuid="XXX"
>> network0_mac="XXX"
>> grub_run_partition="msdos1"
>> grub_run_dir="/grub2"
>> -----
>>
>> Last two lines differ from v-bhyve docs.

 > No I am not sure, but a web search reveals that I am definitely not
 > the only one with this problem, and booting from XFS sounds
 > problematic if not wholly unsupported. Did you install CentOS 7
 > directly or update to it?

I installed directly CentOS-7.1 (CentOS-7-x86_64-Minimal-1503-01.iso).
I tried the newest version with CentOS-7-x86_64-Minimal-1611.iso and
it really failed to load saying "not a correct XFS inode". I rechecked
and CentOS-7-x86_64-Minimal-1503-01.iso works fine.

 > I think using bhyve-uefi or perhaps vm-bhyve may be the answer.

vm-bhyve is just shell scripts for bhyve, it does not add any
functionality. However it make life more comfortable. ;-)

As for uefi, I tried it for graphics UI (ex. Windows) and it really
works fine.

 > The
 > FreeBSD handbook explains how to install via serial but CentOS gives
 > no disk configuration options via serial.

--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: bhyve centos7

Boris Samorodov-2
In reply to this post by Eric Melville-3
31.01.2017 04:28, Eric Melville пишет:
> No I am not sure, but a web search reveals that I am definitely not
> the only one with this problem, and booting from XFS sounds
> problematic if not wholly unsupported.

I've found a bug report for grub2 which may be related:
http://savannah.gnu.org/bugs/?48645

--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: bhyve centos7

Eric Melville-3
In reply to this post by Boris Samorodov-2
> I installed directly CentOS-7.1 (CentOS-7-x86_64-Minimal-1503-01.iso).
> I tried the newest version with CentOS-7-x86_64-Minimal-1611.iso and
> it really failed to load saying "not a correct XFS inode". I rechecked
> and CentOS-7-x86_64-Minimal-1503-01.iso works fine.

Thanks, this is exactly what I needed. It looked like 1611 was the only Centos7 available for download. After finally finding a 1503 copy I was able to install and update to 1611.

> vm-bhyve is just shell scripts for bhyve, it does not add any
> functionality. However it make life more comfortable. ;-)

Sure, but the right combination of operations will make it work and that combination may have been more apparent via vm-bhyve. I still think that installing 1611 to ext4 would avoid the XFS problem, bewildered that Centos does not offer any partitioning options via command line install.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"