public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* nfsroot stays 'readonly'
@ 2008-06-27  9:00 Louis-David Mitterrand
  2008-06-29  9:16 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Louis-David Mitterrand @ 2008-06-27  9:00 UTC (permalink / raw)
  To: kvm

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

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).

4) also I'm not sure what the "console=" and "early_printk=" do; is it
at the nfsroot or kvm level?

A log of the boot process is available at:

	http://zenon.apartia.fr/stuff/kvm_log.txt


Thanks for any suggestions,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: nfsroot stays 'readonly'
  2008-06-27  9:00 nfsroot stays 'readonly' Louis-David Mitterrand
@ 2008-06-29  9:16 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-06-29  9:16 UTC (permalink / raw)
  To: kvm

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-29  9:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-27  9:00 nfsroot stays 'readonly' Louis-David Mitterrand
2008-06-29  9:16 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox