From patchwork Fri Aug 24 11:29:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 1370721 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 15CA5DFB6E for ; Fri, 24 Aug 2012 11:30:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757123Ab2HXLa4 (ORCPT ); Fri, 24 Aug 2012 07:30:56 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=nBy+0mY+u4C5VDfZG59i3C1oV43OX1UGXrbvL9tLqg8=; b=b9gJbh2k8Z0PilTXAv+Ok57N9oLHB/+HduuMf1MsvWy8i14CwflN+JnjqS5NyKHtjI 8mpgyxFcxJgW4jf43/2uC3smODgbV212LfRSwjA27X4v+dvC0sP3IybA4zfsY8bWzqV2 jmJz90+Fee9BAkvtONsgNTkfSjcPz0uLfArRqrmHL4/x/TlLTKXPQKdXI14ASxoViTiG 1HS5B09E/3sKM/rZyGmvAzGrerWN/EKFjtWFGcCb0+LvSeeH9d84HiHzRzW2DYM7oX7E y1jzscaMz6ILNYx4VIsA81bfJWLZfmVcb0nsR9l6sFErKlAmlpAjly1/iJ86IsaO2Ipx /GTg== Received: by 10.68.232.165 with SMTP id tp5mr3289256pbc.123.1345807851431; Fri, 24 Aug 2012 04:30:51 -0700 (PDT) Received: from hj.localdomain ([58.194.229.103]) by mx.google.com with ESMTPS id nk3sm8139633pbc.27.2012.08.24.04.30.48 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Aug 2012 04:30:50 -0700 (PDT) From: Asias He To: Pekka Enberg Cc: Sasha Levin , Ingo Molnar , Cyrill Gorcunov , kvm@vger.kernel.org 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> X-Mailer: git-send-email 1.7.11.4 In-Reply-To: <1345807781-23452-1-git-send-email-asias.hejun@gmail.com> References: <1345807781-23452-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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[])