[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] enable serial port for HVM guest


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Zhi Wang" <xenlando@xxxxxxxxx>
  • Date: Wed, 5 Nov 2008 12:28:38 -0500
  • Delivery-date: Wed, 05 Nov 2008 09:29:19 -0800
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.