Re: Need X-server to run in bhyve guest

2019-12-08 Thread Victor Sudakov
Lars Engels wrote:
> > 
> > Thank you, I think I can start testing various DEs. I've created a small
> > how-to in Russian: https://victor-sudakov.dreamwidth.org/487181.html
> 
> Deepl.com did a great job translating it:

A surprisingly good result for a machine translation!


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-08 Thread Lars Engels
On Sun, Dec 08, 2019 at 06:23:16PM +0700, Victor Sudakov wrote:
> Rodney W. Grimes wrote:
> > > 
> > > Now I'd like to concentrate on the question how to start a graphical
> > > desktop environment in a bhyve guest.
> > 
> > Ok, found the issue, or atleast a work around... scfb is not probing 
> > correctly,
> > so create:
> > /usr/local/etc/X11/xorg.conf.d/driver-scfb.conf
> > With this in it:
> > 
> > Section "Device"
> >  Identifier"Card0"
> >  Driver"scfb"
> > EndSection
> > 
> > Your x11 should then work fine  I tested with xfce
> 
> Great, it works! I confirm it working with xfce and gdm (from gnome3).
> 
> Had to set xhci_mouse="no", which means that the mouse pointer in the VM
> is not quite in sync with the real mouse pointer, but the GUI starts all
> right!
> 
> Thank you, I think I can start testing various DEs. I've created a small
> how-to in Russian: https://victor-sudakov.dreamwidth.org/487181.html

Deepl.com did a great job translating it:

Installing FreeBSD with a graphical interface in bhyve
Dec. 8th, 2019 06:14 pm
victor_sudakov
May be useful, for example, for testing graphical desktop environments.
Sysutils/vm-bhyve is used as a shell to bhyve, net/tightvnc as a VNC client.

Since the framebuffer console is only available when booting the guest
operating system in UEFI mode (and not in bhyveload mode), you must install the
FreeBSD guest in UEFI mode.

I. The configuration of the new VM must contain the following parameters
Loader="uefi"
graphics="yes"
graphics_wait="auto"
graphics_res="1280x720"
xhci_mouse="no"

II. We start the installation as usual for UEFI guests:
vm install test1 FreeBSD-12.1-RELEASE-amd64-disc1.iso
vncviewer 192.168.1.1:5900

In the EFI console, wait for the FreeBSD boot menu, then press 3 (Escape to
loader prompt). In the loader console

set boot_serial=NO
boot

When installing Auto (ZFS), you must select "Partition Scheme GPT(UEFI)",
bsdinstall will create an EFI partition and place the loader there. When
installing on UFS, you will have to manually create an EFI partition and fill
it with content from /boot/boot1.efifat.

III. On the last step of the installation (Manual Configuration):
echo 'boot_serial="NO" >> /boot/loader.conf

IV. Install the X's and the required desktop environment:
pkg install xorg gnome3

V. In /usr/local/etc/X11/xorg.conf.d/driver-scfb.conf add a section:
Section "Device"
Identifier "Card0"
Driver "scfb"
EndSection

This is important! Unless you add it, X-server will not find a framebuffer
console.

VI. Run the right graphics environment
sysrc dbus_enable=YES
sysrc hald_enable=YES
sysrc gdm_enable=YES
apply "service %1 start" dbus hald gdm

Sources:
https://wiki.freebsd.org/bhyve/UEFI
Tread at 
https://lists.freebsd.org/pipermail/freebsd-virtualization/2019-December/007944.html

___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-08 Thread Victor Sudakov
Rodney W. Grimes wrote:
> > 
> > Now I'd like to concentrate on the question how to start a graphical
> > desktop environment in a bhyve guest.
> 
> Ok, found the issue, or atleast a work around... scfb is not probing 
> correctly,
> so create:
>   /usr/local/etc/X11/xorg.conf.d/driver-scfb.conf
> With this in it:
> 
> Section "Device"
>  Identifier"Card0"
>  Driver"scfb"
> EndSection
> 
> Your x11 should then work fine  I tested with xfce

Great, it works! I confirm it working with xfce and gdm (from gnome3).

Had to set xhci_mouse="no", which means that the mouse pointer in the VM
is not quite in sync with the real mouse pointer, but the GUI starts all
right!

Thank you, I think I can start testing various DEs. I've created a small
how-to in Russian: https://victor-sudakov.dreamwidth.org/487181.html

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-07 Thread Rodney W. Grimes
-- Start of PGP signed section.
> Jason Tubnor wrote:
> > On Thu, 5 Dec 2019 at 12:32, Rodney W. Grimes 
> > 
> > wrote:
> > >
> > > TO fix some of your issues, ie the fact that the kernel boot
> > > messages and the installer do not appear in the vnc display
> > > if you drop to the loader prompt during the boot process and
> > > set serial_boot="NO"
> > > then you get the kernel boot messages and the installer in
> > > the vnc output.
> > >
> > > Once you finished the install adding:
> > > boot_serial="NO"
> > > to
> > > /boot/loader.conf
> > >
> > > works around the fact the kernel boot messages are going to a serial
> > > console.
> > >
> > >
> > > This *may* effect x11 startup, I havent got to that part yet...
> > >
> > >
> > More coverage on the above as Rod describes can be found on the wiki (down
> > near the bottom):
> > 
> > https://wiki.freebsd.org/bhyve/UEFI
> 
> Jason and Rodney, thanks, it's useful to know, though for the present I
> was happy enough with the serial console installation.
> 
> Now I'd like to concentrate on the question how to start a graphical
> desktop environment in a bhyve guest.

Ok, found the issue, or atleast a work around... scfb is not probing correctly,
so create:
/usr/local/etc/X11/xorg.conf.d/driver-scfb.conf
With this in it:

Section "Device"
 Identifier"Card0"
 Driver"scfb"
EndSection

Your x11 should then work fine  I tested with xfce

-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-05 Thread Rodney W. Grimes
-- Start of PGP signed section.
> Jason Tubnor wrote:
> > On Thu, 5 Dec 2019 at 12:32, Rodney W. Grimes 
> > 
> > wrote:
> > >
> > > TO fix some of your issues, ie the fact that the kernel boot
> > > messages and the installer do not appear in the vnc display
> > > if you drop to the loader prompt during the boot process and
> > > set serial_boot="NO"
> > > then you get the kernel boot messages and the installer in
> > > the vnc output.
> > >
> > > Once you finished the install adding:
> > > boot_serial="NO"
> > > to
> > > /boot/loader.conf
> > >
> > > works around the fact the kernel boot messages are going to a serial
> > > console.
> > >
> > >
> > > This *may* effect x11 startup, I havent got to that part yet...
> > >
> > >
> > More coverage on the above as Rod describes can be found on the wiki (down
> > near the bottom):
> > 
> > https://wiki.freebsd.org/bhyve/UEFI

Glad to see that this is documented.  I am unclear on why we are forcing
a serial console now though, perhaps it is a failure to detect the
prescense of a uefi framebuffer?

> 
> Jason and Rodney, thanks, it's useful to know, though for the present I
> was happy enough with the serial console installation.
> 
> Now I'd like to concentrate on the question how to start a graphical
> desktop environment in a bhyve guest.

I am back home now and souuld be able to dig out the vm I last did
this in, or recreate the situation and figure out what needs to be
done.

> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-04 Thread Victor Sudakov
Jason Tubnor wrote:
> On Thu, 5 Dec 2019 at 12:32, Rodney W. Grimes 
> wrote:
> >
> > TO fix some of your issues, ie the fact that the kernel boot
> > messages and the installer do not appear in the vnc display
> > if you drop to the loader prompt during the boot process and
> > set serial_boot="NO"
> > then you get the kernel boot messages and the installer in
> > the vnc output.
> >
> > Once you finished the install adding:
> > boot_serial="NO"
> > to
> > /boot/loader.conf
> >
> > works around the fact the kernel boot messages are going to a serial
> > console.
> >
> >
> > This *may* effect x11 startup, I havent got to that part yet...
> >
> >
> More coverage on the above as Rod describes can be found on the wiki (down
> near the bottom):
> 
> https://wiki.freebsd.org/bhyve/UEFI

Jason and Rodney, thanks, it's useful to know, though for the present I
was happy enough with the serial console installation.

Now I'd like to concentrate on the question how to start a graphical
desktop environment in a bhyve guest.


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-04 Thread Jason Tubnor
On Thu, 5 Dec 2019 at 12:32, Rodney W. Grimes 
wrote:

>
> >
>
> TO fix some of your issues, ie the fact that the kernel boot
> messages and the installer do not appear in the vnc display
> if you drop to the loader prompt during the boot process and
> set serial_boot="NO"
> then you get the kernel boot messages and the installer in
> the vnc output.
>
> Once you finished the install adding:
> boot_serial="NO"
> to
> /boot/loader.conf
>
> works around the fact the kernel boot messages are going to a serial
> console.
>
>
> This *may* effect x11 startup, I havent got to that part yet...
>
> > Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
>
>
More coverage on the above as Rod describes can be found on the wiki (down
near the bottom):

https://wiki.freebsd.org/bhyve/UEFI
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-04 Thread Rodney W. Grimes
> Victor Sudakov wrote:
> > 
> > Fine, I will experiment with that. Maybe Gnome or xfce will recognize
> > this console as a monitor.
> > 
> > Thank you for the hint, Rodney!
> 
> Nope, would not run for me in the VNC console (see below). Did you do
> anything special?
> 
> /usr/local/bin/startxfce4: Starting X server
> 
> 
> X.Org X Server 1.18.4
> Release Date: 2016-07-19
> X Protocol Version 11, Revision 0
> Build Operating System: FreeBSD 12.0-RELEASE-p12 amd64 
> Current Operating System: FreeBSD uefi1.sibptus.ru 12.1-RELEASE FreeBSD 
> 12.1-RELEASE r354233 GENERIC amd64
> Build Date: 14 November 2019  08:46:03AM
>  
> Current version of pixman: 0.38.4
>   Before reporting problems, check http://wiki.x.org
>   to make sure that you have the latest version.
> Markers: (--) probed, (**) from config file, (==) default setting,
>   (++) from command line, (!!) notice, (II) informational,
>   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec  2 23:28:28 2019
> (==) Using default built-in configuration (30 lines)
> scfb trace: probe start
> scfb trace: probe done
> (EE) 
> Fatal server error:
> (EE) Cannot run in framebuffer mode. Please specify busIDsfor all 
> framebuffer devices
> (EE) 
> (EE) 
> Please consult the The X.Org Foundation support 
>at http://wiki.x.org
>  for help. 
> (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional 
> information.
> (EE) 
> (EE) Server terminated with error (1). Closing log file.
> xinit: giving up
> xinit: unable to connect to X server: Connection refused
> xinit: server error
> 

TO fix some of your issues, ie the fact that the kernel boot
messages and the installer do not appear in the vnc display
if you drop to the loader prompt during the boot process and
set serial_boot="NO"
then you get the kernel boot messages and the installer in
the vnc output.

Once you finished the install adding:
boot_serial="NO"
to
/boot/loader.conf

works around the fact the kernel boot messages are going to a serial console.


This *may* effect x11 startup, I havent got to that part yet...

> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN

-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Miroslav Lachman

Patrick M. Hausen wrote on 2019/12/03 16:32:

Hi all,


Am 03.12.2019 um 16:27 schrieb Rodney W. Grimes :
I am not sure you actuall need an EFI partition in that situation, but
you may want one, and that is a missing feature of bsdinstall.


Are you possibly missing the point that Victor is talking about
FreeBSD *in* bhyve which mandates UEFI boot?

Or am I not aware that bhyve can do legacy boot, too?


I have only one testing bhyve VM guest but I think it was created 
without EFI partition / loader:


This is inside running VM:

root@kotel ~/# gpart show
=>  40  52428720  vtbd0  GPT  (25G)
40 8 - free -  (4.0K)
48  1024  1  freebsd-boot  (512K)
  1072  44040192  2  freebsd-ufs  (21G)
  44041264   8386560  3  freebsd-swap  (4.0G)
  52427824   936 - free -  (468K)

Kind regards
Miroslav Lachman
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Patrick M. Hausen
Hi all,

> Am 03.12.2019 um 16:27 schrieb Rodney W. Grimes 
> :
> I am not sure you actuall need an EFI partition in that situation, but
> you may want one, and that is a missing feature of bsdinstall.

Are you possibly missing the point that Victor is talking about
FreeBSD *in* bhyve which mandates UEFI boot?

Or am I not aware that bhyve can do legacy boot, too?

Kind regards,
Patrick
-- 
punkt.de GmbH
Patrick M. Hausen
.infrastructure

Kaiserallee 13a
76133 Karlsruhe

Tel. +49 721 9109500

https://infrastructure.punkt.de
i...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Rodney W. Grimes
> Rodney W. Grimes wrote:
> > > > 
> > > > > 
> > > > > Second, unless I select ZFS, there is no option to install on 
> > > > > GPT+UEFI.
> > > > > Fine, let's install on ZFS.
> > > > 
> > > > Do you mean GPT+UFS?  
> > > 
> > > I mean UFS+GPT+UEFI. That means, a EFI partition should be created and
> > > populated by the installer, alongside with the UFS and swap partitions.
> > > 
> > > bsdinstall can create and populate the EFI partition when
> > > installing on ZFS, but not when installing on UFS.
> > > 
> > > > Not sure what the failure is here.  I usually
> > > > install MBR/(UFS or ZFS) so this is not a use case for me.
> > > 
> > > How do you create the EFI partition, manually?
> > 
> > I don't use bsdinstall at all, I install using make and a Makefile,
> > so, kinda yes, kinda no, not manual, but not bsdinstall either.
> 
> I see. Well, I personally like bsdinstall for simple cases.  It's a pity
> it cannot automagically create a EFI partition when installing on UFS.
> But its ZFS installation routine is neat, and "bsdinstall jail" too.

I am not sure you actuall need an EFI partition in that situation, but
you may want one, and that is a missing feature of bsdinstall.
`
> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Victor Sudakov
Rodney W. Grimes wrote:
> > > 
> > > Fine, I will experiment with that. Maybe Gnome or xfce will recognize
> > > this console as a monitor.
> > > 
> > > Thank you for the hint, Rodney!
> > 
> > Nope, would not run for me in the VNC console (see below). Did you do
> > anything special?
> 
> pkg add xf86-video-scfb

It's there already, required by x11-drivers/xorg-drivers.

> > 
> > /usr/local/bin/startxfce4: Starting X server
> > 
> > 
> > X.Org X Server 1.18.4
> > Release Date: 2016-07-19
> > X Protocol Version 11, Revision 0
> > Build Operating System: FreeBSD 12.0-RELEASE-p12 amd64 
> > Current Operating System: FreeBSD uefi1.sibptus.ru 12.1-RELEASE FreeBSD 
> > 12.1-RELEASE r354233 GENERIC amd64
> > Build Date: 14 November 2019  08:46:03AM
> >  
> > Current version of pixman: 0.38.4
> > Before reporting problems, check http://wiki.x.org
> > to make sure that you have the latest version.
> > Markers: (--) probed, (**) from config file, (==) default setting,
> > (++) from command line, (!!) notice, (II) informational,
> > (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> > (==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec  2 23:28:28 2019
> > (==) Using default built-in configuration (30 lines)
> > scfb trace: probe start
> > scfb trace: probe done
> 
> O.o it is installed

Indeed.

The Xorg.0.log of the failed start can be found here: https://termbin.com/68fly

> > (EE) 
> > Fatal server error:
> > (EE) Cannot run in framebuffer mode. Please specify busIDsfor all 
> > framebuffer devices
> > (EE) 
> > (EE) 
> > Please consult the The X.Org Foundation support 
> >  at http://wiki.x.org
> >  for help. 
> > (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional 
> > information.
> > (EE) 
> > (EE) Server terminated with error (1). Closing log file.
> > xinit: giving up
> > xinit: unable to connect to X server: Connection refused
> > xinit: server error
> 
> I am traveling this week, I would need to look at VM's I can not
> get to right now.

I'll be expecting a reply. Thank you.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Victor Sudakov
Rodney W. Grimes wrote:
> > > 
> > > > 
> > > > Second, unless I select ZFS, there is no option to install on GPT+UEFI.
> > > > Fine, let's install on ZFS.
> > > 
> > > Do you mean GPT+UFS?  
> > 
> > I mean UFS+GPT+UEFI. That means, a EFI partition should be created and
> > populated by the installer, alongside with the UFS and swap partitions.
> > 
> > bsdinstall can create and populate the EFI partition when
> > installing on ZFS, but not when installing on UFS.
> > 
> > > Not sure what the failure is here.  I usually
> > > install MBR/(UFS or ZFS) so this is not a use case for me.
> > 
> > How do you create the EFI partition, manually?
> 
> I don't use bsdinstall at all, I install using make and a Makefile,
> so, kinda yes, kinda no, not manual, but not bsdinstall either.

I see. Well, I personally like bsdinstall for simple cases.  It's a pity
it cannot automagically create a EFI partition when installing on UFS.
But its ZFS installation routine is neat, and "bsdinstall jail" too.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Rodney W. Grimes
-- Start of PGP signed section.
> Rodney W. Grimes wrote:
> 
> [dd]
> 
> > 
> > > 
> > > Second, unless I select ZFS, there is no option to install on GPT+UEFI.
> > > Fine, let's install on ZFS.
> > 
> > Do you mean GPT+UFS?  
> 
> I mean UFS+GPT+UEFI. That means, a EFI partition should be created and
> populated by the installer, alongside with the UFS and swap partitions.
> 
> bsdinstall can create and populate the EFI partition when
> installing on ZFS, but not when installing on UFS.
> 
> > Not sure what the failure is here.  I usually
> > install MBR/(UFS or ZFS) so this is not a use case for me.
> 
> How do you create the EFI partition, manually?

I don't use bsdinstall at all, I install using make and a Makefile,
so, kinda yes, kinda no, not manual, but not bsdinstall either.

> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Victor Sudakov
Patrick M. Hausen wrote:
> > 
> > Paul Webster wrote:
> >>   Use dummy video driver and tightvnc, launch the vnc server as a normal
> >>   user then connect with a VNC client from the outside, 
> > 
> > Connect to what?
> 
> Xvnc ;-)
> 
> At least that's what I figure he suggests. Start a virtual frame buffer server
> like Xvnc and connect to that via VNC.

I wonder if Gnome/KDE would recognize Xvnc as the local graphical
console. If anyone has success stories, please share. Or at least please
give a step-by-stop instruction for running Gnome/KDE/XFCE in bhyve.


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Victor Sudakov
Rodney W. Grimes wrote:

[dd]

> 
> > 
> > Second, unless I select ZFS, there is no option to install on GPT+UEFI.
> > Fine, let's install on ZFS.
> 
> Do you mean GPT+UFS?  

I mean UFS+GPT+UEFI. That means, a EFI partition should be created and
populated by the installer, alongside with the UFS and swap partitions.

bsdinstall can create and populate the EFI partition when
installing on ZFS, but not when installing on UFS.

> Not sure what the failure is here.  I usually
> install MBR/(UFS or ZFS) so this is not a use case for me.

How do you create the EFI partition, manually?

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Rodney W. Grimes
> On Tue, Dec 03, 2019 at 12:23:55AM -0800, Rodney W. Grimes wrote:
> > -- Start of PGP signed section.
> > > Victor Sudakov wrote:
> > > > 
> > > > Fine, I will experiment with that. Maybe Gnome or xfce will recognize
> > > > this console as a monitor.
> > > > 
> > > > Thank you for the hint, Rodney!
> > > 
> > > Nope, would not run for me in the VNC console (see below). Did you do
> > > anything special?
> > 
> > pkg add xf86-video-scfb
> > 
> 
> wow, please stop recommending pkg add, the end user should use pkg install! 
> pkg
> add is a compatiblity with old pkg_add to appease the ports tree and for some
> corner usage. All users should uses pkg install for a while now.

Your right,
finger memory, I still type it, get an error then retype pkg install :-)

> Best regards,
> Bapt

-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Patrick M. Hausen
Hi all,

> Am 03.12.2019 um 09:45 schrieb Victor Sudakov :
> 
> Paul Webster wrote:
>>   Use dummy video driver and tightvnc, launch the vnc server as a normal
>>   user then connect with a VNC client from the outside, 
> 
> Connect to what?

Xvnc ;-)

At least that's what I figure he suggests. Start a virtual frame buffer server
like Xvnc and connect to that via VNC.

Patrick
-- 
punkt.de GmbH
Patrick M. Hausen
.infrastructure

Kaiserallee 13a
76133 Karlsruhe

Tel. +49 721 9109500

https://infrastructure.punkt.de
i...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Baptiste Daroussin
On Tue, Dec 03, 2019 at 12:23:55AM -0800, Rodney W. Grimes wrote:
> -- Start of PGP signed section.
> > Victor Sudakov wrote:
> > > 
> > > Fine, I will experiment with that. Maybe Gnome or xfce will recognize
> > > this console as a monitor.
> > > 
> > > Thank you for the hint, Rodney!
> > 
> > Nope, would not run for me in the VNC console (see below). Did you do
> > anything special?
> 
> pkg add xf86-video-scfb
> 

wow, please stop recommending pkg add, the end user should use pkg install! pkg
add is a compatiblity with old pkg_add to appease the ports tree and for some
corner usage. All users should uses pkg install for a while now.

Best regards,
Bapt


signature.asc
Description: PGP signature


Re: Re: Need X-server to run in bhyve guest

2019-12-03 Thread Victor Sudakov
Paul Webster wrote:
>Use dummy video driver and tightvnc, launch the vnc server as a normal
>user then connect with a VNC client from the outside, 

Connect to what?

> or alternatively use the dummy video driver directly 

Is it useful for testing desktop environments (see my original message)? 
Does a Gnome/KDE desktop running on a dummy video driver have any value?
Please elaborate.


> and a remote X11 session over ssh

It is not running X-clients over SSH forwarding that I'm looking for.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


RE: Re: Need X-server to run in bhyve guest

2019-12-03 Thread Paul Webster via freebsd-virtualization


___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Rodney W. Grimes
-- Start of PGP signed section.
> Victor Sudakov wrote:
> > 
> > Fine, I will experiment with that. Maybe Gnome or xfce will recognize
> > this console as a monitor.
> > 
> > Thank you for the hint, Rodney!
> 
> Nope, would not run for me in the VNC console (see below). Did you do
> anything special?

pkg add xf86-video-scfb

> 
> /usr/local/bin/startxfce4: Starting X server
> 
> 
> X.Org X Server 1.18.4
> Release Date: 2016-07-19
> X Protocol Version 11, Revision 0
> Build Operating System: FreeBSD 12.0-RELEASE-p12 amd64 
> Current Operating System: FreeBSD uefi1.sibptus.ru 12.1-RELEASE FreeBSD 
> 12.1-RELEASE r354233 GENERIC amd64
> Build Date: 14 November 2019  08:46:03AM
>  
> Current version of pixman: 0.38.4
>   Before reporting problems, check http://wiki.x.org
>   to make sure that you have the latest version.
> Markers: (--) probed, (**) from config file, (==) default setting,
>   (++) from command line, (!!) notice, (II) informational,
>   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec  2 23:28:28 2019
> (==) Using default built-in configuration (30 lines)
> scfb trace: probe start
> scfb trace: probe done

O.o it is installed

> (EE) 
> Fatal server error:
> (EE) Cannot run in framebuffer mode. Please specify busIDsfor all 
> framebuffer devices
> (EE) 
> (EE) 
> Please consult the The X.Org Foundation support 
>at http://wiki.x.org
>  for help. 
> (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional 
> information.
> (EE) 
> (EE) Server terminated with error (1). Closing log file.
> xinit: giving up
> xinit: unable to connect to X server: Connection refused
> xinit: server error

I am traveling this week, I would need to look at VM's I can not
get to right now.

-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-03 Thread Rodney W. Grimes
> Rodney W. Grimes wrote:
> > > Henrik Gulbrandsen wrote:
> > > > On 2019-12-01 06:35, Victor Sudakov wrote:
> > > > > If I were to test different desktop environments (gnome, xfce etc) in 
> > > > > a
> > > > > FreeBSD guest in bhyve, what X server (probably with vnc access, or 
> > > > > rdp
> > > > > access, or whatever?) would you advise?
> > > > 
> > > > This will work with the normal X server and bhyve's built-in VNC if
> > > > you run the guest with UEFI CSM and apply my Video BIOS patch:
> > > > 
> > > >  https://www.gulbra.net/freebsd-bhyve/
> > > 
> > > I'd prefer to stick to bhyveload for now.
> > 
> > I would strongly encourage you to use vnc and UEFI bios mode
> > in bhyve for what you are attempting to do.  Unless your guess
> > is not able to run a uefi frame buffer type display, which any
> > recent FreeBSD should be just fine with.
> 
> All right, I just tried to install FreeBSD 12.1 under vm-bhyve in UEFI
> mode. 
> 
> Well, the installation was not trivial.
> 
> At first, in the VNC client, I see the loader menu, then the "Loading
> kernel..." message, and then a blank screen. Fine, I run "vm console"
> and install via the serial console, the UEFI screen still being blank.

*sigh*  Thats broken  If I make it to this weeks bhyve call I'll bring
it up, this sounds like a loader to kernel handoff regression.

> 
> Second, unless I select ZFS, there is no option to install on GPT+UEFI.
> Fine, let's install on ZFS.

Do you mean GPT+UFS?  Not sure what the failure is here.  I usually
install MBR/(UFS or ZFS) so this is not a use case for me.

> Installation complete, reboot... The serial console is available, the
> UEFI VNC console is available too, though much later :-)

:-(

> Fine, I will experiment with that. Maybe Gnome or xfce will recognize
> this console as a monitor.

It should just be the scfb x11 driver.

> 
> Thank you for the hint, Rodney!

Glad to have moved you forward, even if it uncovered more sharp
pokey edges of bhyve in the process.

> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-02 Thread Victor Sudakov
Victor Sudakov wrote:
> 
> Fine, I will experiment with that. Maybe Gnome or xfce will recognize
> this console as a monitor.
> 
> Thank you for the hint, Rodney!

Nope, would not run for me in the VNC console (see below). Did you do
anything special?

/usr/local/bin/startxfce4: Starting X server


X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 12.0-RELEASE-p12 amd64 
Current Operating System: FreeBSD uefi1.sibptus.ru 12.1-RELEASE FreeBSD 
12.1-RELEASE r354233 GENERIC amd64
Build Date: 14 November 2019  08:46:03AM
 
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec  2 23:28:28 2019
(==) Using default built-in configuration (30 lines)
scfb trace: probe start
scfb trace: probe done
(EE) 
Fatal server error:
(EE) Cannot run in framebuffer mode. Please specify busIDsfor all 
framebuffer devices
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
 at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional 
information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-02 Thread Victor Sudakov
Rodney W. Grimes wrote:
> > Henrik Gulbrandsen wrote:
> > > On 2019-12-01 06:35, Victor Sudakov wrote:
> > > > If I were to test different desktop environments (gnome, xfce etc) in a
> > > > FreeBSD guest in bhyve, what X server (probably with vnc access, or rdp
> > > > access, or whatever?) would you advise?
> > > 
> > > This will work with the normal X server and bhyve's built-in VNC if
> > > you run the guest with UEFI CSM and apply my Video BIOS patch:
> > > 
> > >  https://www.gulbra.net/freebsd-bhyve/
> > 
> > I'd prefer to stick to bhyveload for now.
> 
> I would strongly encourage you to use vnc and UEFI bios mode
> in bhyve for what you are attempting to do.  Unless your guess
> is not able to run a uefi frame buffer type display, which any
> recent FreeBSD should be just fine with.

All right, I just tried to install FreeBSD 12.1 under vm-bhyve in UEFI
mode. 

Well, the installation was not trivial.

At first, in the VNC client, I see the loader menu, then the "Loading
kernel..." message, and then a blank screen. Fine, I run "vm console"
and install via the serial console, the UEFI screen still being blank.

Second, unless I select ZFS, there is no option to install on GPT+UEFI.
Fine, let's install on ZFS.

Installation complete, reboot... The serial console is available, the
UEFI VNC console is available too, though much later :-)

Fine, I will experiment with that. Maybe Gnome or xfce will recognize
this console as a monitor.

Thank you for the hint, Rodney!

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-01 Thread Henrik Gulbrandsen

On 2019-12-01 18:51, Rodney W. Grimes wrote:

You do not need the Video BIOS patch for a FreeBSD guest.


Fair enough. For some reason I thought the UEFI implementation had a
more limited set of display resolutions, but I have never tested it.
It was just my luck to start with the single Linux distro I have seen
that doesn't support UEFI for its Live ISO files.

/Henrik

___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-01 Thread Rodney W. Grimes
-- Start of PGP signed section.
> Henrik Gulbrandsen wrote:
> > On 2019-12-01 06:35, Victor Sudakov wrote:
> > > If I were to test different desktop environments (gnome, xfce etc) in a
> > > FreeBSD guest in bhyve, what X server (probably with vnc access, or rdp
> > > access, or whatever?) would you advise?
> > 
> > This will work with the normal X server and bhyve's built-in VNC if
> > you run the guest with UEFI CSM and apply my Video BIOS patch:
> > 
> >  https://www.gulbra.net/freebsd-bhyve/
> 
> I'd prefer to stick to bhyveload for now.

I would strongly encourage you to use vnc and UEFI bios mode
in bhyve for what you are attempting to do.  Unless your guess
is not able to run a uefi frame buffer type display, which any
recent FreeBSD should be just fine with.

You do not need the Video BIOS patch for a FreeBSD guest.

> > 
> > However, when I tested it with a GhostBSD 19.04 ISO image, the mouse
> > didn't work - probably because FreeBSD still didn't support the XHCI
> > tablet needed for absolute pointer coordinates in bhyve. With a PS/2
> > mouse you will get two mouse pointers - one each for host and guest.
> 
> -- 
> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
> 2:5005/49@fidonet http://vas.tomsk.ru/
-- End of PGP section, PGP failed!

-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-01 Thread Victor Sudakov
Henrik Gulbrandsen wrote:
> On 2019-12-01 06:35, Victor Sudakov wrote:
> > If I were to test different desktop environments (gnome, xfce etc) in a
> > FreeBSD guest in bhyve, what X server (probably with vnc access, or rdp
> > access, or whatever?) would you advise?
> 
> This will work with the normal X server and bhyve's built-in VNC if
> you run the guest with UEFI CSM and apply my Video BIOS patch:
> 
>  https://www.gulbra.net/freebsd-bhyve/

I'd prefer to stick to bhyveload for now.

> 
> However, when I tested it with a GhostBSD 19.04 ISO image, the mouse
> didn't work - probably because FreeBSD still didn't support the XHCI
> tablet needed for absolute pointer coordinates in bhyve. With a PS/2
> mouse you will get two mouse pointers - one each for host and guest.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-01 Thread Henrik Gulbrandsen

On 2019-12-01 06:35, Victor Sudakov wrote:

If I were to test different desktop environments (gnome, xfce etc) in a
FreeBSD guest in bhyve, what X server (probably with vnc access, or rdp
access, or whatever?) would you advise?


This will work with the normal X server and bhyve's built-in VNC if
you run the guest with UEFI CSM and apply my Video BIOS patch:

https://www.gulbra.net/freebsd-bhyve/

However, when I tested it with a GhostBSD 19.04 ISO image, the mouse
didn't work - probably because FreeBSD still didn't support the XHCI
tablet needed for absolute pointer coordinates in bhyve. With a PS/2
mouse you will get two mouse pointers - one each for host and guest.

/Henrik

___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-01 Thread Victor Sudakov
Jason Barbier wrote:
> honestly,
> I just use remmina after enabling the vnc console on the guest, works like a 
> charm every time 

This may work for me too.

But how do you enable the vnc console on a FreeBSD guest? I boot my
FreeBSD guests with bhyveload, which does not have a vnc console. 

Does your FreeBSD guest see this vnc console as a video card suitable
for running a local X-server? What driver?


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: Need X-server to run in bhyve guest

2019-12-01 Thread Jason Barbier
honestly,
I just use remmina after enabling the vnc console on the guest, works like a 
charm every time 

Sent from my a tiny pocket computer.

> On Nov 30, 2019, at 22:13, Victor Sudakov  wrote:
> 
> Dear Colleagues,
> 
> If I were to test different desktop environments (gnome, xfce etc) in a
> FreeBSD guest in bhyve, what X server (probably with vnc access, or rdp
> access, or whatever?) would you advise? 
> 
> I actually want to see the *local* graphical desktop of a guest, not just
> X-clients forwarded from guest to host, or drawing  to a remote $DISPLAY
> on the host.
> 
> Any advice what to install on the guest and how to start it there? I
> would probably need to persuade the Gnome/XFCE on the guest that the
> guest has a monitor and video card...
> 
> -- 
> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
> 2:5005/49@fidonet http://vas.tomsk.ru/

___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Need X-server to run in bhyve guest

2019-12-01 Thread Victor Sudakov
Loyd Craft wrote:
> I like Xephyr….   It’s a software framebuffer for X11...

So it can pretend to be a local X-server (i.e. :0) in a bhyve guest?

> But you need a X server and SSH X11 forwarding on your local machine. 

Xephyr is an X-server and X-client at the same time, correct? Then I can
install it in the guest VM and make it output to my FreeBSD desktop. I
don't even think SSH X11 forwarding will be required, just setting the
$DISPLAY variable appropriately?

But first of all, how do you make Gnome or KDE use Xephyr as a local
X-server?


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Need X-server to run in bhyve guest

2019-11-30 Thread Victor Sudakov
Dear Colleagues,

If I were to test different desktop environments (gnome, xfce etc) in a
FreeBSD guest in bhyve, what X server (probably with vnc access, or rdp
access, or whatever?) would you advise? 

I actually want to see the *local* graphical desktop of a guest, not just
X-clients forwarded from guest to host, or drawing  to a remote $DISPLAY
on the host.

Any advice what to install on the guest and how to start it there? I
would probably need to persuade the Gnome/XFCE on the guest that the
guest has a monitor and video card...

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature