Skip to contentSkip to conversation

Ubuntu 11.04 (amd64 and i386) under Xen as PV on HVM guests don't load the PV drivers.

DISCUSSION Konrad Rzeszutek Wilk 3 participants 5 messages Mar 26, 2012 – Mar 27, 2012

lore
Share & tools
lore
#0 lore raw

So I tried to load the Ubuntu 11.04 - both x86 and amd64 with this little guest config:

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory=1024
maxvcpus = 2
serial='pty'
vcpus = 2
disk = [ 'file:/home/konrad/Downloads/ubuntu-11.10-desktop-amd64.iso,hdc:cdrom,r','phy:/dev/vg_guest/ubuntu1110,hda,w'] boot="dn"
vif = [ 'type=ioemu,model=e1000,mac=00:0f:4b:00:00:66, bridge=switch' ]
vnc=1
vnclisten="0.0.0.0"
usb=1
xen_platform_pci=1
usbdevice='tablet'

And found out that the i386 does not have PAE built in, so the whole Xen subsystem is turned off (oops) - that actually looks like a bug b/c I think the PV drivers in HVM mode ought to work in non-PAE mode.. It means that the guest is running completly as HVM.

But then I thought - surely the x86_64 should work. So botted it up, saw xen-platform-pci do the unplugging off the QEMU drivers, and .. then no network nor any disk - it looks like both xen-netfront and xen-blkfront don't get loaded? Looking in /lib/modules/*/ shows that they exist - so they are compiled in.

Is that a known bug or should I open a BZ for that? Thanks.

#1 lore raw
Quoted 1 line · Konrad Rzeszutek Wilk

So I tried to load the Ubuntu 11.04 - both x86 and amd64 with this

Grrrr.. Ignore this email please. I hadn't realized that 12.xx is the new one - and playing with that right now.

Quoted 34 lines

little guest config:

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory=1024
maxvcpus = 2
serial='pty'
vcpus = 2
disk = [ 'file:/home/konrad/Downloads/ubuntu-11.10-desktop-amd64.iso,hdc:cdrom,r','phy:/dev/vg_guest/ubuntu1110,hda,w'] boot="dn"
vif = [ 'type=ioemu,model=e1000,mac=00:0f:4b:00:00:66, bridge=switch' ]
vnc=1
vnclisten="0.0.0.0"
usb=1
xen_platform_pci=1
usbdevice='tablet'

And found out that the i386 does not have PAE built in, so the whole Xen subsystem is turned off (oops) - that actually looks like a bug b/c I think the PV drivers in HVM mode ought to work in non-PAE mode.. It means that the guest is running completly as HVM.

But then I thought - surely the x86_64 should work. So botted it up, saw xen-platform-pci do the unplugging off the QEMU drivers, and .. then no network nor any disk - it looks like both xen-netfront and xen-blkfront don't get loaded? Looking in /lib/modules/*/ shows that they exist - so they are compiled in.

Is that a known bug or should I open a BZ for that? Thanks.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Konrad Rzeszutek Wilk

So I tried to load the Ubuntu 11.04 - both x86 and amd64 with this

Grrrr.. Ignore this email please. I hadn't realized that 12.xx is the new one - and playing with that right now.

Yeah, unfortunately we sorted out the "better have blkfront and netfront built-in" too late. After the release went out and the cd/dvd images are not re-done for non-LTS. :(
So installation has to be done with preventing the unplugging. Also at that point there still was one of the irq emulation bugs in, so NIC model should be e1000...

-Stefan

Quoted 28 lines
Quoted 28 lines

little guest config:

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory=1024
maxvcpus = 2
serial='pty'
vcpus = 2
disk = [ 'file:/home/konrad/Downloads/ubuntu-11.10-desktop-amd64.iso,hdc:cdrom,r','phy:/dev/vg_guest/ubuntu1110,hda,w'] boot="dn"
vif = [ 'type=ioemu,model=e1000,mac=00:0f:4b:00:00:66, bridge=switch' ]
vnc=1
vnclisten="0.0.0.0"
usb=1
xen_platform_pci=1
usbdevice='tablet'

And found out that the i386 does not have PAE built in, so the whole Xen subsystem is turned off (oops) - that actually looks like a bug b/c I think the PV drivers in HVM mode ought to work in non-PAE mode.. It means that the guest is running completly as HVM.

But then I thought - surely the x86_64 should work. So botted it up, saw xen-platform-pci do the unplugging off the QEMU drivers, and .. then no network nor any disk - it looks like both xen-netfront and xen-blkfront don't get loaded? Looking in /lib/modules/*/ shows that they exist - so they are compiled in.

Quoted 6 lines
Quoted 6 lines

Is that a known bug or should I open a BZ for that? Thanks.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
Quoted 7 lines · Stefan Bader
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Konrad Rzeszutek Wilk

So I tried to load the Ubuntu 11.04 - both x86 and amd64 with this

Grrrr.. Ignore this email please. I hadn't realized that 12.xx is the new one - and playing with that right now.

Quoted 6 lines

Yeah, unfortunately we sorted out the "better have blkfront and netfront built-in" too late. After the release went out and the cd/dvd images are not re-done for non-LTS. :(
So installation has to be done with preventing the unplugging. Also at that point there still was one of the irq emulation bugs in, so NIC model should be e1000...

Errm, that actually was 11.10. But the unplugging was the same in 11.04 too...

Quoted 41 lines

-Stefan

Quoted 28 lines
Quoted 28 lines

little guest config:

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory=1024
maxvcpus = 2
serial='pty'
vcpus = 2
disk = [ 'file:/home/konrad/Downloads/ubuntu-11.10-desktop-amd64.iso,hdc:cdrom,r','phy:/dev/vg_guest/ubuntu1110,hda,w'] boot="dn"
vif = [ 'type=ioemu,model=e1000,mac=00:0f:4b:00:00:66, bridge=switch' ]
vnc=1
vnclisten="0.0.0.0"
usb=1
xen_platform_pci=1
usbdevice='tablet'

And found out that the i386 does not have PAE built in, so the whole Xen subsystem is turned off (oops) - that actually looks like a bug b/c I think the PV drivers in HVM mode ought to work in non-PAE mode.. It means that the guest is running completly as HVM.

But then I thought - surely the x86_64 should work. So botted it up, saw xen-platform-pci do the unplugging off the QEMU drivers, and .. then no network nor any disk - it looks like both xen-netfront and xen-blkfront don't get loaded? Looking in /lib/modules/*/ shows that they exist - so they are compiled in.

Quoted 6 lines
Quoted 6 lines

Is that a known bug or should I open a BZ for that? Thanks.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw
In reply to Konrad Rzeszutek Wilk
Quoted 3 lines · Konrad Rzeszutek Wilk

And found out that the i386 does not have PAE built in, so the whole Xen subsystem is turned off (oops) - that actually looks like a bug b/c I think the PV drivers in HVM mode ought to work in non-PAE mode..

It is possible in theory for them to work but in practice CONFIG_XEN_PVHVM is rather entangled with CONFIG_XEN (which depends on PAE). It's mostly a case of refactoring + getting the ifdeffery right, fiddly but doable.

Ian.