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


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


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


__STDC_VERSION__ is not know in Linux kernel module, why ?

2020-05-17 Thread Lev Olshvang
I am trying to include  ELF object file into kernel module It gives me a warning of undefined __STDC_VERSION__  symbol"__STDC_VERSION__" is not defined, evaluates to 0  But continues and resulted module works, I see from https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html that _STDC_VERSION__ is built in gcc macro Please commentLevP.S.BTW, I am looking  for a job, try me !  

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


Re: __STDC_VERSION__ is not know in Linux kernel module, why ?

2020-05-17 Thread Shlomi Fish
Hi Lev!

On Sun, May 17, 2020 at 3:33 PM Lev Olshvang  wrote:

> I am trying to include  ELF object file into kernel module
>
> It gives me a warning of undefined __STDC_VERSION__  symbol
> "__STDC_VERSION__" is not defined, evaluates to 0
>
> But continues and resulted module works,
>
> I see from
> https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html that
> _STDC_VERSION__ is built in gcc macro
>
> Please comment
>

Can you provide more details about this issue?

See:

* https://github.com/shlomif/writing-the-perfect-question

* https://github.com/shlomif/how-to-share-code-online

* http://www.sscce.org/

Did you compile that ELF object yourself? If so - can you provide sources?
Did you use the kernel build system:
https://www.kernel.org/doc/html/latest/kbuild/index.html ?

Note that kernel dev is not my forte .

Lev
> P.S.
> BTW, I am looking  for a job, try me !
>
>
>
>
>
>
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>


-- 
Shlomi Fish https://www.shlomifish.org/

Buddha has the Chuck Norris nature.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il