Thanks Jonathan!

I was actually following the info in the man page / online wiki
article heheh ;o). [so...little note for whoever may be reading this
that maintains those sources of information, we need to update them!
heheh].

By the way, your suggestion did not seem to fully work though, here's
what happened:
[root@xcat ~]# ls /vms/shared/
vm10  vm9
[root@xcat ~]# clonevm -t vm9 vmmaster01
vm9: Successfully copied to vmmaster01
[root@xcat ~]# ls /vms/shared/
vm10  vm9  vmmaster01
[root@xcat ~]# tabdump vm
#node,host,migrationdest,storage,storagemodel,cfgstore,memory,cpus,nics,nicmodel,bootorder,clockoffset,virtflags,master,vncport,textconsole,powerstate,beacon,datacenter,guestostype,othersettings,vidmodel,vidproto,comments,disable
"vm9","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
auto created by Moab",
"vm10","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
auto created by Moab",
[root@xcat ~]# tabdump vmmaster
#name,os,arch,profile,storage,storagemodel,nics,vintage,originator,comments,disable
"vmmaster01","centos5.5","x86_64","compute","nfs://xcat.core.cloud/vms/shared",,"eth0","Sun
Jul 24 11:28:15 2011","root",,
[root@xcat ~]# nodeadd clonevm01
groups=centos5.5-stateless,esxvmmgt,failgroup,moab,vlan5,all
[root@xcat ~]# clonevm clonevm01 -b vmmaster01
clonevm01: Error: Unable to identify plugin for this command, check
relevant tables: nodehm.mgt;nodehm.power,mgt
[root@xcat ~]#

So i ended up adding the necessary nodehm entries:
[root@xcat ~]# tabdump nodehm
#node,power,mgt,cons,termserver,termport,conserver,serialport,serialspeed,serialflow,getmac,comments,disable
"ibm","ipmi","ipmi",,,,,,,,,,
"blades","hpilo","hpilo",,,,,,,,,,
"vm9","esx","esx",,,,,,,,,,
"vm10","esx","esx",,,,,,,,,,
"clonevm01","esx","esx",,,,,,,,,,
[root@xcat ~]#

But that still would not work:
[root@xcat ~]# clonevm clonevm01 -b vmmaster01
no host or cluster defined for guest clonevm01
[root@xcat ~]#

So i added the vm to the "vm" table and...
[root@xcat ~]# tabdump vm
#node,host,migrationdest,storage,storagemodel,cfgstore,memory,cpus,nics,nicmodel,bootorder,clockoffset,virtflags,master,vncport,textconsole,powerstate,beacon,datacenter,guestostype,othersettings,vidmodel,vidproto,comments,disable
"vm9","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
auto created by Moab",
"vm10","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
auto created by Moab",
"clonevm01","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,"vmmaster01",,,,,"vlan5",,,,,"VM
auto created by Moab",
[root@xcat ~]# clonevm clonevm01 -b vmmaster01
clonevm01: Successfully cloned from vmmaster01
[root@xcat ~]#

This time it seemed to work!

I'm not very happy with how it works though... :o)
I understand it is necessary to specify the hypervisor where the VM
should be placed BUT "clonevm" should be smart enough to do that!
I basically manually "reconfigured everything", the experience is
almost the same as adding a new vm (and that's not what i expected)...

I also noticed the "clonevm master creation" step did not update the
vm.master field for the vm i cloned from...
Which isn't consistent with how things work for KVM (well, at least
not according to what you showed me)...

Either way, it seems to be working, i guess :o).

Thanks!
Luis

On Sun, Jul 24, 2011 at 10:34 AM, Jonathan Dye
<j...@adaptivecomputing.com> wrote:
> you don't specify a full path for a clone, and you have the arguments 
> backward.  you'll have to make a new VM since it rebased vm5 to the vm master 
> called 'nfs_+JQ-2f+JQ-2f10.0.2.31+JQ-2fvms+JQ-2fshar'.  then, you'll make a 
> new master like this:
>
> clonevm -t [new_stateful_vm] vmmaster3
>
> and you use it like this:
>
> nodeadd vm6 groups=...
> clonevm vm6 -b vmmaster3
>
> you raise an interesting point of how to distribute the read load for the 
> same master between different datastores (we probably need a way to make 
> copies of masters).
>
> - jonathan
>
> ----- Original Message -----
> From: "Luis Miguel Silva" <luismiguelferreirasi...@gmail.com>
> To: "xCAT Users Mailing list" <xcat-user@lists.sourceforge.net>
> Sent: Sunday, July 24, 2011 2:06:00 AM
> Subject: [xcat-user] Problems with xCAT 2.6 (clonevm)
>
> Dear all,
>
> I'm having some trouble cloning a vmware vm with clone vm.
>
> I followed the instructions in the "xCAT Virtualization with VMWare"
> wiki article 
> (http://sourceforge.net/apps/mediawiki/xcat/index.php?title=XCAT_Virtualization_with_VMWare#Clone_a_virtual_machine_node)
>
> But it does not seem to work:
> [root@xcat ~]# clonevm vm5 -t nfs://10.0.2.31/vms/shared/vmmaster
> vm5: Successfully copied to nfs: //10.0.2.31/vms/shared/vmmaster
> [root@xcat ~]# tabdump vm
> #node,host,migrationdest,storage,storagemodel,cfgstore,memory,cpus,nics,nicmodel,bootorder,clockoffset,virtflags,master,vncport,textconsole,powerstate,beacon,datacenter,guestostype,othersettings,vidmodel,vidproto,comments,disable
> "vm5","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
> auto created by Moab",
> [root@xcat ~]# ls /vms/shared/ -al
> total 24
> drwxr-xr-x 4 root root 4096 Jul 24 01:39 .
> drwxr-xr-x 5 root root 4096 Jul 20 12:41 ..
> drwxr-xr-x 2 root root 4096 Jul 24 01:41
> nfs_+JQ-2f+JQ-2f10.0.2.31+JQ-2fvms+JQ-2fshar
> drwxr-xr-x 2 root root 4096 Jul 24 01:41 vm5
> [root@xcat ~]#
>
> Also, i tried creating the vm without specifying the nfs path (since
> clonevm's man page mentioned nothing about it) and...
> [root@xcat ~]# ls -l /vms/shared/
> total 20
> drwxr-xr-x 2 root root 4096 Jul 24 01:41
> nfs_+JQ-2f+JQ-2f10.0.2.31+JQ-2fvms+JQ-2fshar
> drwxr-xr-x 2 root root 4096 Jul 24 01:46
> nfs_+JQ-2f+JQ-2fxcat.core.cloud+JQ-2fvms+JQ
> drwxr-xr-x 2 root root 4096 Jul 24 01:48 vm5
> drwxr-xr-x 2 root root 4096 Jul 24 01:46 vm6
> drwxr-xr-x 2 root root 4096 Jul 24 01:48 vmmaster2
> [root@xcat ~]#
>
> This time, xCAT did create a "vmmaster2" directory (and i briefly saw
> some references to "vmmaster2" on the hypervisor).
>
> The problem is that "clonevm -b vmmaster2 clonevm1" does not work,
> because xCAT does not find vmmaster2 anywhere:
> [root@xcat ~]# clonevm -b vmmaster2 clonevm1
> Error: Invalid nodes and/or groups in noderange: vmmaster2
> [root@xcat ~]#
>
> Isn't xCAT supposed to edit the "vm" table and set vm.master on the
> source vm to "vmmaster2" ?
>
> Any thoughts on what might be happening?
>
> p.s. i'm using xCAT-2.6.1-snap201106151110.
>
> Thank you,
> Luis
>
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to