From: Asias He Subject: [PATCH 2/2] kvm tools: Mount devpts to /dev/pts Date: Fri, 24 Aug 2012 19:29:41 +0800 Message-ID: <1345807781-23452-2-git-send-email-asias.hejun@gmail.com> References: <1345807781-23452-1-git-send-email-asias.hejun@gmail.com> Cc: Sasha Levin , Ingo Molnar , Cyrill Gorcunov , kvm@vger.kernel.org To: Pekka Enberg Return-path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:48771 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753915Ab2HXLav (ORCPT ); Fri, 24 Aug 2012 07:30:51 -0400 Received: by mail-pb0-f46.google.com with SMTP id rr13so3301930pbb.19 for ; Fri, 24 Aug 2012 04:30:51 -0700 (PDT) In-Reply-To: <1345807781-23452-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: I'm seeing this in guest due to lacking of /dev/pts: sh-4.2# xterm xterm: Error 32, errno 28: No space left on device Reason: get_pty: not enough ptys Signed-off-by: Asias He --- tools/kvm/guest/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/kvm/guest/init.c b/tools/kvm/guest/init.c index 44e7db8..e1f377f 100644 --- a/tools/kvm/guest/init.c +++ b/tools/kvm/guest/init.c @@ -31,6 +31,8 @@ static void do_mounts(void) mount("", "/sys", "sysfs", 0, NULL); mount("proc", "/proc", "proc", 0, NULL); mount("devtmpfs", "/dev", "devtmpfs", 0, NULL); + mkdir("/dev/pts", 0755); + mount("devpts", "/dev/pts", "devpts", 0, NULL); } int main(int argc, char *argv[]) -- 1.7.11.4