xenserver Serial Console Access

From thelinuxwiki
Jump to: navigation, search

Problem

Failing to receive serial console output from XenServer 6.2.

The server hardware was a supermicro board. I could see post an bios messages. I could see syslinus messages. The last thing I could see was...


Loading /boot/xen.gz... okopyright (C) 1994-2012 H. Peter Anvin et al           
Loading /boot/vmlinuz-2.6-xen... ok0                                            
Loading /boot/initrd-2.6-xen.img... ok 

So, as soon as the syslinux boot manager started loading the kernel, serial console output quit.


Solution

Verify bios serial port settings for stuff like this...

(supermicro Remote access bios settings)

* Serial Port Mode               [115200 8,n,1]   
* Flow Control                   [None]
* Redirection After BIOS POST    [Always]
* Terminal Type                  [VT100]
* VT-UTF8 Combo Key Support      [Enabled]
* Sredir Memory Display Delay    [No Delay] 

check /boot/extlinux.conf, make sure the settings for the xe-serial boot entry are consistent with your hardware settings

...

label xe-serial
 # XenServer (Serial)
 kernel mboot.c32
 append /boot/xen.gz com1=115200,8n1 console=com1 ...(output truncated)

...

Edit /boot/extlinux.conf

change line 3 from

default xe

to

default xe-serial

Result...it works!!!! See the serial console output below.

 eter Anvin et al51a10931 Copyright (C) 1994-2012 H. P                           
boot:                                                                           
Loading /boot/xen.gz... ok on Remote Keyboard)                                  
Loading /boot/vmlinuz-2.6-xen... okthe network                                  
Loading /boot/initrd-2.6-xen.img... ok Keyboard)                                
 __  __            _  _    _   ____                                             
 \ \/ /___ _ __   | || |  / | | ___|                                            
  \  // _ \ '_ \  | || |_ | | |___ \                                            
  /  \  __/ | | | |__   _|| |_ ___) |isk                                        
 /_/\_\___|_| |_|    |_|(_)_(_)____/ isk                                        
                                     01B01                                      
(XEN) Xen version 4.1.5 (root@uk.xensource.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) Fri Jun 14 09:04:06 EDT 2013
(XEN) Latest ChangeSet: 23509:aa273b47bcbe, pq 572:5c414f7cb3b1                 
(XEN) Bootloader: SYSLINUX 4.06 0x51a10931Capable and Status OK                 
(XEN) Command line: com1=115200,8n1 console=com1,vga mem=1024G dom0_max_vcpus=4 dom0_mem=752M,max:752M watchdog_timeout=300 lowmem_emergency_pool=1M crashkernel=64M@32M cpuid_mas0
(XEN) Video information:ces found and configured.                               
(XEN)  VGA is text mode 80x25, font 8x16                                        
(XEN)  VBE/DDC methods: V2; EDID transfer time: 1 seconds                       
(XEN) Disc information:                                                         
(XEN)  Found 1 MBR signatures                                                  
(XEN)  Found 4 EDD information structures
(XEN) Xen-e820 RAM map:evel: 6
(XEN)  0000000000000000 - 0000000000099800 (usable)
(XEN)  0000000000099800 - 00000000000a0000 (reserved)
(XEN)  00000000000e6000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 00000000dfea0000 (usable)
(XEN)  00000000dfea0000 - 00000000dfeb2000 (ACPI data)
(XEN)  00000000dfeb2000 - 00000000dfee0000 (ACPI NVS)
(XEN)  00000000dfee0000 - 00000000f0000000 (reserved)
(XEN)  00000000ffe00000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 0000000320000000 (usable)
(XEN) Kdump: 64MB (65536kB) at 0x2000000
(XEN) ACPI: RSDP 000FA1C0, 0024 (r2 ACPIAM)
(XEN) ACPI: XSDT DFEA0100, 0054 (r1 SMCI            20131125 MSFT       97)
(XEN) ACPI: FACP DFEA0290, 00F4 (r3 112513 FACP1100 20131125 MSFT       97)
(XEN) ACPI: DSDT DFEA0600, 562B (r1  1CF11 1CF11000        0 INTL 20051117)
(XEN) ACPI: FACS DFEB2000, 0040[  OK  ]
(XEN) ACPI: APIC DFEA0390, 00A4 (r1 112513 APIC1100 20131125 MSFT       97)
(XEN) ACPI: MCFG DFEA0440, 003C (r1 112513 OEMMCFG  20131125 MSFT       97)
(XEN) ACPI: OEMB DFEB2040, 0075 (r1 112513 OEMB1100 20131125 MSFT       97)
(XEN) ACPI: HPET DFEAA600, 0038 (r1 112513 OEMHPET  20131125 MSFT       97)
(XEN) ACPI: SSDT DFEAA640, 1714 (r1 A M I  POWERNOW        1 AMD         1)
(XEN) System RAM: 12286MB (12581092kB)
(XEN) Domain heap initialised DMA width 32 bitsn: [  OK  ]
(XEN) Processor #16 5:2 APIC version 16
(XEN) Processor #17 5:2 APIC version 16
(XEN) Processor #18 5:2 APIC version 16
(XEN) Processor #19 5:2 APIC version 16
(XEN) Processor #20 5:2 APIC version 16K  ]
(XEN) Processor #21 5:2 APIC version 16 not running.
(XEN) Processor #22 5:2 APIC version 16
(XEN) Processor #23 5:2 APIC version 16
(XEN) IOAPIC[0]: apic_id 0, version 33, address 0xfec00000, GSI 0-23
(XEN) IOAPIC[1]: apic_id 1, version 33, address 0xfec20000, GSI 24-55
(XEN) Enabling APIC mode:  Flat.  Using 2 I/O APICs
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2600.055 MHz processor.
(XEN) Initing memory sharing.he memory ballooning daemon: [  OK  ]
(XEN) Writing CPUID feature mask ECX:EDX -> 3698320Bh:178BFBFFh
(XEN) Writing CPUID extended feature mask ECX:EDX -> 01EABFFFh:2FD3FBFFh
(XEN) AMD-Vi: IOMMU not found! signal... 
(XEN) I/O virtualisation disabledgnal... 
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using new ACK methodem time 
(XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 64 KiB.
(XEN) HVM: ASIDs enabled. 
(XEN) SVM: Supported advanced features:tem...
(XEN)  - Nested Page Tables (NPT)
(XEN)  - Last Branch Record (LBR) Virtualisation
(XEN)  - Next-RIP Saved on #VMEXIT
(XEN)  - VMCB Clean Bits
(XEN)  - DecodeAssists
(XEN)  - Pause-Intercept Filter
(XEN) HVM: SVM enabled
(XEN) HVM: Hardware Assisted Paging (HAP) detected
(XEN) HVM: HAP page sizes: 4kB, 2MB, 1GB
(XEN) Brought up 8 CPUs
(XEN) Testing NMI watchdog --- CPU#0 okay. CPU#1 okay. CPU#2 okay. CPU#3 okay. CPU#4 okay. CPU#5 okay. CPU#6 okay. CPU#7 okay. 
(XEN) *** LOADING DOMAIN 0 ***
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 32-bit, PAE, lsb, paddr 0x100000 -> 0x787000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   00000000de000000->00000000df000000 (186362 pages to be allocated)
(XEN)  Init. ramdisk: 000000031f7fa000->000000031ffffc00
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: 00000000c0100000->00000000c0787000
(XEN)  Init. ramdisk: 00000000c0787000->00000000c0f8cc00
(XEN)  Phys-Mach map: 00000000c0f8d000->00000000c1049000
(XEN)  Start info:    00000000c1049000->00000000c10494b4
(XEN)  Page tables:   00000000c104a000->00000000c105a000
(XEN)  Boot stack:    00000000c105a000->00000000c105b000
(XEN)  TOTAL:         00000000c0000000->00000000c1400000
(XEN)  ENTRY ADDRESS: 00000000c0100000
(XEN) Dom0 has maximum 4 VCPUs
...
output truncated