[Nix-dev] using qemu virtual machine for testing software
Tomasz Czyż
tomasz.czyz at gmail.com
Thu Aug 11 12:48:44 CEST 2016
Sure, if I make anything useful I'll go back.
2016-08-11 11:46 GMT+01:00 Domen Kožar <domen at dev.si>:
> I don't have a plan to contribute upstream, because I never had enough
> time to make it robust.
>
> As you mentioned, there would need to be logic to use different tap
> interface
> for each VM set. I think it would be easier to add tap0 only if
> exposeNetwork was set to true somewhere
> and it would default to false.
>
> Feel free to contribute that :)
>
> On Thu, Aug 11, 2016 at 12:43 PM, Tomasz Czyż <tomasz.czyz at gmail.com>
> wrote:
>
>> 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ż
>>
>
>
--
Tomasz Czyż
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160811/d75a0c03/attachment-0001.html>
More information about the nix-dev
mailing list