From: Alex Bligh Subject: Re: Xen 4.x / Linux 3.x (dom0 and HVM domU) and NIC handling Date: Fri, 02 Dec 2011 17:16:59 +0000 Message-ID: <8D88C4D6C31A598129A942AD@Ximines.local> References: <4ED798B2.1040309@canonical.com> <20111201180944.GH12984@reaktio.net> <4ED8A45A.3050403@canonical.com> <20111202104110.GL12984@reaktio.net> <1322844048.29870.155.camel@zakaz.uk.xensource.com> Reply-To: Alex Bligh Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1322844048.29870.155.camel@zakaz.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: xen-devel@lists.xensource.com, Alex Bligh , Stefan Bader , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --On 2 December 2011 16:40:48 +0000 Ian Campbell wrote: >> AFAIK changing xen_platform_pci=0|1 will switch rather more than just >> the NIC. It will switch your disk too, instantly causing your previously >> happily booting OS to fail to boot as the root device name changes. > > We recommend you use "root=LABEL=foo" rather than "root=/dev/blah" for > this reason. Fortunately most distros use that scheme by default these > days. Yes; and /etc/fstab. UUID= works too. FWIW my experience is that various built-for-cloud type distros don't use that scheme, mainly because they use grub1 which IIRC does not support this, and building images in a non-root environment that have grub1 in is rather easier than grub2. So, for instance, all the vm-builder stuff in debian/ubuntu used grub1 and did not work this way. However, my point was that xen_platform_pci does not only change whether your net driver is emulated or PVHVM, but also whether your disk, and indeed everything else is emulated or PVHVM. -- Alex Bligh