Merge pull request #1256 from rneugeba/infrakit

infrakit: Use the `moby` tool naming convention to select moby builds
This commit is contained in:
Rolf Neugebauer 2017-03-07 17:18:13 +00:00 committed by GitHub
commit 7b0bdd485e
3 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ Then start the hyperkit plugin:
./build/infrakit-instance-hyperkit
```
Next, you can commit a new configuration. There is a sample infrakit config file in `hyperkit.json` which assumes that the directory `./vms/default` contains the `vmlinuz64` and `initrd.img` image to boot.
Next, you can commit a new configuration. There is a sample infrakit config file in `hyperkit.json`. It assumes that you have a default moby build in the top-level directory. The `Moby` property needs to be of the form `<dir>/<prefix>` and assumes that the kernel and initrd images are called `<prefix>-bzImage` and `<prefix>-initrd.img` respectively (this is the convention used by the `moby` tool).
```
infrakit group commit hyperkit.json
```

View File

@ -242,8 +242,8 @@ const hyperkitArgs = "-A -u -F {{.VMLocation}}/hyperkit.pid " +
"-s 2:0,virtio-vpnkit,path={{.VPNKitSock}} " +
"-l com1,autopty={{.VMLocation}}/tty,log={{.VMLocation}}/console-ring"
const hyperkitKernArgs = "kexec," +
"{{.Properties.Moby}}/vmlinuz64," +
"{{.Properties.Moby}}/initrd.img," +
"{{.Properties.Moby}}-bzImage," +
"{{.Properties.Moby}}-initrd.img," +
"earlyprintk=serial console=ttyS0 panic=1 vsyscall=emulate page_poison=1 ntp=gateway"
func (v hyperkitPlugin) execHyperKit(params map[string]interface{}) error {

View File

@ -7,7 +7,7 @@
"Instance": {
"Plugin": "instance-hyperkit",
"Properties": {
"Moby": "./vms/default",
"Moby": "../../moby",
"Disk" : 512,
"CPUs" : 2,
"Memory" : 1024