/srv/irclogs.ubuntu.com/2015/06/26/#maas.txt

=== jfarschman is now known as MilesDenver
=== ming is now known as Guest70374
=== jfarschman is now known as MilesDenver
amiralihi everybody13:16
amiralican you help me about booting up vm nodes ?13:17
amiralii have 6 vm nodes13:17
amiraliand a maas server13:18
amiraliin selecting virsh13:18
amiraliwhat setting in ssh-copy-id i should use?13:18
kikosure13:39
kikoamirali, to start with, what version of MAAS are you using?13:39
amirali14.04 lts ubunto server on vmware workstation 1013:42
kikoamirali, and maas 1.5? dpkg -l | grep maas?13:49
kikoI'm slow because I'm on the phone13:49
amiralinop 1.7.513:50
amirali.....14:30
kikoamirali, I will have a few minutes in 5 minutes14:33
amiralithanks14:33
kikoamirali, ah, this isn't using virsh? i.e. http://askubuntu.com/questions/292061/how-to-configure-maas-to-be-able-to-boot-virtual-machines14:34
=== jfarschman is now known as MilesDenver
amiraliwait a minute here is my question14:35
=== alexpilotti_ is now known as alexpilotti
amiralithe ip after "sudo -u maas -i ssh-copy-id ubuntu@"  is for what ? for node which you want to join or for maas server14:36
amiralii think its ip pf node that i want to join to maas server14:36
kikoamirali, it's for the host where you want to launch the VM.14:38
kikoamirali, but to be clear, that virsh power driver is to launch KVM instances on Linux, not VMWare14:38
kiko(that may be your expectation, I just want to be clear)14:39
amiraliso you mean it may not work corectly ?14:39
amiraliin vmware14:39
kikoamirali, well, it's more that you can't use vmware as the host for the VMs you want to launch14:40
kikoI believe you can with 1.814:40
kikompontillo, ^^^14:40
kikoamirali, it may be possible to use virsh with the esx:// protocol, but I don't know how the authentication could be set up in that case14:42
kikoi.e. https://trickycloud.wordpress.com/2013/11/01/using-virsh-to-manage-vmware-vms/14:42
amiralikiko thanks for your help14:46
amiralibut its usual vm not esx machine14:46
amiralii boot up ubunto from lan and then connects itself to maas server14:47
kikohmm14:58
mpontilloamirali, kiko: yes, in MAAS 1.8 we will use the VMware API directly, via the python-pyvmomi package15:00
kikompontillo, can you show him some documentation?15:01
mpontillovirsh is hit or miss in this scenario; it may be possible for it to work, but on Trusty the libvirt is pretty old, and doesn't have good support for VMware, IIRC15:01
kikoamirali, I think I don't know what you are trying to do :)15:01
amiraliso i have to use other virtualizarion software?15:02
amiralido you support virsh in virtualbox ?15:02
mpontillokiko: amirali: https://maas.ubuntu.com/docs1.8/changelog.html has some notes on the new features in 1.8 w.r.t. virtualization15:02
mpontilloamirali: VMware and KVM are the best supported hypervisors in 1.8. you can use MAAS to automatically enlist all your VMware or KVM nodes (or a subset based on a name prefix) using the new "Add Chassis" feature in the UI (in 1.7 we have this, but it's only available via the API)15:05
mpontillo(I haven't had much luck with virsh and VirtualBox in Trusty; newer versions may work.)15:06
amiraliso till the new version i should use what ?15:10
kikoamirali, I'm not sure because you haven't explained what you are trying to do15:14
kikoamirali, when you said vmware workstation 10 you confused me15:14
kikoamirali, virsh in 1.7 works with KVM VMs15:14
kikoamirali, running on Ubuntu hosts15:14
amiralilet me be clear15:16
amiralii have a vmware workstation and created 7 separate virtual machines that i want to install all 7 nodes of maas  on those15:18
amiralione of them is maas server15:18
amiraliand all remaining are maas nodes15:19
amiralii configured maas completly15:20
amiraliand now i want my maas nodes jooin to maas server15:20
amiraliall maas server and maas nodes are ubunto 14.0415:20
mpontilloamirali: on the MAAS server, I'd do "sudo chsh -s /bin/bash maas" and then "sudo su - maas", then see if about figuring out the virsh URL to properly manage that VMware box15:22
mpontillofor example, as the MAAS user, if I had KVM running on the local host, "virsh -c qemu:///system list --all" should show me the running VMs15:22
mpontilloif you can figure out an equivalent URL for VMware Workstation, it may work. (IIRC, the version of virsh that ships on Trusty may have bugs that prevent it from working with some versions of VMware, though, so YMMV)15:23
amiralivirsh return nothing15:26
mpontilloamirali: additionally, I believe the VMware API (specifically for VMware Workstation) will only properly if you are using the "Shared VMs" feature in VMware Workstation15:26
mpontilloif the VMs were created in your $HOME, for example, I don't think they'll work15:26
amiralimy base system is win715:27
amiraliand the localtion of machines are differenvt15:27
mpontilloamirali: well, just make sure they're in the "Shared VMs". I believe they have to be there or the APIs won't see them15:27
amiralilet me check15:28
mpontilloon my Ubuntu install of Workstation 11, the API sees all the VMs, and they exist in /var/lib/vmware/shared15:28
mpontilloI haven't tested Workstation 10, so I don't know if this feature is available there15:28
amiraliu mean all nodes should be in shared vms ?15:30
mpontilloamirali: all the ones you want MAAS to manage, yes15:39
amiraliand maas server too ?15:40
mpontilloamirali: the way I set it up is to have the MAAS server in my user's namespace, and all the MAAS nodes in "Shared VMs". because MAAS will try to assimilate everything in there if you ask it to ;-)15:41
mpontilloit should be okay to put the MAAS server itself in "Shared VMs", but I prefer that it be isolated15:41
mpontilloamirali: the other thing you'll need to do, since you're on 1.7, is to manually go into the BIOS and set all those nodes to PXE boot. on 1.8, this is done for you when you use the "Add Chassis" feature to discover a VMware setup15:42
=== newell is now known as black-eye-guy
mpontillowhat I've seen happen if you don't do this is, the nodes will work the first time, but not subsequently (since VMware's BIOS won't bother to try a PXE boot if it can boot from the virtual disk)15:43
amiralihow may can get 1.8 ?i think its test version ?isnt it ?15:43
mpontilloamirali: it's on the verge of release, yeah15:43
mpontilloamirali: you can get it from here - https://launchpad.net/~maas-maintainers/+archive/ubuntu/testing15:44
mpontillomake sure to use "apt-get dist-upgrade" when you upgrade, and install the "python-pyvmomi" package (available in that PPA) to get the latest VMware support15:45
=== jfarschman is now known as MilesDenver
=== black-eye-guy is now known as newell
amiralihi every one17:18
kikohello amirali17:24
mupBug #1469305 opened: if hostname not set, sudo warning make maas throw 500 <landscape> <MAAS:New> <https://launchpad.net/bugs/1469305>21:18

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!