Hi,

On 08/01/2024 23:56, Michele Pescapè wrote:
Hi all,

I have an AMD Ryzen 2600 on a b450 motherboard. My goal is to run two non root linux cells, however, as of right now, I'm not able to start any non root linux cells. First of all I don't receive an output from the cell (I do get output from the apic-demo though), therefore I don't really know if they're even crashing or not; this is the output I get from the hypervisor after enabling the root cell and issuing the following command:

sudo jailhouse cell linux configs/x86/linux_guest1.cell ../buildroot-2023.11/output/images/bzImage -i ../buildroot-2023.11/output/images/rootfs.cpio

for the first few tries, simply don't load a ramdisk. Try to get the kernel booting. It will crash with "cannot mount rootfs". If we get so far, then you can continue specifying the ramdisk. But first, we have to get that far.


Adding PCI device ff:1f.7 to cell "linux-x86-demo"
Created cell "linux-x86-demo"
Page pool usage after cell creation: mem 336/32211, remap 16392/131072
Cell "linux-x86-demo" can be loaded
CPU 4 received SIPI, vector 100
CPU 3 received SIPI, vector 100
Started cell "linux-x86-demo"

After this the cell appears to be running in cell list, however I can't seem to get any output to confirm that (I even set JAILHOUSE_CELL_VIRTUAL_CONSOLE_ACTIVE, but nothing appears on the vrtual console accessed via "jailhouse console -f"). I also tried adding -c "console=ttyS0,115200".

ttyS0, i.e., x86 Port 0x3f8 is whitelisted in the cell configuration? Actually, your cmdline is correct.

At this point if I try to disable/shutdown the cell, the system freezes requiring a hard reset.

Okay, is the guest Linux compiled with Jailhouse guest support? Please ensure that non-root Linux is compiled with CONFIG_JAILHOUSE_GUEST and CONFIG_JAILHOUSE_DBCON. The first one is mandatory for x86 Linux guests.


Also, there seems to be a mismatch between the PCI bdf value in the log above and the one in the cell's configuration. In both root and non root cells i set .bdf = (0x0f << 3) for the IVSHMEM net device and the Root cell correctly reports that ("Adding virtual PCI device 00:0f.0 to cell "RootCell"").

First things first. Let's try to get Linux kicked off before diving into PCI. Comment it out for the moment, let's do that later.

  Ralf


If I understood correctly, once the cell works properly I won't need to set the console anymore as I can assign an ip (-c "ip x.x.x.x" in the cell linux command) and ssh to the cell, right?

I attach the root and non root cells' configurations in case they're needed. I can provide both the root and non root cell's kernel .conf and the buildroot configuration I used if needed.

Thank you for your time,
Michele

--
You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/824bacc4-b7ae-47c9-878e-7203214b4fc3n%40googlegroups.com <https://groups.google.com/d/msgid/jailhouse-dev/824bacc4-b7ae-47c9-878e-7203214b4fc3n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/d36e18a4-dd64-4f9c-b2cf-89b02b1a0469%40oth-regensburg.de.

Reply via email to