Solved Pressing CTRL+C to break a process (like the pinging) forces FreeBSD to exit and to come back to the host os (Linux)

Hello to everyone.

Currently I'm running Linux Devuan 5 running on a cpu ARMv7 where I have virtualized FreeBSD with qemu and kvm. My problem arises when I'm using FreeBSD and I need to press CTRL + C,because I want to break a process that's running in loop (like the pinging,that once started,you can stop it only pressing CTRL +C),but unfortunately when I do it, the FreeBSD vm closes and I switch back to the host os. I really don't like this behavior. Someone knows how to fix it ?
 
In a different circumstance I would have learned new things from a tutorial. But I like to solve problem. And now the problem is : how to be able to press CTRL+C without closing the vm. My humble suggestion for you is to stay more focused on the problem that you want to fix. It seems to me that your main habit is to find different routes,but this can push you to forget what was your primary goal.
 
I've recorded a short video to explain :


you will see that the only way to stop the pinging is to press CTRL +C,but then the FreeBSD vm closes.

Well, you send Control-C/SIGINT to QEMU and it takes it as a hint to exit. Not what I would code it like but anyway.

I recommend that you ssh into the VM. Then you can do whatever you want.

Or look into the configuration options for one to select what SIGINT does.
 
Back
Top