[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Can not init netfront



Ian,

> It seems like the domain is immediately shutting itself down.
>
> "xl create -c ..." will connect to the console as soon as possible,
> which might give you a chance to see why.

This fails to connect to the console by throwing following error message:

# xl create -c minios.cfg
Parsing config from minios.cfg
Daemon running with PID 29031
libxl: error: libxl_dom.c:35:libxl__domain_type: unable to get domain
type for domid=2
Unable to attach console
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console
child [0] exited with error status 1

> If that doesn't help then try configuring xenconsoled to log the guest
> consoles:
> http://wiki.xen.org/wiki/Reporting_Bugs_against_Xen_Project#Guest_console_logs

This helped. My "consoled" was not running. I executed it manually from
/usr/lib/xen-4.3/bin/xenconsoled and then I was able to get the
console log file at /var/log/xen/xen-console/guest-Mini-OS.log This
confirmed successful instantiation of the VM. Problem was in my kernel
image (the minios.gz).

Here is what I get from "cat /var/log/xen/xen-console/guest-Mini-OS.log"

Xen Minimal OS!
  start_info: 000000000009f000(VA)
    nr_pages: 0x2000
  shared_inf: 0xce720000(MA)
     pt_base: 00000000000a2000(VA)
nr_pt_frames: 0x5
    mfn_list: 000000000008f000(VA)
   mod_start: 0x0(VA)
     mod_len: 0
       flags: 0x0
    cmd_line:
  stack:      000000000004d9c0-000000000006d9c0
MM: Init
      _text: 0000000000000000(VA)
     _etext: 000000000002fcea(VA)
   _erodata: 0000000000037000(VA)
     _edata: 00000000000375a0(VA)
stack start: 000000000004d9c0(VA)
       _end: 000000000008e200(VA)
  start_pfn: aa
    max_pfn: 2000
Mapping memory range 0x400000 - 0x2000000
setting 0000000000000000-0000000000037000 readonly
skipped 0000000000001000
MM: Initialise page allocator for b8000(b8000)-2000000(2000000)
MM: done
Demand map pfns at 2001000-2002001000.
Initialising timer interface
Initialising console ... done.
gnttab_table mapped at 0000000002001000.
Initialising scheduler
Thread "Idle": pointer: 0xbb070, stack: 0xc0000
Thread "xenstore": pointer: 0xbb0d0, stack: 0xd0000
xenbus initialised on irq 1 mfn 0x111e53
Thread "shutdown": pointer: 0xbb130, stack: 0xe0000
Thread "server": pointer: 0xbb190, stack: 0xf0000
[server] Waiting for network.
************************ NETFRONT for device/vif/0 **********


net TX ring size 256
net RX ring size 256
backend at /local/domain/0/backend/vif/21/0
mac is 00:16:3e:57:a8:15
**************************
Page fault at linear address 0000000000000000, rip 00000000000105d4,
regs 00000000000ffcd8, sp 00000000000ffd80, our_sp 00000000000ffcc0,
code 0
Thread: server
RIP: e030:[<00000000000105d4>]
RSP: e02b:00000000000ffd80  EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000005352 RCX: 00000000000ffa40
RDX: 0000000000047f0d RSI: 00000000000ffa40 RDI: 0000000000000000
RBP: 00000000000ffd98 R08: 00000000000bb2da R09: 00000000000bb2db
R10: 000000000000001c R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
base is 0xffd98 caller is 0xb2dd
base is 0xffee8 caller is 0x17009
base is 0xfff58 caller is 0x536b
base is 0xfffe8 caller is 0x343b

ffd70: 80 fd 0f 00 00 00 00 00 2b e0 00 00 00 00 00 00
ffd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffd90: 00 00 00 00 00 00 00 00 e8 fe 0f 00 00 00 00 00
ffda0: dd b2 00 00 00 00 00 00 00 ff 0f 00 00 00 00 00

ffd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffd90: 00 00 00 00 00 00 00 00 e8 fe 0f 00 00 00 00 00
ffda0: dd b2 00 00 00 00 00 00 00 ff 0f 00 00 00 00 00
ffdb0: 08 7f 04 00 00 00 00 00 c8 6d 01 00 00 00 00 00

105c0: e8 48 8b 45 e8 48 89 45 f8 eb 05 48 83 45 f8 01
105d0: 48 8b 45 f8 0f b6 00 84 c0 75 f0 48 8b 55 f8 48
105e0: 8b 45 e8 48 29 c2 48 89 d0 c9 c3 55 48 89 e5 48
105f0: 83 ec 10 48 89 7d f8 89 75 f4 eb 17 48 8b 45 f8
Pagetable walk from virt 0, base a2000:
 L4 = 0000000111e50067 (00000000000a3000)  [offset = 0]
  L3 = 0000000111e4f067 (00000000000a4000)  [offset = 0]
   L2 = 0000000111e4e067 (00000000000a5000)  [offset = 0]
    L1 = 0000000000000000 [offset = 0]

Based on these logs, I believe netfront is being initialized
correctly. It was resolved after adding the disk (since I did not
change anything else), as Joost has suggested. Indeed disk is not
being used by VM. I think "page fault" is not related to netfront.
Thus, I consider this issue as resolved and I will dig into the MiniOS
source code. I'll make a separate post if I run into the other
problems.

Thanks for the help everyone, especially Joost and Ian!

Nodir.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.