AlexSSD7 / linsk

📂 Access Linux-native file systems (including LVM and LUKS) on Windows and macOS with help of a lightweight Alpine Linux VM. x86/ARM supported.
GNU General Public License v3.0
303 stars 13 forks source link

Possible to run multiple instances? #14

Closed charlesvestal closed 1 month ago

charlesvestal commented 8 months ago

Not sure if this is a bug and it should be autoincrementing the port, but I'd like to mount two different partitions to copy files between them. On a second instance, I get

time=2024-03-03T09:44:03.010+01:00 level=WARN msg="Using raw block device passthrough. Please note that it's YOUR responsibility to ensure that no device is mounted in your OS and the VM at the same time. Otherwise, you run serious risks. No further warnings will be issued." caller=vm
time=2024-03-03T09:44:03.016+01:00 level=INFO msg="Booting the VM" caller=vm
time=2024-03-03T09:44:03.034+01:00 level=WARN msg="Canceling the VM context" caller=vm
time=2024-03-03T09:44:03.034+01:00 level=ERROR msg="Failed to start the VM" error="cancel on exit: interrupt cmd: no such process (qemu stderr log: '[244 chars trimmed]wd=tcp:127.0.0.1:9004-:9004,hostfwd=tcp:127.0.0.1:9005-:9005,hostfwd=tcp:127.0.0.1:9006-:9006,hostfwd=tcp:127.0.0.1:9007-:9007,hostfwd=tcp:127.0.0.1:9008-:9008,hostfwd=tcp:127.0.0.1:9009-:9009: Could not set up host forwarding rule 'tcp:127.0.0.1:9000-:21'')"

Is there a configuration for the afp (or smb, ftp) port mapping to allow multiple mounts at once?

AlexSSD7 commented 6 months ago

You are right, the port should be automatically incremented. What OS is this?

(Apologies for the delayed response.)

charlesvestal commented 6 months ago

No worried! This was on macOS Sonoma.

AlexSSD7 commented 5 months ago

Fixed in https://github.com/AlexSSD7/linsk/commit/750028af5ba6cb96371d838f9464a0a0c811f1cf, in the master branch.

I would appreciate it if you could pull the latest master and test it. If it works, please close the issue. (My apologies for the delayed action once again.)

kuriot commented 4 months ago

Hello. I just got the same problem on the latest version in Releases and the version from master branch works perfectly fine with multiple instances. Thanks!

AlexSSD7 commented 1 month ago

@kuriot Thanks for confirming!