I am running a virtual (kvm) MAAS/juju setup where most of the MAAS nodes (including MAAS master) are virtual, but some are also physical nodes. The physical Dell 1950 nodes configures automatically for boot in MAAS, so when i deploy via Juju they power on automatically. My problem lies in trying to set up boot for virtual systems. I see the posibility in the MAAS for power type. I can choose virsh. But i need to fill in information i do not know. What should i fill in for Driver and Power ID?
Anyone has experience with that?
In maas 1.2 through 1.8 the virsh power type requires only the Address and Power ID.
MAAS 1.8 Screenshot
MAAS 1.2-1.4 Screenshot
The
libvirt-bin
package needs to be installed to get thevirsh
commandthe
Power ID
is the name of the virtual machine shown bysudo virsh list --all
The address is a normal libvirt connect string:
or
If you want to use ssh you'll need to generate a ssh key pair for the maas user. By default there is no home directory created for the maas user.
Add a login shell for the maas user (we'll only need this for the
ssh-copy-id
command later; if you're putting ssh keys in place manually or using a different mechanism, this step isn't strictly needed):Generate a SSH keypair as the maas user (hit enter three times to accept the default path and empty password):
Then add the public key to
~ubuntu/.ssh/authorized_keys
on the vm server so virsh can use ssh without a password:As the maas user, test virsh commands against libvirt at 10.0.0.2:
Driver and Username are not required for virsh. They will be deleted eventually.b