Re: Access host from QEMU guest

2020-05-17 Thread Efraim Flashner
On Sun, May 17, 2020 at 12:57:42PM +0300, Lev Olshvang wrote:
>I read once that  QEMU linux guest has reserved IP of the host.
> 
>I did not bookmarked it, can anyone help?
> 
>Thanks
> 
>Just share reference
>
> https://www.cnx-software.com/2011/10/02/how-to-transfer-files-between-host-and-qemu-via-ssh-and-nfs/
> 

I normally make sure to forward at least one port to the guest. I happen
to have the following code snippet. It says hurd but it should still
hold true.

("/hurd/pfinet" "--interface" "eth0"
"--address" "10.0.2.15" ;the default QEMU guest IP
"--netmask" "255.255.255.0"
"--gateway" "10.0.2.2"
"--ipv6" "/servers/socket/16")

-- 
Efraim Flashner  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


signature.asc
Description: PGP signature
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Access host from QEMU guest

2020-05-17 Thread shimi
On Sun, May 17, 2020 at 12:58 PM Lev Olshvang  wrote:

> I read once that  QEMU linux guest has reserved IP of the host.
>
> I did not bookmarked it, can anyone help?
>
>

Do you mean that the IP allocation to the MAC is reserved the next time you
start the VM?

I don't have a reference, but on my system this is libvirt running
dnsmasq... my allocations are at /var/lib/libvirt/dnsmasq/ ...

HTH,

-- Shimi
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Access host from QEMU guest

2020-05-17 Thread Lev Olshvang
I read once that  QEMU linux guest has reserved IP of the host. I did not bookmarked it, can anyone help? Thanks Just share referencehttps://www.cnx-software.com/2011/10/02/how-to-transfer-files-between-host-and-qemu-via-ssh-and-nfs/ 

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il