Originally posted by DoMiNeLa10
View Post
Announcement
Collapse
No announcement yet.
VirtIO-FS Sent In For Linux 5.4 With Better Performance Over VirtIO-9P
Collapse
X
-
Originally posted by DoMiNeLa10 View PostSamba has issues when it comes to mapping permissions. It's also worth noting that you need to install Samba to use this option. If VirtIO-FS is in the kernel, I assume it will be much better in every possible way.
As you stated samba is not perfect. The incompatibility between the two permission systems of Linux and Windows is basically not 100 percent solvable. Samba code base contains decades of work to make the permission mapping as good as they can be. So your assume having windows support virtio-fs would be better in every possible way is wrong. It would be horrible as windows in the virtual machine would have to work out how to talk Linux permissions. As we see with virtio-9p done by Microsoft for windows they don't have this worked out even with 9p limited subset of permissions possible under Linux. Virtio-fs using fuse in the Linux kernel is not a limited subset its the complete box and dice all the permissions Linux file systems can hold.
Really windows need to walk before it can run here. When windows can do virtio-9p with sanity then we can move on to virtio-fs. Even so samba on host still looks good as you can avoid stalling the windows vm out in the processing of the windows file system driver due to the fact samba running on the Linux host can do the house keeping stuff to be emulating windows permissions without stalling the windows kernel in the vm.
Permission differences between operating systems cause serous trouble.
Comment
-
Originally posted by oiaohm View Post
The problem with mapping permissions does not go away. Virtio-fs provides a Linux permissions model not a windows one. So this would require windows driver side to be able to talk cleanly Linux permissions.
Comment
-
Originally posted by schmidtbag View PostStorage these days is cheap and computers often come with more ports than you know what to do with. I personally just opt for a dedicated drive for my VMs. That way, you don't have to worry about drivers or additional overhead, in theory (haven't tested this) you could still boot from bare-metal, and you can access the files directly from the host (preferably not while the guest is still running). Any time I'm in need of files that regularly need to be accessed between the host and guest while both are running, I use a NAS. All of this can be done very affordably at home.
Also wtf is "I use a NAS". What is preventing you from sharing a folder from the host directly with Samba/SMB (aka the host is also the NAS)Last edited by starshipeleven; 27 September 2019, 03:09 PM.
Comment
-
Originally posted by DoMiNeLa10 View PostI was talking about it being better for proper operating systems. Watered down ones, like Windows make sense to be second class citizens.
Windows one is worse because its history goes back to VMS and that hardware. To be excutable on the VMS hardware you also had to be readable.
Linux and BSD goes back to Unix history some of that hardware had executeable that could not read. Yes the fun XnR (execute no read)
That is being talked about being a modern security feature is old historic thing imprinted in the posix standard.
Comment
-
Originally posted by starshipeleven View PostYour setup is significantly more expensive and less mobile than a single laptop with a SSD, while not being significantly better.
I spent less money for all of my devices combined than what some people spend on just a phone. Sure, none of them have impressive specs, but for my workloads, they all keep up.
Just because you have a lot of ports, it does not mean that using them all is better.
Also wtf is "I use a NAS". What is preventing you from sharing a folder from the host directly with Samba/SMB (aka the host is also the NAS)
So no, my setup is not more expensive, it is actually more mobile than you think, and there are actually real benefits vs using a laptop with a big SSD.
Comment
-
Originally posted by schmidtbag View PostNo, not really. I paid $200 for my home server. I paid $350 for my laptop.
My phone was about $40 (new).
Do you not know what a NAS is or are you just being deliberately obtuse?
My server (which BTW, isn't just a NAS) runs at about 15W when idle and is accessible over the internet.
Mine idles at around 100W but it's a dual-socket Fujitsu xeon rack with 256GB RAM and 16 2.5'' 600GB SAS drives (that apparently you can buy in batches of 20 at 100 euros or less on ebay).
I'm actually running the VMs directly on this server and connect to it from my much weaker PC through a dirt cheap 10Gb fiber connection (seriously, it's mind boggling how cheap are these things if compared to 10Gb copper-based cards).
But I'm not here posting on a forum about how it is so much more convenient to use a 2U rack server with all VMs and the storage I need inside of it, instead of just sharing folders between host and guest.
Because it makes no sense. I use this thing for my specific workload, while most people are fine with filesharing between host and guest in VMs.
I'm not going to go on a tirade about the problems of using a laptop as a primary form of storage.
You can usually passthrough USB drives to the VM directly too, it's very convenient.
So no, my setup is not more expensive, it is actually more mobile than you think, and there are actually real benefits vs using a laptop with a big SSD.
Your setup exists for more than just passing files from VM to host I hope. That's the difference.
Comment
-
Originally posted by starshipeleven View PostBoom, right there 200$ that you could have saved by just setting up a shared folder on the laptop. We are talking of just running a VM here.
HDD is not an ideal choice if you want to maximize battery life. Using a pair of HDDs in RAID is a lot cheaper. Since my server does more than just share files, that $200 cost has already paid for itself better than a larger SSD in my laptop.
Is that a Dumbphone? (a non-smarphone phone). Not relevant for running VMs.
I'm just pointing out that, for the sole scope of sharing files between a host and a guest, having a separate NAS or server is beyond overkill.
Like I said, a NAS is typically a preferable option when you have files that you need accessible to multiple systems. If you only have 1 PC in your entire network then sure, there's no point of a NAS. But at that point you can just simply ignore my suggestion; it's not wrong like you seem to suggest it is. I'm sure many people who care about sharing data between a VM and its host are likely to want to share that data with multiple PCs. Having a dedicated system for that is, in many cases, easier and cheaper to work with.
Pfft, amateur.
Mine idles at around 100W but it's a dual-socket Fujitsu xeon rack with 256GB RAM and 16 2.5'' 600GB SAS drives (that apparently you can buy in batches of 20 at 100 euros or less on ebay).
I'm actually running the VMs directly on this server and connect to it from my much weaker PC through a dirt cheap 10Gb fiber connection (seriously, it's mind boggling how cheap are these things if compared to 10Gb copper-based cards).
But I'm not here posting on a forum about how it is so much more convenient to use a 2U rack server with all VMs and the storage I need inside of it, instead of just sharing folders between host and guest.
So, how about you stop jumping to more conclusions than you already have?
There is this thing called external USB 3.0 hard drives. That's what sane people with a laptop keep their data in, and where everyone that cares about his data keeps a secondary backup in even if he has a NAS or server.
You can usually passthrough USB drives to the VM directly too, it's very convenient.
Sorry no it is more expensive than sharing a local folder if all you need is sharing between VM and host.
Your setup exists for more than just passing files from VM to host I hope. That's the difference.Last edited by schmidtbag; 30 September 2019, 10:55 AM.
Comment
Comment