Re: grub-bhyve device map file usage

2020-09-15 Thread Mark Raynsford via freebsd-virtualization
On 2020-09-14T16:28:15 -0700 Chuck Tuffli wrote: > Hi > > I'm working on an update to grub-bhyve and wanted to know if people's > map files differ from: > (hd0) /some/path/to/the/disk.img > Primarily, I'm interested if the map files use a device other than > 'hd', but I'd also be curious about

Restricting IP ranges for guests over tap devices

2020-08-01 Thread Mark Raynsford via freebsd-virtualization
Hello! Let's say I have a machine running a few dozen bhyve guests. Each bhyve guest gets its own tap device, and all of the tap devices are connected to a bridge. Everything works fine. I can write pf rules that control access between each guest, and between each guest and the world. I can't

Re: Severely broken bhyve console

2019-08-21 Thread Mark Raynsford via freebsd-virtualization
On 2019-08-20T14:34:02 -0700 "Rodney W. Grimes" wrote: > > What it looks as if is happened is you have disconnected from > a session while it was in grub and had sent specific control > sequences, possibly even expecting scroll regions and such > set up in the terminal. Now when you reconnect

Severely broken bhyve console

2019-08-20 Thread Mark Raynsford via freebsd-virtualization
Hello! For reasons I'm unable to explain, my ability to access the nmdm consoles of bhyve guests has suddenly broken. It may have been caused by a recent 11.2 update - I keep this machine on 11.2-RELEASE plus freebsd-update patches but, as it's not a publically accessible machine, I rarely reboot

Re: bhyve: Detecting that a guest kernel has booted

2019-03-11 Thread Mark Raynsford via freebsd-virtualization
On 2019-03-11T13:27:23 -0400 Shawn Webb wrote: > > Both FreeBSD and Linux supports virtio_console(4). I have no idea > about OpenBSD, but I'm sure they'd be open to an implementation if > asked. Right. > > The NFS solution would work, but it would be somewhat fragile. What > happens when a VM

Re: bhyve: Detecting that a guest kernel has booted

2019-03-11 Thread Mark Raynsford via freebsd-virtualization
On 2019-03-11T13:08:53 -0400 Shawn Webb wrote: > > If your guest OS supports it, you could probably write two scripts that > uses virtio_console(4), one for the guest to tell the host "HELLO" and > one for the host to say "NICE TO SEE YOU!" once the guest's "HELLO" is > received. > They're a

Re: Segmentation fault in grub-bhyve when trying to boot a Linux guest

2018-05-02 Thread Mark Raynsford via freebsd-virtualization
On 2018-05-01T18:06:38 -0700 Peter Grehan wrote: > >* rosemary_disk0.lzma (the LZMA compressed zvol) > > I was able to boot this image on a 12-current Ryzen system. Debian 9.4 > also installed fine with the netinstall ISO and could boot. Bizarrely, I am also able

Re: Segmentation fault in grub-bhyve when trying to boot a Linux guest

2018-05-01 Thread Mark Raynsford via freebsd-virtualization
On 2018-05-01T00:56:15 +0200 "Fabian Freyer" <fabian.fre...@physik.tu-berlin.de> wrote: > On 1 May 2018, at 0:05, Mark Raynsford via freebsd-virtualization wrote: > > I've recently attempted to install a Debian 9.4.0 x86_64 guest. The > > installer ran to

Segmentation fault in grub-bhyve when trying to boot a Linux guest

2018-04-30 Thread Mark Raynsford via freebsd-virtualization
Hello. I've recently attempted to install a Debian 9.4.0 x86_64 guest. The installer ran to completion without issue, and I then rebooted into the installed system, again without issue. I then shut the system down and tried to bring it up... pid 71802 (grub-bhyve), uid 0: exited on signal 11

Re: Read-only view of a ZFS filesystem inside a bhyve guest?

2018-04-29 Thread Mark Raynsford via freebsd-virtualization
On 2018-04-28T11:36:35 +0100 Mark Raynsford via freebsd-virtualization <freebsd-virtualization@freebsd.org> wrote: > > Well that's two in favour of NFS. I have one small question: Is there > any way to stop nfsd from forking into the background? I run everything > on the sy

Re: Read-only view of a ZFS filesystem inside a bhyve guest?

2018-04-28 Thread Mark Raynsford via freebsd-virtualization
On 2018-04-28T09:08:42 +0300 Daniel Braniss wrote: > since the clients and the server are sharing the zfs volume, > I’m doing the following: > on the server I did: > zfs create -sV 4G h/root.ro > newfs /dev/zvol/h/root.ro >

Re: Read-only view of a ZFS filesystem inside a bhyve guest?

2018-04-28 Thread Mark Raynsford via freebsd-virtualization
On 2018-04-27T11:42:18 -0700 "Rodney W. Grimes" wrote: > > You should be able to "plumb" NFS from the host to the guests on a > local bridge device, possibly evening playing games with the use > of an unroutable network like 127.1.0.0/24. On

Read-only view of a ZFS filesystem inside a bhyve guest?

2018-04-27 Thread Mark Raynsford via freebsd-virtualization
Hello. I'm looking to do what the subject says: I have an existing ZFS filesystem (/storage/xyz) and I'd like to provide a read-only view of the filesystem to a set of bhyve guests. The guests in this case could be solely FreeBSD guests, but if there's a pleasant way to allow for OpenBSD or Linux