Re: [Openstack] [OpenStack] OpenStack with Xen
I meant use the kernel package with the -virtual suffix. On Ubuntu 11.10, there's one called linux-virtual which installs the right thing for you. You're right that you shouldn't need to do this on 11.10, because that's a 3.0 kernel which should work on anything. The -virtual kernel just has all the hardware drivers missing, so you'll save a bit of disk space. That's all. On older versions of Ubuntu there are real differences between the kernels. In that case it would be important to install the -virtual version. Cheers, Ewan. From: jeffrey coho [mailto:jeffreycohob...@gmail.com] Sent: Wednesday, January 04, 2012 9:25 PM To: Ewan Mellor Subject: Re: [Openstack] [OpenStack] OpenStack with Xen HI,Ewan, Thanks a lot for that.But what do u mean by saying suffix -virtual if you're on Ubuntu? I am running a HVM(Ubuntu 11.10) guest,i am wondering if i still need anther Xen kernel because i find somebody else say that if i use recent kernel with pv_ops enabled,then i shouldn't need a different kernel. Thanks jeff 2012/1/5 Ewan Mellor ewan.mel...@eu.citrix.commailto:ewan.mel...@eu.citrix.com Yes, it needs to be a PV VM at the moment. It needs to know the UUID of the VM that it lives in, which is why it's looking in /sys/hypervisor/uuid. We could add a flag to OpenStack to let you pass this in, but there's not really any point, because the performance with the PV VM will be far superior to the HVM one anyway. To convert it, you need to install a Xen kernel (suffix -virtual if you're on Ubuntu), and then switch it to PV mode using the XenServer CLI: UUID=$(xe vm-list --minimal name-label='Whatever you called it') xe vm-param-set uuid=$UUID HVM-boot-policy= xe vm-param-set uuid=$UUID PV-bootloader=pygrub Before you reboot, make sure that the grub config has been set up correctly. It needs to refer to the new kernel, obviously. Also, the device names are going to change across the reboot - your root disk is going to stop being /dev/sda1 (or whatever) and turn into /dev/xvda1. (An exception to this is on Ubuntu Maverick, which uses /dev/sdX in the PV kernel too.) Most modern installations use disk labels rather than device names these days, so you should be OK, but it's worth checking. Also, there's a bug in some versions of Pygrub such that it will fail to boot if you have a submenu declaration in your grub.cfg. If that's the case (common on Ubuntu if you have upgraded your kernel at any point) then you'll need to remove the submenu declaration and its matching close-brace. After that, reboot, and it should come up in PV mode. If it fails to come up, set HVM-boot-policy back to 'BIOS order' and you can boot back into HVM mode and figure out what went wrong. Cheers, Ewan. From: jeffrey coho [mailto:jeffreycohob...@gmail.commailto:jeffreycohob...@gmail.com] Sent: 04 January 2012 06:07 To: Ewan Mellor Cc: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net Subject: Re: [Openstack] [OpenStack] OpenStack with Xen Hi, Does the nova-compute DomU need to be a PV guest? I have it now on a HVM guest,which it is causing the problem Errno 2: No such file or directory: '/sys/hypervisor/uuid'. If so ,what should i do if i still want to use this HVM without reinstalling everything again on a PV guest?Thanks. Yours, Jeff 2012/1/4 Ewan Mellor ewan.mel...@eu.citrix.commailto:ewan.mel...@eu.citrix.com Is this what you're looking for? http://wiki.openstack.org/XenServerDevelopment Cheers, Ewan. From: openstack-bounces+ewan.mellor=citrix@lists.launchpad.netmailto:citrix@lists.launchpad.net [mailto:openstack-bounces+ewan.mellormailto:openstack-bounces%2Bewan.mellor=citrix@lists.launchpad.netmailto:citrix@lists.launchpad.net] On Behalf Of Guilherme Birk Sent: 03 January 2012 09:06 To: Openstack Mail List Subject: [Openstack] [OpenStack] OpenStack with Xen I've already have a Nova configuration working with kvm. Now I want to install and configure the Xen enviroment. Anyone can recomend any material or tutorial where I can find how to install, configure and then integrate with OpenStack ? ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Sincerely yours, Jeff -- Sincerely yours, Jeff ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [OpenStack] OpenStack with Xen
Hi, Does the nova-compute DomU need to be a PV guest? I have it now on a HVM guest,which it is causing the problem * Errno 2: No such file or directory: '/sys/hypervisor/uuid'.* ** If so ,what should i do if i still want to use this HVM without reinstalling everything again on a PV guest?Thanks. Yours, Jeff 2012/1/4 Ewan Mellor ewan.mel...@eu.citrix.com Is this what you’re looking for? ** ** http://wiki.openstack.org/XenServerDevelopment ** ** Cheers, ** ** Ewan. ** ** *From:* openstack-bounces+ewan.mellor=citrix@lists.launchpad.net[mailto: openstack-bounces+ewan.mellor=citrix@lists.launchpad.net] *On Behalf Of *Guilherme Birk *Sent:* 03 January 2012 09:06 *To:* Openstack Mail List *Subject:* [Openstack] [OpenStack] OpenStack with Xen ** ** I've already have a Nova configuration working with kvm. Now I want to install and configure the Xen enviroment. Anyone can recomend any material or tutorial where I can find how to install, configure and then integrate with OpenStack ? ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Sincerely yours, Jeff ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [OpenStack] OpenStack with Xen
On Wed, Jan 4, 2012 at 9:06 AM, jeffrey coho jeffreycohob...@gmail.com wrote: Hi, Does the nova-compute DomU need to be a PV guest? Yes, I think so. I don't know if it is possible to expose that to an HVM guest. You could ask on the Xen mailing lists. I have it now on a HVM guest,which it is causing the problem Errno 2: No such file or directory: '/sys/hypervisor/uuid'. If so ,what should i do if i still want to use this HVM without reinstalling everything again on a PV guest?Thanks. You can convert an HVM guest to a PV guest although there is several subtle steps (especially for XenServer/XCP guests) that I can't recall off the top of my head, but If you ask on the Xen lists and Xen IRC you will likely get some pointers. Hope that helps. Thanks, Todd -- Todd Deshane http://www.linkedin.com/in/deshantm http://blog.xen.org/ http://wiki.xen.org/ ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [OpenStack] OpenStack with Xen
Yes, it needs to be a PV VM at the moment. It needs to know the UUID of the VM that it lives in, which is why it's looking in /sys/hypervisor/uuid. We could add a flag to OpenStack to let you pass this in, but there's not really any point, because the performance with the PV VM will be far superior to the HVM one anyway. To convert it, you need to install a Xen kernel (suffix -virtual if you're on Ubuntu), and then switch it to PV mode using the XenServer CLI: UUID=$(xe vm-list --minimal name-label='Whatever you called it') xe vm-param-set uuid=$UUID HVM-boot-policy= xe vm-param-set uuid=$UUID PV-bootloader=pygrub Before you reboot, make sure that the grub config has been set up correctly. It needs to refer to the new kernel, obviously. Also, the device names are going to change across the reboot - your root disk is going to stop being /dev/sda1 (or whatever) and turn into /dev/xvda1. (An exception to this is on Ubuntu Maverick, which uses /dev/sdX in the PV kernel too.) Most modern installations use disk labels rather than device names these days, so you should be OK, but it's worth checking. Also, there's a bug in some versions of Pygrub such that it will fail to boot if you have a submenu declaration in your grub.cfg. If that's the case (common on Ubuntu if you have upgraded your kernel at any point) then you'll need to remove the submenu declaration and its matching close-brace. After that, reboot, and it should come up in PV mode. If it fails to come up, set HVM-boot-policy back to 'BIOS order' and you can boot back into HVM mode and figure out what went wrong. Cheers, Ewan. From: jeffrey coho [mailto:jeffreycohob...@gmail.com] Sent: 04 January 2012 06:07 To: Ewan Mellor Cc: openstack@lists.launchpad.net Subject: Re: [Openstack] [OpenStack] OpenStack with Xen Hi, Does the nova-compute DomU need to be a PV guest? I have it now on a HVM guest,which it is causing the problem Errno 2: No such file or directory: '/sys/hypervisor/uuid'. If so ,what should i do if i still want to use this HVM without reinstalling everything again on a PV guest?Thanks. Yours, Jeff 2012/1/4 Ewan Mellor ewan.mel...@eu.citrix.commailto:ewan.mel...@eu.citrix.com Is this what you're looking for? http://wiki.openstack.org/XenServerDevelopment Cheers, Ewan. From: openstack-bounces+ewan.mellor=citrix@lists.launchpad.netmailto:citrix@lists.launchpad.net [mailto:openstack-bounces+ewan.mellormailto:openstack-bounces%2Bewan.mellor=citrix@lists.launchpad.netmailto:citrix@lists.launchpad.net] On Behalf Of Guilherme Birk Sent: 03 January 2012 09:06 To: Openstack Mail List Subject: [Openstack] [OpenStack] OpenStack with Xen I've already have a Nova configuration working with kvm. Now I want to install and configure the Xen enviroment. Anyone can recomend any material or tutorial where I can find how to install, configure and then integrate with OpenStack ? ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Sincerely yours, Jeff ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [OpenStack] OpenStack with Xen
There is one guide here: http://wiki.openstack.org/XenServerDevelopment Thanks, Brad On Jan 3, 2012, at 9:05 AM, Guilherme Birk wrote: I've already have a Nova configuration working with kvm. Now I want to install and configure the Xen enviroment. Anyone can recomend any material or tutorial where I can find how to install, configure and then integrate with OpenStack ? ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [OpenStack] OpenStack with Xen
So there is a naming convention that we need to get resolved here also. It confused me and probably confuses other. Is this for Xen (vanilla xen) or for XenServer (sometimes also called Xen)? Maybe in the future everyone can start specifying which they mean also, just for everyone's sanity. On 1/3/12 9:32 AM, Brad Hall b...@nicira.com wrote: There is one guide here: http://wiki.openstack.org/XenServerDevelopment Thanks, Brad On Jan 3, 2012, at 9:05 AM, Guilherme Birk wrote: I've already have a Nova configuration working with kvm. Now I want to install and configure the Xen enviroment. Anyone can recomend any material or tutorial where I can find how to install, configure and then integrate with OpenStack ? ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [OpenStack] OpenStack with Xen
http://docs.vmd.citrix.com/ http://www.citrix.com/English/ps2/products/feature.asp?contentID=2300356 Get the free version - you don't need any of the paid features to run OpenStack. Or alternatively, if you want to do everything from the source upwards (lots of work, but obviously great if you want to know how it all goes together): http://xen.org/products/cloudxen.html Cheers, Ewan. From: Guilherme Birk [mailto:guib...@hotmail.com] Sent: 03 January 2012 10:14 To: Ewan Mellor Subject: RE: [Openstack] [OpenStack] OpenStack with Xen Yes, I'm already looking at this. But i think that to use this tutorial I already need a XenServer configured. I'm gonna look for this now. Thanks for your help ! From: ewan.mel...@eu.citrix.com To: guib...@hotmail.com; openstack@lists.launchpad.net Date: Tue, 3 Jan 2012 18:05:06 + Subject: RE: [Openstack] [OpenStack] OpenStack with Xen Is this what you're looking for? http://wiki.openstack.org/XenServerDevelopment Cheers, Ewan. From: openstack-bounces+ewan.mellor=citrix@lists.launchpad.net [mailto:openstack-bounces+ewan.mellor=citrix@lists.launchpad.net] On Behalf Of Guilherme Birk Sent: 03 January 2012 09:06 To: Openstack Mail List Subject: [Openstack] [OpenStack] OpenStack with Xen I've already have a Nova configuration working with kvm. Now I want to install and configure the Xen enviroment. Anyone can recomend any material or tutorial where I can find how to install, configure and then integrate with OpenStack ? ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [OpenStack] OpenStack with Xen
The link below is for those platforms using the XenAPI toolstack - those are specifically Xen.org's Xen Cloud Platform (pure open-source project) and Citrix XenServer (Citrix product, albeit open-source and with a free edition). I can't get anyone in the habit of calling this option 'XenAPI' so you'll usually see it described as 'XenServer'. Platforms using the Xen hypervisor but not using the XenAPI toolstack (SUSE Linux, Oracle Enterprise Linux, RHEL / CentOS 5) can be used through libvirt, though you may need to do some hacking of your own to make that work. Ewan. From: openstack-bounces+ewan.mellor=citrix@lists.launchpad.net [mailto:openstack-bounces+ewan.mellor=citrix@lists.launchpad.net] On Behalf Of Joshua Harlow Sent: 03 January 2012 10:13 To: Brad Hall; Guilherme Birk Cc: openstack Subject: Re: [Openstack] [OpenStack] OpenStack with Xen So there is a naming convention that we need to get resolved here also. It confused me and probably confuses other. Is this for Xen (vanilla xen) or for XenServer (sometimes also called Xen)? Maybe in the future everyone can start specifying which they mean also, just for everyone's sanity. On 1/3/12 9:32 AM, Brad Hall b...@nicira.com wrote: There is one guide here: http://wiki.openstack.org/XenServerDevelopment Thanks, Brad On Jan 3, 2012, at 9:05 AM, Guilherme Birk wrote: I've already have a Nova configuration working with kvm. Now I want to install and configure the Xen enviroment. Anyone can recomend any material or tutorial where I can find how to install, configure and then integrate with OpenStack ? ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [OpenStack] OpenStack with Xen
On 01/04/2012 01:05 AM, Guilherme Birk wrote: I've already have a Nova configuration working with kvm. Now I want to install and configure the Xen enviroment. Anyone can recomend any material or tutorial where I can find how to install, configure and then integrate with OpenStack ? FYI, XCP has just been uploaded to Debian SID , so you might want to have a try with it. But I have to warn you that there are few issues that aren't yet fixed. Namely: 1/ XCP version reporting is broken. http://paste.debian.net/150865/ I had to hack around. In /usr/lib/python2.7/dist-packages/nova/virt/xenapi_conn.py, in the def get_product_version(self):, I've just put: return (6, 10, 3) instead of previously return tuple(int(part) for part in product_version.split('.')) Note that upstream authors (Mike and Jon) are working on using PLATFORM_VERSION instead of currently PRODUCT_VERSION so we have a real fix, and not a hack as above. 2/ We need a python-xenapi package, which has already been worked out, but this is still in the Git of alioth.debian.org, until 2/ is fixed. Once we got this done, then nova-compute-xen can be built correctly. 3/ You'd better use both nova and xen-api from Alioth's Git, as there are other fixes that haven't been uploaded to SID yet, but that I've fixed already. Last, I haven't yet succeed in having either console or network connectivity in an instance. Hints would be welcome here (let's hope I'll get more help from Citrix here...). Last, I hope to find more people interested in running OpenStack with XCP, and hope we can fix all the remaining issues together. :) Cheers, Thomas Goirand (zigo) ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp