<html><head></head><body>We tried to get CentOS 8 domU working in PV mode as well but did not have any success and ended up deploying it in HVM mode.<br>
<br>
The reason OP have was lack of hardware support for HVM. This wasn't our rationale for wanting to run in PV mode. Our rationale was that we prefer to deploy CentOS 7 VMs on LVs which are formatted and deployed from an image on dom0 and don't have any partition table. This makes snapshotting, mounting, backing up and migrating very simple. We have written a number of scripts over the years that needed extensive modification to work with HVM VMs but in the end we ended up doing it because we couldn't get PV mode working. And we accepted that HVM is the future so might as well take the opportunity to adapt our ways.<br>
<br>
If anyone manages to get PV mode working I'd still like to know.<br>
<br>
Chris<br>
<br><br><div class="gmail_quote">On September 19, 2020 7:08:28 PM GMT+02:00, "RadosÅ‚aw Piliszek" <radoslaw.piliszek@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hi,<br /><br />In general, PV tends not to be supported in newer distribution releases.<br />This is mostly due to HVM performance and flexibility nowadays, which<br />just was not the case back in the days when PV ruled.<br /><br />I am curious why you are trying PV.<br /><br />-yoctozepto<br /><br />On Sat, Sep 19, 2020 at 6:41 PM 9f9dcad3f78905b03201--- via<br />CentOS-virt <centos-virt@centos.org> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><br /> All,<br /><br /> Just wanted to check one last time before letting this thread die.<br /><br /> I am curious if anyone has gotten CentOS 8 to work in a PV Xen environment.<br /><br /><br /> Thanks.<br /><br /><br /> <9f9dcad3f78905b03201@bcirpg.com> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;">All,<br /><br />I have successfully installed CentOS 7 on a PV environment, and have been trying to see if I can can get a CentOS 8 install running.<br /><br />Hardware does not support virtualization extensions, hence the PV environment and I cant do HVM for the install then migrate.<br /><br />My understanding is that PV support is in the kernel, and that the distro of Linux shouldn&#39;t technically matter. But currently when trying to &quot;PXEBoot&quot; using a CentOS 8 kernel and ram image I get a near instant crash for an invalid kernel.<br /><br />I tried to get around the issue by using DOM0 kernel and Ram Disk for the install (DOM0 is Debian 10), having the boot progress until it reaches the following, looping ISCSI error:<br /><br />&gt;[  OK  ] Reached target Slices.<br />&gt;         Starting Create Static Device Nodes in /dev...<br />&gt;[  OK  ] Started iSCSI UserSpace I/O driver.<br />&gt;[  OK  ] Started Setup Virtual Console.<br />&gt;         Starting dracut cmdline hook...<br />&gt;[  OK  ] Started Apply Kernel Variables.<br />&gt;[  OK  ] Stopped iSCSI UserSpace I/O driver.<br />&gt;         Starting iSCSI UserSpace I/O driver...<br /><br />I have also tried the CentOS 7 kernel Ram Disk with the same results.<br /><br />I even tried installing CentOS 7 clean, then upgrading in place (by unofficial and unsupported means) and was left with an error that pygrub couldnt find the partition with the kernel.<br /><br />Is this is a bug, or is PV just not supported? Or am I doing something wrong?<br /><br />Config for the install is below:<br /><br />&gt;# Kernel paths for install<br />&gt;#kernel = &quot;/var/opt/xen/ISO_Store/Centos8PXEBoot/vmlinuz&quot;<br />&gt;kernel = &quot;/vmlinuz&quot;<br />&gt;#ramdisk = &quot;/var/opt/xen/ISO_Store/Centos8PXEBoot/initrd.img&quot;<br />&gt;ramdisk = &quot;/initrd.img&quot;<br />&gt;extra=&quot;modules=loop,squashfs console=hvc0&quot;<br />&gt;<br />&gt;# Path to HDD and iso file<br />&gt;disk = [<br />&gt;        #&#39;file:/vmdisk0,xvda,w&#39;<br />&gt;        &#39;format=raw, vdev=xvda, access=w, target=/dev/mapper/vg_1-virtualmachine&#39;,<br />&gt;       ]<br />&gt;<br />&gt;extra=&quot;ksdevice= inst.repo=<a href="https://mirror.jaleco.com/centos/8.2.2004/isos/x86_64">https://mirror.jaleco.com/centos/8.2.2004/isos/x86_64</a>/ nameserver=<a href="http://1.1.1.1">1.1.1.1</a>&quot;<br />&gt;<br />&gt;# Network configuration<br />&gt;vif = [&#39;bridge=xenbr0&#39;]<br />&gt;<br />&gt;#DomU Settings<br />&gt;memory = 3072<br />&gt;name = &quot;centos-8.2&quot;<br /><br />Thank you to all.<br /><hr /><br />CentOS-virt mailing list<br />CentOS-virt@centos.org<br /><a href="https://lists.centos.org/mailman/listinfo/centos-virt">https://lists.centos.org/mailman/listinfo/centos-virt</a><br /></blockquote><hr /><br /> CentOS-virt mailing list<br /> CentOS-virt@centos.org<br /> <a href="https://lists.centos.org/mailman/listinfo/centos-virt">https://lists.centos.org/mailman/listinfo/centos-virt</a><br /></blockquote><hr /><br />CentOS-virt mailing list<br />CentOS-virt@centos.org<br /><a href="https://lists.centos.org/mailman/listinfo/centos-virt">https://lists.centos.org/mailman/listinfo/centos-virt</a><br /></pre></blockquote></div><br>
-- <br>
Chris Wik<br>
Anu Internet Services<br>
<a href="http://www.cwik.ch">www.cwik.ch</a> | <a href="http://www.anu.net">www.anu.net</a></body></html>