Hi, all nix-dev. I've tried to install nixos to kvm virtual machine. But GRUB install failed at last stage of 'nixos-install'.
I've found some related link from google but didn't help. https://lists.gnu.org/archive/html/help-grub/2012-04/msg00075.html Host OS is Ubuntu 13.10. This is output from nixos-install and vm's disk, partition info. copying Nix to /mnt.... /nix/store/0iwl0xa0dfrva8ajklq74vp9hqg8hglg-acl-2.2.51 /nix/store/0v975khf82ccx77snrihv4dgf3p7wxjr-libssh2-1.4.3 /nix/store/3caq7hxp0ryf3gwbcv96p8k3zw74kxls-curl-7.30.0 /nix/store/6q8zkjhxjpvk6c01vvqdfwkgkb927yhd-xz-5.0.4 /nix/store/7mjplwq1r0agngqj2058hl5z8kb3w15g-bash-4.2-p42 /nix/store/c2rylmj37gfwykh9h3b6271l96x7hknd-openssl-1.0.1e /nix/store/db7c4cg09100f927jw73qrg5nnvqpvc9-gnutar-1.26 /nix/store/dz9pvnjmvnhikfwyf624zzkj3cv7mbqi-coreutils-8.21 /nix/store/f7nv7y02gixaxfaxippg5j99yd0ql6p7-zlib-1.2.7 /nix/store/hdx627p1fwswhl1pir1ca3gxxc6dvnq2-perl-DBI-1.625 /nix/store/j1zg5vji2cclnlzpsm5ibsgpa5q90k2w-sqlite-3.8.0.2 /nix/store/kz8y6ls4z2anxsa3199r1kvlamjg4fb6-attr-2.4.46 /nix/store/mcj4y7986mkb88hf8shwb7dr951n90i1-linux-headers-3.7.1 /nix/store/ngp2r03f2yf40dv9q9ah04qaywwfibr6-boehm-gc-7.2d /nix/store/nrs8nsfnmkmm36yww13gl37ly8mfh3k0-bzip2-1.0.6 /nix/store/nsgcc20whcfvgl88z9s60bbfvyn6nyak-perl-WWW-Curl-4.15 /nix/store/psyc426j0w4plpphgsrir7k96iaccdyw-perl-5.16.3 /nix/store/r63r4c4fhqb95lcdnsd5b8r2f9a3kjbj-nix-1.6.1 /nix/store/r7jz82h8d9fpqvyphcxr1hrqfnsp7q8v-gcc-4.6.3 /nix/store/rvp490c434c3hkchryqwbf68c5lhj8f6-gzip-1.5 /nix/store/xpv2mhi187yc02icqkiqx404ca418kfm-zlib-1.2.7 /nix/store/zm4bhsm8lprkzvrjgqr0klfkvr21als4-glibc-2.17 /nix/store/zz28kc9fi6qbl4pmvldwv258r3vpqrys-perl-DBD-SQLite-1.37 building the system configuration... copying NixOS/Nixpkgs sources... finalising the installation... updating GRUB 2 menu... installing the GRUB 2 boot loader on /dev/vda... /nix/store/8jpsjbs6qffy7rfbcq3vz1g2z3i99cya-grub-2.00/sbin/grub-bios-setup: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet.. /nix/store/8jpsjbs6qffy7rfbcq3vz1g2z3i99cya-grub-2.00/sbin/grub-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. /nix/store/8jpsjbs6qffy7rfbcq3vz1g2z3i99cya-grub-2.00/sbin/grub-bios-setup: error: will not proceed with blocklists. /nix/store/g0hwyp1ip5q399hppgb8mzpxfy6fhq7f-install-grub.pl: installation of GRUB on /dev/vda failed $ fdisk -l /dev/vda Disk /dev/vda: 8589 MB, 8589934592 bytes, 16777216 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1d7cea50 Device Boot Start End Blocks Id System /dev/vda1 2048 2099199 1048576 83 Linux /dev/vda2 2099200 16777215 7339008 83 Linux $ gdisk -l GPT fdisk (gdisk) version 0.8.6 Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: not present *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format. *************************************************************** Entering GPTPart::SetName(const UnicodeString...) Entering GPTPart::SetName(const UnicodeString...) Warning! Secondary partition table overlaps the last partition by 33 blocks! You will need to delete this partition or resize it in another utility. Disk /dev/vda: 16777216 sectors, 8.0 GiB Logical sector size: 512 bytes Disk identifier (GUID): 2C8AED90-1BD4-4848-8453-5DA373F61F8F Partition table holds up to 128 entries First usable sector is 34, last usable sector is 16777182 Partitions will be aligned on 2048-sector boundaries Total free space is 2014 sectors (1007.0 KiB) Number Start (sector) End (sector) Size Code Name 1 2048 2099199 1024.0 MiB 8300 Linux filesystem 2 2099200 16777215 7.0 GiB 8300 Linux filesystem $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 281.3M 0 rom vda 253:0 0 8G 0 disk ├─vda1 253:1 0 1G 0 part [SWAP] └─vda2 253:2 0 7G 0 part /mnt loop0 7:0 0 269.5M 1 loop _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
