Skip to contentSkip to conversation

Find out if domU's kernel is done loading, from dom0?

DISCUSSION Razvan Cojocaru 2 participants 2 messages Mar 14, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

is there any way to figure out if the kernel of a domU guest machine has finished loading? I've looked at what xm list prints out and it doesn't seem to help much. I've also tried to see what's being printed out by code such as:

xc_domain_getinfo(xch, domain_id, 1, &info);

/* ... */

printf("Domain state: %c%c%c%c%c%c%c%c\n",

        info.dying    ? 'd' : '-',
        info.crashed  ? 'c' : '-',
        info.shutdown ? 's' : '-',
        info.paused   ? 'p' : '-',
        info.blocked  ? 'b' : '-',
        info.running  ? 'r' : '-',
        info.hvm      ? 'h' : '-',
        info.debugged ? 'd' : '-');

but that's not been much use either. Is this possible to do (without actually inspecting what's going on with the machine myself)?

Thanks,
Razvan Cojocaru

#1 lore raw
Quoted 4 lines · --On 14 March 2013 15:52:11 +0200 Razvan Cojocaru <[email protected]> wrote:

is there any way to figure out if the kernel of a domU guest machine has finished loading? I've looked at what xm list prints out and it doesn't seem to help much. I've also tried to see what's being printed out by code such as:

In HVM at least I think this is largely unknowable.

A particularly good heuristic would be to look at the disk transfer stats. The kernel itself will only read the partition table on each device IIRC.

Signature · 1 line
Alex Bligh