This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
maas [2016/12/15 11:50] sgiulitti |
maas [2016/12/15 12:06] sgiulitti |
||
---|---|---|---|
Line 39: | Line 39: | ||
###Note | ###Note | ||
Ubuntu doesn' | Ubuntu doesn' | ||
- | instead you will see ens3 ensp5s | + | instead you will see ens3 ens9 because of systemd renaming those. |
Let's assume the ens3 is the primary one and ensp5s the second one. | Let's assume the ens3 is the primary one and ensp5s the second one. | ||
Line 127: | Line 127: | ||
sysctl -p | sysctl -p | ||
``` | ``` | ||
- | In this example | + | In this example |
### Create admin user | ### Create admin user | ||
Line 133: | Line 133: | ||
```bash | ```bash | ||
- | sudo maas-region-admin createadmin --username root --email user@server.com | + | # maas 2.0 |
+ | sudo maas-region | ||
``` | ``` | ||
Line 157: | Line 158: | ||
Edit the default cluster and enable DHCP and DNS on the interface where you will be serving DHCP (see the screenshot as an example). | Edit the default cluster and enable DHCP and DNS on the interface where you will be serving DHCP (see the screenshot as an example). | ||
- | Open `http://< | + | Open `http://< |
*Example:* | *Example:* | ||
- | Router IP = eth1's IP* | + | Router IP = ens9's IP* |
- | IP = eth1's IP | + | IP = ens9's IP |
![Screenshot](http:// | ![Screenshot](http:// | ||
Line 182: | Line 183: | ||
sudo chsh -s /bin/bash maas | sudo chsh -s /bin/bash maas | ||
``` | ``` | ||
+ | |||
Generate a SSH keypair as the maas user (hit enter three times to accept the default path and empty password): | Generate a SSH keypair as the maas user (hit enter three times to accept the default path and empty password): | ||
+ | ```bash | ||
sudo -u maas ssh-keygen | sudo -u maas ssh-keygen | ||
Generating public/ | Generating public/ | ||
Line 191: | Line 194: | ||
Your identification has been saved in / | Your identification has been saved in / | ||
Your public key has been saved in / | Your public key has been saved in / | ||
+ | ``` | ||
Then add the public key to ~ubuntu/ | Then add the public key to ~ubuntu/ | ||
```bash | ```bash | ||
- | sudo -u maas -i ssh-copy-id ubuntu@10.0.0.2 | + | sudo -u maas -i ssh-copy-id ubuntu@192.168.122.1 |
``` | ``` | ||
- | As the maas user, test virsh commands against libvirt at 10.0.0.2: | + | As the maas user, test virsh commands against libvirt at 192.168.122.1: |
```bash | ```bash | ||
- | sudo -u maas virsh -c qemu+ssh:// | + | sudo -u maas virsh -c qemu+ssh:// |
``` | ``` | ||
###Set upstream DNS | ###Set upstream DNS |