WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xend: Fix tapdisk creation for managed domains

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xend: Fix tapdisk creation for managed domains
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Mon, 22 Jun 2009 15:29:49 +0900
Delivery-date: Sun, 21 Jun 2009 23:30:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

The first start of a managed domain succeeds.  But the second 
start of the managed domain fails as follows.  The problem occurs 
when tapdisks are given to the managed domain.  I think that the 
problem occurs because the uname of tapdisks is overwritten with 
"phy:/dev/xen/tadisk-2/tapdev*".

# xm new vm2
Using config file "/etc/xen/vm2".
# xm list --long vm2 | grep uname
            (uname tap:aio:/xen/root-vm2.img)
# xm start vm2
# xm list --long vm2 | grep uname
            (uname phy:/dev/xen/blktap-2/tapdev0)
# xm shutdown vm2
# xm list --long vm2 | grep uname
            (uname phy:/dev/xen/blktap-2/tapdev0)
# xm start vm2
Error: need more than 2 values to unpack
Usage: xm start <DomainName>

Start a Xend managed domain
  -p, --paused                   Do not unpause domain after starting it    
  -c, --console_autoconnect      Connect to the console after the domain    
                                 is created
  --vncviewer                    Connect to display via VNC after the       
                                 domain is created
  --vncviewer-autopass           Pass VNC password to viewer via stdin and  
                                 -autopass


This patch solves the problem.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: tapdisk.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xend: Fix tapdisk creation for managed domains, Masaki Kanno <=