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

Re: [Xen-users] Xen included in vanilla kernel tree?


  • To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Rolf Arne Larsen <rolf@xxxxxxxxxxxxx>
  • Date: Tue, 3 Jun 2008 22:06:20 +0200 (CEST)
  • Delivery-date: Tue, 03 Jun 2008 13:06:54 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Ok so i solved this problem myself.
As i found a blog through google, i gotta say i much agree with the blogposter:
http://balajirrao.wordpress.com/2008/05/09/2625-paravirt_ops-enabled-domu-on-xen/

Its not easy to find this info, maybe it should be added to the wiki?

//rolf

----- Original Message -----
From: "Rolf Arne Larsen" <rolf@xxxxxxxxxxxxx>
To: "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, June 3, 2008 9:25:11 PM (GMT+0100) Europe/Berlin
Subject: Re: [Xen-users] Xen included in vanilla kernel tree?

I've thrown myself into testing this in 2.6.24.5.

My dom0 is a debian etch install with xen 3.2.1 built from source. (with 
2.6.18.8 kernel)
After make menuconfig (and enabling the paravirt ops) and make in kerneldir i 
change the kernel variable in a domU:
kernel      = '/root/linux-2.6.24.5/vmlinux'

After a xm create -c i get no console but i get that the vm is running. (though 
i get no connection through network either)
The xend.log says:

[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) XendDomainInfo.create(['vm', 
['name', 'blah'], ['memory', '512'], ['on_poweroff', 'destroy'], ['on_reboot', 
'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['on_xend_start', 'ignore'], 
['on_xend_stop', 'ignore'], ['image', ['linux', ['kernel', 
'/root/linux-2.6.24.5/vmlinux'], ['root', '/dev/sda2 ro']]], ['device', ['vbd', 
['uname', 'phy:/dev/xen_vg/blah-swap'], ['dev', 'sda1'], ['mode', 'w']]], 
['device', ['vbd', ['uname', 'phy:/dev/xen_vg/blah-disk'], ['dev', 'sda2'], 
['mode', 'w']]], ['device', ['vif', ['ip', '82.xxx.xxx.xxx'], ['mac', 
'00:16:3E:37:D5:XX']]]])
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) XendDomainInfo.constructDomain
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) Balloon: 524608 KiB free; 
need 2048; done.
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) Adding Domain: 2
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) XendDomainInfo.initDomain: 2 
256
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) 
_initDomain:shadow_memory=0x0, memory_static_max=0x20000000, 
memory_static_min=0x0.
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) Balloon: 524608 KiB free; 
need 524288; done.
[2008-06-03 21:15:04 14444] INFO (__init__:1072) buildDomain os=linux dom=2 
vcpus=1
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) domid          = 2
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) memsize        = 512
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) image          = 
/root/linux-2.6.24.5/vmlinux
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) store_evtchn   = 1
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) console_evtchn = 2
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) cmdline        = 
root=/dev/sda2 ro 
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) ramdisk        = 
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) vcpus          = 1
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) features       = 
[2008-06-03 21:15:04 14444] INFO (__init__:1072) createDevice: vbd : {'uuid': 
'2c20846a-d3e9-b56c-900a-62b6652586d4', 'bootable': 1, 'driver': 
'paravirtualised', 'dev': 'sda1', 'uname': 'phy:/dev/xen_vg/blah-swap', 'mode': 
'w'}
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) DevController: writing 
{'virtual-device': '2049', 'device-type': 'disk', 'protocol': 'x86_32-abi', 
'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/2/2049'} to /local/domain/2/device/vbd/2049.
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) DevController: writing 
{'domain': 'blah', 'frontend': '/local/domain/2/device/vbd/2049', 'uuid': 
'2c20846a-d3e9-b56c-900a-62b6652586d4', 'dev': 'sda1', 'state': '1', 'params': 
'/dev/xen_vg/blah-swap', 'mode': 'w', 'online': '1', 'frontend-id': '2', 
'type': 'phy'} to /local/domain/0/backend/vbd/2/2049.
[2008-06-03 21:15:04 14444] INFO (__init__:1072) createDevice: vbd : {'uuid': 
'3da7ba08-8426-3282-d59c-76eb178804b0', 'bootable': 0, 'driver': 
'paravirtualised', 'dev': 'sda2', 'uname': 'phy:/dev/xen_vg/blah-disk', 'mode': 
'w'}
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) DevController: writing 
{'virtual-device': '2050', 'device-type': 'disk', 'protocol': 'x86_32-abi', 
'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/2/2050'} to /local/domain/2/device/vbd/2050.
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) DevController: writing 
{'domain': 'blah', 'frontend': '/local/domain/2/device/vbd/2050', 'uuid': 
'3da7ba08-8426-3282-d59c-76eb178804b0', 'dev': 'sda2', 'state': '1', 'params': 
'/dev/xen_vg/blah-disk', 'mode': 'w', 'online': '1', 'frontend-id': '2', 
'type': 'phy'} to /local/domain/0/backend/vbd/2/2050.
[2008-06-03 21:15:04 14444] INFO (__init__:1072) createDevice: vif : {'ip': 
'82.XXX.XXX.XXX', 'mac': '00:16:3E:37:D5:XX', 'uuid': 
'5bead0cc-1cfd-864a-4ef6-d4a9f630685e'}
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) DevController: writing 
{'mac': '00:16:3E:37:D5:XX', 'handle': '0', 'protocol': 'x86_32-abi', 
'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/2/0'} 
to /local/domain/2/device/vif/0.
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) DevController: writing 
{'domain': 'blah', 'handle': '0', 'uuid': 
'5bead0cc-1cfd-864a-4ef6-d4a9f630685e', 'script': 
'/etc/xen/scripts/vif-bridge', 'ip': '82.103.141.213', 'mac': 
'00:16:3E:37:D5:XX', 'frontend-id': '2', 'state': '1', 'online': '1', 
'frontend': '/local/domain/2/device/vif/0'} to /local/domain/0/backend/vif/2/0.
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) Storing VM details: 
{'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': 
'36a9c751-44b1-e61f-d977-b711360230e7', 'on_reboot': 'restart', 'start_time': 
'1212520504.23', 'on_poweroff': 'destroy', 'on_xend_start': 'ignore', 
'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': 
'1', 'image': "(linux (kernel /root/linux-2.6.24.5/vmlinux) (args 
'root=/dev/sda2 ro ') (notes (FEATURES 
'!writable_page_tables|pae_pgdir_above_4gb') (VIRT_BASE 3221225472) 
(GUEST_VERSION 2.6) (GUEST_OS linux) (HYPERCALL_PAGE 3225538560) (LOADER 
generic) (PAE_MODE yes) (ENTRY 3225264128) (XEN_VERSION xen-3.0)))", 'name': 
'blah'}
[2008-06-03 21:15:04 14444] DEBUG (__init__:1072) Storing domain details: 
{'console/ring-ref': '280909', 'image/entry': '3225264128', 'console/port': 
'2', 'store/ring-ref': '280910', 'image/loader': 'generic', 'vm': 
'/vm/36a9c751-44b1-e61f-d977-b711360230e7', 
'control/platform-feature-multiprocessor-suspend': '1', 'image/guest-os': 
'linux', 'image/hypercall-page': '3225538560', 'memory/target': '524288', 
'image/guest-version': '2.6', 'image/pae-mode': 'yes', 'console/limit': 
'1048576', 'image/virt-base': '3221225472', 'cpu/0/availability': 'online', 
'image/features/pae-pgdir-above-4gb': '1', 
'image/features/writable-page-tables': '0', 'console/type': 'xenconsoled', 
'name': 'blah', 'domid': '2', 'image/xen-version': 'xen-3.0', 'store/port': '1'}
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) DevController: writing 
{'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/console/2/0'} to /local/domain/2/device/console/0.
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) DevController: writing 
{'domain': 'blah', 'frontend': '/local/domain/2/device/console/0', 'uuid': 
'058c67d6-9478-7f73-06f2-2fd7ec8dc04e', 'frontend-id': '2', 'state': '1', 
'location': '2', 'online': '1', 'protocol': 'vt100'} to 
/local/domain/0/backend/console/2/0.
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) 
XendDomainInfo.handleShutdownWatch
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for devices vif.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for 0.
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) hotplugStatusCallback 
/local/domain/0/backend/vif/2/0/hotplug-status.
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) hotplugStatusCallback 
/local/domain/0/backend/vif/2/0/hotplug-status.
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for devices vbd.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for 2049.
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) hotplugStatusCallback 
/local/domain/0/backend/vbd/2/2049/hotplug-status.
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) hotplugStatusCallback 
/local/domain/0/backend/vbd/2/2049/hotplug-status.
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for 2050.
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) hotplugStatusCallback 
/local/domain/0/backend/vbd/2/2050/hotplug-status.
[2008-06-03 21:15:04 2467] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for devices irq.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for devices vkbd.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for devices vfb.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for devices console.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for 0.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for devices pci.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for devices ioports.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for devices tap.
[2008-06-03 21:15:04 14497] DEBUG (__init__:1072) Waiting for devices vtpm.
[2008-06-03 21:15:04 14629] INFO (__init__:1072) Domain blah (2) unpaused.



----- Original Message -----
From: "Rolf Arne Larsen" <rolf@xxxxxxxxxxxxx>
To: "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, June 3, 2008 7:14:46 PM (GMT+0100) Europe/Berlin
Subject: Re: [Xen-users] Xen included in vanilla kernel tree?

Any experience with the drivers? How stable are they? 
Are they capable of killing dom0?
How about performance?

//rolf

----- Original Message -----
From: "James Dingwall" <james.dingwall@xxxxxxxxxx>
To: "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Cc: "Rolf Arne Larsen" <rolf@xxxxxxxxxxxxx>, "Itamar - IspBrasil" 
<itamar@xxxxxxxxxxxxxxxx>
Sent: Tuesday, June 3, 2008 5:07:51 PM (GMT+0100) Europe/Berlin
Subject: RE: [Xen-users] Xen included in vanilla kernel tree?


Rolf Arne Larsen wrote:
> So what can i use this domU support for? Can i build my own domU from
2.6.24 and use this on my xen domU's?
>
> still not
>
> only domU support merged into kernel upstream
>

This is still only for i386.  You can check the wiki page for progress
on the pvops implementation in main line at
http://wiki.xensource.com/xenwiki/XenParavirtOps if you are interested
in dom0 or x86_64.

James

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

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