Re: [qubes-users] Creating and running VMs on a RAM DISK?

2019-07-27 Thread unman
On Fri, Jul 26, 2019 at 12:18:26PM -0400, Brendan Hoar wrote:
> On Fri, Jul 26, 2019 at 11:31 AM unman  wrote:
> 
> > On Fri, Jul 26, 2019 at 05:57:02AM -0700, brendan wrote:
> > > Or, should I just utilize the straightforward approach of adding the
> > amount
> > > of RAM I wish to use as a RAM disk to the baseline dom0 RAM
> > configuration,
> > > and then set up the RAM disk in dom0?
> >
> > Straightforward works fine.
> > You can use file driver or create thin pool in /dev/shm and register it
> > with Qubes as normal.
> 
> 
> Thanks unman. Hmm tmpfs can swap (though unusual). Hmm...thinking LVM on
> ramfs if there is plenty of RAM, maybe, as ramfs isn???t supposed to swap.
> 
> Of course if a randomly keyed encryption layer is involved, i???d lean
> towards LVM on tmpfs.
> 
> I???m curious how and when tmpfs knows to release memory. Another rabbit
> hole...
> 
> For safety I delete qubes, clean up and deregister...
> >
> 
> I too cleanup for various reasons, including that the disk usage widget
> doesn???t like registered but missing pools (it reports divide by zero error
> and exits).
> 
> Thanks!
> Brendan

I don't use swap in this scenario. I prefer to use the control that
tmpfs offers over ramfs.
I'd recommend creating a dedicated ram disk for the purpose.
I'm not a widget user so hadn't noticed that bug. Qubes generally is
extremely forgiving if pools are missing, and all works fine on reboot
without cleanup, in my experience, except the trailing qube needs to be
cleaned.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20190727134450.4qop7gotxvr5st4z%40thirdeyesecurity.org.


Re: [qubes-users] Creating and running VMs on a RAM DISK?

2019-07-26 Thread Brendan Hoar
On Fri, Jul 26, 2019 at 11:31 AM unman  wrote:

> On Fri, Jul 26, 2019 at 05:57:02AM -0700, brendan wrote:
> > Or, should I just utilize the straightforward approach of adding the
> amount
> > of RAM I wish to use as a RAM disk to the baseline dom0 RAM
> configuration,
> > and then set up the RAM disk in dom0?
>
> Straightforward works fine.
> You can use file driver or create thin pool in /dev/shm and register it
> with Qubes as normal.


Thanks unman. Hmm tmpfs can swap (though unusual). Hmm...thinking LVM on
ramfs if there is plenty of RAM, maybe, as ramfs isn’t supposed to swap.

Of course if a randomly keyed encryption layer is involved, i’d lean
towards LVM on tmpfs.

I’m curious how and when tmpfs knows to release memory. Another rabbit
hole...

For safety I delete qubes, clean up and deregister...
>

I too cleanup for various reasons, including that the disk usage widget
doesn’t like registered but missing pools (it reports divide by zero error
and exits).

Thanks!
Brendan



-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/CAOajFed%3DYF29ceFY7YaqtYWaW2L_ML7t6P9pC03sw-OJ%2BGLbOg%40mail.gmail.com.


Re: [qubes-users] Creating and running VMs on a RAM DISK?

2019-07-26 Thread unman
On Fri, Jul 26, 2019 at 05:57:02AM -0700, brendan.h...@gmail.com wrote:
> Hi,
> 
> Does XEN expose any sort of configuration-controlled feature or interface 
> that would sets aside XEN-owned memory in a way that can be exposed as a 
> block device within dom0, for use as a RAM disk?
> 
> Or, should I just utilize the straightforward approach of adding the amount 
> of RAM I wish to use as a RAM disk to the baseline dom0 RAM configuration, 
> and then set up the RAM disk in dom0?
> 
> B
> 

Straightforward works fine. 
You can use file driver or create thin pool in /dev/shm and register it
with Qubes as normal.
For safety I delete qubes, clean up and deregister the pool on shutdown,
but I don't think this is necessary.

unman

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20190726153141.xrguhdedjel6win5%40thirdeyesecurity.org.


[qubes-users] Creating and running VMs on a RAM DISK?

2019-07-26 Thread brendan . hoar
Hi,

Does XEN expose any sort of configuration-controlled feature or interface 
that would sets aside XEN-owned memory in a way that can be exposed as a 
block device within dom0, for use as a RAM disk?

Or, should I just utilize the straightforward approach of adding the amount 
of RAM I wish to use as a RAM disk to the baseline dom0 RAM configuration, 
and then set up the RAM disk in dom0?

B

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/ade46719-2d43-4b40-b023-0e4b88b474d4%40googlegroups.com.