cnplab / xennet

Xen optimizations for fast packet I/O
Other
11 stars 7 forks source link

failed with vif = ['ip=192.168.1.130,mac=00:15:17:15:5d:74,bridge=vale0,script=/etc/xen/scripts/vif-vale'] #6

Open wj92 opened 9 years ago

wj92 commented 9 years ago

this is my click configuration files: FromDevice->Print(ok)->ToDevice;

and I have inserted netmap_lin.ko and xen-netback.ko.

when I try with name = 'clickos1' kernel = '/root/xen/clickos/minios/build/clickos_x86_64' vcpus = '1' memory = '16' vif=['ip=192.168.1.130,mac=00:15:17:15:5d:74,bridge=vale0'] on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'preserve'
click = 'print.click'

then I use xl consloe and get the output about package。

but when I try with name = 'clickos1' kernel = '/root/xen/clickos/minios/build/clickos_x86_64' vcpus = '1' memory = '16' vif = ['ip=192.168.1.130,mac=00:15:17:15:5d:74,bridge=vale0,script=/etc/xen/scripts/vif-vale'] on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'preserve'
click = 'print.click'

then I use xl consloe ,but there is nothing output about package,just get the follow output: Xen Minimal OS! start_info: 0x2ea000(VA) nr_pages: 0x1000 shared_inf: 0xa95ef000(MA) pt_base: 0x2ed000(VA) nr_pt_frames: 0x5 mfn_list: 0x2e2000(VA) mod_start: 0x0(VA) mod_len: 0 flags: 0x0 cmd_line: stack: 0x23af40-0x25af40 MM: Init _text: 0x0(VA) _etext: 0xe8826(VA) _erodata: 0x163000(VA) _edata: 0x164bb8(VA) stack start: 0x23af40(VA) _end: 0x2e1010(VA) start_pfn: 2f5 max_pfn: 1000 Mapping memory range 0x400000 - 0x1000000 setting 0x0-0x163000 readonly skipped 0x1000 MM: Initialise page allocator for 2fb000(2fb000)-1000000(1000000) MM: done Demand map pfns at 1001000-2001001000. Heap resides at 2001002000-4001002000. Initialising timer interface Initialising console ... done. gnttab_table mapped at 0x1001000. Initialising scheduler Thread "Idle": pointer: 0x2001002050, stack: 0x310000 Thread "xenstore": pointer: 0x2001002800, stack: 0x320000 xenbus initialised on irq 1 mfn 0xa96de Thread "shutdown": pointer: 0x2001002fb0, stack: 0x330000 Dummy main: start_info=0x25af40 Thread "main": pointer: 0x2001003760, stack: 0x340000 sparsing 0MB at 177000 "main" [on_status:205] router id 0 [on_status:206] status change to Running Thread "click": pointer: 0x2001010a00, stack: 0x360000 ****** NETFRONT for device/vif/0

net TX ring size 256 net RX ring size 256 backend at /local/domain/0/backend/vif/1/0 mac is 00:15:17:15:5d:74 [on_status:205] router id 1 [on_status:206] status change to Running Thread "click": pointer: 0x2001018ce0, stack: 0x570000 ****** NETFRONT for device/vif/0

net TX ring size 256 net RX ring size 256 backend at /local/domain/0/backend/vif/1/0 mac is 00:15:17:15:5d:74 [app_shutdown:365] Requested shutdown reason=poweroff [router_stop:172] Stopping all routers...

[router_stop:179] Stopping instance = 1...

who can help me? I have tried it for two days.

jpemartins commented 9 years ago

You trying two different configurations when both of them have the same domain name, leading to this behaviour. Note that you first config worked well (tough not using xennet).

The reason you might not able to use xennet is because the kernel you are patching for is not supported since patches are only <= 3.15.

wj92 commented 9 years ago

Hi : Thank you for replying.There are maybe some mistakes in my first letter.Firstly,I use the first configuration,then I reboot the system,so there is only one domain-u every time.Secondly,my kernel is 3.11.10 which should support xennet.

I find a interesting phenomenon,In the first configuration,after I use cosmos create.I find the state of domain-u is r. But the state of domain-u is b in second configuration.

I do not know how to do.

Thank you for helping me again.

--jw

jpemartins commented 9 years ago

Could you paste xenstore-ls | grep feature-netmap ? If it doesn't print anything it means xen-netback is not patching correctly for 3.11.

wj92 commented 9 years ago

Hi: I get the output: feature-netmap="0".what should I do next?

--jw

jpemartins commented 9 years ago

Then backend is not being correctly compiled. Let me check if there are issues with 3.11.

wj92 commented 9 years ago

Hi: when you get correct result,please inform me.Thank you.

--jw

wj92 commented 9 years ago

Hi: Is there anything wrong with backend for 3.11? What should I do to correct it?

--jw