nephele-vm / experiments

MIT License
4 stars 0 forks source link

Problems in installing Nephele environment #1

Open coder-y04 opened 6 months ago

coder-y04 commented 6 months ago

My server version is Ubuntu 22.04, with Linux kernel version 5.15. Because my server originally had a Xen environment, I did not follow the instructions at https://github.com/nephele-vm/experiments entirely, but I referenced the Xen part of the build.sh script to set up. Here is the installation process:

git clone https://github.com/nephele-vm/experiments.git
cd experiments
mkdir dev
cd dev
git clone https://github.com/nephele-vm/xen.git

# build ovs,the build.sh script used
build_ovs 

cd /root/experiments/dev/xen

# configure
./configure --disable-docs --disable-stubdom #--prefix=/root/dist/xen/

# build xen hypervisor
cd xen
cp /root/experiments/build/xen/config .config
make CONFIG_MEM_SHARING=y
cd ../

# build tools
make dist-tools CONFIG_SEABIOS=n CONFIG_IPXE=n CONFIG_QEMU_XEN=y CONFIG_QEMUU_EXTRA_ARGS="--disable-slirp --enable-virtfs --disable-werror" OCAML_TOOLS=y GIT_HTTP=y
make install-tools

Then I used xen.gz compiled from the xen/xen directory for booting, and the GRUB program I used is:

menuentry 'Ubuntu GNU/Linux, with Xen xen and Linux 5.15.0-100-generic' --class ubuntu --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-5.15.0-100-generic-advanced-11caf4b7-5439-477c-9845-f067275de7df' {
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  f6a640c9-038e-4061-8828-757241d84dfc
    else
      search --no-floppy --fs-uuid --set=root f6a640c9-038e-4061-8828-757241d84dfc
    fi
    echo    'Loading Xen xen ...'
        if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
            xen_rm_opts=
        else
            xen_rm_opts="no-real-mode edd=off"
        fi
    multiboot2  /xen.gz placeholder   ${xen_rm_opts}
    echo    'Loading Linux 5.15.0-100-generic ...'
    module2 /vmlinuz-5.15.0-100-generic placeholder root=/dev/mapper/ubuntu--vg-ubuntu--lv ro  
    echo    'Loading initial ramdisk ...'
    module2 --nounzip   /initrd.img-5.15.0-100-generic
}

The server hangs at this point during startup, and there are RCU CPU Stall warnings on each CPU. image Firstly, I am certain that there are no issues with the dom0 Linux kernel because when I attempted to boot with the original xen-4.16, no errors occurred, and Xen executed normally. I suspect that there might be an error in the xen.gz I compiled. Subsequently, I replaced xen.gz with xen-4.16-unstable.gz from the /alpine-v3.13-rootfs/boot/ directory. However, during boot, it still hangs at this point. image

clupuishere commented 6 months ago

First of all, thanks for your interest in Nephele! I would need a few more details to understand your setup:

  1. What kind of machine are you using? And how does it access the storage?

  2. Can you please also paste the entire stack trace in the first case?

  3. In the second case, when using the Xen image from alpine-v3.13-rootfs, does Dom0 respond to ping?

coder-y04 commented 5 months ago

Because I haven't had the chance to continue trying Nephele recently, I apologize for not receiving and replying to your messages in a timely manner.

  1. I performed this operation on a physical machine with 48 Intel(R) Xeon(R) Silver 4214 CPUs @ 2.20GHz. The virtual machine created on it has 16GB of memory and 400GB of storage space, using the default virtual disk storage method provided by VMware, and includes necessary support for virtualization.
  2. Like this? Because the startup log output is very fast, I find it difficult to capture all the stack traces and determine the error location. image
  3. dom0 can ping the network.