-
natefoo
Hey all, I have a bhyve VM I'm trying to resize the root partition of using a gparted iso. At first I was getting only a black screen from the VNC console, but was able to fix that by switching the bootrom to UEFI. However, after X starts, the mouse is unusable.
-
bahamat
natefoo: Yeah, there's a known issue that affects the mouse driver.
-
natefoo
d'oh
-
natefoo
Any workarounds?
-
bahamat
In general the vnc console is only intended for auxiliary access when the instance is inaccessible via the network.
-
bahamat
So something like X display forwarding will still work.
-
natefoo
I don't think that's an option for the gparted live CD?
-
bahamat
Can you use gparted from the command line?
-
natefoo
Oh, yeah, well, I can presumably figure out (non-g)parted.
-
natefoo
Well, I broke something, possibly trying to start bhyve by hand: vm_open: No such file or directory
-
natefoo
prctl: 61a99139-0148-4da0-8d6c-903c1554e7d3: No controllable process found in task, project, or zone.
-
bahamat
Yeah, that's not going to work.
-
bahamat
bhyve runs with extremely limited permissions. It's part of our "double hulled" virtualization technology.
-
natefoo
This is now when trying to start it the normal way from vmadm (after trying to start it by hand)
-
bahamat
Unfortunately not knowing exactly what you did to get into this situation, it's difficult to say how to remedy it.
-
bahamat
Even if you destroyed the partition table on the zvol you should still be able to get the bhyve process to start and say there's no bootable media.
-
bahamat
I hope you had a back up?
-
natefoo
So it was booting ok (without the mouse) to the CD image just after updating bootrom and bhyve_extra_args, afaik the only thing I did after that was to attempt to run the bhyve command (grabbed from ps) from the command line
-
natefoo
I made a snapshot of disk0 before I started
-
bahamat
maybe your extra args are causing the problem?
-
natefoo
# ls -l /zones/61a99139-0148-4da0-8d6c-903c1554e7d3/root/usr/
-
natefoo
total 0
-
natefoo
No idea how I did that...
-
natefoo
Well, hooray for snapshots
-
natefoo
Oh, I guess that would be mounted by vmadmd at start?
-
bahamat
Yeah, it's empty if the zone isn't booted.
-
natefoo
Weird, ok. What does the ENOENT up there from vm_open refer to?
-
natefoo
i.e. what is missing?
-
bahamat
I'm not sure.
-
bahamat
There might be some more detailed information in the zone_bh log
-
bahamat
That'll be /var/log/zone_bh.<uuid> on the compute node.
-
natefoo
I have quite a few zone_bh files in there but not one for this uuid and most are from 2019
-
natefoo
Ok, dunno, but I got it back by creating a new empty VM and zfs cloning the snapshot over as the disk
-
natefoo
And successfully resized with cli parted
-
natefoo
Thanks bahamat
-
bahamat
natefoo: That's good to hear.