docker-machine-driver-xhyve using libmachine plugin model.
Please do not post the issue of this repository to docker/machine, kubernetes/minikube and minishift/minishift
It will interfere with the development of docker-machine, minikube or minishift.
If you were doubt problem either, please post to this repository issues.
This will install the glide binary into $GOPATH/bin.
Updating Dependencies
If your work requires a change to the dependencies, you need to update the Glide
configuration.
Edit glide.yaml to change the dependencies as needed.
Delete glide.lock and re-create the vendor directory by running make vendor. Glide will recognize that there is no lock file and recalculate the required dependencies.
Check-in the updated glide.yaml and glide.lock files.
Test that everything still compiles with the new lock file in place by running make clean && make.
Note: In some cases the Glide cache located under ~/.glide/cache can get corrupted. If you seeing Glide errors during make vendor, you can clear the Glide cache via glide cc.
Path to a host folder to be shared inside the guest
--xhyve-experimental-nfs-share-root
XHYVE_EXPERIMENTAL_NFS_SHARE_ROOT
string
root path at which the NFS shares will be mounted
--xhyve-boot2docker-url
The URL(Path) of the boot2docker image.
By default, use cached iso file path.
--xhyve-cpu-count
Number of CPUs to use the create the VM.
If set -1, use logical CPUs usable by the current process.
--xhyve-memory-size
Size of memory for the guest.
--xhyve-disk-size
Size of disk for the guest (MB).
--xhyve-uuid
The UUID for the machine.
By default, generate and use random UUID. See xhyve/uuid.go
--xhyve-boot-cmd
Booting xhyve kexec commands.
By default, use loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 base host=boot2docker
--xhyve-boot-kernel
Booting kernel file path.
By default, will automatically parses the file path using (vmlinu[xz]|bzImage)[\d]*.
--xhyve-boot-initrd
Booting initrd file path.
By default, will automatically parses the initrd contains file path.
--xhyve-qcow2
Use qcow2 disk format.
If you using minikube, CONFIG_VIRTIO_BLK=y support is included in minikube-iso as of version v0.0.6.
--xhyve-rawdisk
Use a simple 'raw disk' format and virtio-blk driver for storage.
This may be significantly faster for I/O intensive applications, at the potential cost of data durability.
--xhyve-virtio-9p
Enable virtio-9p folder share.
If you using docker-machine, CONFIG_NET_9P=y support is included in boot2docker as of version v1.10.2.
So, If you want to reset IP database, please remove it manually. but very risky.
Note that vmnet.framework shared net address range is 192.168.64.1 ~ 192.168.64.255. You can make 255 vm.
I will implement the clean-up process after understanding the vmnet.framework.
Can't launch on macOS 10.11.4 build 15E27e
Mac OS X 10.11.4 build 15E27e has a Hypervisor.framework bug.
This is Apple's bug.
But, Apple has been fixed build 15E33e.
If you launch the docker-machine-driver-xhyve on build 15E27e, will displayed
I'm very anxious whether other users(except me) are able to launch the xhyve.
So, if you were able to launch the xhyve use docker-machine-driver-xhyve, Could you post a report to this issue thread? #18
If macOS launched by the Vagrant, can be build, but will not be able to launch the Hypervisor.
The cause probably because backend vm (Virtualbox, VMWare, parallels...) to hide the CPU information.
In the case of VMWare,
$ system_profiler SPHardwareDataType
system_profiler[458:1817] platformPluginDictionary: Can't get X86PlatformPlugin, return value 0system_profiler[458:1817] platformPluginDictionary: Can't get X86PlatformPlugin, return value 0
Hardware:
Hardware Overview:
Model Name: Mac
Model Identifier: VMware7,1
// Where is "Processor Name:" field?
Processor Speed: 2.19 GHz
Number of Processors: 1
Total Number of Cores: 1
L2 Cache: 256 KB
L3 Cache: 6 MB
Memory: 2 GB
Boot ROM Version: VMW71.00V.0.B64.1505060256
SMC Version (system): 1.16f8
Serial Number (system): ************
Hardware UUID: ********-****-****-****-************
$ git clone https://github.com/mist64/xhyve &&cd xhyve
$ make
$ ./xhyverun.sh
vmx_init: processor not supported by Hypervisor.framework
Unable to create VM (-85377018)
请发表评论