google / novm

Experimental KVM-based VMM for containers, written in Go.
Apache License 2.0
1.68k stars 123 forks source link

novm run gets stuck when exiting bash #10

Closed pwaller closed 9 years ago

pwaller commented 9 years ago

Edit: accidentally hit ctrl-enter before writing the post... apologies

novm --debug create --name pw-test --nofork --init --nic ip=192.168.1.2/24,gateway=192.168.1.1
foo pwaller # novm run --name pw-test --terminal bash
foo / # exit
^C^C^C

Now I have to go and kill novm run from elsewhere to reclaim my terminal.

pwaller commented 9 years ago

Note: after killing it, I cannot run novm run --name pw-test on anything at all, it just hangs.

pwaller commented 9 years ago

Also note for anyone following along by email: I accidentally hit submit on the issue before writing the issue body. I've edited it in place. Apologies.

zhurongze commented 9 years ago

Hi @pwaller , what 's your environment ?

pwaller commented 9 years ago

64-bit Debian 8.

amscanne commented 9 years ago

Thanks for the report.

The terminal code could definitely use a revisit; it's pretty hacky. I agree it would be nice to have the ability to kill things nicely if something goes wrong.

amscanne commented 9 years ago

I believe this is the same issue as #23. Please reopen if it isn't.