OpenSolaris

Printable Version Enter a New Search
Bug ID 6714698
Synopsis snv_91 xVM spurious failure on VT-enabled hardware
State 11-Closed:Not a Defect (Closed)
Category:Subcategory xvm:utility
Keywords A05 | A08 | Dell | M1530 | XPS | dropbear | regression | user-error
Reported Against snv_91
Duplicate Of
Introduced In
Commit to Fix
Fixed In
Release Fixed
Related Bugs
Submit Date 14-June-2008
Last Update Date 16-June-2008
Description
snv_91 has a spurious failure to detect my VT-enabled dual-core Intel Core2Duo cpu.

(I ran JoeB's program from http://blogs.sun.com/JoeBonasera/entry/detecting_hardware_virtualization_support_for, which reports "yes")

========================================================================
bash-3.2# uname -a
SunOS gedanken 5.11 snv_91 i86pc i386 i86xpv
bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/snv_91      201G   6.8G   154G     5%    /
/devices                 0K     0K     0K     0%    /devices
/dev                     0K     0K     0K     0%    /dev
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   5.8G   380K   5.8G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap3.so.1
                       160G   6.8G   154G     5%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   5.8G    16K   5.8G     1%    /tmp
swap                   5.8G    80K   5.8G     1%    /var/run
rpool/export           201G    19K   154G     1%    /export
rpool/export/home      201G   6.6G   154G     5%    /export/home
rpool/optcsw           201G   225M   154G     1%    /opt/csw
rpool/gate             201G   2.2G   154G     2%    /opt/gate
rpool/hometools        201G   2.1G   154G     2%    /opt/hometools
rpool/optlocal         201G   1.2G   154G     1%    /opt/local
rpool                  201G    35K   154G     1%    /rpool
rpool/scratch          201G   1.3M   154G     1%    /scratch
/export/home/jmcp      160G   6.6G   154G     5%    /home/jmcp
/dev/dsk/c0t0d0s2      579M   579M     0K   100%    /media/VRMPVOL_EN
bash-3.2# virt-install -n winxpxvm -r 512 -s 10 --vcpus=1 --file /dev/zvol/dsk/rpool/winxpxvm  --cdrom=/dev/rdsk/c0t0d0s2 --os-type=windows --os-variant=vista --sdl -v 


Starting install...
libvir: Xen Daemon error : GET operation failed: 
libvir: Xen Daemon error : GET operation failed: 
libvir: Xen Daemon error : POST operation failed: (xend.err 'Error creating domain: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?')
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 657, in ?
    main()
  File "/usr/bin/virt-install", line 606, in main
    dom = guest.start_install(conscb,progresscb)
  File "/export/builds/xvm_91/proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 638, in start_install
  File "/export/builds/xvm_91/proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 655, in _do_install
  File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 585, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirt.libvirtError: virDomainCreateLinux() failed POST operation failed: (xend.err 'Error creating domain: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?')
========================================================================

output from prtconf -v and prtpicl -v is attached.

The end result is that I cannot create any domUs on snv_91.
The system is a Dell XPS M1530. I recently did a bios update from A05 to A08.
The A08 version has a new option - Virtualization support. Turns out that this
is _disabled_ by default in the bios. 

Here's the output from xm info with that option disabled:

Output from "xm info"::

-bash-3.2# xm info 
host                   : gedanken
release                : 5.11
version                : snv_91
machine                : i86pc
nr_cpus                : 2
nr_nodes               : 1
sockets_per_node       : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 2194
hw_caps                : bfebfbff:20100800:00000000:00000140:0000e3bd:00000000:00000001
total_memory           : 4094
free_memory            : 128
xen_major              : 3
xen_minor              : 1
xen_extra              : .4-xvm
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p 
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : Tue May 27 23:21:00 2008 -0700 15876:e43193252b89
cc_compiler            : gcc version 3.4.3 (csl-sol210-3_4-20050802)
cc_compile_by          : xen-discuss
cc_compile_domain      : opensolaris.org
cc_compile_date        : Tue May 27 23:21:45 PDT 2008
xend_config_format     : 4


-bash-3.2# xm dmesg
 xVM version 3.1.4-xvm
(xVM) Command line: 
(xVM) Video information:
(xVM)  VGA is text mode 80x25, font 8x16
(xVM)  VBE/DDC methods: none; EDID transfer time: 0 seconds
(xVM)  EDID info not retrieved because no DDC retrieval method detected
(xVM) Disc information:
(xVM)  Found 1 MBR signatures
(xVM)  Found 1 EDD information structures
(xVM) Xen-e820 RAM map:
(xVM)  0000000000000000 - 000000000009f000 (usable)
(xVM)  000000000009f000 - 00000000000a0000 (reserved)
(xVM)  0000000000100000 - 00000000dfe72000 (usable)
(xVM)  00000000dfe72000 - 00000000e0000000 (reserved)
(xVM)  00000000f4000000 - 00000000f8000000 (reserved)
(xVM)  00000000fec00000 - 00000000fec10000 (reserved)
(xVM)  00000000fed18000 - 00000000fed1c000 (reserved)
(xVM)  00000000fed20000 - 00000000fed90000 (reserved)
(xVM)  00000000feda0000 - 00000000feda6000 (reserved)
(xVM)  00000000fee00000 - 00000000fee10000 (reserved)
(xVM)  00000000ffe00000 - 0000000100000000 (reserved)
(xVM)  0000000100000000 - 0000000120000000 (usable)
(xVM) System RAM: 4094MB (4192324kB)
(xVM) Xen heap: 14MB (14720kB)
(xVM) Domain heap initialised: DMA width 32 bits
(xVM) Processor #0 6:15 APIC version 20
(xVM) Processor #1 6:15 APIC version 20
(xVM) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
(xVM) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(xVM) Using scheduler: SMP Credit Scheduler (credit)
(xVM) Detected 2194.558 MHz processor.
(xVM) VMX disabled by Feature Control MSR.
(xVM) CPU0: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz stepping 0b
(xVM) Booting processor 1/1 eip 90000
(xVM) VMX disabled by Feature Control MSR.
(xVM) CPU1: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz stepping 0b
(xVM) Total of 2 processors activated.
(xVM) ENABLING IO-APIC IRQs
(xVM)  -> Using new ACK method
(xVM) Platform timer overflows in 14998 jiffies.
(xVM) Platform timer is 14.318MHz HPET
(xVM) Brought up 2 CPUs
(xVM) *** LOADING DOMAIN 0 ***
(xVM)  Xen  kernel: 64-bit, lsb, compat32
(xVM)  Dom0 kernel: 64-bit, lsb, paddr 0x40000000 -> 0x40825d78
(xVM) PHYSICAL MEMORY ARRANGEMENT:
(xVM)  Dom0 alloc.:   0000000118000000->000000011c000000 (979040 pages to be allocated)
(xVM) VIRTUAL MEMORY ARRANGEMENT:
(xVM)  Loaded kernel: 0000000040000000->0000000040825d78
(xVM)  Init. ramdisk: 0000000040826000->0000000042648000
(xVM)  Phys-Mach map: 0000000042648000->0000000042de0300
(xVM)  Start info:    0000000042de1000->0000000042de149c
(xVM)  Page tables:   0000000042de2000->0000000042dfd000
(xVM)  Boot stack:    0000000042dfd000->0000000042dfe000
(xVM)  TOTAL:         0000000040000000->0000000043000000
(xVM)  ENTRY ADDRESS: 0000000040800000
(xVM) Dom0 has maximum 2 VCPUs
(xVM) Initrd len 0x1e22000, start at 0x40826000
(xVM) Scrubbing Free RAM: .done.
(xVM) Xen trace buffers: disabled
(xVM) Std. Loglevel: Errors and warnings
(xVM) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(xVM) Xen is relinquishing VGA console.
(xVM) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen).
(xVM) Freed 128kB init memory.
(xVM) Xen trace buffers: initialized
-bash-3.2# 

When I turn the option on, voila!

-bash-3.2# xm info
host                   : gedanken
release                : 5.11
version                : snv_91
machine                : i86pc
nr_cpus                : 2
nr_nodes               : 1
sockets_per_node       : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 2194
hw_caps                : bfebfbff:20100800:00000000:00000140:0000e3bd:00000000:00000001
total_memory           : 4094
free_memory            : 128
xen_major              : 3
xen_minor              : 1
xen_extra              : .4-xvm
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : Tue May 27 23:21:00 2008 -0700 15876:e43193252b89
cc_compiler            : gcc version 3.4.3 (csl-sol210-3_4-20050802)
cc_compile_by          : xen-discuss
cc_compile_domain      : opensolaris.org
cc_compile_date        : Tue May 27 23:21:45 PDT 2008
xend_config_format     : 4

-bash-3.2# xm dmesg
 xVM version 3.1.4-xvm
(xVM) Command line: 
(xVM) Video information:
(xVM)  VGA is text mode 80x25, font 8x16
(xVM)  VBE/DDC methods: none; EDID transfer time: 0 seconds
(xVM)  EDID info not retrieved because no DDC retrieval method detected
(xVM) Disc information:
(xVM)  Found 1 MBR signatures
(xVM)  Found 1 EDD information structures
(xVM) Xen-e820 RAM map:
(xVM)  0000000000000000 - 000000000009f000 (usable)
(xVM)  000000000009f000 - 00000000000a0000 (reserved)
(xVM)  0000000000100000 - 00000000dfe72000 (usable)
(xVM)  00000000dfe72000 - 00000000e0000000 (reserved)
(xVM)  00000000f4000000 - 00000000f8000000 (reserved)
(xVM)  00000000fec00000 - 00000000fec10000 (reserved)
(xVM)  00000000fed18000 - 00000000fed1c000 (reserved)
(xVM)  00000000fed20000 - 00000000fed90000 (reserved)
(xVM)  00000000feda0000 - 00000000feda6000 (reserved)
(xVM)  00000000fee00000 - 00000000fee10000 (reserved)
(xVM)  00000000ffe00000 - 0000000100000000 (reserved)
(xVM)  0000000100000000 - 0000000120000000 (usable)
(xVM) System RAM: 4094MB (4192324kB)
(xVM) Xen heap: 14MB (14720kB)
(xVM) Domain heap initialised: DMA width 32 bits
(xVM) Processor #0 6:15 APIC version 20
(xVM) Processor #1 6:15 APIC version 20
(xVM) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
(xVM) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(xVM) Using scheduler: SMP Credit Scheduler (credit)
(xVM) Detected 2194.555 MHz processor.
(xVM) HVM: VMX enabled
(xVM) VMX: MSR intercept bitmap enabled
(xVM) CPU0: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz stepping 0b
(xVM) Booting processor 1/1 eip 90000
(xVM) CPU1: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz stepping 0b
(xVM) Total of 2 processors activated.
(xVM) ENABLING IO-APIC IRQs
(xVM)  -> Using new ACK method
(xVM) Platform timer overflows in 14998 jiffies.
(xVM) Platform timer is 14.318MHz HPET
(xVM) Brought up 2 CPUs
(xVM) *** LOADING DOMAIN 0 ***
(xVM)  Xen  kernel: 64-bit, lsb, compat32
(xVM)  Dom0 kernel: 64-bit, lsb, paddr 0x40000000 -> 0x40825d78
(xVM) PHYSICAL MEMORY ARRANGEMENT:
(xVM)  Dom0 alloc.:   0000000118000000->000000011c000000 (979040 pages to be allocated)
(xVM) VIRTUAL MEMORY ARRANGEMENT:
(xVM)  Loaded kernel: 0000000040000000->0000000040825d78
(xVM)  Init. ramdisk: 0000000040826000->0000000042648000
(xVM)  Phys-Mach map: 0000000042648000->0000000042de0300
(xVM)  Start info:    0000000042de1000->0000000042de149c
(xVM)  Page tables:   0000000042de2000->0000000042dfd000
(xVM)  Boot stack:    0000000042dfd000->0000000042dfe000
(xVM)  TOTAL:         0000000040000000->0000000043000000
(xVM)  ENTRY ADDRESS: 0000000040800000
(xVM) Dom0 has maximum 2 VCPUs
(xVM) Initrd len 0x1e22000, start at 0x40826000
(xVM) Scrubbing Free RAM: .done.
(xVM) Xen trace buffers: disabled
(xVM) Std. Loglevel: Errors and warnings
(xVM) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(xVM) Xen is relinquishing VGA console.
(xVM) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen).
(xVM) Freed 128kB init memory.
(xVM) Xen trace buffers: initialized


Note the difference in the xen_caps output!
Work Around
N/A
Comments
N/A