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

Re: [Xen-devel] Bug Xen-4.4.0-RC6 with Hyper-V on Server 2012 R2.



Ok,

So the two patch work ok, but now the last error is the "screen flush issue", in SDL or VNC i did not found a solution (i saw force screen refresh in the wiki but, i do not know how to enable it).

But thanks for all.

-----Message d'origine----- From: Zhang, Yang Z
Sent: Monday, March 03, 2014 2:54 AM
To: valentin.meriel@xxxxxxxxx ; xen-devel@xxxxxxxxxxxxx
Subject: RE: [Xen-devel] Bug Xen-4.4.0-RC6 with Hyper-V on Server 2012 R2.

valentin.meriel@xxxxxxxxx wrote on 2014-03-03:
Ok thank you.

I'll try tomorrow, but there is no mention of Hyper-V in the wiki for
these patch, only VMware.

For boot hyper-v, there is no patch is needed, only the screen flush issue. But to boot guest, you need the two patches (It seems one of them is accepted).I will update the wiki later.



From: Zhang, Yang Z <mailto:yang.z.zhang@xxxxxxxxx> Sent: Monday, March
03, 2014 2:12 AM To: Valentin Meriel <mailto:valentin.meriel@xxxxxxxxx>
; xen-devel@xxxxxxxxxxxxx Subject: RE: [Xen-devel] Bug Xen-4.4.0-RC6
with Hyper-V on Server 2012 R2.


Please refer the following link:

http://wiki.xenproject.org/wiki/Xen_nested
<http://wiki.xenproject.org/wiki/Xen_nested>



Also the following patch is missing if you want to boot VMware,
Hyper-v on top of Xen:

http://www.gossamer-threads.com/lists/xen/devel/316994
<http://www.gossamer-threads.com/lists/xen/devel/316994>

http://www.gossamer-threads.com/lists/xen/devel/316993
<http://www.gossamer-threads.com/lists/xen/devel/316993>





NB: the screen flush has issue with hyper-v:  screen stuck but the VM
still was running just like you mentioned that âVm stuck on the first screenâ.



Best regards,

Yang



From: xen-devel-bounces@xxxxxxxxxxxxx
[mailto:xen-devel-bounces@xxxxxxxxxxxxx] On Behalf Of Valentin Meriel
Sent: Monday, March 03, 2014 5:48 AM
To: xen-devel@xxxxxxxxxxxxx
Subject: [Xen-devel] Bug Xen-4.4.0-RC6 with Hyper-V on Server 2012 R2.



Hello,

I have a probleme with Xen-4.4.0-rc6.

I try to use Hyper-V on Xen 4.4.0, because of none sucess with KVM and Qemu.
I want to because i want to passthrough one (or more) VGA card to
Hyper-V to test remoteFX (just for test if it work).

So on KVM-Qemu i can not install Hyper-V on Windows Server 2012 R2
because of an allready runnig Hypervisor.
On Xen i have the same "error" but if i add :
    hap = 1
    nestedhvm = 1
    cpuid = ['0x1:ecx=0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx']
to my config file, i can install Hyper-V role, but when the VM restart
it does not work, the Vm stuck on the first screen with the Windows logo.

To make the VM start again i have to comment out cpuid =
['0x1:ecx=0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'] and after the VM can
start, but when i whant to start the L2 VM (the Hyper-V's VM) Hyper-V
cant because one of this service is not started (or something like that).

Have you an idea ? Because in the wiki it's say it's work.


This is xl dmesg :

Xen 4.4-rc (XEN) Xen version 4.4-rc (root@) (gcc (Ubuntu/Linaro
4.8.1-10ubuntu9) 4.8.1) debug=n Sun Mar  2 19:43:21 CET 2014 (XEN)
Latest ChangeSet: Mon Feb 24 12:57:53 2014 +0000 git:5be1e95 (XEN)
Bootloader: GRUB 2.00-19ubuntu2.1 (XEN) Command line: placeholder (XEN)
Video information: (XEN)  VGA is text mode 80x25, font 8x16 (XEN)
VBE/DDC methods: V2; EDID transfer time: 1 seconds (XEN) Disc
information: (XEN)  Found 2 MBR signatures (XEN)  Found 2 EDD
information structures (XEN) Xen-e820 RAM map: (XEN)  0000000000000000 -
000000000009dc00 (usable) (XEN)  000000000009f800 - 00000000000a0000
(reserved) (XEN)  00000000000f0000 - 0000000000100000 (reserved) (XEN)
0000000000100000 - 00000000dfeb0000 (usable) (XEN)  00000000dfeb0000 -
00000000dfee1000 (ACPI NVS) (XEN)  00000000dfee1000 - 00000000dfef0000
(ACPI data) (XEN)  00000000dfef0000 - 00000000dff00000 (reserved) (XEN)
00000000f4000000 - 00000000f8000000 (reserved) (XEN)  00000000fec00000 -
0000000100000000 (reserved) (XEN)  0000000100000000 - 0000000320000000
(usable) (XEN) ACPI: RSDP 000F7660, 0014 (r0 GBT   ) (XEN) ACPI: RSDT
DFEE1040, 0048 (r1 GBT    GBTUACPI 42302E31 GBTU 1010101) (XEN) ACPI:
FACP DFEE1100, 0074 (r1 GBT    GBTUACPI 42302E31 GBTU 1010101) (XEN)
ACPI: DSDT DFEE11C0, 4F50 (r1 GBT    GBTUACPI     1000 MSFT 100000C)
(XEN) ACPI: FACS DFEB0000, 0040 (XEN) ACPI: MSDM DFEE6300, 0055 (r3 GBT
  GBTUACPI 42302E31 GBTU 1010101) (XEN) ACPI: HPET DFEE63C0, 0038 (r1
GBT    GBTUACPI 42302E31 GBTU 98) (XEN) ACPI: MCFG DFEE6440, 003C (r1
GBT    GBTUACPI 42302E31 GBTU 1010101) (XEN) ACPI: EUDS DFEE6500, 0470
(r1 GBT                    0 0) (XEN) ACPI: TAMG DFEE6970, 0B3A (r1 GBT
  GBT   B0 5455312E BG 53450101) (XEN) ACPI: APIC DFEE6180, 012C (r1 GBT
   GBTUACPI 42302E31 GBTU 1010101) (XEN) ACPI: SSDT DFEE74C0, 2FD4 (r1
INTEL PPM RCM  80000001 INTL 20061109) (XEN) ACPI: DMAR DFEEA4C0, 00B0
(r1 IntelR AWRDACPI 322E3030 DRWA 2) (XEN) System RAM: 12286MB
(12581172kB) (XEN) Domain heap initialised (XEN) Processor #0 7:10 APIC
version 21 (XEN) Processor #2 7:10 APIC version 21 (XEN) Processor #4
7:10 APIC version 21 (XEN) Processor #6 7:10 APIC version 21 (XEN)
Processor #1 7:10 APIC version 21 (XEN) Processor #3 7:10 APIC version
21 (XEN) Processor #5 7:10 APIC version 21 (XEN) Processor #7 7:10 APIC
version 21 (XEN) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000,
GSI 0-23 (XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs (XEN) Using
scheduler: SMP Credit Scheduler (credit) (XEN) Detected 2664.876 MHz
processor. (XEN) Initing memory sharing. (XEN) Intel VT-d iommu 0
supported page sizes: 4kB. (XEN) Intel VT-d iommu 1 supported page
sizes: 4kB. (XEN) Intel VT-d Snoop Control not enabled. (XEN) Intel VT-d
Dom0 DMA Passthrough not enabled. (XEN) Intel VT-d Queued Invalidation
enabled. (XEN) Intel VT-d Interrupt Remapping enabled. (XEN) Intel VT-d
Shared EPT tables not enabled. (XEN) [VT-D]iommu.c:2069:
ioapic_to_iommu: ioapic 0 (id: 0x2) is NULL! Will not try to enable
Interrupt Remapping. (XEN) I/O virtualisation enabled (XEN)  - Dom0
mode: Relaxed (XEN) Interrupt remapping disabled (XEN) ENABLING IO-APIC
IRQs (XEN)  -> Using new ACK method (XEN) Platform timer is 14.318MHz
HPET (XEN) Allocated console ring of 16 KiB. (XEN) VMX: Supported
advanced features: (XEN)  - APIC MMIO access virtualisation (XEN)  -
APIC TPR shadow (XEN)  - Extended Page Tables (EPT) (XEN)  -
Virtual-Processor Identifiers (VPID) (XEN)  - Virtual NMI (XEN)  - MSR
direct-access bitmap (XEN) HVM: ASIDs enabled. (XEN) HVM: VMX enabled
(XEN) HVM: Hardware Assisted Paging (HAP) detected (XEN) HVM: HAP page
sizes: 4kB, 2MB (XEN) Brought up 8 CPUs (XEN) *** LOADING DOMAIN 0 ***
(XEN)  Xen  kernel: 64-bit, lsb, compat32 (XEN)  Dom0 kernel: 64-bit,
PAE, lsb, paddr 0x1000000 -> 0x23fa000 (XEN) PHYSICAL MEMORY
ARRANGEMENT: (XEN)  Dom0 alloc.:   000000030c000000->0000000310000000
(3041946 pages to be allocated) (XEN)  Init. ramdisk:
000000031d13c000->000000031ffff800 (XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff81000000->ffffffff823fa000 (XEN)  Init.
ramdisk: ffffffff823fa000->ffffffff852bd800 (XEN)  Phys-Mach map:
ffffffff852be000->ffffffff86a2aaf0 (XEN)  Start info:
ffffffff86a2b000->ffffffff86a2b4b4 (XEN)  Page tables:
ffffffff86a2c000->ffffffff86a65000 (XEN)  Boot stack:
ffffffff86a65000->ffffffff86a66000 (XEN)  TOTAL:
ffffffff80000000->ffffffff86c00000 (XEN)  ENTRY ADDRESS:
ffffffff81d341e0 (XEN) Dom0 has maximum 8 VCPUs (XEN) Scrubbing Free
RAM: .done. (XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Std. Loglevel: Errors and warnings (XEN) Guest Loglevel: Nothing
(Rate-limited: Errors and warnings) (XEN) Xen is relinquishing VGA
console. (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to
switch input to Xen) (XEN) Freed 280kB init memory.


This is xl info :

host                   : val-host-test release                :
3.13.3-with-acs version                : #1 SMP Mon Feb 17 23:02:44 CET
2014 machine                : x86_64 nr_cpus                : 8
max_cpu_id             : 15 nr_nodes               : 1 cores_per_socket
     : 4 threads_per_core       : 2 cpu_mhz                : 2664
hw_caps                :
bfebfbff:28100800:00000000:00003b00:0098e3bd:00000000:00000001:00000 000
virt_caps              : hvm hvm_directio total_memory           : 12286
free_memory            : 128 sharing_freed_memory   : 0
sharing_used_memory    : 0 outstanding_claims     : 0 free_cpus
    : 0 xen_major              : 4 xen_minor              : 4 xen_extra
            : -rc xen_version            : 4.4-rc 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          : Mon Feb 24 12:57:53 2014 +0000 git:5be1e95
xen_commandline        : placeholder cc_compiler            : gcc
(Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 cc_compile_by          : root
cc_compile_domain      : cc_compile_date        : Sun Mar  2 19:43:21
CET 2014 xend_config_format     : 4


And this is my config file :

#kernel = 'hvmloader'
builder = 'hvm'
# Memory reserved for Windows domU, in this case 4GB (adjust to your needs):
memory = 4096
# Name of the domU:
name = 'Windows-Server-2012-R2'
# Most CPUs have 4 cores / 8 threads (=8 vcpus). Check your CPU and
change as needed!:
vcpus = 1
# Only for 32 bit guests - don't use for 64 bit:
#pae = 1
acpi = 1
apic = 1
hap = 1
nestedhvm = 1
cpuid = ['0x1:ecx=0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx']
nx = 1
on_xend_stop = 'shutdown'
# Here my virtual network interfaces - see /etc/network/interfaces below:
vif = [ 'mac=00:16:3e:68:e1:01,bridge=br0,model=e1000' ] # I assigned
a static MAC address, else it will be changed each time Windows #
boots. The address should start with 00:16:3e., the rest is up to you.
# Specifying the disks and Windows ISO for installation, adjust to your needs:
disk = [
        'file:/home/val/Windows-Server-2012-r2-test-vm-xen.img,hda,w'
        #,'file:/home/val/Partage/Windows-server-2012-R2-RTM-64
bits/fr_windows_server_2012_r2_x64_dvd.iso,hdc:cdrom,r' ] # More disks
can be added later using this same method. The path to the # device or a
file can be added. After the first comma is how the device will #
appear. "hda" is the first, "hdb" the second etc. "hda" will appear as
IDE, # sda will appear as SCSI or SATA. After the second comma "r" means
read # only and "w" is for write. device_model_version =
"qemu-xen-traditional" boot = 'c' # The above should be changed once
Windows is installed: boot='c' to only # show the Windows file system,
else it may try to boot from the ISO image. sdl = 0 vnc = 1 vnclisten =
'0.0.0.0' vncpasswd = '' keymap = 'fr' stdvga = 0 # nographic=1 #!!!
only uncomment this if you are using win8 or are trying # to get a
Nvidia card to work. In my case - Nvidia Quadro 2000 - this was not #
needed. serial = 'pty' tsc_mode = "default" viridian = 1 #soundhw =
'all' # This allows sharing the USB mouse/keyboard: usb = 1 usbdevice =
'tablet' # gfx_passthru=0 is how it works for most AMD cards and my
Quadro 2000 card. # gfx_passthru=1 would pass through the graphics card
as primary display adapter. # You can change this later for iGPUs or
nVidia if needed. # Try it with 0 first! #gfx_passthru = 0 #Enter the
PCI IDs you wish to passthru: #pci = [ '02:00.0', '02:00.1' , '00:1a.0'
] # The following lets Windows take the local time from the dom0:
localtime = 1 #To turn on pci power management globally, use (see
remarks under pci=... below): #pci_power_mgmt = 1


Thanks, and sorry for the my bad english, i'm french ^^.

Valentin Meriel.


Best regards,
Yang



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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