Hi, Convirt seems a great software solution, many thanks to all working on it. I'd like to report on my recent experiences with it under Ubuntu 8.10 (mixed success) and see if you have any tips as to the problems I'm still facing.
First, a little about the environment: it consists of Ubuntu 8.10 i386 desktop on a pentium 4 ("vmconsole"), and of Ubuntu 8.10 64bit server on two Xeon systems ("vmhost1" and "vmhost2") A seperate system exports a folder over NFS (virtual machine files, CD iso images, etc), and exports logical volumes as iSCSI targets (one target per virtual machine). The NFS mount is the same on all three systems, iSCSI targets are visible on all three systems. I believe this should be a fair setup to support/test live migration? I first faced an Ubuntu specific problem (problems with iscsiadm), where I ended up experimentaly "backporting" the package for Ubuntu Jaunty (9.x) to get support for iscsiadm -m session. Second, I had to patch a little the iscsi storage.sh script (see the attached convirt_iscsi_StorageScript.txt for a diff & notes), to be able to get the Storage feature to work from the gui. After those two issues, I was able to provision a testvm1 to vmhost1, and testvm2 to vmhost2 (using an iso file as the CD drive, and an iscsi target for the first hard disk), and started installations of Ubuntu i386 in them, attach to the console without problems. But here start some blocking points for me: First, ConVirt freezes from time to time, it would seem when I click to look at the summary of a server or at the summary of all servers in one server group - however I can't pinpoint the exact cause. I attached the relevant parts of the logs in ConvirtFreeze_LogTails.txt. I manage to work by clicking on Image Store before clicking on the arrow to expand a server (which causes ConVirt to ask me for the password). After that, I can freely click on any VM, but clicking on a server or server group is risking a freeze. I'll see about trying later to setup ssh keys later to see if that helps something. Second, live migration is not working. When I drag testvm2 from vmhost2 to vmhost1, the system first reminded me "gently" that I needed socat installed. Fixed that, now the message is as follows: Migrate domain / Errors in migrate all operations / Error migrating testvm2: 'NoneType' object has no attribute 'set_managed_node'. If it's related, when I right click on a VM, choose "Change VM Settings", all the fields are blank. I've attached LiveMigrateException_ConvirtLog.txt with the exceptions as a live migrate is attempted. So, once again, thanks for the interesting software, but any thoughts what might be the cause of the above two problems would be quite welcome (or how I can debug further). Many thanks, Andrew ps: I'm not 100% stuck on Ubuntu, what would be the recommendations of development as the most tested platform? OpenSuse, Fedora, CentOS, other?
and...@vmconsole:/usr/local/convirt/storage/scripts/iscsi$ diff storage.sh.orig storage_modified 27c27,28 < for i in `iscsiadm -m session --sid $1 -P3 2>/dev/null | grep "Lun\|Attached.*disk" | grep -v "Lun: 0" | sed '$!N;;s/\n/ /' | awk '{print $6"="$7"|device="$11"|"$12"="$13}'` --- > # Why can't it be Lun: 0 ? On my system, Lun IS 0! > for i in `iscsiadm -m session --sid $1 -P3 2>/dev/null | grep > "Lun\|Attached.*disk" | sed '$!N;;s/\n/ /' | awk '{print > $6"="$7"|device="$11"|"$12"="$13}'` 31c32,33 < disk_size_in_GB=`expr $disk_size / 1024` --- > # On my system, disk_size IS in GB. > disk_size_in_GB=`echo $disk_size` 46c48,49 < total=`expr $total + $disk_size` --- > # Using 'bc' instead of expr to support decimals, at the risk that bc > needs to be installed on all managed servers or face failure... > total=`echo $total + $disk_size | bc` 48c51,52 < echo "SUMMARY=SUMMARY|TOTAL=`expr $total / 1024`" --- > # Again, on my system, I am getting disk sizes in GB. Problem might be > that fdisk is returning the units as well... to be investigated. > echo "SUMMARY=SUMMARY|TOTAL=$total" Fdisk output looks like: ======================================================================= and...@vmhost2:~$ sudo fdisk -l /dev/sdg Disk /dev/sdg: 74.1 GB, 74155294720 bytes 255 heads, 63 sectors/track, 9015 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x9b9cc244 Device Boot Start End Blocks Id System /dev/sdg1 1 9015 72412956 8e Linux LVM
SOURCE = ([((0, 0, 1, 0), ('testvm2', 'DOMAIN', '10.0.0.152', None))], ('10.0.0.152', 'MANAGED_NODE', None, 'Servers')) calling cb Migrate domain Traceback (most recent call last): File "/tmp/convirt/convirt-0.9.6/src/convirt/core/model/GridManager.py", line 234, in migrateDomains File "/tmp/convirt/convirt-0.9.6/src/convirt/core/model/GridManager.py", line 280, in migrateDomain File "/tmp/convirt/convirt-0.9.6/src/convirt/core/model/VNode.py", line 504, in migrate_dom File "/tmp/convirt/convirt-0.9.6/src/convirt/core/platforms/kvm/KVMDomain.py", line 105, in _migrate AttributeError: 'NoneType' object has no attribute 'set_managed_node' Traceback (most recent call last): File "/tmp/convirt/convirt-0.9.6/src/convirt/client/dialogs.py", line 1651, in run self.result = self.ui_callback() File "./src/convirt/client/convirt_client.py", line 3759, in <lambda> force=True), File "/tmp/convirt/convirt-0.9.6/src/convirt/core/model/GridManager.py", line 247, in migrateDomains Exception: Errors in migrate all operations Error migrating testvm2 : 'NoneType' object has no attribute 'set_managed_node' posting exception cb Migrate domain Errors in migrate all operations Error migrating testvm2 : 'NoneType' object has no attribute 'set_managed_node' thread done. Context Migrate domain
tail paramiko.log ================= INF [20090103-13:42:58.874] thr=7 paramiko.transport.sftp: [chan 3] Opened sftp connection (server version 3) DEB [20090103-13:42:58.875] thr=7 paramiko.transport.sftp: [chan 3] lstat('/etc/convirt.conf') DEB [20090103-13:42:58.881] thr=7 paramiko.transport.sftp: [chan 3] stat('/etc/convirt.conf') DEB [20090103-13:42:58.886] thr=7 paramiko.transport.sftp: [chan 3] open('/etc/convirt.conf', 'r') DEB [20090103-13:42:58.889] thr=7 paramiko.transport.sftp: [chan 3] open('/etc/convirt.conf', 'r') -> 00000000 DEB [20090103-13:42:58.897] thr=7 paramiko.transport.sftp: [chan 3] close(00000000) DEB [20090103-13:42:58.901] thr=7 paramiko.transport.sftp: [chan 3] open('/etc/convirt.conf', 'r') DEB [20090103-13:42:58.905] thr=7 paramiko.transport.sftp: [chan 3] open('/etc/convirt.conf', 'r') -> 00000000 DEB [20090103-13:42:58.913] thr=7 paramiko.transport.sftp: [chan 3] close(00000000) DEB [20090103-13:42:58.917] thr=7 paramiko.transport: [chan 4] Max packet in: 34816 bytes DEB [20090103-13:42:58.919] thr=2 paramiko.transport: [chan 4] Max packet out: 32768 bytes INF [20090103-13:42:58.919] thr=2 paramiko.transport: Secsh channel 4 opened. DEB [20090103-13:42:58.923] thr=2 paramiko.transport: [chan 4] Sesch channel 4 request ok DEB [20090103-13:43:00.423] thr=2 paramiko.transport: [chan 4] Unhandled channel request "e...@openssh.com" DEB [20090103-13:43:00.423] thr=2 paramiko.transport: [chan 4] EOF received (4) DEB [20090103-13:43:00.424] thr=2 paramiko.transport: [chan 4] EOF sent (4) DEB [20090103-13:43:00.525] thr=7 paramiko.transport: [chan 5] Max packet in: 34816 bytes DEB [20090103-13:43:00.527] thr=2 paramiko.transport: [chan 5] Max packet out: 32768 bytes INF [20090103-13:43:00.527] thr=2 paramiko.transport: Secsh channel 5 opened. DEB [20090103-13:43:00.531] thr=2 paramiko.transport: [chan 5] Sesch channel 5 request ok DEB [20090103-13:43:00.555] thr=2 paramiko.transport: [chan 5] EOF received (5) DEB [20090103-13:43:00.556] thr=2 paramiko.transport: [chan 5] Unhandled channel request "e...@openssh.com" DEB [20090103-13:43:00.557] thr=2 paramiko.transport: [chan 5] EOF sent (5) DEB [20090103-13:43:00.736] thr=7 paramiko.transport: [chan 6] Max packet in: 34816 bytes DEB [20090103-13:43:00.738] thr=2 paramiko.transport: [chan 6] Max packet out: 32768 bytes INF [20090103-13:43:00.738] thr=2 paramiko.transport: Secsh channel 6 opened. DEB [20090103-13:43:00.742] thr=2 paramiko.transport: [chan 6] Sesch channel 6 request ok DEB [20090103-13:43:00.750] thr=2 paramiko.transport: [chan 6] EOF received (6) DEB [20090103-13:43:00.751] thr=2 paramiko.transport: [chan 6] Unhandled channel request "e...@openssh.com" DEB [20090103-13:43:00.752] thr=2 paramiko.transport: [chan 6] EOF sent (6) DEB [20090103-13:43:00.858] thr=7 paramiko.transport: [chan 7] Max packet in: 34816 bytes DEB [20090103-13:43:00.860] thr=2 paramiko.transport: [chan 7] Max packet out: 32768 bytes INF [20090103-13:43:00.861] thr=2 paramiko.transport: Secsh channel 7 opened. DEB [20090103-13:43:00.867] thr=2 paramiko.transport: [chan 7] Sesch channel 7 request ok DEB [20090103-13:43:00.876] thr=2 paramiko.transport: [chan 7] EOF received (7) DEB [20090103-13:43:00.877] thr=2 paramiko.transport: [chan 7] Unhandled channel request "e...@openssh.com" DEB [20090103-13:43:00.878] thr=2 paramiko.transport: [chan 7] EOF sent (7) DEB [20090103-13:43:01.076] thr=7 paramiko.transport: [chan 8] Max packet in: 34816 bytes DEB [20090103-13:43:01.078] thr=2 paramiko.transport: [chan 8] Max packet out: 32768 bytes INF [20090103-13:43:01.078] thr=2 paramiko.transport: Secsh channel 8 opened. DEB [20090103-13:43:01.082] thr=2 paramiko.transport: [chan 8] Sesch channel 8 request ok tail convirt.log ================= Valid, writable configuration found, using /etc/convirt.conf
------------------------------------------------------------------------------
_______________________________________________ XenMan-Users mailing list XenMan-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xenman-users