Hi, I am trying to enable the PV driver for Linux HVM. dom0 is CentOS5.2, domU is a hvm Ubuntu server 8.04. I rebuild the kernel with 2.6.27.3, with all the unnecessary drivers removed. I noticed that there is a virtio driver for network/block device/balloon. I build these drivers as modules, and try to enable the virtio_net driver. I played with several combinations of vif=[...] but still no luck. Either there is no ethernet controller or it is the realtek 8139c. I am wondering if any one has some experience to enable PV driver for a Linux HVM domU. Thanks Zhi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2008-Oct-29 05:59 UTC
Re: [Xen-users] How to use the PV driver for Linux HVM domU?
On Tue, Oct 28, 2008 at 11:07:59PM -0400, Zhi Wang wrote:> Hi, > I am trying to enable the PV driver for Linux HVM. dom0 is CentOS5.2, domU > is a hvm Ubuntu server > 8.04. I rebuild the kernel with 2.6.27.3, with all the unnecessary drivers > removed. I noticed that there > is a virtio driver for network/block device/balloon. I build these drivers > as modules, and try to enable > the virtio_net driver. I played with several combinations of vif=[...] but > still no luck. Either there is no > ethernet controller or it is the realtek 8139c. I am wondering if any one > has some experience to enable > PV driver for a Linux HVM domU. Thanks >Hi. I thought virtio drivers are for KVM, not for Xen. You need Xen pv-on-hvm drivers.. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Zhi Wang
2008-Oct-29 17:32 UTC
Re: [Xen-users] How to use the PV driver for Linux HVM domU?
I think virtio is supposed to support both Xen and KVM, in the future probably. I tried the pv driver (xen-3.3.0/unmodified_driver/linux-2.6). I use 2.6.18.8 also in the HVM domU. The PV network driver is OK. I compiled it, removed the old 8139cp driver, then insmod the xen-vnif.ko driver. I can still get online. Xen-3.3.0''s PV drivers have some difficult to build on the 2.6.27.3 kernel. I didn''t try other kernels. On Wed, Oct 29, 2008 at 1:59 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Tue, Oct 28, 2008 at 11:07:59PM -0400, Zhi Wang wrote: > > Hi, > > I am trying to enable the PV driver for Linux HVM. dom0 is CentOS5.2, > domU > > is a hvm Ubuntu server > > 8.04. I rebuild the kernel with 2.6.27.3, with all the unnecessary > drivers > > removed. I noticed that there > > is a virtio driver for network/block device/balloon. I build these > drivers > > as modules, and try to enable > > the virtio_net driver. I played with several combinations of vif=[...] > but > > still no luck. Either there is no > > ethernet controller or it is the realtek 8139c. I am wondering if any one > > has some experience to enable > > PV driver for a Linux HVM domU. Thanks > > > > Hi. > > I thought virtio drivers are for KVM, not for Xen. > > You need Xen pv-on-hvm drivers.. > > -- Pasi >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Emre Erenoglu
2008-Oct-29 22:11 UTC
Re: [Xen-users] How to use the PV driver for Linux HVM domU?
Hi, On Wed, Oct 29, 2008 at 6:32 PM, Zhi Wang <xenlando@gmail.com> wrote:> I think virtio is supposed to support both Xen and KVM, in the future > probably. >As far as I know, virtio drivers are only for KVM and I use them daily for my KVM box. For Xen HVM Domains. there are unmodified_drivers in the xen kernel source, if you're lucky enough to get them working in a recent kernel. On Wed, Oct 29, 2008 at 1:59 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> >> On Tue, Oct 28, 2008 at 11:07:59PM -0400, Zhi Wang wrote: >> > Hi, >> > I am trying to enable the PV driver for Linux HVM. dom0 is CentOS5.2, >> domU >> > is a hvm Ubuntu server >> > 8.04. I rebuild the kernel with 2.6.27.3, with all the unnecessary >> drivers >> > removed. I noticed that there >> > is a virtio driver for network/block device/balloon. I build these >> drivers >> > as modules, and try to enable >> > the virtio_net driver. I played with several combinations of vif=[...] >> but >> > still no luck. Either there is no >> > ethernet controller or it is the realtek 8139c. I am wondering if any >> one >> > has some experience to enable >> > PV driver for a Linux HVM domU. Thanks >> > >> >I succeeded using Pardus distribution as a HVM DomU with the unmodified_drivers on top of Ubuntu dom0, but the distro itself was also based on 2.6.18 kernel. I didn't succeed with anything recent. For it to work, your network type hall be "netfront" in your config file. Emre _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users