CentOS 6.3 64 bit KVM Guest fails

apmuthu

Well-Known Member
Feb 26, 2009
807
8
58
Chennai - India & Singapore
github.com
Installed guest (2.6 kernel):
QEMU KVM using:
CentOS-6.3-x86_64-minimal-EFI.iso
2048 MB RAM
20GB HDD

On first boot:

ifup eth0
yum update
yum install nano
shutdown -r now
yum -y groupinstall "Desktop" "Desktop Platform" "General Purpose Desktop" "Fonts" "X Window System"
shutdown -r now

# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=ngwtsg.planhosts.com

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="5E:3A:14:5A:8C:29"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="7678a205-aaca-471f-a201-9d44cbb4e66b"

# cat /etc/sysconfig/init
# color => new RH6.0 bootup
# verbose => old-style bootup
# anything else => new style bootup without ANSI colors or positioning
BOOTUP=color
# column to start "[ OK ]" label in
RES_COL=60
# terminal sequence to move to that column. You could change this
# to something like "tput hpa ${RES_COL}" if your terminal supports it
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
# terminal sequence to set color to a 'success' color (currently: green)
SETCOLOR_SUCCESS="echo -en \\033[0;32m"
# terminal sequence to set color to a 'failure' color (currently: red)
SETCOLOR_FAILURE="echo -en \\033[0;31m"
# terminal sequence to set color to a 'warning' color (currently: yellow)
SETCOLOR_WARNING="echo -en \\033[0;33m"
# terminal sequence to reset to the default color.
SETCOLOR_NORMAL="echo -en \\033[0;39m"
# Set to anything other than 'no' to allow hotkey interactive startup...
PROMPT=yes
# Set to 'yes' to allow probing for devices with swap signatures
AUTOSWAP=no
# What ttys should gettys be started on?
ACTIVE_CONSOLES=/dev/tty[1-6]
# Set to '/sbin/sulogin' to prompt for password on single-user mode
# Set to '/sbin/sushell' otherwise
SINGLE=/sbin/sushell

# cat /etc/X11/xorg.conf
Section "Device"
Identifier "Videocard0"
Driver "vesa"
EndSection

When logging in to CentOS 6.3 on CLI and then trying to start X we get the following error:

Code:
X.Org X Server 1.10.6
Release Date: 2012-02-10
X Protocol Version 11, Revision 0
Build Operating System: c6b7 2.6.32-220.el6.x86_64
Current Operating System: Linux ngwtsg.example.com 2.6.32-279.19.1.el6.x86_64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86_64
Kernel command line: ro root=/dev/mapper/vg_ngwtsg-lv_root nomodeset rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16  rd_LVM_LV=vg_ngwtsg/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rd_LVM_LV=vg_ngwtsg/lv_root rhgb quiet
Build Date: 24 January 2013  04:14:37PM
Build ID: xorg-x11-server 1.10.6-1.0.1.el6.centos
Current version of pixman: 0.18.4
        Before reporting problems, check http://wiki.centos.org/Documentation
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 31 17:22:48 2013
(==) Using config file: "/etc/X11/xorg.conf"
expected keysym, got XF86TouchpadOn: line 120 of inet
expected keysym, got XF86TouchpadOff: line 121 of inet
expected keysym, got XF86TouchpadOn: line 120 of inet
expected keysym, got XF86TouchpadOff: line 121 of inet
(EE) QEMU 0.15.0 QEMU USB Tablet: failed to initialize for relative axes.

Even the patched /etc/X11/xorg.conf was useless.

Anyone used CentOS 6.3 64 bit on either PVE 1.x or PVE 2.x in GUI mode?
 
Last edited:
Re: CentOS 6.3 64 bit KVM Guest fails - Solved

Finally got it to work with the following /etc/X11/xorg.conf, starting it with startx:
Code:
# This is an Xorg configuration file for QEMU/KVM virtual machines.
# It lets you run with resolutions larger than 800x600.
#
# Save it to /etc/X11/xorg.conf.
# Modify the resolution to suit your needs.
#
# If you're having problems, try booting with the flag -std-vga.

Section "Device"
    Identifier      "device"
    Driver          "vesa"
EndSection

Section "Screen"
    Identifier      "screen"
    Device          "device"
    Monitor         "monitor"
    DefaultDepth    16
    SubSection "Display"
        [B]Depth       16[/B]
        Modes       "1280x1024" "1024x768" "800x600"
    EndSubSection
EndSection

Section "Monitor"
    Identifier      "monitor"
    HorizSync       20.0 - 50.0
    VertRefresh     40.0 - 80.0
    Option          "DPMS"
EndSection

Section "ServerLayout"
    Identifier      "layout"
    Screen          "screen"
EndSection

The mice synchronise well at 1280 x 1024 resolution. At other resolutions double mouse pointers appear.

Can run startx from putty ssh as well!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!