Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCI virtual hard drive not working #288

Open
aportelli opened this issue Aug 18, 2017 · 1 comment
Open

PCI virtual hard drive not working #288

aportelli opened this issue Aug 18, 2017 · 1 comment
Labels

Comments

@aportelli
Copy link

Hi,

I have setup a CentOS 7 VM under FreeNAS 11 U2 with the last version of iohyve (v0.7.9). My VM has the folowing properties:

# iohyve getall builder
Getting builder iohyve properties...

bargs          -A_-H_-P
boot           1
con            nmdm1
cpu            4
description    Wed Jul  5 17:41:54 UTC 2017
fw             BHYVE_UEFI.fd
install        no
loader         uefi
mac_tap1       00:a0:98:a5:f3:87
name           builder
os             custom
pcidev:1       ahci-hd,/dev/zvol/tank/vdisks/builder-intel
pcidev:2       ahci-hd,/dev/zvol/tank/vdisks/builder-home
persist        1
ram            8G
sectorsize     512
size           20G
tap            tap1
template       NO
vnc            YES
vnc_h          1024
vnc_ip         0.0.0.0
vnc_port       5900
vnc_tablet     YES
vnc_w          1280
vnc_wait       NO

I installed the OS without problem using a VNC session and it was working for a while but now after a reboot of the machine I can't get the two ZVOL to be mounted in the VM again. Just to be clear:

  • The 2 ZVOLs do exist and are accessible.
  • From the VM I got that the two pcidev do no exist (I just have /dev/sda which is the VM main drive) so I don't believe it is a system configuration issue.

Any help is very welcome, thanks!

@aportelli
Copy link
Author

I just solved it by reading iohyve's source, the solution might be useful here. For some reason a UEFI VM is not going to boot if the sector size is not passed explicitly to bhyve. I changed the properties to:

# iohyve getall builder
Getting builder iohyve properties...

bargs          -A_-H_-P
boot           1
con            nmdm1
cpu            4
description    Wed Jul  5 17:41:54 UTC 2017
fw             BHYVE_UEFI.fd
install        no
loader         uefi
mac_tap1       00:a0:98:a5:f3:87
name           builder
os             custom
pcidev:1       ahci-hd,/dev/zvol/tank/vdisks/builder-intel,sectorsize=512
pcidev:2       ahci-hd,/dev/zvol/tank/vdisks/builder-home,sectorsize=512
persist        1
ram            8G
sectorsize     512
size           20G
tap            tap1
template       NO
vnc            YES
vnc_h          1024
vnc_ip         0.0.0.0
vnc_port       5900
vnc_tablet     YES
vnc_w          1280
vnc_wait       NO

and everything is fine now.

@pr1ntf pr1ntf added the bug label Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants