Re: [Openstack] HVM + Xen Hypervisor via libvirt possible?
On Wed, Jun 27, 2012 at 02:47:59PM -0600, Jim Fehlig wrote: Daniel P. Berrange wrote: On Fri, Jun 22, 2012 at 12:17:11AM +0800, Huang Zhiteng wrote: Of course it is possible. What kind of issue did you run into? On Thu, Jun 21, 2012 at 5:52 PM, Wang Li fox...@gmail.com wrote: hi,all I need to run virtual machines on Xen Hypervisor in HVM mode, is it possible when using libvirt? Actually, this is not currently possible. For reasons I don't know, the libvirt driver currently hardcodes use of paravirtualized guests when connected to Xen hosts. It does not allow use of HVM guests. There's no particularly good technical reason why it can't be made to work. Right. I've been working on this in my few spare cycles and hope to post some patches soon. There'd need to be a way to tag instance types with HVM vs paravirt, in addition to their architecture. I was hoping to just use the vm_mode image property that the XenServer folks use. See option 2 in this mail https://lists.launchpad.net/openstack/msg11507.html The libvirt driver would have to expose whether each host supports paravirt or HVM or both. The schedular would then have to take this into account when placing guests. I posted an RFC patch here that filters hosts based on the vm_mode image property and the additional_compute_capabilities flag. I haven't received any comments, so should probably just push this to gerrit. I'll happily review any patches you send to Gerrit for this. Daniel -- |: http://berrange.com -o-http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| ___ 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] HVM + Xen Hypervisor via libvirt possible?
On Fri, Jun 22, 2012 at 2:37 PM, Thomas Goirand tho...@goirand.fr wrote: On 06/22/2012 02:04 PM, Li Wang wrote: We use CentOS in production environment. There is the Zeus project, right? I'll do some research on it Well, if you use CentOS, then why not using XCP, the open source appliance, from Citrix? It's CentOS based... I heard about the Zeus project, but I'm not sure how fare they are with this. I'm Cc-ing Mike and Jon, upstream for XCP, maybe they will be able to tell how far they've gone, and if it's already in Fedora. Hi Thomas, thanks for bringing me into this conversation. Project Zeus is on hold for a bit while we finish up some other projects we're working on. I do recommend giving XCP a try -- I know that the Citrix OpenStack developers are keen to make sure that they work well together. Mike ___ 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] HVM + Xen Hypervisor via libvirt possible?
I will discuss with my team to decide which aproach we'll take, and reply to this mail whenever there is something out. Thanks all guys Regards, Wang Li 2012/6/22 John Garbutt john.garb...@citrix.com I have asked some of the Xen.org guys if they know anyone who has time to fix this. I will let you know if I have any luck. But yes, the XenAPI driver (talking to XCP) is probably the best way forward with Xen right now. If there are any blockers making that work, I am happy to help were I can. Cheers, John -Original Message- From: openstack-bounces+john.garbutt=eu.citrix@lists.launchpad.net[mailto: openstack-bounces+john.garbutt=eu.citrix@lists.launchpad.net] On Behalf Of Thomas Goirand Sent: 22 June 2012 2:40 Cc: openstack@lists.launchpad.net Subject: Re: [Openstack] HVM + Xen Hypervisor via libvirt possible? On 06/22/2012 05:56 PM, Daniel P. Berrange wrote: 3. or some good reasons to migrate from Xen to KVM? I'd favour KVM for a variety of reasons, but lets not turn this into a bikeshed discussion about which is best ;-P Let's put it this way: if you want to run with libvirt and Openstack, then yes, you should probably switch to KVM. But if you want to keep Xen, then you should probably switch to XCP. Thomas ___ 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] HVM + Xen Hypervisor via libvirt possible?
We use CentOS in production environment. There is the Zeus project, right? I'll do some research on it 在 2012-6-22 下午12:30,Thomas Goirand tho...@goirand.fr写道: On Fri Jun 22 2012 11:22:13 AM CST, Li Wang fox...@gmail.com wrote: Thanks all for replying. We want to stick on to the Xen Hypervisor for some reason. 1. Does the community plan to support this feature? 2. Could I submit this request to the blueprint? My team would like to contribute on it if necessary. 3. or some good reasons to migrate from Xen to KVM? Hi, why sticking with libvirt? There's XCP available in both Debian and Ubuntu, so there's no reason to use libvirt for Xen anymore! Just apt-get install xcp-xapi in your dom0 and use XenAPI. Thomas ___ 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] HVM + Xen Hypervisor via libvirt possible?
On Fri, Jun 22, 2012 at 11:22:13AM +0800, Li Wang wrote: Thanks all for replying. We want to stick on to the Xen Hypervisor for some reason. 1. Does the community plan to support this feature? I'd like to see it supported by Nova, because it would improve the libvirt driver in general, but I don't think I'll have time to work on it in the near future. 2. Could I submit this request to the blueprint? My team would like to contribute on it if necessary. Sounds like a good idea to submit a blueprint, or alternatively file a bug, or both. I'm happy to review any code submissions for this. 3. or some good reasons to migrate from Xen to KVM? I'd favour KVM for a variety of reasons, but lets not turn this into a bikeshed discussion about which is best ;-P Regards, Daniel -- |: http://berrange.com -o-http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| ___ 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] HVM + Xen Hypervisor via libvirt possible?
On 06/22/2012 02:04 PM, Li Wang wrote: We use CentOS in production environment. There is the Zeus project, right? I'll do some research on it Well, if you use CentOS, then why not using XCP, the open source appliance, from Citrix? It's CentOS based... I heard about the Zeus project, but I'm not sure how fare they are with this. I'm Cc-ing Mike and Jon, upstream for XCP, maybe they will be able to tell how far they've gone, and if it's already in Fedora. Thomas ___ 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] HVM + Xen Hypervisor via libvirt possible?
On 06/22/2012 05:56 PM, Daniel P. Berrange wrote: 3. or some good reasons to migrate from Xen to KVM? I'd favour KVM for a variety of reasons, but lets not turn this into a bikeshed discussion about which is best ;-P Let's put it this way: if you want to run with libvirt and Openstack, then yes, you should probably switch to KVM. But if you want to keep Xen, then you should probably switch to XCP. Thomas ___ 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] HVM + Xen Hypervisor via libvirt possible?
I have asked some of the Xen.org guys if they know anyone who has time to fix this. I will let you know if I have any luck. But yes, the XenAPI driver (talking to XCP) is probably the best way forward with Xen right now. If there are any blockers making that work, I am happy to help were I can. Cheers, John -Original Message- From: openstack-bounces+john.garbutt=eu.citrix@lists.launchpad.net [mailto:openstack-bounces+john.garbutt=eu.citrix@lists.launchpad.net] On Behalf Of Thomas Goirand Sent: 22 June 2012 2:40 Cc: openstack@lists.launchpad.net Subject: Re: [Openstack] HVM + Xen Hypervisor via libvirt possible? On 06/22/2012 05:56 PM, Daniel P. Berrange wrote: 3. or some good reasons to migrate from Xen to KVM? I'd favour KVM for a variety of reasons, but lets not turn this into a bikeshed discussion about which is best ;-P Let's put it this way: if you want to run with libvirt and Openstack, then yes, you should probably switch to KVM. But if you want to keep Xen, then you should probably switch to XCP. Thomas ___ 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
[Openstack] HVM + Xen Hypervisor via libvirt possible?
hi,all I need to run virtual machines on Xen Hypervisor in HVM mode, is it possible when using libvirt? Regards smime.p7s Description: S/MIME cryptographic signature ___ 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] HVM + Xen Hypervisor via libvirt possible?
Of course it is possible. What kind of issue did you run into? On Thu, Jun 21, 2012 at 5:52 PM, Wang Li fox...@gmail.com wrote: hi,all I need to run virtual machines on Xen Hypervisor in HVM mode, is it possible when using libvirt? Regards ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Regards Huang Zhiteng ___ 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] HVM + Xen Hypervisor via libvirt possible?
On Fri, Jun 22, 2012 at 12:17:11AM +0800, Huang Zhiteng wrote: Of course it is possible. What kind of issue did you run into? On Thu, Jun 21, 2012 at 5:52 PM, Wang Li fox...@gmail.com wrote: hi,all I need to run virtual machines on Xen Hypervisor in HVM mode, is it possible when using libvirt? Actually, this is not currently possible. For reasons I don't know, the libvirt driver currently hardcodes use of paravirtualized guests when connected to Xen hosts. It does not allow use of HVM guests. There's no particularly good technical reason why it can't be made to work. There'd need to be a way to tag instance types with HVM vs paravirt, in addition to their architecture. The libvirt driver would have to expose whether each host supports paravirt or HVM or both. The schedular would then have to take this into account when placing guests. Until this is done, if you really need to run HVM guests, then you'll have to use KVM instead of Xen. Regards, Daniel -- |: http://berrange.com -o-http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| ___ 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] HVM + Xen Hypervisor via libvirt possible?
Seems like an attribute that could be added to instance types / flavors that could be passed on to the scheduler and virt layers. Nate On Jun 21, 2012 2:12 PM, Daniel P. Berrange berra...@redhat.com wrote: On Fri, Jun 22, 2012 at 12:17:11AM +0800, Huang Zhiteng wrote: Of course it is possible. What kind of issue did you run into? On Thu, Jun 21, 2012 at 5:52 PM, Wang Li fox...@gmail.com wrote: hi,all I need to run virtual machines on Xen Hypervisor in HVM mode, is it possible when using libvirt? Actually, this is not currently possible. For reasons I don't know, the libvirt driver currently hardcodes use of paravirtualized guests when connected to Xen hosts. It does not allow use of HVM guests. There's no particularly good technical reason why it can't be made to work. There'd need to be a way to tag instance types with HVM vs paravirt, in addition to their architecture. The libvirt driver would have to expose whether each host supports paravirt or HVM or both. The schedular would then have to take this into account when placing guests. Until this is done, if you really need to run HVM guests, then you'll have to use KVM instead of Xen. Regards, Daniel -- |: http://berrange.com -o-http://www.flickr.com/photos/dberrange/:| |: http://libvirt.org -o- http://virt-manager.org:| |: http://autobuild.org -o- http://search.cpan.org/~danberr/:| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc:| ___ 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] HVM + Xen Hypervisor via libvirt possible?
On Fri Jun 22 2012 11:22:13 AM CST, Li Wang fox...@gmail.com wrote: Thanks all for replying. We want to stick on to the Xen Hypervisor for some reason. 1. Does the community plan to support this feature? 2. Could I submit this request to the blueprint? My team would like to contribute on it if necessary. 3. or some good reasons to migrate from Xen to KVM? Hi, why sticking with libvirt? There's XCP available in both Debian and Ubuntu, so there's no reason to use libvirt for Xen anymore! Just apt-get install xcp-xapi in your dom0 and use XenAPI. Thomas ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp