From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: nfsroot stays 'readonly' Date: Sun, 29 Jun 2008 12:16:07 +0300 Message-ID: <486752D7.4090405@qumranet.com> References: <20080627090006.GA26993@apartia.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from il.qumranet.com ([212.179.150.194]:26829 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881AbYF2JQJ (ORCPT ); Sun, 29 Jun 2008 05:16:09 -0400 In-Reply-To: <20080627090006.GA26993@apartia.fr> Sender: kvm-owner@vger.kernel.org List-ID: Louis-David Mitterrand wrote: > Hi, > > To provide an emergency off-site backup server for a client, I'm trying > to use kvm on a nightly rsync'ed copy of their server. To avoid the use > of a disk image I was advised to try nfsroot. This the command I am > running: > > # kvm -nographic -hda ~/empty.qcow2 > -kernel /boot/vmlinuz-2.6.25.7-1-pyrrhus64 > -append "3 root=/dev/nfs > nfsroot=10.0.3.1:/backup/client.server.com/current/ ip=dhcp > console=ttyS0 early_printk=ttyS0" -serial stdio -net nic -net > tap,script=/etc/kvm/kvm-ifup-zenon -m 1024 > > wich mostly works, the remaining problems I have are: > > 1) the nfsroot fs stays 'readonly' even though I modified the backup's > fstab to read: > > 10.0.3.1:/backup/client.server.com/current / nfs defaults,rw 0 0 > try sticking a 'mount -o remount,rw /' somewhere in the boot initscripts. > 2) the boot lingers a long time after "activating swap" even though > there is no swap entry in the modified fstab > > 3) the login: prompt is not reached, the kernel hangs at: > > Running local boot scripts (/etc/rc.local). > Try to find out what it's doing there with some echos. It may be due to the root filesystem being readonly. > 4) also I'm not sure what the "console=" and "early_printk=" do; is it > at the nfsroot or kvm level? > > These are Linux kernel options, see Documentation/kernel-parameters.txt. -- error compiling committee.c: too many arguments to function