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-users

[Xen-users] enable serial port for HVM guest

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] enable serial port for HVM guest
From: "Zhi Wang" <xenlando@xxxxxxxxx>
Date: Wed, 5 Nov 2008 12:28:38 -0500
Delivery-date: Wed, 05 Nov 2008 09:29:19 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=PvwmnMSulbrs/Si9oxOPVbZPAfGK/cMQIA/qi8XKQBI=; b=OrfkH8qwi/hnkhOjyoDc9hL3Rw0GGoXE//cBCMZ1HOOeuQZBrArfcXnZrQCmLLa1u6 c6lHNxcjWyeJSkmPexQ9sZXPDzlrevvX0DWBXQPcR+p/6bpMs+sBQYSRu+azrF0CxYGV 68a6ff1ngZGQ8NU6ynYkpiPN5oGymEaNLzDQo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=mm0IvwVZXqstSBNKkXl9eZqyDxDqjWjj3fWbHjtWvWl35TudFBM27jlv5B3ePP1Po8 3xxDXXzt0rRZLMpuwPx1sDuvgG7J9dtw4sDDVlHWytyqI8aF1+XVneZpTXG0wqqRTXlw PsBaHfnFiGJxLo+FDyATc/xFoVrXQCvAjol/M=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I have a xen 3.3.0 installed from source code. Dom0 is based on CentOS 5.2. 
I did the following to enable the serial port in a ubuntu HVM guest. 
1. start xencosoled as root 
2. enable serial='pty' in the configure file
3. enable output to serial in the guest by adding console=ttyS0 to the grub
Then I started the guest with xm create -c usrv. The vnc display is OK. but there
is no output in the serial. I also tried several combination of serial='', such as
serial='/dev/ttyS0', serial='/dev/ptya1'... None of them works.

Thanks


This is the configure file:
#----------------------------------------------------------------------
import os, re
arch = os.uname()[4]
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 256 
name = "usrv"
vif = [ 'mac=00:16:3e:00:00:10, bridge=eth0' ]
disk = [ 'phy:/dev/vg_guest/lv_userver,hda,w' ]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot="cda"
sdl=0
opengl=0
vnc=1
vncviewer=1
vncpasswd=''
stdvga=0
serial='pty'

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] enable serial port for HVM guest, Zhi Wang <=