Antergos / Cnchi

A modern, flexible online system installer for Antergos Linux
GNU General Public License v3.0
291 stars 101 forks source link

ZFS option install install does not work in Vmware Fusion #691

Open fourstone opened 7 years ago

fourstone commented 7 years ago

Problem:

I tried installation of ZFS autoconfiguration option in Vmware Fusion.

Steps To Reproduce:

  1. Get Vmware Fusion installed
  2. Use Antergos Install DVD
  3. choose ZFS Installation ( I tried all options available, all fail at the same point)

Log Files

CNCHI fail when trying to reimport the ZPOOL to /install. According to the error message it tries to import with both a filled ID AND the /dev/device/by-id method at the same time. This fails because harddrives are not creating a /dev/disk/by-id/ entry under vmware. (did not find out why)

However this does not really pose an issue. I verified that the ZPOOL and ZFS was setup correctly and import using the ID actually works. Only thing is that the routine at this point stumbles over the missing /dev/disk/by-id entry which is not found in the system.

Additional Notes:

If you need actual logs, I can always retry this using Vmware and send the logs. Currently I could not find any logs giving relevant information since I never really cared about OS-installers.

kind regards, martin

jjsaunier commented 7 years ago

ZFS install doesn't work in 99% of case ... cf https://github.com/Antergos/Cnchi/issues/680

If you have the chance to have the same kernel as the live ISO, may be it work

karasu commented 7 years ago

@fourstone Thanks for the info! To be honest, vmware is not among our targets (we do our tests in virtualbox, as it is simpler to setup). Anyway, if you have the time (no rush) that log would be useful.

@ProPheT777 Yes, you're right. Well, to be clear, it will work if you happen to install the same kernel version that you booted with (in the livecd). This is a pacman hooks problem, as they do not work as they should when run in a chrooted environment.

We hope to fix #680 by calling the pacman hooks by ourselves in cnchi, but this still is work in progress.

jjsaunier commented 7 years ago

I hope too :+1: and I know you are doing your best to resolve this issue ! So thank you :)

fourstone commented 7 years ago

Ok, trying to give more details as this seems to be interesting to other people than only me ;D

image

looking at the commandline:

-bash-4.4# lsblk -f
NAME   FSTYPE      LABEL         UUID                                 MOUNTPOINT
sdf
sdd
sdb
|-sdb2 crypto_LUKS               8ac92865-6b3f-4bdc-b0dc-b8bf7a5f8fcf
|-sdb3
`-sdb1 vfat                      5021-0042
sr0    iso9660     ANTERGOS      2017-01-04-04-06-41-00               /run/archiso/bootmnt
sde
loop0  squashfs                                                       /run/archiso/sfs/root-image
sdc
sda
|-sda2 ext4        ANTERGOS_BOOT bc9f105e-fccb-4f7a-b92b-dcacb9eba3ab
|-sda3
`-sda1
-bash-4.4# zpool status
no pools available
-bash-4.4# zpool import
   pool: antergos_znqv
     id: 7201179957234853595
  state: ONLINE
 action: The pool can be imported using its name or numeric identifier.
 config:

    antergos_znqv  ONLINE
      sda3      ONLINE

beware, I added .txt to the filename so it would upload here...

cnchi.log.txt

tomsoutherland commented 7 years ago

I have this working using Fusion 8.5.8 and using iso, antergos-17.9-x86_64.iso. I did run into issues when I let the installer name the zpool. When I used 'rpool' as the pool name, the install completed. I'm using GPT partitions and the only other issue I've run into is the zpool failing to import the first time following the install (I suspect this is due to the hostid changing). This can be fixed with 'zpool import -f rpool' followed by a system reset. Beware, lsblk may not show the correct labels. I intend to bug this later.