Re: Providing serial consoles to multiple bhyve guests

2017-02-17 Thread Paul Vixie


C. L. Martinez wrote:
> 
>> `pkg install rtty`
>> 

> Thanks Paul. But, do I need to start some daemon?

the rtty documentation explains how to start it up.

> And what options do
> I need in bhyve command line?? Something like: "bhyve -A -H -P -W -c
> 1 -u -l com1,/dev/rtty0..."??

you'll connect guest com1 to the host's /dev/nmdm?B ports, and symlink
rtty's dev entries to the host's /dev/nmdm?A ports. "?" is the name of
the vm.

-- 
P Vixie

___
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: Providing serial consoles to multiple bhyve guests

2017-02-17 Thread Harry Schmalzbauer
 Bezüglich C. L. Martinez's Nachricht vom 17.02.2017 15:29 (localtime):
> On Fri, Feb 17, 2017 at 01:36:52PM +0100, Harald Schmalzbauer wrote:
>>  Bezüglich C. L. Martinez's Nachricht vom 17.02.2017 09:50 (localtime):
…
>>>  I have tried to add vnc channel, but it doesn't works ..:(
>> I haven't had VNC problems besides keymapping. It's done twice and I
>> haven't found a way or a client to disable keymapping locally on a
>> session basis.
>> Have you used the "wait" option for fbuf? Did the vm start to run after
>> VNC connection attempt?
>>
> Yes, but I don't see anything in vncviewer console. Can be a problem with 
> graphics controller on my laptop (my laptop is the bhyve host)?

Just to be sure: There was a UEFI loader in use? fbuf is only for GOP,
so if you boot with CSM, you won't see anything since there's no VGA
emulation. Only UEFI-GOP.

Best,

-harry

___
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: Providing serial consoles to multiple bhyve guests

2017-02-17 Thread C. L. Martinez
On Fri, Feb 17, 2017 at 01:36:52PM +0100, Harald Schmalzbauer wrote:
>  Bezüglich C. L. Martinez's Nachricht vom 17.02.2017 09:50 (localtime):
> > Hi all,
> >
> >  How can I use more than one serial console for several bhyve guests? 
> > According to nmdm(4) man page only two nullmodem devices can be created: 
> > nmdm0A and nmdm0B (and only nmdm0A can be assigned to one bhyve guest). 
> > Then, how can I access to these bhyve guests?
> 
> Am I wrong if I assume you confused the A/B hard-connected limit of two
> interfaces with the possibility to create nmdmN[AB] number of nmdm(4)
> devices?
> Simply use nmdm1A/B, nmdm2A/B etc.
> Not sure if I got the question rigth, answers from others don't go into
> that direction...
> 

Yes, that was my question. Thanks Harry. I have read too quickly :)

> 
> >  I have tried to add vnc channel, but it doesn't works ..:(
> 
> I haven't had VNC problems besides keymapping. It's done twice and I
> haven't found a way or a client to disable keymapping locally on a
> session basis.
> Have you used the "wait" option for fbuf? Did the vm start to run after
> VNC connection attempt?
> 
Yes, but I don't see anything in vncviewer console. Can be a problem with 
graphics controller on my laptop (my laptop is the bhyve host)?

-- 
Greetings,
C. L. Martinez
___
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: Providing serial consoles to multiple bhyve guests

2017-02-17 Thread Harald Schmalzbauer
 Bezüglich C. L. Martinez's Nachricht vom 17.02.2017 09:50 (localtime):
> Hi all,
>
>  How can I use more than one serial console for several bhyve guests? 
> According to nmdm(4) man page only two nullmodem devices can be created: 
> nmdm0A and nmdm0B (and only nmdm0A can be assigned to one bhyve guest). Then, 
> how can I access to these bhyve guests?

Am I wrong if I assume you confused the A/B hard-connected limit of two
interfaces with the possibility to create nmdmN[AB] number of nmdm(4)
devices?
Simply use nmdm1A/B, nmdm2A/B etc.
Not sure if I got the question rigth, answers from others don't go into
that direction...


>  I have tried to add vnc channel, but it doesn't works ..:(

I haven't had VNC problems besides keymapping. It's done twice and I
haven't found a way or a client to disable keymapping locally on a
session basis.
Have you used the "wait" option for fbuf? Did the vm start to run after
VNC connection attempt?

Best,

-harry

___
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: Providing serial consoles to multiple bhyve guests

2017-02-17 Thread Boris Samorodov

Hi!

17.02.2017 11:50, C. L. Martinez пишет:


How can I use more than one serial console for several bhyve guests?
According to nmdm(4) man page only two nullmodem devices can be
created: nmdm0A and nmdm0B (and only nmdm0A can be assigned to one
bhyve guest). Then, how can I access to these bhyve guests?


I use sysutils/vm-bhyve for bhyve management. Using console is a breeze:
---
% sudo vm console 
---

--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
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: Providing serial consoles to multiple bhyve guests

2017-02-17 Thread Paul Vixie


C. L. Martinez wrote:
> Hi all,
> 
> How can I use more than one serial console for several bhyve guests?

`pkg install rtty`

> According to nmdm(4) man page only two nullmodem devices can be
> created: nmdm0A and nmdm0B (and only nmdm0A can be assigned to one
> bhyve guest). Then, how can I access to these bhyve guests?

assuming that you can give each guest a name, use them like this:

> root@mm2:/home/vixie # cd /usr/local/rtty
> root@mm2:/usr/local/rtty # ls -l dev
> lrwxr-xr-x  1 root  wheel  11 Dec 25  2015 demo -> /dev/nmdm2A
> lrwxr-xr-x  1 root  wheel  11 Feb  8 04:08 hpfeeds -> /dev/nmdm8A
> lrwxr-xr-x  1 root  wheel  11 Jan 15 02:54 usql -> /dev/nmdm5A
> lrwxr-xr-x  1 root  wheel  11 Jan  1  2016 x -> /dev/nmdm3A
> lrwxr-xr-x  1 root  wheel  11 Jan 15 21:44 yeti-dns -> /dev/nmdm7A

as you can imagine, i'm using the B ports for bhyve consoles.

> I have tried to add vnc channel, but it doesn't works ..:(

it's pretty straightforward. i wrote rtty in 1990 when serial lines
weren't virtual.

> [mm2.redbarn:amd64] console yeti-dns
> connected
> (use (CR)~? for minimal help; also (CR)~q? and (CR)~s?)
> [authorized]
> [vixie@/dev/pts/6 connected]
> 
> FreeBSD/amd64 (yeti-dns.tisf.net) (ttyu0)
> 
> login: 
> 
> FreeBSD/amd64 (yeti-dns.tisf.net) (ttyu0)
> 
> login: 
> [rtty exiting]

i like rtty better than "cu" or "tip" because multiple people can
connect at the same time, and because everything is logged always:

> root@mm2:/usr/local/rtty # ls -l log
> -rw-r-  1 root  wheel   4253207 Feb 17 05:44 demo
> -rw-r-  1 root  wheel218105 Feb 12 21:39 hpfeeds
> -rw-r-  1 root  wheel184779 Jan 15 22:57 usql
> -rw-r-  1 root  wheel   1374759 Feb  3 04:08 x
> -rw-r-  1 root  wheel257801 Feb 17 09:03 yeti-dns

huh. i guess i need to rotate those.

-- 
P Vixie

___
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"


Providing serial consoles to multiple bhyve guests

2017-02-17 Thread C. L. Martinez
Hi all,

 How can I use more than one serial console for several bhyve guests? According 
to nmdm(4) man page only two nullmodem devices can be created: nmdm0A and 
nmdm0B (and only nmdm0A can be assigned to one bhyve guest). Then, how can I 
access to these bhyve guests?

 I have tried to add vnc channel, but it doesn't works ..:(

Thanks.

-- 
Greetings,
C. L. Martinez
___
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"