Skip to content

Commit

Permalink
update instructions for setting up lxd
Browse files Browse the repository at this point in the history
  • Loading branch information
idroz committed Oct 13, 2024
1 parent 25244bd commit e7597b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cmd/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ func launch(cmd *cobra.Command, args []string) {
log.Fatal(err)
}

fmt.Println("launched: " + machineName)
fmt.Println("")
log.Println("launched: " + machineName)
}

func flagsLaunch(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/lxd_macpine.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ brew install lxc

## Launch an LXD instance

Now that that the system is ready, we can create a lightweight Macpine instance, which has been pre-configured to run LXD. In your terminal run:
Now that that the system is ready, we can create a lightweight Macpine instance. In your terminal run:

```bash
alpine import https://www.dropbox.com/scl/fi/jtlp1wb03obprsq6v60qu/lxd-aarch64.tar.gz?rlkey=gqny4kw40wxw5gor22g5ovlbe&st=3o97khpo&dl=1

sudo alpine start lxd-aarch64
sudo alpine launch --name lxd-aarch64 --shared
```

This will create a new instance called `lxd-aarch64`.
Expand All @@ -41,6 +39,8 @@ Before you can create an instance, you need to configure LXD.
Run the following command to accept all automatic defaults:

```bash
alpine exec lxd-aarch64 "wget https://raw.githubusercontent.com/beringresearch/macpine/refs/heads/main/scripts/enable_lxd.sh"
alpine exec lxd-aarch64 "ash enable_lxd.sh"
alpine exec lxd-aarch64 "lxd init --auto"
```

Expand Down

0 comments on commit e7597b7

Please sign in to comment.