When using UTM on a Mac with a Ubuntu guest in it, I need to obtain the host IP address (of my Mac) from the guest to mount its file system by sshfs (or any other mount). It runs UTM based on QEMU. I searched the internet on it, but only found the other way around: the guest IP address which is easy.
Asked
Active
Viewed 2,305 times
1 Answers
0
I can think of a couple of options here::
- Write the IP address of the host into a file & mount the file onto guest OS
- Install hypervisor-specific RPMs on guest VM like
vmtoolsdfor VMware,hypervkvpdfor HyperV, etc., With these packages, you could fetch a few required attributes from a host like a hostname, IP address, etc.,
harshavmb
- 121