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

Re: [Xen-users] How can you boot dom0 with a rootfilesystem that lives in memory?



On 25/10/18 1:53 am, Matthieu Cerda wrote:
Le 24/10/2018 à 05:09, Kleve, Jesse R a écrit :
I’m trying to find a way to load a rootfs into memory and have dom0 use this as 
the root filesystem instead of extracting the rootfs on to an SD card partition and 
mounting that. Is this possible? I have been unable to find any documentation on this. 
Is there a property in the dom0 chosen section of the device tree to specify the 
location of the rootfs?

Thanks,
Jesse
Hi Jesse,

It is possible, we do it actually here.

What is your target dom0 OS ? ( On Debian / Ubuntu, you might either use
homemade solutions, or to make things easier,
http://cmrg.fifthhorseman.net/wiki/debirf )


I used to do this years ago (not any more) for my xen servers. Initially I was using NFS root, but I found any NFS issue would crash all the dom0, and then it made it really hard to fix/debug what was going on. In the end, I used a custom init script/plugin to initramfs, which simply created a ram disk (4G) and then copied the files from the NFS server into RAM. In your case, the source of the filesystem can be whatever you want. Seeing the above debirf, it seems I'm not the only one to have wanted to do this.

PS, in my case, the xen servers were totally diskless.

Regards,
Adam

--
Adam Goryachev Website Managers www.websitemanagers.com.au
--
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you have received this message
in error, please notify us immediately. Please also destroy and delete the
message from your computer. Viruses - Any loss/damage incurred by receiving
this email is not the sender's responsibility.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-users

 


Rackspace

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