Opened 6 years ago
Last modified 6 years ago
#18139 new defect
SIGINT (or Ctrl-C) on Mac Host not passed to Guest
Reported by: | BStopp | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 5.2.22 |
Keywords: | Cc: | ||
Guest type: | Linux | Host type: | Mac OS X |
Description
When running a CentOS 7 guest on Max OS X (High Sierra & Mojave), any Ctrl-C command on the terminal is not captured and passed to the guest.
I ran into this issue originally via the terminal app when running the VirtualBox instance with Vagrant. However, i enabled the VBox Gui and then logged in directly. The Ctrl-C command is not being captured correctly and passed to the foreground process.
You can see in the attached image the keyboard input as i tail a log file. The command should have terminated the tail, instead the key combination is displayed.
Attachments (1)
Change History (4)
by , 6 years ago
Attachment: | VirtuaBox SIGINT.png added |
---|
comment:1 by , 6 years ago
This issue exists in all supported versions of VirtualBox 5.2 on Mojave, and at least as far back as 5.1.38 on High Sierra.
In case there's a question:
[root@vagrant ~]# stty -a speed 9600 baud; rows 25; columns 130; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc ixany imaxbel iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe -echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
comment:2 by , 6 years ago
Replying to BStopp:
When running a CentOS 7 guest on Max OS X (High Sierra & Mojave), any Ctrl-C command on the terminal is not captured and passed to the guest.
Only CentOS 7? I have a ton of Linux VMs Vagrant-less (which is not really supported BTW) and I haven't seen that. That's the first I hear about it to tell you the truth. I'm going to download a CentOS 7 ISO and test it. I should be able to see the behavior on a live ISO, no? Can you do the same with an Ubuntu, Mint or Fedora? I'm on 10.11.6 BTW.
Finally, it's usually better and faster, if issues get first addressed in the VirtualBox forums, a lot more eyes there. More than 95% of the issues are resolved over there, which keeps the developers focusing on the bug fixes and enhancements, and there is no need for another ticket to keep track of. For example, yours is most probably not a bug and someone from the developers has to deal with it and close it as "Invalid".
comment:3 by , 6 years ago
Never mind, I already had CentOS-7-x86_64-DVD-1708(7.4) and CentOS-7-x86_64-DVD-1804(7.5) at hand. I built two VMs, minimal installation. Then in the terminal I run "yes
", I pressed Ctrl-C and here's what I got:
[socratis@localhost ~]$ yes y y y ^Cy [socratis@localhost ~]$
From the picture you attached, it seems that you're running something more complicated. Please try this simple example above.
SIGINT Issue Capture