Skip to contentSkip to conversation

Question...

DISCUSSION Samuel P. Felton - GPT LLC 3 participants 5 messages May 1, 2020 – May 14, 2020

lore
Share & tools
lore
#0 lore raw

So, I'm trying to get a Xen Dom0 and DomU, both running Ubuntu 20.04 LTS up on our brand-new Gigabyte ThunderX2 ARM64 box. I can get Ubuntu up and running, but after installing the Xen bits, it dies after the UEFI layer launches GRUB. I haven't been able to get any logfiles because it doesn't get that far. Nothing shows up on the serial port log either - it just hangs.

Has anyone over there been trying to get a similar setup running? Am I out to lunch for trying this, or is there something I'm missing? Any help at all would be appreciated.

If this doesn't work, I'm going to have to go to FreeBSD and Bhyve because I know someone who has that working. I'd rather use Linux than BSD for this application, there are more drivers supporting this hardaware.

Thanks,
~Sam

[cid:[email protected]]
Phone: +1 206 701-7321 ext. 101
Email: [email protected]<mailto:[email protected]?subject=Tell%20me%20about%20Evolucid(r)>

#1 lore raw

Hi Samuel,

Quoted 5 lines · Samuel P. Felton - GPT LLC

So, I’m trying to get a Xen Dom0 and DomU, both running Ubuntu 20.04 LTS up on our brand-new Gigabyte ThunderX2 ARM64 box. I can get Ubuntu up and running, but after installing the Xen bits, it dies after the UEFI layer launches GRUB. I haven’t been able to get any logfiles because it doesn’t get that far. Nothing shows up on the serial port log either – it just hangs.

Has anyone over there been trying to get a similar setup running? Am I out to lunch for trying this, or is there something I’m missing? Any help at all would be appreciated.

I am currently porting Xen on an N1SDP arm board which is also using a EDK2/grub setup and I manage to start xen from grub and then start dom0 providing a DTB.

My grub configuration looks like this:
menuentry 'xen' {
xen_hypervisor $prefix/xen.efi loglvl=all guest_loglvl=all console=dtuart dtuart=serial0 dom0_mem=1G xen_module $prefix/Image console=hvc0 efi=noruntime rw root=/dev/sda1 rootwait devicetree $prefix/n1sdp.dtb
}

Could you share your grub configuration ?

Bertrand

Quoted 9 lines

If this doesn’t work, I’m going to have to go to FreeBSD and Bhyve because I know someone who has that working. I’d rather use Linux than BSD for this application, there are more drivers supporting this hardaware.

Thanks,
~Sam

Quoted 3 lines

<image001.png>
Phone: +1 206 701-7321 ext. 101
Email: [email protected]

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

#2 lore raw

On 1 May 2020, at 10:52, Bertrand Marquis <[email protected]<mailto:[email protected]>> wrote:

Hi Samuel,

On 1 May 2020, at 06:59, Samuel P. Felton - GPT LLC <[email protected]<mailto:[email protected]>> wrote:

So, I’m trying to get a Xen Dom0 and DomU, both running Ubuntu 20.04 LTS up on our brand-new Gigabyte ThunderX2 ARM64 box. I can get Ubuntu up and running, but after installing the Xen bits, it dies after the UEFI layer launches GRUB. I haven’t been able to get any logfiles because it doesn’t get that far. Nothing shows up on the serial port log either – it just hangs.

Has anyone over there been trying to get a similar setup running? Am I out to lunch for trying this, or is there something I’m missing? Any help at all would be appreciated.

I am currently porting Xen on an N1SDP arm board which is also using a EDK2/grub setup and I manage to start xen from grub and then start dom0 providing a DTB.

My grub configuration looks like this:
menuentry 'xen' {
xen_hypervisor $prefix/xen.efi loglvl=all guest_loglvl=all console=dtuart dtuart=serial0 dom0_mem=1G xen_module $prefix/Image console=hvc0 efi=noruntime rw root=/dev/sda1 rootwait devicetree $prefix/n1sdp.dtb
}

Could you share your grub configuration ?

Bertrand

If this doesn’t work, I’m going to have to go to FreeBSD and Bhyve because I know someone who has that working. I’d rather use Linux than BSD for this application, there are more drivers supporting this hardaware.

Thanks,
~Sam

<image001.png>
Phone: +1 206 701-7321 ext. 101
Email: [email protected]<mailto:[email protected]>

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Sorry, I forgot to remove the disclaimer.
Bertrand

#3 lore raw
In reply to Bertrand Marquis

Hi,

Quoted 5 lines · Bertrand Marquis

Hi Samuel,

Quoted 3 lines · Samuel P. Felton - GPT LLC

So, I’m trying to get a Xen Dom0 and DomU, both running Ubuntu 20.04 LTS up on our brand-new Gigabyte ThunderX2 ARM64 box. I can get Ubuntu up and running, but after installing the Xen bits, it dies after the UEFI layer launches GRUB. I haven’t been able to get any logfiles because it doesn’t get that far. Nothing shows up on the serial port log either – it just hangs.

IIUC what you wrote, you don't see any prompt from GRUB. Am I correct?

Quoted 11 lines
Quoted 2 lines

Has anyone over there been trying to get a similar setup running? Am I out to lunch for trying this, or is there something I’m missing? Any help at all would be appreciated.

I am currently porting Xen on an N1SDP arm board which is also using a EDK2/grub setup and I manage to start xen from grub and then start dom0 providing a DTB.

My grub configuration looks like this:
menuentry 'xen' {
xen_hypervisor $prefix/xen.efi loglvl=all guest_loglvl=all console=dtuart dtuart=serial0 dom0_mem=1G xen_module $prefix/Image console=hvc0 efi=noruntime rw root=/dev/sda1 rootwait devicetree $prefix/n1sdp.dtb
}

Depending on your GRUB configuration, this may not work. For older GRUB, you will want to use chainloading (see [1]).

I haven't used Thunder-X 2 yet, only the previous version. Both version are shipped with ACPI and is the preferred way to boot. You should be able to boot Xen using ACPI, but it is not yet in feature parity with DT.

So I would recommend to use DT if Thunder-X 2 provide one. If you still want to have a try with ACPI, then you will need to build Xen with CONFIG_ACPI=y.

Additionally, Thunder-X 2 is using GICv3 ITS. You will need to build Xen with CONFIG_GICV3_ITS=y.

Both options can only be selectable when using the expert mode. In order to access it you have to add XEN_CONFIG_EXPERT=y on *all* your make command line.

I hope this helps.

Quoted 10 lines

Could you share your grub configuration ?

Bertrand

Quoted 5 lines

If this doesn’t work, I’m going to have to go to FreeBSD and Bhyve because I know someone who has that working. I’d rather use Linux than BSD for this application, there are more drivers supporting this hardaware.

Thanks,
~Sam

[1] https://wiki.xenproject.org/wiki/Xen_EFI

Signature · 1 line
Julien Grall
#4 lore raw
In reply to Bertrand Marquis

Bonjour, Bertrand,

Thank you for your reply. I am a newbie to Xen but I’ve used Bhyve, Vmware and MSFT Hyper-V before so I am somewhat familiar with how type-1 hypervisors work. Still. 🤔

I've enclosed:

1. The script I used to try to set up Dom0. It’s basically the script I found here: https://angryelectron.com/how-to-install-ubuntu-as-xen-dom0-and-domu/, except, slightly modified for AArch64/ARMv8 as close as I was able to determine it.
2. The grub.cfg file.

As I said, the serial port STDOUT goes dead so no logs. Please help me understand how to turn on logging so I can figure out what’s going on.

The machine I’m porting to is this one: https://www.gigabyte.com/tw/ARM-Server/R281-T94-rev-100#ov

It has 128G RAM and a total of 5TB of SAS and SSD disk. I’m booting off one of the SSDs.

It runs Ubuntu 20.04 LTS just fine; I even have a UEFI GOP driver for the AMD Radeon R9 GPU I plugged in. All of that works fine with Ubuntu.

Thanks in advance for any ideas

Rgds.,
~Sam

“Your best and wisest refuge from all troubles is in your science”
- Ada King, countess of Lovelace

-----Original Message-----
From: Bertrand Marquis <[email protected]>
Sent: Friday, May 1, 2020 2:52
To: Samuel P. Felton - GPT LLC <[email protected]>
Cc: [email protected]
Subject: Re: Question...

Hi Samuel,

Quoted 9 lines · On 1 May 2020, at 06:59, Samuel P. Felton - GPT LLC…

So, I’m trying to get a Xen Dom0 and DomU, both running Ubuntu 20.04 LTS up on our brand-new Gigabyte ThunderX2 ARM64 box. I can get Ubuntu up and running, but after installing the Xen bits, it dies after the UEFI layer launches GRUB. I haven’t been able to get any logfiles because it doesn’t get that far. Nothing shows up on the serial port log either – it just hangs.

Has anyone over there been trying to get a similar setup running? Am I out to lunch for trying this, or is there something I’m missing? Any help at all would be appreciated.

I am currently porting Xen on an N1SDP arm board which is also using a EDK2/grub setup and I manage to start xen from grub and then start dom0 providing a DTB.

My grub configuration looks like this:

menuentry 'xen' {

xen_hypervisor $prefix/xen.efi loglvl=all guest_loglvl=all console=dtuart dtuart=serial0 dom0_mem=1G

xen_module $prefix/Image console=hvc0 efi=noruntime rw root=/dev/sda1 rootwait

devicetree $prefix/n1sdp.dtb

}

Could you share your grub configuration ?

Bertrand

Quoted 18 lines

If this doesn’t work, I’m going to have to go to FreeBSD and Bhyve because I know someone who has that working. I’d rather use Linux than BSD for this application, there are more drivers supporting this hardaware.

Thanks,

~Sam

Quoted 5 lines

<image001.png>

Phone: +1 206 701-7321 ext. 101

Email: [email protected]<mailto:[email protected]>

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.