in nixpkgs/build-support/vm, I do:

# nix-build test.nix -A testRPMImage

and I get:

store derivation is /nix/store/z7vcqg79ws5ngl4vsr6s5r0mlpnk79jg-image-test.drv
the following derivations will be built:
/nix/store/alr303c4ryjgwqjdhpghssc8f90s121c-fedora-8-i386.drv
/nix/store/z7vcqg79ws5ngl4vsr6s5r0mlpnk79jg-image-test.drv
building path(s) /nix/store/ppiay4r2hyzrsv70ivjramvz4ngmrgxf-fedora-8-i386 Formatting /nix/store/ppiay4r2hyzrsv70ivjramvz4ngmrgxf-fedora-8-i386/image, fmt=qcow, size=2097152 kB qemu: loading initrd (0x96a6b bytes) at 0x000000000ff59000 Linux version 2.6.26.7-default (nixbld2@) (gcc version 4.2.4) #1 SMP Tue Oct 28 16:53:45 UTC 2008 Command line: console=ttyS0 panic=1 command=/nix/store/x7507s51j0q93g7dl9apj9f7r684yiwq-vm-run-stage2 tmpDir=/tmp/nix-build-alr303c4ryjgwqjdhpghssc8f90s121c-fedora-8-i386.drv-0 out=/nix/store/ppiay4r2hyzrsv70ivjramvz4ngmrgxf-fedora-8-i386 mountDisk= BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000000fff0000 (usable) BIOS-e820: 000000000fff0000 - 0000000010000000 (ACPI data) BIOS-e820: 00000000fffbd000 - 0000000100000000 (reserved) PAT disabled. Not yet verified on this CPU type. max_pfn_mapped = 1048576 init_memory_mapping DMI 2.4 present. kvm-clock: cpu 0, msr 0:694c81, boot clock ACPI: RSDP 000FB660, 0014 (r0 QEMU ) ACPI: RSDT 0FFF0000, 002C (r1 QEMU QEMURSDT 1 QEMU 1) ACPI: FACP 0FFF002C, 0074 (r1 QEMU QEMUFACP 1 QEMU 1) ACPI: DSDT 0FFF0100, 24A4 (r1 BXPC BXDSDT 1 INTL 20061109) ACPI: FACS 0FFF00C0, 0040 ACPI: APIC 0FFF25A8, 00E0 (r1 QEMU QEMUAPIC 1 QEMU 1) early res: 0 [0-fff] BIOS data page early res: 1 [6000-7fff] TRAMPOLINE early res: 2 [200000-728027] TEXT DATA BSS early res: 3 [ff59000-ffefa6a] RAMDISK early res: 4 [9fc00-fffff] BIOS reserved early res: 5 [8000-afff] PGTABLE Zone PFN ranges: DMA 0 -> 4096 DMA32 4096 -> 1048576 Normal 1048576 -> 1048576 Movable zone start PFN for each node early_node_map[2] active PFN ranges 0: 0 -> 159 0: 256 -> 65520 ACPI: PM-Timer IO Port: 0xb008 ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] disabled) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] disabled) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] disabled) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x04] disabled) ACPI: LAPIC (acpi_id[0x05] lapic_id[0x05] disabled) ACPI: LAPIC (acpi_id[0x06] lapic_id[0x06] disabled) ACPI: LAPIC (acpi_id[0x07] lapic_id[0x07] disabled) ACPI: LAPIC (acpi_id[0x08] lapic_id[0x08] disabled) ACPI: LAPIC (acpi_id[0x09] lapic_id[0x09] disabled) ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x0a] disabled) ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x0b] disabled) ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x0c] disabled) ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x0d] disabled) ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x0e] disabled) ACPI: LAPIC (acpi_id[0x0f] lapic_id[0x0f] disabled) ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 1, version 0, address 0xfec00000, GSI 0-23 ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level) ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level) Setting APIC routing to flat Using ACPI (MADT) for SMP configuration information PM: Registered nosave memory: 000000000009f000 - 00000000000a0000 PM: Registered nosave memory: 00000000000a0000 - 00000000000e8000 PM: Registered nosave memory: 00000000000e8000 - 0000000000100000 Allocating PCI resources starting at 20000000 (gap: 10000000:effbd000) SMP: Allowing 8 CPUs, 7 hotplug CPUs PERCPU: Allocating 34224 bytes of per cpu data kvm-clock: cpu 0, msr 0:100bc81, primary cpu clock Built 1 zonelists in Zone order, mobility grouping on. Total pages: 63103 Kernel command line: console=ttyS0 panic=1 command=/nix/store/x7507s51j0q93g7dl9apj9f7r684yiwq-vm-run-stage2 tmpDir=/tmp/nix-build-alr303c4ryjgwqjdhpghssc8f90s121c-fedora-8-i386.drv-0 out=/nix/store/ppiay4r2hyzrsv70ivjramvz4ngmrgxf-fedora-8-i386 mountDisk= Initializing CPU#0 PID hash table entries: 1024 (order: 10, 8192 bytes) TSC calibration disturbed by SMI, using PIT calibration result time.c: Detected 1795.502 MHz processor. Console: colour VGA+ 80x25 console [ttyS0] enabled Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) Inode-cache hash table entries: 16384 (order: 5, 131072 bytes) Checking aperture... Memory: 250596k/262080k available (3020k kernel code, 10756k reserved, 1210k data, 320k init) Calibrating delay using timer specific routine.. 3643.94 BogoMIPS (lpj=7287898) Security Framework initialized SELinux: Disabled at boot. Capability LSM initialized Mount-cache hash table entries: 256 PAT disabled. Not yet verified on this CPU type. CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 2048K SMP alternatives: switching to UP code ACPI: Core revision 20080321 CPU0: QEMU Virtual CPU version 0.9.1 stepping 03 Using local APIC timer interrupts. Detected 62.502 MHz APIC timer. Brought up 1 CPUs Total of 1 processors activated (3643.94 BogoMIPS). net_namespace: 1176 bytes Booting paravirtualized kernel on KVM NET: Registered protocol family 16 ACPI: bus type pci registered PCI: Using configuration type 1 for base access ACPI: Interpreter enabled ACPI: (supports S0 S5) ACPI: Using IOAPIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11) ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11) ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11) ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11) Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init ACPI: bus type pnp registered pnp: PnP ACPI: found 7 devices ACPI: ACPI bus type pnp unregistered PCI: Using ACPI for IRQ routing PCI-GART: No AMD northbridge found. NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 2, 16384 bytes) TCP established hash table entries: 8192 (order: 5, 131072 bytes) TCP bind hash table entries: 8192 (order: 5, 131072 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered NET: Registered protocol family 1 checking if image is initramfs... it is Freeing initrd memory: 602k freed audit: initializing netlink socket (disabled) type=2000 audit(1229734941.606:1): initialized Total HugeTLB memory allocated, 0 VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 512 (order 0, 4096 bytes) msgmni has been set to 491 io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) pci 0000:00:00.0: Limiting direct PCI/PCI transfers pci 0000:00:01.0: PIIX3: Enabling Passive Release pci 0000:00:01.0: Activating ISA DMA hang workarounds Linux agpgart interface v0.103 Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A FDC 0 is a S82078B brd: module loaded loop: module loaded input: Macintosh mouse button emulation as /devices/virtual/input/input0 PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12 serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX port at 0x60,0x64 irq 12 mice: PS/2 mouse device common for all mice input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1 input: PC Speaker as /devices/platform/pcspkr/input/input2 input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3 cpuidle: using governor ladder cpuidle: using governor menu RPC: Registered udp transport module. RPC: Registered tcp transport module. registered taskstats version 1 Freeing unused kernel memory: 320k freed START loading module /nix/store/kzqgjidc2wr4g5q926dszp0qs967wdzr-linux-2.6.26.7-shrunk/lib/modules/2.6.26.7-default/kernel/fs/cifs/cifs.ko with args CIFSMaxBufSize=4194304 loading module /nix/store/kzqgjidc2wr4g5q926dszp0qs967wdzr-linux-2.6.26.7-shrunk/lib/modules/2.6.26.7-default/kernel/drivers/virtio/virtio.ko with args loading module /nix/store/kzqgjidc2wr4g5q926dszp0qs967wdzr-linux-2.6.26.7-shrunk/lib/modules/2.6.26.7-default/kernel/drivers/net/virtio_net.ko with args loading module /nix/store/kzqgjidc2wr4g5q926dszp0qs967wdzr-linux-2.6.26.7-shrunk/lib/modules/2.6.26.7-default/kernel/drivers/virtio/virtio_ring.ko with args loading module /nix/store/kzqgjidc2wr4g5q926dszp0qs967wdzr-linux-2.6.26.7-shrunk/lib/modules/2.6.26.7-default/kernel/drivers/virtio/virtio_pci.ko with args ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11 ACPI: PCI Interrupt 0000:00:04.0[A] -> Link [LNKD] -> GSI 11 (level, high) -> IRQ 11 ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10 ACPI: PCI Interrupt 0000:00:05.0[A] -> Link [LNKA] -> GSI 10 (level, high) -> IRQ 10 loading module /nix/store/kzqgjidc2wr4g5q926dszp0qs967wdzr-linux-2.6.26.7-shrunk/lib/modules/2.6.26.7-default/kernel/drivers/block/virtio_blk.ko with args vda: loading module /nix/store/kzqgjidc2wr4g5q926dszp0qs967wdzr-linux-2.6.26.7-shrunk/lib/modules/2.6.26.7-default/kernel/drivers/virtio/virtio_balloon.ko with args loading module /nix/store/kzqgjidc2wr4g5q926dszp0qs967wdzr-linux-2.6.26.7-shrunk/lib/modules/2.6.26.7-default/kernel/fs/nls/nls_utf8.ko with args loading module /nix/store/kzqgjidc2wr4g5q926dszp0qs967wdzr-linux-2.6.26.7-shrunk/lib/modules/2.6.26.7-default/kernel/drivers/net/mii.ko with args loading module /nix/store/kzqgjidc2wr4g5q926dszp0qs967wdzr-linux-2.6.26.7-shrunk/lib/modules/2.6.26.7-default/kernel/drivers/net/pcnet32.ko with args pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 ACPI: PCI Interrupt 0000:00:03.0[A] -> Link [LNKC] -> GSI 11 (level, high) -> IRQ 11 pcnet32: PCnet/PCI II 79C970A at 0xc020, 52:54:00:12:34:56 assigned IRQ 11. eth0: registered as PCnet/PCI II 79C970A pcnet32: 1 cards_found. IP-Config: eth0 hardware address 52:54:00:12:34:56 mtu 1500 eth0: link up IP-Config: eth0 guessed netmask 255.0.0.0 IP-Config: eth0 guessed broadcast address 10.255.255.255 IP-Config: eth0 guessed nameserver address 0.0.0.0 IP-Config: eth0 complete (from 0.0.0.0): address: 10.0.2.15 broadcast: 10.255.255.255 netmask: 255.0.0.0 gateway: 0.0.0.0 dns0 : 0.0.0.0 dns1 : 0.0.0.0 rootserver: 0.0.0.0 rootpath: filename : Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE CIFS VFS: Send error in SessSetup = -13 CIFS VFS: cifs_mount failed w/return code = -13 mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) Kernel panic - not syncing: Attempted to kill init! Rebooting in 1 seconds..Virtual machine didnt produce an exit code. builder for/nix/store/alr303c4ryjgwqjdhpghssc8f90s121c-fedora-8-i386.drv failed with exit code 1
cannot build derivation /nix/store/z7vcqg79ws5ngl4vsr6s5r0mlpnk79jg-image-test.drv: 1 inputs could not be realised error: build of/nix/store/z7vcqg79ws5ngl4vsr6s5r0mlpnk79jg-image-test.drv failed

Submitted on 20 December 2008 at 02:03

Log in to post comments