machyve / xhyve

xhyve, a lightweight OS X virtualization solution
Other
6.44k stars 354 forks source link

Could not open backing file: No such file or directory #143

Open cmoulliard opened 6 years ago

cmoulliard commented 6 years ago

The following command

sudo xhyve -A -m 2G -c 2 -l com1,autopty -s 0:0,hostbridge -s 31,lpc -s 2:0,virtio-net -s 3,ahci-cd,/Users/dabou/Temp/to-be-deleted/xhyve-centos/build/boot2docker.iso -s 4:0,ahci-hd,/dev/rdisk2 -f kexec,/Users/dabou/Temp/to-be-deleted/xhyve-centos/build/vmlinuz0,/Users/dabou/Temp/to-be-deleted/xhyve-centos/build/initrd0.img,initrd=initrd0.img root=live:CDLABEL=minishift-centos7 rootfstype=auto ro rd.live.image quiet no_timer_check console=ttyS0 console=tty0 net.ifnames=0 biosdevname=0 rhgb rd.luks=0 rd.md=0 rd.dm=0

, when executed on macos using latest version of xhyve compiled locally generates this error message:

Could not open backing file: No such file or directory
gbraad commented 6 years ago

This either is coming from:

https://github.com/mist64/xhyve/blob/1f1dbe3059904f885e4ab2b3328f4bb350ea5c37/src/pci_virtio_block.c#L331

or:

https://github.com/mist64/xhyve/blob/1f1dbe3059904f885e4ab2b3328f4bb350ea5c37/src/block_if.c#L480

cmoulliard commented 6 years ago

backing file

What is the backing file ?

dlangille commented 5 years ago

I got the same error tonight.

It went away, to be replaced by another, when I correctly set: IMG

In your case, it might be /Users/dabou/Temp/to-be-deleted/xhyve-centos/build/initrd0.img