mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-10 17:18:15 +00:00
Add moby run packet to boot on baremetal Packet.net hosts
This uses the Packet.net API and iPXE to boot a Moby host. There are several enhancements coming soon, such as SSH key customisation, but this PR is sufficient to boot a host and then use the web interface to get console access. The user must currently upload the built artefacts to a public URL and specify it via --base-url, e.g.: moby run packet --api-key <key> --project-id <id> \ --base-url http://recoil.org/~avsm/ipxe --hostname test-moby packet See #1424 #1245 for related issues. Signed-off-by: Anil Madhavapeddy <anil@docker.com>
This commit is contained in:
@@ -18,6 +18,7 @@ func runUsage() {
|
||||
fmt.Printf(" hyperkit [macOS]\n")
|
||||
fmt.Printf(" qemu [linux]\n")
|
||||
fmt.Printf(" vmware\n")
|
||||
fmt.Printf(" packet\n")
|
||||
fmt.Printf("\n")
|
||||
fmt.Printf("'options' are the backend specific options.\n")
|
||||
fmt.Printf("See 'moby run [backend] --help' for details.\n\n")
|
||||
@@ -43,6 +44,8 @@ func run(args []string) {
|
||||
runGcp(args[1:])
|
||||
case "qemu":
|
||||
runQemu(args[1:])
|
||||
case "packet":
|
||||
runPacket(args[1:])
|
||||
default:
|
||||
switch runtime.GOOS {
|
||||
case "darwin":
|
||||
|
||||
Reference in New Issue
Block a user