1: Easy enough to add per-vm/group in addition to site wide. The challenging half is the desire for plain old xml file on flat storage in a way that 'virsh list' would be able to use directly. I don't think libvirt has a way to support xml with the storage volume unless we have some extra agent to graft that on. Does persistence in /etc/ with xCAT xml in database so that either xCAT can be out of commission, or the target hypervisor, and either way you can recover the VM through virsh or rmigrate depending on which piece is still up? The next answer would be a virt agent to smooth over the limitations of libvirt in this regard, but then that sort of brings you back to something in addition to virt-manager/virsh to recover VMs. 2:Already done, you can do the following types of 'vmstorage'/'vm.storage' urls in KVM dir:///my/vm/directorynamehere nfs://server/path 2.8 adds: lvm://<vgname> lvm://<desiredvgname>:/dev/sdb1,/dev/sdc1
The critical aspect is that 'dir' assumes you handled the mount and will go for there. GPFS, nfs, whatever. The nfs uuid stuff can work for environments that desire it, or dir:// for environments that curate their own mount points consistently and/or do non-default mount options, gpfs, or just a plain filesystem. From: "Pocina, Goran" <[email protected]> To: xCAT Users Mailing list <[email protected]> Date: 02/27/2013 03:55 PM Subject: Re: [xcat-user] Can we run xCAT built KVM VMs independently of xCAT? Jarrod, Please scratch our initial request for a site wide persistent xml flag. After mulling this over some more, we see 2 things that would be really nice to have with xCAT KVMs: 1- The ability to designate individual nodes (or node groups) as having persistent XML configurations AND to mark the VM as “autostart” so that they boot as soon as the hypervisor is brought up, and 2- A per node (or node group) flag that tells xcat that the storage path points to a global file system (say, gpfs, etc.), so that it doesn’t need to use the UUID nfs pools to access the storage. Unless the VM container is on local storage, feature 2 is needed to provide feature 1, because xCAT’s UUID nfs pool won’t be available when the hypervisor boots up. But we worry that feature 2 would leave the door open for data inconsistency. A possible advantage of xCAT’s current UUID nfs pools is that individual containers can be dismounted on one hypervisor, then mounted on another, insuring that all NFS data is in sync. If the user were relied upon to set up the shared file system themselves, it’s possible that it would allow inconsistent data between two hypervisors, for example during a live migration. In fact with NFS it would be difficult to insure consistent data using anything other than xCAT’s current process. What do you think? Are these features, or a subset, something that xCAT can provide? Thanks BTW. For backing up KVM xml data, we’re writing our own cron scripts that will use “virsh … dumpxml” to make copies to several places: central NFS location, on the hypervisor, and in the same directory as the VM container file. This will help us to back up VMs that are managed outside of xCAT, as well. Though possibly if at least feature 1, above, were possible, we could manage all VMs through xCAT, including DNS, LDAP, servers. That could streamline things quite a bit. From: Pocina, Goran Sent: Tuesday, February 26, 2013 10:34 AM To: xCAT Users Mailing list Subject: RE: [xcat-user] Can we run xCAT built KVM VMs independently of xCAT? I guess for the case I described, a site wide variable would be safest (wouldn’t want to figure out that we had forgot to set the persistent flag on a particular node, during recover from a power fail J But really your initial suggestion of making an independent backup of the xml, perhaps to a central repository, also has merits, because it would allow recovery on a different hypervisor, from a backup of the container, or from an NFS copy. The ideal situation would be one where the xml always stays with the VM container. Either on the same NFS filesystem, or the same local filesystem, and so that any backups or snapshots of the container incorporate the xml file at the time. This might be difficult to do if the local store is a raw image on a local LVM, and LVM snapshots are used, but pretty easy if it’s a qcow image on a local filesystem. Thanks, Goran From: Jarrod B Johnson [mailto:[email protected]] Sent: Monday, February 25, 2013 10:15 AM To: xCAT Users Mailing list Subject: Re: [xcat-user] Can we run xCAT built KVM VMs independently of xCAT? For requesting persistence, I'm presuming a site value would be the most desirable. 'persistkvmguests' sound like a good site value? Inactive hide details for Jarrod B Johnson---02/22/2013 04:17:45 PM---Once running, a KVM VM should not care about the state ofJarrod B Johnson---02/22/2013 04:17:45 PM---Once running, a KVM VM should not care about the state of the MN (since you aren't using the MN for From: Jarrod B Johnson/Raleigh/IBM@IBMUS To: xCAT Users Mailing list <[email protected]> Date: 02/22/2013 04:17 PM Subject: Re: [xcat-user] Can we run xCAT built KVM VMs independently of xCAT? Once running, a KVM VM should not care about the state of the MN (since you aren't using the MN for DHCP/DNS). If a KVM VM shuts down or the hypervisor reboots, however, the answer gets more complicated. Assuming you don't need xCAT's auto-storage mounting capability or auto-network assembly (e.g. you have static mount points or local storage or LVM based VMs), then all you need is the xml. By default, the only place that persists is in xCAT DB: nodels <node> kvm_nodedata.xml You can also get the libvirt xml by: ssh <hypervisor> virsh dumpxml <nodename> While the VM is running. I can investigate an option for hypervisor to persist. This is libvirt's default behavior but there is likely a flag I can use to persist for users that want. For fixed passwords, just do: nodech <vms> vm.vidpassword=passwordhere You will need to run wvid once after that change to update the VM configuration to match the table value. After that, vnc direct without asking xCAT for current password. Inactive hide details for "Pocina, Goran" ---02/22/2013 03:36:16 PM---Hi, Question 1. Can we run VMs built with xCAT without "Pocina, Goran" ---02/22/2013 03:36:16 PM---Hi, Question 1. Can we run VMs built with xCAT without the MN being up? (we use hardeths, and ha From: "Pocina, Goran" <[email protected]> To: xCAT Users Mailing list <[email protected]> Date: 02/22/2013 03:36 PM Subject: [xcat-user] Can we run xCAT built KVM VMs independently of xCAT? Hi, Question 1. Can we run VMs built with xCAT without the MN being up? (we use hardeths, and have external LDAP and DNS servers to xCAT.) Is all of the VM configuration information needed to run the VM resident on the hypervisor? Also, “wvid” works for us, and opens a vncviewer to our KVM VMs console on demand. An advantage of “wvid” is that the user need not know the password to the console, and access to the console can be delegated to specific users using xCAT’s policy table. However for our small group, federating access to the VM console is not a big requirement, but insuring that we do not lose access to our VMs in the event our xCAT MN is down, is critical. Especially in a scenario where we are recovering from a site-wide power outage, and need to bring up VMs that run critical services like ntp, dns, ldap, etc., perhaps before we even can bring up the xCAT MN. Question 2. Is there any way for us to assign a fixed password to the vnc server, and have wvid use that instead? Where would we need to make the code changes to accomplish this? Thanks, Goran ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
<<inline: graycol.gif>>
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
