I had been testing in qemu/kvm as my Linux desktop supports nested virtualisation, but memory is a bit low on this machine and I hope to revive my old AMD PC for a test on a real machine.
As of now, the nightly downloads the rancheros image OK, but does not unzip it as I expected it to. I'm not a coder, so hadn't made much sense of the commits at
https://github.com/freenas/freenas/tree/master/gui/vm but there are these lines in
gui/vm/views.py
Code:
if prebuilt_image and raw_file_cnt:
+ c.call('vm.decompress_gzip', prebuilt_image, raw_file_cnt)
+ c.call('vm.raw_resize', raw_file_cnt, raw_file_resize)
This description "
So, we decided to use RanchereOS as our docker system! I have created a RancherOS image that works with bhyve and uploaded it to Ix CDN, this feature basically will download this image, resize(expand) it and run it using bhyve." implies it should run after creation without intervention. It didn't, or least not in my case.
Perhaps FreeNAS 11.1 will be released before the weekend, a
Upcoming version 11.1 release note has appeared at r/freenas.
Only after dropping to the shell to use gzip to unzip the rancheros img.gz file and moving the resultant image file to a non-hidden dataset could the webui be used to create a RAW file device for a docker vm. (See below)
After this the VM actually starts and can only be reached via serial console. The files you asked about were in may case as below:
Code:
root@freenas:/ # ls -lR /mnt/NasPool/.bhyve_containers
total 1
drwxr-xr-x 3 root wheel 3 Dec 12 17:47 configs
drwxr-xr-x 2 root wheel 4 Dec 12 17:46 iso_files
/mnt/NasPool/.bhyve_containers/configs:
total 1
drwxr-xr-x 3 root wheel 4 Dec 12 17:47 4_docker
/mnt/NasPool/.bhyve_containers/configs/4_docker:
total 1
-rw-r--r-- 1 root wheel 56 Dec 12 17:47 device.map
drwxr-xr-x 2 root wheel 3 Dec 12 17:47 grub
/mnt/NasPool/.bhyve_containers/configs/4_docker/grub:
total 5
-rw-r--r-- 1 root wheel 329 Dec 12 17:47 grub.cfg
/mnt/NasPool/.bhyve_containers/iso_files:
total 91957
-rw-r--r-- 1 root wheel 629145600 Dec 12 17:42 rancheros-bhyve-v1.1.0.img
-rw-r--r-- 1 root wheel 49363679 Dec 12 17:47 rancheros-bhyve-v1.1.0.img.gz
root@freenas:/ #
root@freenas:/ # cat /mnt/NasPool/.bhyve_containers/configs/4_docker/grub/grub.cfg
set timeout=0
set default=RancherOS
menuentry "bhyve-image" --id RancherOS {
set root=(hd0,msdos1)
linux /boot/vmlinuz-4.9.45-rancher rancher.password=rancher printk.devkmsg=on rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait rancher.state.autoformat=[/dev/sda] rancher.resize_device=/dev/sda
initrd /boot/initrd-v1.1.0
}root@freenas:/ #
root@freenas:/ # cat /mnt/NasPool/.bhyve_containers/configs/4_docker/device.map
(hd0) /mnt/NasPool/home/chris/rancheros-bhyve-v1.1.0.imgroot@freenas:/ #
Code:
, , ______ _ _____ _____TM
,------------|'------'| | ___ \ | | / _ / ___|
/ . '-' |- | |_/ /__ _ _ __ ___| |__ ___ _ __ | | | \ '--.
\/| | | | // _' | '_ \ / __| '_ \ / _ \ '__' | | | |'--. \
| .________.'----' | |\ \ (_| | | | | (__| | | | __/ | | \_/ /\__/ /
| | | | \_| \_\__,_|_| |_|\___|_| |_|\___|_| \___/\____/
\___/ \___/ Linux 4.9.45-rancher
RancherOS #1 SMP Sun Aug 27 23:25:47 UTC 2017 rancher ttyS0
docker-sys: 172.18.42.2 eth0: 192.168.0.208 lo: 127.0.0.1
rancher login: rancher
Password:
[rancher@rancher ~]$
After a first boot, the VM refused to boot a second time. To be continued ....