[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] mount DomU root fs via. NFS


  • To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
  • From: Jeenu Viswambharan <Jeenu.Viswambharan@xxxxxxx>
  • Date: Wed, 6 Aug 2014 11:05:11 +0100
  • Accept-language: en-US, en-GB
  • Acceptlanguage: en-US, en-GB
  • Cc: xen-users <xen-users@xxxxxxxxxxxxx>
  • Delivery-date: Wed, 06 Aug 2014 10:06:12 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>
  • Thread-index: Ac+ww/OUzrx9P61KRzOxYzE8Ca1UogAl0n8w
  • Thread-topic: [Xen-users] mount DomU root fs via. NFS

On Tue, Aug 05, 2014 at 16:42:31, Ian Campbell wrote:
> [...] 10.1.192.268 is not a valid IP address so it fails.

Of course it isn't. What was I thinking?!

> I think this cfg ought to work:
>
>   vif = [ "script=vif-nat,mac=22:1e:4e:fc:6d:be,ip=192.168.1.1" ]
>   extra = "... root=/dev/nfs nfsroot=nfs.ip.add.ress:/path/to/nfs/root 
> ip=192.168.1.1 ..."
>
> i.e. give the guest address 192.168.1.1. This won't pollute your
> corporate network since NAT will ensure that what is seen outside the
> host is the hosts own address.

As you mentioned earlier, I couldn't get it working without setting the
proper gateway. So I instead went with the ip= syntax to specify gateway
IP too:

  vif = [ "script=vif-nat,ip=192.168.1.1" ]
  extra = "earlyprintk=xenboot console=hvc0 root=/dev/nfs 
nfsroot=/path/to/nfs/root ip=192.168.1.1:10.1.193.170:192.168.1.128 debug rw

With that, I can boot guest with NFS root!

Thanks for your help.

--
Jeenu

-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium.  Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered 
in England & Wales, Company No:  2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, 
Registered in England & Wales, Company No:  2548782
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.