WIP: qemu: randomly choose vsock port on the host side#313
WIP: qemu: randomly choose vsock port on the host side#313vikanezrimaya wants to merge 2 commits intomicrovm-nix:mainfrom
Conversation
Prevents conflicts between MicroVMs. Somehow doesn't work first try; VM might timeout a few times before it starts working. The problem is most likely between socat and systemd. More debug logging is needed. (Adding it here would be trivial, actually.)
|
How about creating the port number from bash |
|
|
Alternatively, |
|
Are you going to work on this on the next few days, or may I roll back the qemu change? |
|
Are you going to work on this on the next few days, or may I roll back the qemu change?
I originally planned to work on this this week, but more important
concerns arose at work. I will be able to pick this up this Monday.
…--
Sincerely,
Vika <3
|
600000 is arbitrarily picked to avoid conflicts with the "standard" networking range of 65535 ports, since vsock supports 32-bit port numbers.
b543d0f to
d364fdc
Compare
|
This reverts commit 3910e65. See #313 (comment)
Prevents conflicts between MicroVMs.
Somehow doesn't work first try; VM might timeout a few times before it starts working. The problem is most likely between socat and systemd. More debug logging is needed. (Adding it here would be trivial, actually.)