Hi Yiping, If you do the following SQL: SELECT * FROM guest_os_hypervisor WHERE hypervisor_type="XenServer" and hypervisor_version="7.1.0" AND guest_os_id IN (SELECT id FROM guest_os WHERE display_name="CentOS 6.4 (64-bit)"); +-------------------+ | guest_os_name | +-------------------+ | CentOS 6 (64-bit) | +-------------------+
It basically shows you, that for ACS OS type called "CentOS 6.4 (64-bit)", this is translated/matches/mapped to the "CentOS 6 (64-bit)" as seen from the XenServer 7.1.x hypervisor. Now, there IS a possibility that some of these mappings is incorrect... I would just go to XenServer and try to deploy manually (via XenCenter etc) a VM with selecting the OS type from above SQL results set (CentOS 6 (64-bit)) and observe if it gets provisioned as HVM or PV - if XenServer brings it as HVM, then you can see it's XenServer making it HVM. But if XenServer starts that manually deployed VM as PV - then we can assume some wrong mapping from ACS side. If you have time to test this, I'm also interested in root cause - since I saw with 7.1.x XenServer that you can't even restore a VM from snapshot, if you change OS type on existing VM in ACS from, i.e. centos 6.4 to 6.5 etc. Kind regards, Andrija andrija.pa...@shapeblue.com www.shapeblue.com Amadeus House, Floral Street, London WC2E 9DPUK @shapeblue -----Original Message----- From: Yiping Zhang <yzh...@marketo.com> Sent: 28 January 2019 23:16 To: users@cloudstack.apache.org Subject: how to run rhel 6.x VM as PV VM on xenserver 7.1CU1? Hi, All: I have a large number of RHEL 6.x VM instances running in our ACS environment. Last time when I upgraded our XenServer from 6.5SP1 to 7.0, I have to change my templates to assign OS TYPE as “RHEL 6.4 (64bit)” so that my VM instances can be started as PV instances. Anything above “RHEL 6.5 (64bits)” would be started as HVM instances and they would get stuck during boot. Last week, after I upgraded my lab hypervisors to use XenServer 7.1CU1, all my (lab) rhel 6.x VM instances would get started as HVM instances, thus stuck during boot. I even tried to change template’s OS TYPE to other types such as “rhel 5.10/5.0/6.0/, Other PV(64bit)” etc without any luck. What did I miss? My lab is running ACS 4.11.2.0 packages from Shapeblue. According to Citrix document, https://docs.citrix.com/en-us/xenserver/7-1/downloads/vm-users-guide.pdf, RHEL 6.x should always be started as PV instance. So why I only get HVM instances instead? Is it CloudStack or XenServer which decides an instance to be started as PV or HVM instance? Thanks, all helps are appreciated. Yiping