Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

VMs created using infrakit hyperkit plugin do not get an IP address from vpnkit #777

Open
nikovirtala opened this issue Nov 25, 2017 · 0 comments

Comments

@nikovirtala
Copy link

nikovirtala commented Nov 25, 2017

infrakit's hyperkit and vpnkit intergration seems to be out of date. VMs created using this plugin does not get requested IP address; hyperkit.json does not include parameters like vpnkit_uuid or vpnkit_preferred_ipv4.

hyperkit.json created using infrakit:

{ "hyperkit": "hyperkit", "state_dir": "/Users/nikovirtala/.infrakit/hyperkit-vms/infrakit-954150106", "vpnkit_sock": "/Users/nikovirtala/Library/Containers/com.docker.docker/Data/s50", "vpnkit_key": "00000000-0000-0000-0000-0000c0a8416f", "uuid": "64263a55-bfd2-417f-ae12-d9c2a340894d", "disk": "/Users/nikovirtala/.infrakit/hyperkit-vms/disks/192.168.65.111.img", "iso": "", "vsock": false, "kernel": "/Users/nikovirtala/infrakit/linuxkit/sshd-kernel", "initrd": "/Users/nikovirtala/infrakit/linuxkit/sshd-initrd.img", "cpus": 1, "memory": 128, "disk_size": 100, "console": 1, "pid": 24513, "arguments": [ "-A", "-u", "-F", "/Users/nikovirtala/.infrakit/hyperkit-vms/infrakit-954150106/hyperkit.pid", "-c", "1", "-m", "128M", "-s", "0:0,hostbridge", "-s", "1:0,virtio-vpnkit,path=/Users/nikovirtala/Library/Containers/com.docker.docker/Data/s50,uuid=00000000-0000-0000-0000-0000c0a8416f", "-U", "64263a55-bfd2-417f-ae12-d9c2a340894d", "-s", "2:0,virtio-blk,/Users/nikovirtala/.infrakit/hyperkit-vms/disks/192.168.65.111.img", "-s", "10,virtio-rnd", "-s", "31,lpc", "-l", "com1,autopty=/Users/nikovirtala/.infrakit/hyperkit-vms/infrakit-954150106/tty,log=/Users/nikovirtala/.infrakit/hyperkit-vms/infrakit-954150106/console-ring", "-f", "kexec,/Users/nikovirtala/infrakit/linuxkit/sshd-kernel,/Users/nikovirtala/infrakit/linuxkit/sshd-initrd.img,earlyprintk=serial console=tty0 console=ttyS0 console=ttyAMA0" ], "cmdline": "hyperkit -A -u -F /Users/nikovirtala/.infrakit/hyperkit-vms/infrakit-954150106/hyperkit.pid -c 1 -m 128M -s 0:0,hostbridge -s 1:0,virtio-vpnkit,path=/Users/nikovirtala/Library/Containers/com.docker.docker/Data/s50,uuid=00000000-0000-0000-0000-0000c0a8416f -U 64263a55-bfd2-417f-ae12-d9c2a340894d -s 2:0,virtio-blk,/Users/nikovirtala/.infrakit/hyperkit-vms/disks/192.168.65.111.img -s 10,virtio-rnd -s 31,lpc -l com1,autopty=/Users/nikovirtala/.infrakit/hyperkit-vms/infrakit-954150106/tty,log=/Users/nikovirtala/.infrakit/hyperkit-vms/infrakit-954150106/console-ring -f kexec,/Users/nikovirtala/infrakit/linuxkit/sshd-kernel,/Users/nikovirtala/infrakit/linuxkit/sshd-initrd.img,earlyprintk=serial console=tty0 console=ttyS0 console=ttyAMA0" }

as a comparsion a hyperkit.json created using linuxkit, that is working and gets requested address:

{ "hyperkit": "/usr/local/bin/hyperkit", "state_dir": "sshd-state", "vpnkit_sock": "/Users/nikovirtala/Library/Containers/com.docker.docker/Data/s50", "vpnkit_uuid": "47602c5a-046d-408e-899a-864301588de6", "vpnkit_preferred_ipv4": "", "uuid": "687364c0-9d87-4e55-8788-17e4b2d86c3f", "disks": null, "iso": null, "vsock": true, "vsock_ports": [], "vsock_guest_cid": 3, "vmnet": false, "9p_sockets": null, "kernel": "sshd-kernel", "initrd": "sshd-initrd.img", "bootrom": "", "cpus": 1, "memory": 1024, "console": 0, "pid": 25412, "arguments": [ "-A", "-u", "-F", "sshd-state/hyperkit.pid", "-c", "1", "-m", "1024M", "-s", "0:0,hostbridge", "-s", "31,lpc", "-s", "1:0,virtio-vpnkit,path=/Users/nikovirtala/Library/Containers/com.docker.docker/Data/s50,uuid=47602c5a-046d-408e-899a-864301588de6", "-U", "687364c0-9d87-4e55-8788-17e4b2d86c3f", "-s", "2,virtio-sock,guest_cid=3,path=sshd-state", "-s", "3,virtio-rnd", "-l", "com1,stdio", "-f", "kexec,sshd-kernel,sshd-initrd.img,earlyprintk=serial console=tty0 console=ttyS0 console=ttyAMA0" ], "cmdline": "/usr/local/bin/hyperkit -A -u -F sshd-state/hyperkit.pid -c 1 -m 1024M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-vpnkit,path=/Users/nikovirtala/Library/Containers/com.docker.docker/Data/s50,uuid=47602c5a-046d-408e-899a-864301588de6 -U 687364c0-9d87-4e55-8788-17e4b2d86c3f -s 2,virtio-sock,guest_cid=3,path=sshd-state -s 3,virtio-rnd -l com1,stdio -f kexec,sshd-kernel,sshd-initrd.img,earlyprintk=serial console=tty0 console=ttyS0 console=ttyAMA0" }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant