-
megaTherion
Hi, Im looking for some idea/help regarding OmniOS. I tried to boot it on a machine which I like to use as VM host yesterday but it halted after CPU/USB initialization.
-
megaTherion
I tried an older image I had somewhere, this one worked immediadly, the one which doesn't work was "omniosce-r151036.iso" - the older image is "omniosce-r151036.iso"
-
megaTherion
I googled and found an older thread regarding a hanging boot on an Intel machine from 9 years ago. But the flags being proposed to add to boot command didnt really help.
-
megaTherion
err, correction the image which worked to me was "omnios-r151052b.iso"
-
m1ari
151052b is the latest release so if that's the one that worked then that shouldnt be a problem
-
megaTherion
I see, yes you're right indeed. Maybe I was confused with the 'ce' because the community edition was mentioned explicitly named in the docs. But nowadays its just "OmniOS" or are there two seperate releases?
-
m1ari
if you're trying to boot on physical hardware I wonder if it's also worth trying to use the usb-dd image rather than the iso
-
megaTherion
ah ok there are two seperate images as well? I usually use something called 'balenaEtcher' and simply use those images to flash (it works very well usually)
-
megaTherion
and another thing I would be interested in is bhyve, how on par is it with the current FreeBSD implementation? Because from what I understood kvm is deprecated and will never be updated again right?
-
m1ari
i think the ce was there historically to distinguish from the older omniti images
-
m1ari
I've not made use of bhyve so don't know much about it and what it supports
-
megaTherion
ls -l
-
megaTherion
oops
-
megaTherion
ok then I'll just have to test if bhyve on OmniOS works like on FreeBSD
-
andyf
megaTherion - bhyve is pretty much on par with current FreeBSD. It's synced periodically.
-
megaTherion
andyf: cool, thanks for the confirmation
-
megaTherion
as I understood there was no way to get KVM more current due the ongoing changes which are very heavily relying on Linux (kernel) ecosystem
-
andyf
Our kernel implementation is a bit different these days, but then we're a different OS so it's not entirely surprising. The userland pieces are fairly similar still.
-
andyf
Right, there are no plans to update KVM now.
-
megaTherion
ok now Im trying to install OmniOS and I've two NVMe's I want to use, creating a pool fails. I guess its disturbed that there is still a gpt disklabel and all on those
-
Woodstock
you can try to clear them with the "zpool labelclear" command
-
megaTherion
no dice
-
tsoome_
fails how?
-
megaTherion
"failed to clear label for /dev/rdsk/....."
-
megaTherion
but I get warnings that the label is corrupt, they had GPT and some btrfs on them I think
-
tsoome_
and zpool create is failing how?
-
megaTherion
its too fast gone... cant read it - what's OmniOS tool for GPT labeling disks?
-
tsoome_
you can use format command for that
-
tsoome_
format -e, then select the disk and then enter verify to see what is there
-
megaTherion
ok, cleared the label with parted on Linux... now Im back on OmniOS shell, format -e / verify gives me "Cant read label"
-
megaTherion
installer still fails with the same issue
-
megaTherion
I tried labeling with format -e / label (select EFI label) this worked. Now I still need an ESP I guess
-
tsoome_
if format agrees you have correct label, you can use zpool create -B to create whole disk pool and ESP for you.
-
tsoome_
or use installer:)
-
megaTherion
the installer fails, I'd really like to use it :D
-
megaTherion
and since Im (yet) unfamiliar with OmniOS commands (my OpenSolaris knowledge is like 10+ years ago)
-
tsoome_
does it fail even with fixed gpt label?
-
megaTherion
yes
-
megaTherion
I want to try from shell, but I need to figure out which device/partition it is
-
tsoome_
ou, ok, thats interesting.
-
tsoome_
well, for whole disk setup you only need disk name without /dev/rdsk, and use zpool create rpool -B c...d0 -- thats d0 at the end of the name.
-
megaTherion
so the disks get detected as c3t001B448B4AF180B4d0 and c6t6479A789800000CDd0
-
megaTherion
format is displaying them and also the correct names (one is a WD 550 blue something and the other is a Crucial nvme)
-
tsoome_
that should create GPT with 256MB ESP on s0 and then most of the space in s1 for rpool and 8MB slice at the end.
-
megaTherion
ah ok so zpool will also create the ESP, didnt know that
-
tsoome_
thats -B
-
tsoome_
without -B, you will just get s0 and s8 (8MB)
-
megaTherion
oh now I get an error, "Boot pool can not have more than one vdev"
-
tsoome_
yes, if you want to present both disk to it, you probably want to use mirror
-
megaTherion
(because I wanted to have those in a striped configuration)
-
megaTherion
nah mirror I didnt want (I've backups elsewhere)
-
tsoome_
so its zpool create -B rpool mirror disk0 disk1
-
tsoome_
yea, boot pool is special there, it can not have multiple vdevs
-
tsoome_
it can be single disk, mirror or raidz
-
tsoome_
there was some work to fix this, but afaik it is still not completed.
-
megaTherion
ok I cheated, maybe it works - I just added the other disk afterwards to the pool
-
tsoome_
it will not. you can install it, you can boot from it, but kernel will panic.
-
tsoome_
botloader can read stripe, but kernel rootfs mount will fail because it has no idea where that second disk is.
-
megaTherion
thats sad :(
-
megaTherion
but I've a bigger problem now, it hasn't detected my NIC :D
-
tsoome_
eh...
-
megaTherion
well RTL8125 2.5gbps
-
megaTherion
indeed not an Intel chip, so it sucks
-
megaTherion
ok I've some other Intel I225-V 2.5gbps card around, I'll just drop this one in it
-
megaTherion
tsoome_: btw. booting the striped rpool works, would be suprised if not - if it works in a sane way then the kernel shouldnt bother where to find that damn vdevs
-
megaTherion
works on FreeBSD too
-
tsoome_
well, your blocks will be spread on both vdevs, yes loader can walk through the disk list (which also has limits), but kernel needs to get boot pool "imported" and root dataset mounted, and for that it needs to find out and build in memory pool config. from disk label it can collect vdev config, but to find next vdev, it needs to browse the disks (as loader also does).
-
tsoome_
however..... I just did realize we could pass device names from loader to kernel, so the kernel can have a bit easier work, but even that does not work for 100%, because if device names are changed, the kernel still needs to scan disks to find out the new reality.
-
megaTherion
rpool ONLINE 0 0 0
-
megaTherion
c1t001B448B4AF180B4d0 ONLINE 0 0 0
-
megaTherion
c4t6479A789800000CDd0 ONLINE 0 0 0
-
megaTherion
well it seems to work, maybe I get crashes later who knows :D
-
tsoome_
ou,
-
tsoome_
thats ok boot?
-
megaTherion
yes it boots
-
tsoome_
let me check if we have any notes around...
-
megaTherion
thats why I couldn't progress with the installer, because I chose both disks and striped configuration (which was a valid choice) but I got the zpool error
-
tsoome_
um, jclulow was some corner case left with disk device scan or did we just forgot to lift the multi vdev restriction on boot pool?
-
jclulow
tsoome_: It would be more accurate to describe the thing that now works as a corner case
-
jclulow
i.e., single vdev pools
-
jclulow
-
fenix
→
BUG 7119: boot should handle change in physical path to ZFS root devices (Closed)
-
tsoome_
ok, so we can drop this restriction.
-
jclulow
Which restriction exactly
-
tsoome_
multi-vdev boot pool is not allowed atm
-
jclulow
oh, booting from a _stripe_?
-
tsoome_
yes.
-
megaTherion
I just did pfexec pkg update & reboot, still works
-
jclulow
I don't think I would ever recommend doing it, but I can't immediately think of a reason it should be banned per se
-
megaTherion
/dev/rdsk/c4t6479A789800000CDd0: NVMe devices are not supported in this version of smartmontools :(
-
tsoome_
cd ..
-
tsoome_
oops:D
-
tsoome_
-
fenix
→ CODE REVIEW 3874: 16983 zpool: we actually do support multi-vdev boot pool (NEW) |
illumos.org/issues/16983
-
megaTherion
btw. are there pkg mirrors in europe?
-
jclulow
I think the primary pkg server is, itself, in Europe
-
jclulow
It's why we need a us-west mirror haha
-
megaTherion
ah I see
-
megaTherion
well now I'll tinker with zones a bit and have to do a lot of reading
-
megaTherion
I created a lipkg branded zone with zadm and added allowed-address / defrouter to the config... it installed but I've no route. So the defrouter config is somehow not effective