-
lundman
is there some docs for how omnios/apache is administrated now? It appears to use privileges (error EACCES [file_dac_write]) outside of any <Directory> entry in httpd.conf
-
antranigv
say I have a snapshot of a zone named rpool/zones/ldap0@zadm__pre_ldapmodify, and I would like to deploy a new zone from that snapshot named ldap1... what would be the most OmniOS way of doing that?
-
ptribble
The official way would be to use 'zoneadm clone' instead of 'zoneadm install'
-
ptribble
Configure as normal, and then something like
-
ptribble
zoneadm -z ldap1 clone -s rpool/zones/ldap0@zadm__pre_ldapmodify ldap0
-
ptribble
There are all sorts of caveats in documentation about the state of the source zone (you're supposed to halt it)
-
antranigv
ptribble I had no idea that I'm supposed to halt it
-
ptribble
I can't see that checked anywhere in code, though
-
ptribble
And that might just be a documentation leftover from when zones were on UFS and you didn't have the atomicity of a zfs snapshot
-
ptribble
Hm. I think zoneadm checks, but it's not clear why it's necessary
-
ptribble
I never used the formal clone functionality; we had a hacky way of replicating zones from a snapshot via zfs send/recv instead, which avoids all the afs dependencies you have with clones, and works for building zones on remote machines as well as local
-
antranigv
I wonder if zoneadm clone does send/recv or clone...
-
antranigv
okay, time to play around
-
antranigv
(I feel like the QA of illumos :P)
-
andyf
antranigv - that issue you raised about Hyper-V under Vultr is bizarre
-
antranigv
andyf I just installed it again
-
antranigv
andyf and I got the output
-
antranigv
andyf sending to the issue now
-
andyf
Nice, let's find out what's going on!
-
antranigv
and btw... I tried running it on my other machine... is there a reason for cpuid to print the output forever? :P
-
antranigv
it's been going for 3 minutes xD
-
andyf
Yes, there are some bugs in cpu emulation
-
andyf
I did fix one bug recently in bhyve that would cause that
-
antranigv
got it! it is running on bhyve... the other machine, that is
-
andyf
ah, probably illumos 16223 (fenix)
-
fenix
BUG 16223: bhyve returns bogus cpuid 8000_001D leaf (Closed)
-
fenix
-
antranigv
That's affected in FreeBSD as well, then.
-
andyf
Yes, the bug is there too
-
andyf
I have not sent it their way yet.
-
antranigv
-
andyf
Ok, do you see the line in the output you shared for CPUID leaf 4000000?
-
andyf
CPUID 40000000:00 = 40000005 7263694d 666f736f 76482074 | ...@Microsoft Hv
-
antranigv
Yup
-
andyf
The system is identifying itself as Hyper-V
-
antranigv
that is so weird
-
antranigv
I did confirm with support that it's KVM, and the BSD Loader says KVM as well
-
andyf
-
andyf
For KVM, we'd see KVMKVMKVM or TCGTCGTCGTCG
-
andyf
Oh, BSD is showing KVM? Interesting.
-
andyf
If you have a conversation going with support, it would be worth sharing that output and asking them about the hypervisor signature!
-
antranigv
andyf sir yes sir... I'll open a ticket again
-
andyf
In the illumos loader screenshot you added it does have QEMU and KVM in the smbios information.
-
andyf
-
andyf
Which makes it sound like they are running QEMU/KVM but hacking in some Hyper-V emulation. Cracking!
-
wiedi
feels like browser user agents where everybody is just lying about everything
-
andyf
They identify as hyper-v just enough to make some windows drivers work, it appears, but not enough that we can actually boot with it.
-
andyf
It's enlightenment!
-
wiedi
haha
-
andyf
I'm not sure how we could detect that..
-
andyf
Well, maybe we can, depending on where it crashes.
-
andyf
Otherwise I'd suggest disabling the hv_vmbus driver as you're doing, or disabling platform detection entirely (which would be "echo set enable_platform_detection = 0 > /etc/system.d/platform")
-
antranigv
andyf I guess that's because I'm using a custom OS. The FreeBSD ones say it's KVM indeed. But I do wonder, how is the BSD Loader detecting
-
antranigv
andyf not an issue per say, but maybe we can document it somewhere on the website?
-
andyf
Does the illumos loader do the same thing as BSD?
-
andyf
I think it's getting it from the smbios information that the hypervisor presents
-
antranigv
andyf apologies, when I say "the BSD Loader" I mean the FreeBSD loader in illumos :D
-
antranigv
so the illumos loader, does indeed, say KVM
-
andyf
Ah, ok, sorry, with you talking about FreeBSD guests too I got confused. The illumos loader is a fork of the FreeBSD one. IF you still have a guest, you can use `smbios -t1` and `smbios -t2` to see the smbios information. That will say KVM/QEMU.
-
andyf
Vultr's platform is truly split-brain
-
antranigv
andyf I can complain to the CTO, if needed :P
-
antranigv
I took a snapshot of the VM so... checking again!!!
-
antranigv
-
andyf
Yeah, Manufacturer: QEMU; Family: KVM
-
antranigv
andyf so basically, some part of it is reporting KVM while the other Hyper-V?
-
andyf
Yes. It's KVM/QEMU but they have patched in a different hypervisor ID and emulated enough MSRs and other things to convince windows enlightened drivers to work. When we check during boot, it looks like Hyper-V.
-
antranigv
andyf I see
-
rmustacc
Does anyone happen to have an omnios 048 vm with NVMe up?
-
rmustacc
(Or non-VM)
-
andyf
Yes, under propolis
-
rmustacc
Can you sanity check the ability to print the n_idctl field in the nvme_t gets data? ala *nvme_state::walk softstate | ::print nvme_t n_idctl[]
-
rmustacc
-
andyf
-
rmustacc
OK, so it does owrk.
-
andyf
a lot of zeros, but the first few fields look good
-
rmustacc
I'll try to reply with the right syntax.