Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bhyvecontainerlinux [2018/08/24 03:35] – AndrewMarksbhyvecontainerlinux [2018/08/26 15:17] (current) – AndrewMarks
Line 1: Line 1:
-====== This is a work in progress ====== 
- 
 ====== bhyve Container Linux Virtual Machines ====== ====== bhyve Container Linux Virtual Machines ======
  
Line 51: Line 49:
 There are a couple of options here for accessing and configuring the VM: There are a couple of options here for accessing and configuring the VM:
  
-1. Add ssh key(s) to ~core/.ssh/authorized_keys +  - Add ssh key(s) to ~core/.ssh/authorized_keys 
-2. Configure via hosted configuration+  - Configure via hosted configuration
  
-For both options you can boot the VM from alternate media to configure.+Either option can be accomplished by booting from Linux ISO.
  
 ==== Boot from Linux ISO ==== ==== Boot from Linux ISO ====
Line 74: Line 72:
  
 ==== Adding ssh key(s) ==== ==== Adding ssh key(s) ====
 +This section is accomplished running from the Linux ISO.
  
 From your live disk, mount the root partition From your live disk, mount the root partition
Line 90: Line 89:
  
 ==== Hosting A Configuration ==== ==== Hosting A Configuration ====
 +This section is accomplished from any host on the same network as the VM.
  
 A web-server is required to host a configuration file. I'm using the same %%FreeBSD%% host system to host the Container Linux configuration. A web-server is required to host a configuration file. I'm using the same %%FreeBSD%% host system to host the Container Linux configuration.
Line 97: Line 97:
 </code> </code>
  
-Eeither write the configuration in json, or write it in a yml format then convert it to json using https://github.com/coreos/container-linux-config-transpiler.+Either write the configuration in json, or write it in a yml format then convert it to json using https://github.com/coreos/container-linux-config-transpiler.
  
 YML: YML:
Line 112: Line 112:
  
 <code> <code>
 +{ 
 +    "ignition": { 
 +        "config": {}, 
 +        "security": { 
 +            "tls": {} 
 +        }, 
 +        "timeouts": {}, 
 +        "version": "2.2.0" 
 +    }, 
 +    "networkd": {}, 
 +    "passwd": { 
 +        "users": [ 
 +            { 
 +                "name": "core", 
 +                "sshAuthorizedKeys": [ 
 +                    "ssh-rsa AAAA..." 
 +                ] 
 +            } 
 +        ] 
 +    }, 
 +    "storage": {}, 
 +    "systemd": {} 
 +}
 </code> </code>
  
 ==== Configure Kernel Parameters for hosted configuration ==== ==== Configure Kernel Parameters for hosted configuration ====
  
-This part is also done from the Linux Live ISO.+This section is accomplished running from the Linux ISO.
  
 To add kernel parameters to instruct container Linux to use the hosted configuration, add a grub.cfg to the OEM partition of the Container Linux VM. To add kernel parameters to instruct container Linux to use the hosted configuration, add a grub.cfg to the OEM partition of the Container Linux VM.
Line 145: Line 167:
  
 With your web-server running and the hosted configuration in place, reboot the VM without the Linux Live ISO. With your web-server running and the hosted configuration in place, reboot the VM without the Linux Live ISO.
 +
 +===== Where to go from here =====
 +
 +  - Enable dockerd, either manually or via the hosted configuration, and you can use the docker client command on another machine to run containers on this VM.
 +  - Clone the ZFS disk and make clusters of Container Linux VMs running dockerd, swarm, rkt, flannel, kubernetes, etc.
  
  • bhyvecontainerlinux.1535081739.txt.gz
  • Last modified: 2018/08/24 03:35
  • by AndrewMarks