Razvan Cojocaru
2013-Mar-14 13:52 UTC
Find out if domU''s kernel is done loading, from dom0?
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
Alex Bligh
2013-Mar-14 13:57 UTC
Re: Find out if domU''s kernel is done loading, from dom0?
--On 14 March 2013 15:52:11 +0200 Razvan Cojocaru <rzvncj@gmail.com> 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. -- Alex Bligh