[Nix-dev] using qemu virtual machine for testing software

Tomasz Czyż tomasz.czyz at gmail.com
Thu Aug 11 12:43:36 CEST 2016


Doman, thank you very much, it's very useful.

Do you plan to add this patch to repo? (and create separate tap for every
vm in test network? (same as ip addresses are generated in test networks)?

2016-08-11 10:54 GMT+01:00 Domen Kožar <domen at dev.si>:

> See https://github.com/NixOS/nixpkgs/issues/5241#issuecomment-172811419
>
> On Thu, Aug 11, 2016 at 9:01 AM, Alexey Lebedeff <binarin at gmail.com>
> wrote:
>
>> Hi,
>>
>> I'm not sure that it is the same problem, but have you tried setting
>>
>> networking.firewall.checkReversePath = false;
>>
>> as described in https://github.com/NixOS/nixpkgs/issues/10101 ?
>>
>> Best,
>> Alexey
>>
>>
>> On Thu, Aug 11, 2016 at 1:14 AM, Tomasz Czyż <tomasz.czyz at gmail.com>
>> wrote:
>>
>>> Hi Tomas,
>>>
>>> yeah, I've been there :-)
>>> I have a problem with TCP connection not with starting the machine.
>>>
>>> Basically, if you use VirtualBox it giving you kind of local networking
>>> for free, same as docker default setup. I was wondering if it's possible to
>>> have the same with qemu without setting up the bridge, ips etc by my own,
>>> but after some digging I don't think it's possible.
>>>
>>> I end up with port forwarding from qemu to localhost by adding params to
>>> qemu in nix machine expression.
>>>
>>> 2016-08-10 10:33 GMT+01:00 Tomas Hlavaty <tomas.hlavaty at knowledgetools.
>>> de>:
>>>
>>>> Hi Tomasz,
>>>>
>>>> Tomasz Czyż <tomasz.czyz at gmail.com> writes:
>>>> > I made this working/building the vm, but I still don't know how to
>>>> > connect to it. Any idea?
>>>>
>>>> when you build the VM, it will create a symlink called something like
>>>> result.  Inside there is a program to launch the VM inside qemu.  You
>>>> can simply run that command and it will open a window with the qemu VM.
>>>>
>>>> Tomas
>>>> _______________________________________________
>>>> nix-dev mailing list
>>>> nix-dev at lists.science.uu.nl
>>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>>>
>>>
>>>
>>>
>>> --
>>> Tomasz Czyż
>>>
>>> _______________________________________________
>>> nix-dev mailing list
>>> nix-dev at lists.science.uu.nl
>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>>
>>>
>>
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>>
>


-- 
Tomasz Czyż
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160811/e2e9ec6b/attachment.html>


More information about the nix-dev mailing list