-
ktk
hi everyone
-
bahamat
Hello.
-
ktk
quick q: I'm revisiting the bhyve vms, last time I tried is long time ago. Reading the docs I'm not sure if this is the one to choose now or still KVM. my guest is FreeBSD. Last time I tried I couldn't get freebsd booting properly IIRC
-
ktk
I saw only minimal docs for bhyve in the wiki
-
ktk
so my question is should I go for KVM or bhyve for a new BSD VM
-
bahamat
In most cases, bhyve is the better option.
-
ktk
ok. for booting from iso I still have to pass the extra options?
-
ktk
as in something like this "bhyve_extra_opts": "-s 3,ahci-cd,/omniosce-r151030.iso",
-
bahamat
Yeah
-
ktk
ok will check that out tnx. vnc is implemented as well by now? (yeah it's long time ago I played with it ;)
-
bahamat
I'd like to get it to work like kvm does, where you can specify a "boot one time" option, but vmadm is basically a single very large, unwieldy JS file.
-
ktk
hehe
-
bahamat
vnc...kind of. I think it depends on which boot rom you use
-
ktk
as in?
-
bahamat
jbk: Do you remember what the deal is with bhyve and vnc?
-
bahamat
ktk: It's not something I use, and I didn't implement it, so I never remember
-
bahamat
ktk: So there's the bootrom parameter in the vm payload. The default is "bios"
-
andyf
vnc only works with the UEFI bootrom
-
andyf
but it does work pretty well in my experience
-
bahamat
Ok, so you can specify "bootrom": "uefi" in the json payload
-
jbk
andyf: your improvements have also helped
-
bahamat
And that should select the correct boot rom file.
-
jbk
ISTR something about the port used in the vm config in smartos
-
jbk
i don't think you have to explicitly set it
-
jbk
but i also vaguely recall something about it can be disabled
-
bahamat
On my bhyve instances, vmadm info <uuid> shows me a port, and I *can* connect to it. But it's a blank screen.
-
jbk
what are the VMs running?
-
bahamat
I actually just use `zlogin -C <uuid>`
-
bahamat
Mine's ubuntu
-
jbk
I can't recall if ubuntu will still spit stuff out on the fb/vga console if using a serial console
-
bahamat
Yeah, I think that's just linux though.
-
bahamat
It doesn't really have a concept of "no really, use serial for everything"
-
ktk
so if I manage to boot the iso with serial it might be easier then
-
ktk
I don't need vnc, I just need to get to shell to start ssh
-
bahamat
Yeah.
-
ktk
regarding vmadm, the creation of the vm should still be done with the json payload & vmadm right?
-
ktk
like in the old days
-
jperkin
yeh the BSDs handle console via zlogin -C just fine
-
bahamat
Yes, always.
-
bahamat
vmadm will always be the supported interface for creating instances.
-
ktk
ok tnx
-
ktk
will give it a try
-
ktk
I'm probably not the typical user as I really only use SmartOS as VM host for my VMs but it's still the nicest host systme out there IMO
-
ktk
as in hobby, not professional VM hosting
-
bahamat
A lot of people do that actually.
-
ktk
ah really. can't even remember when I started, it's my second machine and it is reaching its end as well so I guess around 10ish years. can't even remember when SmartOS was made public
-
bahamat
The first recorded commit is Oct 2010, and AFAIUI, it was always developed in the open.
-
ktk
oh ok. I think 2012 could fit for me then
-
bahamat
That's about when I started using it as well.
-
bahamat
I was first aware of it sometime in 2011, but I had a running OpenSolaris box that I didn't have time to replace until it died, then I went SmartOS, and never looked back.
-
ktk
yeah same. I was briefly on OpenIndiana or Illumos or however it was called back then
-
danmcd
illumos is the upstream. {SmartOS,OpenIndiana,OmniOS,...} are distros of illumos.
-
papertigers
bahamat: was the efi bootrom ever updated? SmartOS has had a really old one forever. Not sure anyone ever pulled in the one from OmniOS
-
bahamat
No, I don't think so.
-
bahamat
But, if it's well tested in OmniOS, we can probably bring it in.
-
bahamat
Where is it at?
-
bahamat
When I was running OpenSolaris I wanted to update to OpenIndiana, but I think I had already had a zfs update that made it incompatible, and locked me onto the Oracle side.
-
papertigers
-
ktk
danmcd: ah ok
-
papertigers
I think the releases section have the prebuilt binaries
-
papertigers
andyf: did that ever get moved to illumos or does it just live under the omniosorg ?
-
danmcd
Bryan Cantrill's "illumos fork yeah" talk from late-2011, or my "illumos at 5" talk from early-2016 (when it was actually 5.5 at that point) cover that history well.
-
ktk
hah could be that this is where I learned about it actually (brians talk)
-
ktk
ok I tried this for booting, don't seem to get anything on zlogin -C UUID:
-
ktk
vmadm update UUID bhyve_extra_opts="-s 3:0,ahci-cd,/FreeBSD-13.1-RELEASE-amd64-disc1.iso"
-
ktk
vmadm start UUID
-
ktk
from whatI get the current BSD images should have serial enabled by default
-
ktk
anything wrong on my extra_opts?
-
andyf
-
ktk
ah
-
ktk
will check that out tomorrow, early morning here. night!
-
nbjoerg
still no support for mounting other things into bhyve zones? :)
-
bahamat
nbjoerg: Depends on your definition of "things".
-
bahamat
You can mount whatever the guest supports.
-
nbjoerg
bahamat: like a null point of a /zones/iso
-
bahamat
You might be able to lofi mount something manually.