Re: Best place for VM images

2017-07-19 Thread Luca Cappelletti

On 18/07/2017 17:15, Theo de Raadt wrote:

Sure. I don't have a really strong opinion one way or the other. When I
mentioned I put mine in a dedicated partition, I use /data/vmm or various
places in /home if I've already fully partitioned the machine in question.


I don't think a seperate partition is neccessary.

However I think this should stop saying /var/anything right away, because
that is leading people in the wrong direction.




I tend to store vital personal data in $HOME or /home/... in dedicated 
$HOME users


but in my opinion there's nothing wrong to put anything available to all 
users in /usr/local/share/whathever and stay far away from /var


regards,

Luca



Re: Best place for VM images

2017-07-18 Thread Mike Larkin
On Tue, Jul 18, 2017 at 09:15:41AM -0600, Theo de Raadt wrote:
> > Sure. I don't have a really strong opinion one way or the other. When I
> > mentioned I put mine in a dedicated partition, I use /data/vmm or various
> > places in /home if I've already fully partitioned the machine in question.
> 
> I don't think a seperate partition is neccessary.
> 
> However I think this should stop saying /var/anything right away, because
> that is leading people in the wrong direction.
> 

Please go ahead, I don't have any attachment to /var, feel free to update
the man page to something different.

-ml



Re: Best place for VM images

2017-07-18 Thread Theo de Raadt
> Sure. I don't have a really strong opinion one way or the other. When I
> mentioned I put mine in a dedicated partition, I use /data/vmm or various
> places in /home if I've already fully partitioned the machine in question.

I don't think a seperate partition is neccessary.

However I think this should stop saying /var/anything right away, because
that is leading people in the wrong direction.



Re: Best place for VM images

2017-07-18 Thread Mike Larkin
On Tue, Jul 18, 2017 at 09:08:10AM -0600, Theo de Raadt wrote:
> > I've been putting mine in a dedicated partition. /var/vmm should probably
> > be its own partition if used.
> > 
> > nodev, nosuid are probably good choices there too.
> 
> That won't work.  People without an additional partition will get these
> mount options.  And anyways those system flags don't make any sense for
> such controlled files.
> 
> Anyways, this stuff should not be in /var at all!
> 
>  /var/  Multi-purpose log, temporary, transient, and spool files.
> 
> Note the word transient.
> 
> These vmm images people are creating are for their own use, and I don't
> think they should be anywhere near a system directory, let alone the
> system directory /var.
> 
> I'd suggest /home/vmm as a good place to store them.
> 

Sure. I don't have a really strong opinion one way or the other. When I
mentioned I put mine in a dedicated partition, I use /data/vmm or various
places in /home if I've already fully partitioned the machine in question.

I think the original mentioning of /var/vmm probably was put in there
based on the similar usage of /var/www, but I won't defend that choice :)

-ml



Re: Best place for VM images

2017-07-18 Thread Theo de Raadt
> I've been putting mine in a dedicated partition. /var/vmm should probably
> be its own partition if used.
> 
> nodev, nosuid are probably good choices there too.

That won't work.  People without an additional partition will get these
mount options.  And anyways those system flags don't make any sense for
such controlled files.

Anyways, this stuff should not be in /var at all!

 /var/  Multi-purpose log, temporary, transient, and spool files.

Note the word transient.

These vmm images people are creating are for their own use, and I don't
think they should be anywhere near a system directory, let alone the
system directory /var.

I'd suggest /home/vmm as a good place to store them.



Re: Best place for VM images

2017-07-18 Thread Leo Unglaub

Hey,


Hey friends,
what is the best/recommended place to store the vmm images. In man 5 vm.conf
is an example with/var/vmm/, is this the best location?

Also if /var/vmm is its own partition, what would be the best mount options
for it. I would assume nodev, nosuid are good.

Any recommendations?
Thanks and greetings
Leo


I've been putting mine in a dedicated partition. /var/vmm should probably
be its own partition if used.

nodev, nosuid are probably good choices there too.


thank you for your answer. I am going to follow your advice here. Do you 
think this is something that should be put into the man page? I can 
imagine more people having this same question. Or do you think its to 
trivial and would just bloat up the man page?


Thanks and greetings
Leo



Re: Best place for VM images

2017-07-17 Thread Mike Larkin
On Tue, Jul 18, 2017 at 01:52:53AM +0200, Leo Unglaub wrote:
> Hey friends,
> what is the best/recommended place to store the vmm images. In man 5 vm.conf
> is an example with /var/vmm/, is this the best location?
> 
> Also if /var/vmm is its own partition, what would be the best mount options
> for it. I would assume nodev, nosuid are good.
> 
> Any recommendations?
> Thanks and greetings
> Leo
> 

I've been putting mine in a dedicated partition. /var/vmm should probably
be its own partition if used.

nodev, nosuid are probably good choices there too.

-ml



Best place for VM images

2017-07-17 Thread Leo Unglaub

Hey friends,
what is the best/recommended place to store the vmm images. In man 5 
vm.conf is an example with /var/vmm/, is this the best location?


Also if /var/vmm is its own partition, what would be the best mount 
options for it. I would assume nodev, nosuid are good.


Any recommendations?
Thanks and greetings
Leo