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

2016-08-11 Thread Tomasz Czyż
Sure, if I make anything useful I'll go back. 2016-08-11 11:46 GMT+01:00 Domen Kožar : > 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

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

2016-08-11 Thread Domen Kožar
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

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

2016-08-11 Thread Tomasz Czyż
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 : > See https://github.com/NixOS/nixpkgs/issues/5241#issuecomm

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

2016-08-11 Thread Domen Kožar
See https://github.com/NixOS/nixpkgs/issues/5241#issuecomment-172811419 On Thu, Aug 11, 2016 at 9:01 AM, Alexey Lebedeff 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/

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

2016-08-11 Thread Alexey Lebedeff
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ż wrote: > Hi Tomas, > > yeah, I've been there :-) >

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

2016-08-10 Thread Tomasz Czyż
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 th

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

2016-08-10 Thread Tomas Hlavaty
Hi Tomasz, Tomasz Czyż 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 a

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

2016-07-29 Thread Tomas Hlavaty
Hi Tomasz, > I can't connect to forwarded port and I don't know how to connect/ > interact with the machine. Is there anyone who know how I could > connect to this machine and would be willing to explain? vm tests are not intended to be interactive, I think. Instead, you can build the vm like:

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

2016-07-28 Thread Maarten Hoogendoorn
Am I correct to think that you are trying to connect to the postgresql instance in the VM from your host machine? The documentation of forwardPort states: "Forward a TCP port on the host to a TCP port on the guest. Useful during interactive testing." So it provides TCP forwarding in the direction

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

2016-07-28 Thread Tomasz Czyż
Hi, I'm trying to use same mechanism as nixos for testing with vm. I've created "run-vm.nix" and I can run vm with "nix-build run-vm.nix". I can't connect to forwarded port and I don't know how to connect/interact with the machine. Is there anyone who know how I could connect to this machine and