Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, I mean:

On standard KVM, if you make a VM and give it /dev/vgname/fedora, inside you get /dev/vda as your main disk, and then you have this:

/dev/vda1: /boot/efi

/dev/vda2: /boot

/dev/vda3: LVM

What I want is this:

Host side -> VM side

/dev/vgname/fedora-boot -> /dev/vda

/dev/vgname/fedora-root -> /dev/vdb

/dev/vgname/fedora-swap -> /dev/vdc

LVM on the VM side is superfluous when you're the owner of everything.

This way I don't have to deal with the whole rigamarole of /dev/vgname/fedora having a partition table inside. I can just resize/snapshot/mount/fsck every partition from the host directly.

I just find it odd that this seems like an unusual configuration and that pretty much no distro seems to want to work this way.



Oh, I know what you mean, I just value "it booting on anything" over wasting few hundred megs on /boot|EFI partition.

We went thru that phase with Xen and it just made it super annoying to migrate to anything else, because for that to work you need hypervisor-specific assist to boot the kernel instead of generic bootloader.

Previous admin also had "genius" idea on putting kernels hypervisor-side which made all kinds of messes, as now hypervisor had to had locally every kernel every machine that might run on it needs for boot...

> LVM on the VM side is superfluous when you're the owner of everything.

I mean, if you IDGAF how disks fill up, sure. I like to split it so, for example, app filling its data dir does not stop /var/log from logging. I did wrote script that auto-resizes LVs and filesystems (up to a given limits) so I just use that. That on my multi-purpose VPS at least

In day job we generally don't do LVM for smaller one purpose VMs but do when there is say a database + significant app data, because app filling disk so DB can't work properly is more annoying to fix than app where upload button just stopped working. Database servers usually get "vdc for database, vda for everything else" because that's nice and easy when it comes to giving it more space.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: