Re: How to run a vkernel as a background process

2019-05-02 Thread Seann Aswell

On 4/27/19 12:15 PM, Melan Jayasinghage wrote:

Hi,

I have configured a vkernel with SSH support over IPv6 and wanted to 
access it remotely, remote access it working fine but I can't go back to 
host machine prompt without halting the vkernel, is there any way to run 
a vkernel as a background process




Alternatively, you could use tmux, so that once the vkernel is running 
you can open a new window for a new connection to the host machine.


Re: How to run a vkernel as a background process

2019-05-01 Thread Melan Jayasinghage
Hi,

Thank you Matt and Antonio. I am using csh and 'notty -12
./boot/kernel/kernel -m 128m -r /var/vkernel/rootimg.01 -I auto:bridge0 >&
/tmp/log' worked for me. It's really good to know that vkernels can be
started from rc.conf, I'll try it as my next step :)

Thanks & Regards,
Melan Jayasinghage


On Mon, Apr 29, 2019 at 1:44 AM Antonio Huete Jiménez <
tuxi...@quantumachine.net> wrote:

> Hi,
>
> vkernels can be started from rc.conf. Please check
> /etc/defaults/rc.conf to see the options.
>
> Regards,
> Antonio Huete
>
> Matthew Dillon  escribió:
>
> > Try redirecting stdout and stderr to a file.   notty -12 blahblahblabhalh
> >> & /tmp/logfile
> >
> > That's with csh or tcsh . With sh it would be notty -12 blsahblahblbha  >
> > /tmp/logfile 2>&1
> >
> > And then see what error you are getting.
> >
> > -Matt
>
>
>
>

-- 
Thanks & Regards,
Melan Jayasinghage




Re: How to run a vkernel as a background process

2019-04-28 Thread Antonio Huete Jiménez

Hi,

vkernels can be started from rc.conf. Please check  
/etc/defaults/rc.conf to see the options.


Regards,
Antonio Huete

Matthew Dillon  escribió:


Try redirecting stdout and stderr to a file.   notty -12 blahblahblabhalh

& /tmp/logfile


That's with csh or tcsh . With sh it would be notty -12 blsahblahblbha  >
/tmp/logfile 2>&1

And then see what error you are getting.

-Matt






Re: How to run a vkernel as a background process

2019-04-28 Thread Matthew Dillon
Try redirecting stdout and stderr to a file.   notty -12 blahblahblabhalh
>& /tmp/logfile

That's with csh or tcsh . With sh it would be notty -12 blsahblahblbha  >
/tmp/logfile 2>&1

And then see what error you are getting.

-Matt


Re: How to run a vkernel as a background process

2019-04-27 Thread Melan Jayasinghage
Hi Matt,

Thanks for the information, unfortunately it did not worked for me, do I
need to change anything on vkernel's /etc/ttys file to get it worked. Sorry
if it's a silly question, I am really new to BSD.

---
dfly542# uname -a
DragonFly dfly542.amdexa.com 5.4-RELEASE DragonFly v5.4.2-RELEASE #3: Sat
Apr 20 23:04:53 EDT 2019
r...@www.shiningsilence.com:/usr/obj/home/justin/release/5_4/sys/X86_64_GENERIC
x86_64
dfly542#
dfly542# notty ./boot/kernel/kernel -m 128m -r /var/vkernel/rootimg.01 -I
auto:bridge0
dfly542#
dfly542#
dfly542# ps aux | grep kernel
root 800  0.0  0.1   2692   1244  0  R1+ 3:59PM   0:00.00 grep
kernel
dfly542#
---


Thanks & Regards,
Melan Jayasinghage

On Sun, Apr 28, 2019 at 3:40 AM Matthew Dillon  wrote:

> You should be able to run the vkernel without a tty by using 'notty'
> instead of 'nohup'.  It will fork and run detached, and then you can ssh
> into it.
>
> -Matt
>


-- 
Thanks & Regards,
Melan Jayasinghage




Re: How to run a vkernel as a background process

2019-04-27 Thread Matthew Dillon
You should be able to run the vkernel without a tty by using 'notty'
instead of 'nohup'.  It will fork and run detached, and then you can ssh
into it.

-Matt