Re: [Nix-dev] libvirt/nixops (Joachim Schiele)

2016-09-05 Thread Thomas Bereknyei
I got this working a few weeks ago and had the same issue. Did you modify
your network using `virsh net-edit default'? I think you need to. Mine is:

  default
  some--uuid
  
  
  
  

  

  


>
> Message: 1
> Date: Mon, 5 Sep 2016 10:51:06 +0200
> From: Joachim Schiele 
> To: nix-dev@lists.science.uu.nl
> Cc: nix-dev 
> Subject: Re: [Nix-dev] libvirt/nixops
> Message-ID: 
> Content-Type: text/plain; charset=UTF-8
>
> https://github.com/NixOS/nixops/issues/500
>
> On 05.09.2016 10:24, Domen Ko?ar wrote:
> > That hints the qemu didn't come up, can you paste the contents of files
> > in /var/log/libvirt/qemu/ somewhere?
> >
> > Maybe best to open an issue on nixops github and let's continue there!
> >
> > On Sun, Sep 4, 2016 at 11:22 PM, Joachim Schiele  > <mailto:j...@lastlog.de>> wrote:
> >
> > it is empty, see
> >
> > virsh -c qemu:///system net-dhcp-leases --network default
> >  Expiry Time  MAC addressProtocol  IP
> > addressHostnameClient ID or DUID
> >
>  
> ---
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] libvirt/nixops

2016-09-05 Thread Joachim Schiele
https://github.com/NixOS/nixops/issues/500

On 05.09.2016 10:24, Domen Kožar wrote:
> That hints the qemu didn't come up, can you paste the contents of files
> in /var/log/libvirt/qemu/ somewhere?
> 
> Maybe best to open an issue on nixops github and let's continue there!
> 
> On Sun, Sep 4, 2016 at 11:22 PM, Joachim Schiele  > wrote:
> 
> it is empty, see
> 
> virsh -c qemu:///system net-dhcp-leases --network default
>  Expiry Time  MAC addressProtocol  IP
> addressHostnameClient ID or DUID
> 
> ---
> 
> 
> On 04.09.2016 22:51, Domen Kožar wrote:
>> What's the output of:
>>
>> $ virsh -c qemu:///system net-dhcp-leases --network default
>>
>> On Sun, Sep 4, 2016 at 10:13 PM, Vladimír Čunát > > wrote:
>>
>> On 09/04/2016 10:07 PM, Joachim Schiele wrote:
>> > i'm using nixos 16.03.1271.546618c (Emu) with nixops 1.4 and
>> i wanted to
>> > deploy to libvirtd.
>>
>> Do you know about
>> https://github.com/NixOS/nixops/issues/499
>> 
>>
>> --Vladimir
>>
>>
>>
>> ___
>> nix-dev mailing list
>> nix-dev@lists.science.uu.nl 
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>> 
>>
>>
> 
> -- 
> Joachim Schiele
> 
> blog: http://lastlog.de/blog
> wiki: http://lastlog.de/wiki
> signal: 0160 7576 242
> GPG: 6D8F75EE (key here: https://lastlog.de/blog/about.html 
> )
> 
> 
> 
> 
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 


___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] libvirt/nixops

2016-09-05 Thread Joachim Schiele
it is empty, see

virsh -c qemu:///system net-dhcp-leases --network default
 Expiry Time  MAC addressProtocol  IP
addressHostnameClient ID or DUID
---


On 04.09.2016 22:51, Domen Kožar wrote:
> What's the output of:
>
> $ virsh -c qemu:///system net-dhcp-leases --network default
>
> On Sun, Sep 4, 2016 at 10:13 PM, Vladimír Čunát  > wrote:
>
> On 09/04/2016 10:07 PM, Joachim Schiele wrote:
> > i'm using nixos 16.03.1271.546618c (Emu) with nixops 1.4 and i
> wanted to
> > deploy to libvirtd.
>
> Do you know about
> https://github.com/NixOS/nixops/issues/499
> 
>
> --Vladimir
>
>
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl 
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 
>
>

-- 
Joachim Schiele

blog: http://lastlog.de/blog
wiki: http://lastlog.de/wiki
signal: 0160 7576 242
GPG: 6D8F75EE (key here: https://lastlog.de/blog/about.html)



signature.asc
Description: OpenPGP digital signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] libvirt/nixops

2016-09-05 Thread Domen Kožar
That hints the qemu didn't come up, can you paste the contents of files in
/var/log/libvirt/qemu/ somewhere?

Maybe best to open an issue on nixops github and let's continue there!

On Sun, Sep 4, 2016 at 11:22 PM, Joachim Schiele  wrote:

> it is empty, see
>
> virsh -c qemu:///system net-dhcp-leases --network default
>  Expiry Time  MAC addressProtocol  IP
> addressHostnameClient ID or DUID
> 
> ---
>
>
> On 04.09.2016 22:51, Domen Kožar wrote:
>
> What's the output of:
>
> $ virsh -c qemu:///system net-dhcp-leases --network default
>
> On Sun, Sep 4, 2016 at 10:13 PM, Vladimír Čunát  wrote:
>
>> On 09/04/2016 10:07 PM, Joachim Schiele wrote:
>> > i'm using nixos 16.03.1271.546618c (Emu) with nixops 1.4 and i wanted to
>> > deploy to libvirtd.
>>
>> Do you know about
>> https://github.com/NixOS/nixops/issues/499
>>
>> --Vladimir
>>
>>
>>
>> ___
>> nix-dev mailing list
>> nix-dev@lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>>
>
> --
> Joachim Schiele
>
> blog: http://lastlog.de/blog
> wiki: http://lastlog.de/wiki
> signal: 0160 7576 242
> GPG: 6D8F75EE (key here: https://lastlog.de/blog/about.html)
>
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] libvirt/nixops

2016-09-04 Thread Domen Kožar
What's the output of:

$ virsh -c qemu:///system net-dhcp-leases --network default

On Sun, Sep 4, 2016 at 10:13 PM, Vladimír Čunát  wrote:

> On 09/04/2016 10:07 PM, Joachim Schiele wrote:
> > i'm using nixos 16.03.1271.546618c (Emu) with nixops 1.4 and i wanted to
> > deploy to libvirtd.
>
> Do you know about
> https://github.com/NixOS/nixops/issues/499
>
> --Vladimir
>
>
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] libvirt/nixops

2016-09-04 Thread Vladimír Čunát
On 09/04/2016 10:07 PM, Joachim Schiele wrote:
> i'm using nixos 16.03.1271.546618c (Emu) with nixops 1.4 and i wanted to
> deploy to libvirtd.

Do you know about
https://github.com/NixOS/nixops/issues/499

--Vladimir




smime.p7s
Description: S/MIME Cryptographic Signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] libvirt/nixops

2016-09-04 Thread Joachim Schiele
dear developers,

i'm using nixos 16.03.1271.546618c (Emu) with nixops 1.4 and i wanted to
deploy to libvirtd. according to
https://nixos.org/nixops/manual/#idm140737319108016 this should be working.

my problem is, i can't manage to get a IPv4 via dhcpcd from a
kvm/libvirtd-client.

i see this:

nixops deploy ...
...
mailserver> waiting for IP address to appear in DHCP
leases.
.


this dottet line never finishes. i've also used virt-manager to deploy a
nixos based guest and using static ip-addresses i can access the
internet from the guest. using dhcpcd from that guest never terminates
successfully either. i see the requests using tcpdump -i virbr0 (on the
host).

this is my host configuration:

  ...
  virtualisation.libvirtd.enable = true;
  networking = {
firewall = {
  allowedTCPPorts = [ 22 80 443 ];
  allowPing = true;
  checkReversePath = false;
};
  };

i'm quite lost now, what could i try to fix this?

best wishes,
joachim

# host networking

ip a

3: virbr0:  mtu 1500 qdisc noqueue
state UP group default qlen 1000
link/ether 52:54:00:50:21:e8 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 scope global virbr0
   valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:fe50:21e8/64 scope link
   valid_lft forever preferred_lft forever
4: virbr0-nic:  mtu 1500 qdisc pfifo_fast master
virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:50:21:e8 brd ff:ff:ff:ff:ff:ff
21: vnet0:  mtu 1500 qdisc pfifo_fast
master virbr0 state UNKNOWN group default qlen 1000
link/ether fe:54:00:15:84:41 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc54:ff:fe15:8441/64 scope link
   valid_lft forever preferred_lft forever


# my deployment

[root@nixcloud0001:~/nixops]# nixops deploy -d mailserver
mailserver> these derivations will be built:
mailserver>
/nix/store/8c2mkqamyxccjsz7fpid15wifc5b7rm3-libvirtd-ssh-image.drv
mailserver> building path(s)
‘/nix/store/rzrx0yj7j6s78407r6jj8b18jgn8ap2n-libvirtd-ssh-image’
mailserver> Formatting
'/nix/store/rzrx0yj7j6s78407r6jj8b18jgn8ap2n-libvirtd-ssh-image/image',
fmt=qcow2 size=10737418240 backing_fi
le=/nix/store/r3kls90m6zg6zvgzvwm0mdz78f1lqn9b-libvirtd-image/disk.qcow2
encryption=off cluster_size=65536 lazy_refcounts=off refcou
nt_bits=16
mailserver> loading kernel modules...
mailserver> mounting Nix store...
mailserver> mounting host's temporary directory...
mailserver> starting stage 2
(/nix/store/849ih13ch5vylrzii4j7yx8xdkinf28l-vm-run-stage2)
mailserver> [1.407943] reboot: Power down
mailserver> Formatting
'/var/lib/libvirt/images/nixops-b489ee3d-727b-11e6-9f02-08606e445f1d-mailserver.img',
fmt=qcow2 size=10737418
240
backing_file=/nix/store/rzrx0yj7j6s78407r6jj8b18jgn8ap2n-libvirtd-ssh-image/disk.qcow2
encryption=off cluster_size=65536 lazy_re
fcounts=off refcount_bits=16
mailserver> starting...
mailserver> Domain
nixops-b489ee3d-727b-11e6-9f02-08606e445f1d-mailserver created from
/tmp/nixops-tmpnx7Gix/mailserver-domain.xml
mailserver>
mailserver> waiting for IP address to appear in DHCP
leases.


.^Cerror:
interrupted

# ps aux | grep dnsmasq

nobody1096  0.0  0.0  25220  2156 ?SAug16   0:00
/nix/store/nic8g0523qxlixk7lvwmfk5qzkj4dbyd-dnsmasq-2.76/bin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/nix/store/qnb5j957gba9sfa5lg8rshfb5yqnxd05-libvirt-1.3.5/libexec/libvirt_leaseshelper
root  1097  0.0  0.0  25088   232 ?SAug16   0:00
/nix/store/nic8g0523qxlixk7lvwmfk5qzkj4dbyd-dnsmasq-2.76/bin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/nix/store/qnb5j957gba9sfa5lg8rshfb5yqnxd05-libvirt-1.3.5/libexec/libvirt_leaseshelper
...
nobody   29079  0.0  0.0  25220  2232 ?SSep02   0:00
/nix/store/2bgcngjm8jny1n5wm0w4s8i8xyw7r615-dnsmasq-2.76/bin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/nix/store/nda7mns66zflv1mk1zavad3dmbx3amcd-libvirt-1.3.5/libexec/libvirt_leaseshelper
root 29080  0.0  0.0  25088   236 ?SSep02   0:00
/nix/store/2bgcngjm8jny1n5wm0w4s8i8xyw7r615-dnsmasq-2.76/bin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/nix/store/nda7mns66zflv1mk1zavad3dmbx3amcd-libvirt-1.3.5/libexec/libvirt_leaseshelper


___
nix-dev mailing list
nix-dev@lis