How to connect ssh and /dev/nmdm devices Was:( Re: Native Linux guest in Bhyve (no grub2-bhyve) status? )

2015-01-20 Thread Willem Jan Withagen

On 2015-01-05 9:41, Willem Jan Withagen wrote:

On 2015-01-05 0:28, Peter Grehan wrote:

Hi Willem,


Would it it be possible in the meantime to enhance grub2-bhyve with the
same possibility as bhyve itself has for the console?

So I can redirect grub screen access to /dev/nmdm12041, and one can even
use this channel to see the grubscreen during rebooting.

Or if it is not that hard, give some pointers to write it myself.


  Conrad contributed this to grub-bhyve with
  https://github.com/grehan-freebsd/grub2-bhyve/pull/2

  It's available in v0.30 which has been in ports for a while now:

  https://github.com/grehan-freebsd/grub2-bhyve/releases/tag/v0.30


Right,

Did miss that, I guess.
I'll upgrade my bhyve-grub.


Yup, works really nice.

Now in a continuance from this...

What is the easiest way to propagate  the full-duplex tty stream from 
a SSH-login to a /dev/nmdmA.


This will give easy access to the console screens.

one would type:
ssh -p  user@management-ip
and end up at the console on /dev/nmdmA

Currently I'm using tip for this, but that also requires hacking new VMs 
into /etc/remote.


So a very basic TIP, without the serial/ACU/speed stuff, would really be 
useful. Preferably all signals are sent thru as well.
And if this might not be 100% secure, it would require an ssh-jailed 
setup. A bit like sftp.


hints and or suggestion welcome.

--WjW
--WjW


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


Re: How to connect ssh and /dev/nmdm devices Was:( Re: Native Linux guest in Bhyve (no grub2-bhyve) status? )

2015-01-20 Thread John-Mark Gurney
Willem Jan Withagen wrote this message on Tue, Jan 20, 2015 at 17:37 +0100:
 On 2015-01-05 9:41, Willem Jan Withagen wrote:
  On 2015-01-05 0:28, Peter Grehan wrote:
  Hi Willem,
 
  Would it it be possible in the meantime to enhance grub2-bhyve with the
  same possibility as bhyve itself has for the console?
 
  So I can redirect grub screen access to /dev/nmdm12041, and one can even
  use this channel to see the grubscreen during rebooting.
 
  Or if it is not that hard, give some pointers to write it myself.
 
Conrad contributed this to grub-bhyve with
https://github.com/grehan-freebsd/grub2-bhyve/pull/2
 
It's available in v0.30 which has been in ports for a while now:
 
https://github.com/grehan-freebsd/grub2-bhyve/releases/tag/v0.30
 
  Right,
 
  Did miss that, I guess.
  I'll upgrade my bhyve-grub.
 
 Yup, works really nice.
 
 Now in a continuance from this...
 
 What is the easiest way to propagate  the full-duplex tty stream from 
 a SSH-login to a /dev/nmdmA.
 
 This will give easy access to the console screens.
 
 one would type:
   ssh -p  user@management-ip
 and end up at the console on /dev/nmdmA
 
 Currently I'm using tip for this, but that also requires hacking new VMs 
 into /etc/remote.
 
 So a very basic TIP, without the serial/ACU/speed stuff, would really be 
 useful. Preferably all signals are sent thru as well.
 And if this might not be 100% secure, it would require an ssh-jailed 
 setup. A bit like sftp.
 
 hints and or suggestion welcome.

If you want this, look at RFC2217 compatible programs...  RFC2217 extends
telnet to provide changing things like baud rates and parity inline...

The Python module PySerial includes both a client:
http://pyserial.sourceforge.net/examples.html#miniterm

and a server:
http://pyserial.sourceforge.net/examples.html#single-port-tcp-ip-serial-bridge-rfc-2217

Looks like ports has sredird that does the same for a server...

So, you could use a server attached the nmdm plus ssh port tunneling
to provide access...

I've been tempted to write a program using cuse that would present a
modem device that could be used w/ tip or cu and connect to an RFC2217
server on the back end giving you complete remove access to all settings
of the serial port, but haven't gotten around to doing that yet...

-- 
  John-Mark Gurney  Voice: +1 415 225 5579

 All that I will do, has been done, All that I have, has not.
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
freebsd-virtualization-unsubscr...@freebsd.org


Re: How to connect ssh and /dev/nmdm devices Was:( Re: Native Linux guest in Bhyve (no grub2-bhyve) status? )

2015-01-20 Thread Paul Vixie


 Willem Jan Withagen mailto:w...@digiware.nl
 Tuesday, January 20, 2015 8:37 AM



 What is the easiest way to propagate  the full-duplex tty stream
 from a SSH-login to a /dev/nmdmA.

somewhat expectedly, i use http://www.freshports.org/sysutils/rtty/
for this. with a restricted shell, i can offer console access to guests
via ssh. cu also works, but lacks rtty's background logging.


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


Re: Native Linux guest in Bhyve (no grub2-bhyve) status?

2015-01-04 Thread Willem Jan Withagen
On 23-10-2014 1:00, Peter Grehan wrote:
 Hi Conrad,
 
 Is the work being done in public?
 
  We're working on getting it released.
 

Peter,

Would it it be possible in the meantime to enhance grub2-bhyve with the
same possibility as bhyve itself has for the console?

So I can redirect grub screen access to /dev/nmdm12041, and one can even
use this channel to see the grubscreen during rebooting.

Or if it is not that hard, give some pointers to write it myself.

Regards,
--WjW


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


Re: Native Linux guest in Bhyve (no grub2-bhyve) status?

2015-01-04 Thread Peter Grehan

Hi Willem,


Would it it be possible in the meantime to enhance grub2-bhyve with the
same possibility as bhyve itself has for the console?

So I can redirect grub screen access to /dev/nmdm12041, and one can even
use this channel to see the grubscreen during rebooting.

Or if it is not that hard, give some pointers to write it myself.


 Conrad contributed this to grub-bhyve with
 https://github.com/grehan-freebsd/grub2-bhyve/pull/2

 It's available in v0.30 which has been in ports for a while now:

 https://github.com/grehan-freebsd/grub2-bhyve/releases/tag/v0.30

later,

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


Re: Native Linux guest in Bhyve (no grub2-bhyve) status?

2014-10-22 Thread Allan Jude
On 2014-10-22 16:22, Conrad Rad wrote:
 Hi all,
 
 I've tried asking IRC, but it's pretty quiet. Does anyone know what
 the status of UEFI/BIOS for bhyve is?
 
 http://www.slideshare.net/syuu1228/implements-bios-emulation-support-for-b-hy-ve-a-bsd-hypervisor
 looks neat; is it integrated?
 
 http://blather.michaelwlucas.com/archives/2060 seems to suggest
 someone was working on something back in May?
 
 I've tried booting a Linux VM and of course it just hangs in
 bhyveload. Does anyone know what is needed? What has been implemented?
 If work is being done in this area, where it is? And what else is
 needed?
 
 Thanks,
 Conrad
 ___
 freebsd-virtualization@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
 To unsubscribe, send any mail to 
 freebsd-virtualization-unsubscr...@freebsd.org
 

That definitely won't work, bhyveload is very specific to freebsd. A
generic boot system would use some other command, or none at all.

-- 
Allan Jude



signature.asc
Description: OpenPGP digital signature


Re: Native Linux guest in Bhyve (no grub2-bhyve) status?

2014-10-22 Thread Conrad Rad
On Wed, Oct 22, 2014 at 4:43 PM, Allan Jude allanj...@freebsd.org wrote:
 On 2014-10-22 16:22, Conrad Rad wrote:
 I've tried booting a Linux VM and of course it just hangs in
 bhyveload. Does anyone know what is needed? What has been implemented?
 If work is being done in this area, where it is? And what else is
 needed?

 That definitely won't work, bhyveload is very specific to freebsd. A
 generic boot system would use some other command, or none at all.


Hi Allan,

I elided a bit of detail — actually I'm using libvirt, which then uses
bhyveload. So we need to create some other generic loader, and fix
libvirt to invoke that instead?

What does bhyve need the loader to do?

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

Re: Native Linux guest in Bhyve (no grub2-bhyve) status?

2014-10-22 Thread Craig Rodrigues
On Wed, Oct 22, 2014 at 1:57 PM, Conrad Rad cse@gmail.com wrote:


 I elided a bit of detail -- actually I'm using libvirt, which then uses


I raised the issue you brought up with respect to libvirt, and some other
deficiencies in the current libvirt + byve
implementation.  See this discussion:
https://lists.freebsd.org/pipermail/freebsd-virtualization/2014-October/002857.html

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


Re: Native Linux guest in Bhyve (no grub2-bhyve) status?

2014-10-22 Thread Conrad Rad
On Wed, Oct 22, 2014 at 5:58 PM, Craig Rodrigues rodr...@freebsd.org wrote:
 I raised the issue you brought up with respect to libvirt, and some other
 deficiencies in the current libvirt + byve
 implementation.  See this discussion:
 https://lists.freebsd.org/pipermail/freebsd-virtualization/2014-October/002857.html

Hi Craig,

Thanks, I've read that thread. Ideally libvirt/bhyve can just use a
generic loader rather than special casing bhyveloader and grub2-bhyve.
How are you envisioning one indicating to libvirt which loader to use
/ what the guest OS is?

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


Re: Native Linux guest in Bhyve (no grub2-bhyve) status?

2014-10-22 Thread Peter Grehan

Hi Conrad,


I've tried asking IRC, but it's pretty quiet. Does anyone know what
the status of UEFI/BIOS for bhyve is?


 It's being worked on, though it's not yet at a state that it could be 
committed.


later,

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


Re: Native Linux guest in Bhyve (no grub2-bhyve) status?

2014-10-22 Thread Conrad Rad
On Wed, Oct 22, 2014 at 6:31 PM, Peter Grehan gre...@freebsd.org wrote:
 Hi Conrad,

 I've tried asking IRC, but it's pretty quiet. Does anyone know what
 the status of UEFI/BIOS for bhyve is?


  It's being worked on, though it's not yet at a state that it could be
 committed.


Hi Peter,

Is the work being done in public?

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


Re: Native Linux guest in Bhyve (no grub2-bhyve) status?

2014-10-22 Thread Conrad Rad
On Wed, Oct 22, 2014 at 6:40 PM, Craig Rodrigues rodr...@freebsd.org wrote:

 On Wed, Oct 22, 2014 at 3:06 PM, Conrad Rad cse@gmail.com wrote:

 How are you envisioning one indicating to libvirt which loader to use
 / what the guest OS is?


 It's mentioned in this followup:

 https://lists.freebsd.org/pipermail/freebsd-virtualization/2014-October/002859.html


Thanks. After it is fixed, we should probably get that documented on
http://libvirt.org/drvbhyve.html .

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


Re: Native Linux guest in Bhyve (no grub2-bhyve) status?

2014-10-22 Thread Peter Grehan

Hi Conrad,


Is the work being done in public?


 We're working on getting it released.

later,

Peter.

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