Re: [et-mgmt-tools] [PATCH] BZ#251643: Allow to set the cpu pinning for creating domain with virt-manager.
Nobuhiro Itou wrote: Hi As well as virt-install, I want to set the cpu pinning at the time of creating domain with virt-manager. And, because virtinst changeset 320 was committed, I add the allocation setting of pCPU to virt-manager. some notes are follows: - This feature works with changeset of virtinst is 320 or later. - The specification about the CPU pin parameter follows that of virt-install. - This function can be used only for xen hypervisor. - When 1 pCPU in xen hypervisor, this function is disabled. Nobuhiro, Did you have any comments on my proposal here? https://www.redhat.com/archives/libvir-list/2007-December/msg00327.html Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903 smime.p7s Description: S/MIME Cryptographic Signature ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Fwd: OCaml bindings - Windows installer
Might interest some people on this list ... --- Begin Message --- This is a Windows installer for the OCaml libvirt bindings and programs: http://libvirt.org/sources/ocaml/ocaml-libvirt-0.4.0.1.exe If someone has a 'virgin' Windows system and could test that the above installer works, particularly for Windows < Vista and for Windows which has not had any GTK/MinGW development tools installed. About 90% of the size of the installer is down to the GTK DLLs and configuration files which need to be carried along to support the GTK graphical program (Virt Control). It's possible that I haven't placed the GTK files in exactly the right place, so instead it is using my own GTK development environment. Screenshots showing the installer in action: http://annexia.org/tmp/wininstaller-1-desktop.png Desktop, nothing installed, showing the installer icon. http://annexia.org/tmp/wininstaller-2-packages.png List of required, recommended and optional subpackages. http://annexia.org/tmp/wininstaller-3-instpath.png Select the installation path. http://annexia.org/tmp/wininstaller-4-installdone.png Install complete. Notice the desktop icons, ... http://annexia.org/tmp/wininstaller-5-menu.png ... and the menu entries and uninstaller program. http://annexia.org/tmp/wininstaller-6-virtctrl.png Running Virt Control. http://annexia.org/tmp/wininstaller-7-uninstall.png After uninstall. Notice that the desktop icons have gone. The installer uses NSIS (the Nullsoft Scriptable Install System, http://nsis.sf.net/) and is reasonably well integrated into the autoconf / make build system. In particular if you are compiling under Windows and NSIS is installed, then a simple './configure --with-nsis; make wininstaller' will build a Windows installer. This is something to look at if libvirt wants/needs a Windows installer. Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903 smime.p7s Description: S/MIME Cryptographic Signature -- Libvir-list mailing list [EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/libvir-list --- End Message --- smime.p7s Description: S/MIME Cryptographic Signature ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] [PATCH 2/2] Virt-viewer browser plugin
lize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs) +{ +NPError err = NPERR_NO_ERROR; + +PLUGINDEBUGSTR("NP_Initialize"); + +/* validate input parameters */ + +if ((nsTable == NULL) || (pluginFuncs == NULL)) +err = NPERR_INVALID_FUNCTABLE_ERROR; + +/* + * Check the major version passed in Netscape's function table. + * We won't load if the major version is newer than what we expect. + * Also check that the function tables passed in are big enough for + * all the functions we need (they could be bigger, if Netscape added + * new APIs, but that's OK with us -- we'll just ignore them). + * + */ + +if (err == NPERR_NO_ERROR) { +if ((nsTable->version >> 8) > NP_VERSION_MAJOR) +err = NPERR_INCOMPATIBLE_VERSION_ERROR; +if (nsTable->size < sizeof(NPNetscapeFuncs)) +err = NPERR_INVALID_FUNCTABLE_ERROR; +if (pluginFuncs->size < sizeof(NPPluginFuncs)) +err = NPERR_INVALID_FUNCTABLE_ERROR; +} + + +if (err == NPERR_NO_ERROR) { +/* + * Copy all the fields of Netscape function table into our + * copy so we can call back into Netscape later. Note that + * we need to copy the fields one by one, rather than assigning + * the whole structure, because the Netscape function table + * could actually be bigger than what we expect. + */ +gNetscapeFuncs.version = nsTable->version; +gNetscapeFuncs.size = nsTable->size; +gNetscapeFuncs.posturl = nsTable->posturl; +gNetscapeFuncs.geturl= nsTable->geturl; +gNetscapeFuncs.geturlnotify = nsTable->geturlnotify; +gNetscapeFuncs.requestread = nsTable->requestread; +gNetscapeFuncs.newstream = nsTable->newstream; +gNetscapeFuncs.write = nsTable->write; +gNetscapeFuncs.destroystream = nsTable->destroystream; +gNetscapeFuncs.status= nsTable->status; +gNetscapeFuncs.uagent= nsTable->uagent; +gNetscapeFuncs.memalloc = nsTable->memalloc; +gNetscapeFuncs.memfree = nsTable->memfree; +gNetscapeFuncs.memflush = nsTable->memflush; +gNetscapeFuncs.reloadplugins = nsTable->reloadplugins; +#ifdef OJI +gNetscapeFuncs.getJavaEnv= nsTable->getJavaEnv; +gNetscapeFuncs.getJavaPeer = nsTable->getJavaPeer; +#endif +gNetscapeFuncs.getvalue = nsTable->getvalue; +gNetscapeFuncs.setvalue = nsTable->setvalue; +gNetscapeFuncs.pushpopupsenabledstate = nsTable->pushpopupsenabledstate; +gNetscapeFuncs.poppopupsenabledstate = nsTable->poppopupsenabledstate; + +/* + * Set up the plugin function table that Netscape will use to + * call us. Netscape needs to know about our version and size + * and have a UniversalProcPointer for every function we + * implement. + */ +pluginFuncs->version= (NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR; +pluginFuncs->size = sizeof(NPPluginFuncs); +pluginFuncs->newp = NewNPP_NewProc(Private_New); +pluginFuncs->destroy= NewNPP_DestroyProc(Private_Destroy); +pluginFuncs->setwindow = NewNPP_SetWindowProc(Private_SetWindow); +pluginFuncs->newstream = NewNPP_NewStreamProc(Private_NewStream); +pluginFuncs->destroystream = NewNPP_DestroyStreamProc(Private_DestroyStream); +pluginFuncs->asfile = NewNPP_StreamAsFileProc(Private_StreamAsFile); +pluginFuncs->writeready = NewNPP_WriteReadyProc(Private_WriteReady); +pluginFuncs->write = NewNPP_WriteProc(Private_Write); +pluginFuncs->print = NewNPP_PrintProc(Private_Print); +pluginFuncs->urlnotify = NewNPP_URLNotifyProc(Private_URLNotify); +pluginFuncs->getvalue = NewNPP_GetValueProc(Private_GetValue); +pluginFuncs->event = NewNPP_HandleEventProc(Private_HandleEvent); +#ifdef OJI +pluginFuncs->javaClass = Private_GetJavaClass(); +#endif + +err = NPP_Initialize(); +} + +return err; +} + +/* + * NP_Shutdown [optional] + * - Netscape needs to know about this symbol. + * - It calls this function after looking up its symbol after + *the last object of this kind has been destroyed. + * + */ +NPError +NP_Shutdown(void) +{ +PLUGINDEBUGSTR("NP_Shutdown"); +NPP_Shutdown(); +return NPERR_NO_ERROR; +} diff -r fe1efb558b4b plugin/test.html --- /dev/null Thu Jan 01 00:00:00 1970 + +++ b/plugin/test.html Fri Jan 25 16:06:47 2008 + @@ -0,0 +1,19 @@ + + + + Virt Viewer plugin test + + You will need to edit the source to + set uri, name etc. + + + + + End of page + + + diff -r fe1ef
[et-mgmt-tools] [PATCH 1/2] Virt-viewer: Abstract viewer_start entrypoint
This patch adjusts src/main.c so that there is an entrypoint called viewer_start which will be used by the plugin. Note the header file ("viewer.h") and the function is private and internal to virt-viewer. Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903 diff -r fe1efb558b4b src/Makefile.am --- a/src/Makefile.am Fri Jan 11 17:43:30 2008 -0500 +++ b/src/Makefile.am Fri Jan 25 16:05:40 2008 + @@ -1,6 +1,6 @@ bin_PROGRAMS = virt-viewer -virt_viewer_SOURCES = main.c +virt_viewer_SOURCES = main.c viewer.h virt_viewer_LDADD = @GTKVNC_LIBS@ @GTK2_LIBS@ @LIBXML2_LIBS@ @LIBVIRT_LIBS@ virt_viewer_CFLAGS = @GTKVNC_CFLAGS@ @GTK2_CFLAGS@ @LIBXML2_CFLAGS@ @LIBVIRT_CFLAGS@ @WARN_CFLAGS@ diff -r fe1efb558b4b src/main.c --- a/src/main.c Fri Jan 11 17:43:30 2008 -0500 +++ b/src/main.c Fri Jan 25 16:05:40 2008 + @@ -35,6 +35,8 @@ #include #include +#include "viewer.h" + // #define DEBUG 1 #ifdef DEBUG #define DEBUG_LOG(s, ...) fprintf(stderr, (s), ## __VA_ARGS__) @@ -67,7 +69,7 @@ static const struct keyComboDef keyCombo { { GDK_Print }, 1, "_PrintScreen"}, }; -static void viewer_set_title(VncDisplay *vnc, GtkWidget *window, gboolean grabbed) +static void viewer_set_title(VncDisplay *vnc G_GNUC_UNUSED, GtkWidget *window, gboolean grabbed) { char title[1024]; const char *subtitle; @@ -406,20 +406,39 @@ static GtkWidget *viewer_build_menu(VncD return menubar; } -static GtkWidget *viewer_build_window(VncDisplay *vnc) +static GtkWidget *viewer_get_toplevel (void *data G_GNUC_UNUSED) +{ + GtkWidget *window; + + window = gtk_window_new(GTK_WINDOW_TOPLEVEL); + gtk_window_set_resizable(GTK_WINDOW(window), FALSE); + return window; +} + +static GtkWidget *viewer_build_window(VncDisplay *vnc, + GtkWidget *(*get_toplevel)(void *), + void *data, + int with_menubar) { GtkWidget *window; GtkWidget *menubar; GtkWidget *layout; - window = gtk_window_new(GTK_WINDOW_TOPLEVEL); - layout = gtk_vbox_new(FALSE, 3); - menubar = viewer_build_menu(vnc); - - gtk_container_add(GTK_CONTAINER(window), layout); - gtk_container_add(GTK_CONTAINER(layout), menubar); - gtk_container_add(GTK_CONTAINER(layout), GTK_WIDGET(vnc)); - gtk_window_set_resizable(GTK_WINDOW(window), FALSE); + /* In the standalone program, calls viewer_get_toplevel above + * to make a window. In the browser plugin this calls a function + * in the plugin which returns the GtkPlug that we live inside. + * In both cases they are GTK_CONTAINERs and NOT resizable. + */ + window = get_toplevel (data); + + if (with_menubar) { + layout = gtk_vbox_new(FALSE, 3); + menubar = viewer_build_menu(vnc); + gtk_container_add(GTK_CONTAINER(window), layout); + gtk_container_add(GTK_CONTAINER(layout), menubar); + gtk_container_add(GTK_CONTAINER(layout), GTK_WIDGET(vnc)); + } else + gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(vnc)); gtk_signal_connect(GTK_OBJECT(vnc), "vnc-pointer-grab", GTK_SIGNAL_FUNC(viewer_grab), window); @@ -440,29 +459,6 @@ static GtkWidget *viewer_build_window(Vn GTK_SIGNAL_FUNC(viewer_credential), NULL); return window; -} - - -static void viewer_version(FILE *out) -{ - fprintf(out, "%s version %s\n", PACKAGE, VERSION); -} - -static void viewer_help(FILE *out, const char *app) -{ - fprintf(out, "\n"); - fprintf(out, "syntax: %s [OPTIONS] DOMAIN-NAME|ID|UUID\n", app); - fprintf(out, "\n"); - viewer_version(out); - fprintf(out, "\n"); - fprintf(out, "Options:\n\n"); - fprintf(out, " -h, --help display command line help\n"); - fprintf(out, " -v, --verbose display verbose information\n"); - fprintf(out, " -V, --version display version information\n"); - fprintf(out, " -d, --directdirect connection with no automatic tunnels\n"); - fprintf(out, " -c URI, --connect URI connect to hypervisor URI\n"); - fprintf(out, " -w, --wait wait for domain to start\n"); - fprintf(out, "\n"); } static int viewer_parse_uuid(const char *name, unsigned char *uuid) @@ -683,12 +679,113 @@ static int viewer_open_tunnel_ssh(const return viewer_open_tunnel(cmd); } - -int main(int argc, char **argv) +int +viewer_start (const char *uri, const char *name, + int direct, int waitvnc, int set_verbose, + GtkWidget *(*get_toplevel)(void *), void *data, + int with_menubar) { GtkWidget *window; GtkWidget *vnc; + virConnectPtr conn = NULL; + virDomainPtr dom = NULL; + char *host = NULL; + char *vncport = NULL; + char *transport = NULL; + char *user = NULL; + const char *tmpname = NULL; + int port = 0; + int fd = -1; + + verbose = set_verbose; + + conn = virConnectOpenReadOnly(uri); + if (!conn) { + fprintf(stderr, "unable to connect to libvirt %s\n", + uri ? uri : "xen"); + return 2; + } + +
[et-mgmt-tools] virt-viewer as a browser plugin (patch for discussion only)
scapeFuncs)) +err = NPERR_INVALID_FUNCTABLE_ERROR; +if (pluginFuncs->size < sizeof(NPPluginFuncs)) +err = NPERR_INVALID_FUNCTABLE_ERROR; +} + + +if (err == NPERR_NO_ERROR) { +/* + * Copy all the fields of Netscape function table into our + * copy so we can call back into Netscape later. Note that + * we need to copy the fields one by one, rather than assigning + * the whole structure, because the Netscape function table + * could actually be bigger than what we expect. + */ +gNetscapeFuncs.version = nsTable->version; +gNetscapeFuncs.size = nsTable->size; +gNetscapeFuncs.posturl = nsTable->posturl; +gNetscapeFuncs.geturl= nsTable->geturl; +gNetscapeFuncs.geturlnotify = nsTable->geturlnotify; +gNetscapeFuncs.requestread = nsTable->requestread; +gNetscapeFuncs.newstream = nsTable->newstream; +gNetscapeFuncs.write = nsTable->write; +gNetscapeFuncs.destroystream = nsTable->destroystream; +gNetscapeFuncs.status= nsTable->status; +gNetscapeFuncs.uagent= nsTable->uagent; +gNetscapeFuncs.memalloc = nsTable->memalloc; +gNetscapeFuncs.memfree = nsTable->memfree; +gNetscapeFuncs.memflush = nsTable->memflush; +gNetscapeFuncs.reloadplugins = nsTable->reloadplugins; +#ifdef OJI +gNetscapeFuncs.getJavaEnv= nsTable->getJavaEnv; +gNetscapeFuncs.getJavaPeer = nsTable->getJavaPeer; +#endif +gNetscapeFuncs.getvalue = nsTable->getvalue; +gNetscapeFuncs.setvalue = nsTable->setvalue; +gNetscapeFuncs.pushpopupsenabledstate = nsTable->pushpopupsenabledstate; +gNetscapeFuncs.poppopupsenabledstate = nsTable->poppopupsenabledstate; + +/* + * Set up the plugin function table that Netscape will use to + * call us. Netscape needs to know about our version and size + * and have a UniversalProcPointer for every function we + * implement. + */ +pluginFuncs->version= (NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR; +pluginFuncs->size = sizeof(NPPluginFuncs); +pluginFuncs->newp = NewNPP_NewProc(Private_New); +pluginFuncs->destroy= NewNPP_DestroyProc(Private_Destroy); +pluginFuncs->setwindow = NewNPP_SetWindowProc(Private_SetWindow); +pluginFuncs->newstream = NewNPP_NewStreamProc(Private_NewStream); +pluginFuncs->destroystream = NewNPP_DestroyStreamProc(Private_DestroyStream); +pluginFuncs->asfile = NewNPP_StreamAsFileProc(Private_StreamAsFile); +pluginFuncs->writeready = NewNPP_WriteReadyProc(Private_WriteReady); +pluginFuncs->write = NewNPP_WriteProc(Private_Write); +pluginFuncs->print = NewNPP_PrintProc(Private_Print); +pluginFuncs->urlnotify = NewNPP_URLNotifyProc(Private_URLNotify); +pluginFuncs->getvalue = NewNPP_GetValueProc(Private_GetValue); +pluginFuncs->event = NewNPP_HandleEventProc(Private_HandleEvent); +#ifdef OJI +pluginFuncs->javaClass = Private_GetJavaClass(); +#endif + + err = NPP_Initialize(); +} + +return err; +} + +/* + * NP_Shutdown [optional] + * - Netscape needs to know about this symbol. + * - It calls this function after looking up its symbol after + *the last object of this kind has been destroyed. + * + */ +NPError +NP_Shutdown(void) +{ +PLUGINDEBUGSTR("NP_Shutdown"); +NPP_Shutdown(); +return NPERR_NO_ERROR; +} diff -r fe1efb558b4b plugin/test.html --- /dev/null Thu Jan 01 00:00:00 1970 + +++ b/plugin/test.html Fri Jan 25 15:22:49 2008 + @@ -0,0 +1,19 @@ + + + + Virt Viewer plugin test + + You will need to edit the source to + set uri, name etc. + + + + + End of page + + + diff -r fe1efb558b4b plugin/virt-viewer-plugin.c --- /dev/null Thu Jan 01 00:00:00 1970 + +++ b/plugin/virt-viewer-plugin.c Fri Jan 25 15:22:49 2008 + @@ -0,0 +1,147 @@ +/* + VIRT-VIEWER-PLUGIN + + By Richard W.M. Jones <[EMAIL PROTECTED]> + Copyright (C) 2008 Red Hat Inc. + + Largely based on DiamondX (http://multimedia.cx/diamondx/), which itself + is based on Mozilla sources. + + DiamondX copyright notice: + + Example XEmbed-aware Mozilla browser plugin by Adobe. + + Copyright (c) 2007 Adobe Systems Incorporated + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons
[et-mgmt-tools] Virt-p2v 0.9.1 - a physical-to-virtual migration live CD
I'm pleased to announce the latest version of virt-p2v, the open source physical-to-virtual migration live CD. http://et.redhat.com/~rjones/virt-p2v/ This is almost a complete rewrite, although largely based on the code in the old shell script. Amongst the new features are: - writes a configuration file for Xen/QEMU/KVM - auto-detects operating system(s) present on the machine - configurable so you can build customer-specific live CDs - auto-detects CPU & memory - support "ISO attachments" for quick development updates - allowed to specify an SSH username (not just 'root') - progress bar during copy - hopefully fixed the "stops at 4GB" bug reported by another user - lots and lots of bugfixes Documentation: http://et.redhat.com/~rjones/virt-p2v/virt-p2v.1.html Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903 smime.p7s Description: S/MIME Cryptographic Signature ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: virt-p2v
Andrew Peabody wrote: Hi Richard, I just wanted to let you know that virt-p2v is really awesome, I had been looking tool to do just this. Sorry if contacting you directly is not the correct way to do this, but I could only find you email address in the readme file. It appears that currently it cannot properly handle machines running on linux software raid. The disks appear only as /dev/* partitions, and running virt-p2v on them fails during the snapshot operation, probably because the partitions are type mdraid. However even when the partition is change to 83, it still acts really weird. Looking through virt-p2v it appears that it can only handle regular partitions and lvm. I was just curious if you had thought of adding support for md devices, otherwise I might try to do it myself. Any help is always welcome. Out of interest, which version are you using? Is your root directory RAIDed too? For general problems, the right mailing list to use is: http://www.redhat.com/mailman/listinfo/et-mgmt-tools Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903 smime.p7s Description: S/MIME Cryptographic Signature ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: virt-p2v
Andrew Peabody wrote: Hi Rich, Thanks for the pointer to the mailing list. I was using 0.9.1 with a RAIDed root directory. For example /dev/md0 /boot /dev/md1 swap /dev/md2 / However, currently the live CD does not autostart the raid devices. Yes, it only considers /dev/hd* and /dev/sd* to be hard disk devices. Patches welcome to fix this one ... I may get around to getting up a RAID array to test this, but probably not very soon. Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903 smime.p7s Description: S/MIME Cryptographic Signature ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: Hello! I have been testing the latest version of virt-p2v
Lester M. wrote: [I'm CC-ing this to the et-mgmt-tools list since it's better if everyone can follow these discussions] Looking over the configuration file... I see something strange in my config generated... Hmmm... */usr/lib64/xen/bin/qemu-dm* Heres the problem of the above: This is a 32bit dom0 and the above path / binary does not exist on the box. However, this *does *exist in "/usr/lib/xen/bin/qemu-dm" going to test it with this in the config. Works! woo hoo! Ah right, that's actually a bug in the code around here (line 1384 in the current development version): let devices = let emulator = match state.hypervisor with | Some Xen -> [leaf "emulator" "/usr/lib64/xen/bin/qemu-dm"] (* XXX lib64? *) The fix for this is for virt-p2v to connect to the remote hypervisor (using libvirt/libvirtd) and issue a virConnectGetCapabilities call. In the capabilities XML there is the correct emulator path. However I haven't got around to this yet. Interesting minor configuration error. Something to ask what architecture (i386 or x86_64) at the begining of the p2v could fix that based on a user choice, That seemed to fix it! :-D I have a few other machines I can test addendums to virt-p2v. Not everyone uses 64 bit dom0's even though everyone should. :-) Please do! Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903 smime.p7s Description: S/MIME Cryptographic Signature ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: Hello! I have been testing the latest version of virt-p2v
Lester M. wrote: Quick question, are fedora users able to do paravirt migrations with fedora 8 currently? I noticed that for fedora 8 in particular there is no xenU kernel package or update, so when a system is migrated it is as a full-virt. For paravirt-to-paravirt you can do an ordinary migration, like this: virsh migrate [--live] guest xen://otherhost/ But I'm guessing you mean P2V, and converting the physical machine into a paravirt guest (rather than as at the moment into a fullvirt guest), and the answer to this is _yes_, but not as far as I know in Fedora. For RHEL you can install the PV drivers after doing the P2V. The eventual plan for virt-p2v is to be able to do this automatically during the P2V operation. Hence I added the RHEL PV binaries to virt-p2v in preparation for this: http://hg.et.redhat.com/virt/applications/virt-p2v--devel?cs=bc808b3656fb Fedora policy prevents these drivers from being included in Fedora, because they are not part of the Linus tree. You'd have to compile them yourself and maintain them (or help get them upstream ...) BTW, installing these drivers doesn't make the guest completely paravirtual. The guest will still look like a fullvirt guest, particularly w.r.t. how it handles the CPU & memory. However they do improve the important things -- disk and network -- which means you get almost all of the performance benefit of paravirtualization. Oh, another thing, a cool feature would be to have a select choice of which type of virtualization to use (para or full.). Its a nice feature to have, but with the current "state of xen" I guess the biggest hurdle which may add "bloat" to the iso image would be to include xenU kernels. :-( See above - yes this in the eventual plan for virt-p2v. I remember reading *somewhere* about fedora being behind with xen based kernels and backporting changes, would that impact that idea somewhat? Yes. The latest Linux kernel supported by XenSource is something ancient, and Red Hat devotes some developer resources to forward-porting Xen to newer Linux kernels, but even so we are still a bit behind. I have not tried a rhel 5 system yet (I will today) I am guessing by default they will be a full virt migration right? See above. Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903 smime.p7s Description: S/MIME Cryptographic Signature ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Handling of non-linux partitions by Vert-P2V
On Tue, Feb 26, 2008 at 05:12:45PM -0500, Mark Black wrote: > Does virt-p2v handle non-linux partitions like ntfs? If so does it > treat it as a raw partition and compress and sent the entire > partition, or does it mount it and extract out the files? At the moment it just treats them as opaque partitions. If they are on a disk which you have selected for migration, then they are migrated along with the rest. The plan is to look into them more deeply and rewrite key files / install PV drivers as necessary, but Windows / NTFS isn't high on my list of priorities. Patches are welcome of course. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: [Libvir] a couple of questions -Newbie
On Tue, Mar 04, 2008 at 09:01:22AM -0700, Spencer Parker wrote: > Now when I run virt-top with the script option it just hangs...how long > till it dies? Or is there a way to daemonize it? Which version of virt-top is this? Script mode is designed to run forever. If used in conjunction with --csv then you'll get an ever longer CSV file. But you also add either '-n ' or '--end-time '[1] to make it stop early (or just kill it instead). For example: virt-top -c test:///default --script --csv /tmp/test.csv -n 10 will run for 30 seconds, produce a 11 line (10 measurements + title) CSV file, and then exit. If it _doesn't_ do that, then please file a bug. The virt-top manpage explains all the options in some detail. Rich. [1] Various formats as explained in the manpage. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: Virt-P2V problem
On Wed, Mar 05, 2008 at 09:28:16AM -0800, Collins, Kevin [Beeline] wrote: > Will do - I assume the fact that the disks are IDE will allow it to work > even though they show up as sdX? I assume this is just SCSI emulation, > like some older devices have used? There's several things going on here: (1) SATA (which is really IDE) uses the SCSI infrastructure in the Linux kernel. So disks appear as /dev/sdX. (2) Old kernels used a separate IDE infrastructure (/dev/hdX). But I'm pretty sure this is all deprecated now and even old PATA IDE disks will use the SCSI infrastructure and appear as /dev/sdX. (See also: http://linux-ata.org/) (3) In the virtual machine the situation is complicated: (a) If the virtual machine is fully virtualized, we emulate an old PATA disk controller, so the virtual disks appear as /dev/hdX. (b) If the virtual machine has either Xen paravirt drivers installed or is completely paravirtualized, Xen has its own block device infrastructure and the disks appear as /dev/xvdX. Virt-p2v attempts to rewrite /etc/fstab after migration so that drive names are rewritten correctly. If it doesn't get this right then you may need to boot the virtual machine in single user mode and edit /etc/fstab. (If you have to do this, let me know some details and the contents of /etc/fstab.p2vsaved and /etc/fstab because it's a bug). Situation (3)(a) above is slow. You can improve things for your Fedora Core 1 system by installing a Xen kernel from a later version of Fedora, although this is at the moment entering somewhat uncharted territory so keep a backup. (BTW, copying this to et-mgmt-tools@redhat.com because it contains useful info for others). Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Virt-P2V
On Wed, Mar 05, 2008 at 03:49:27PM -0600, [EMAIL PROTECTED] wrote: > I am trying to perform a P2V on the HP BLADE 465c. This has the > cciss/c0d0xx format for its drive. I grabbed the source could to build my > own custom live disc with the correct drives and disk format. Hi, I have a specific virt-p2v patch for this, but it's in CVS on my other machine so I'll have to get it for you tomorrow morning. I didn't think anyone else had one of these wretched Compaq/HP arrays :-) Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Virt-P2V
Actually before I get the patch you could also try one of the *-hp* versions of virt-p2v, here: http://et.redhat.com/~rjones/tmp/ Probably this one: http://et.redhat.com/~rjones/tmp/virt-p2v-0.5-hp4.iso If that doesn't work, I'll get your patch tomorrow morning. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Virt-P2V
On Wed, Mar 05, 2008 at 04:23:57PM -0600, [EMAIL PROTECTED] wrote: > Yeah it is crazy. Do I need any other rpms besides the ones that I have > listed. >From the error I'd say you're missing pcre-devel, but honestly the way to use this is either from the binary ISO or to build from source on a Fedora 8 (or greater) base. I haven't tried building it on EPEL at all .. I'm not sure if EPEL has livecd-creator for a start. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Virt-P2V
On Wed, Mar 05, 2008 at 05:18:12PM -0600, [EMAIL PROTECTED] wrote: > I ran the the disk and got the following error: > > Sorry, we didn't implement this yet. This is because support for the "ask" method of network configuration wasn't implemented in virt-p2v version 0.5 (but it is in newer versions but they don't support cciss). I'm going to add support for cciss real soon since it's popular / important on HP hardware, but it seems like version 0.5 is working for you at the moment. BTW, with version 0.5 you'll need to write your own configuration file to start up the guest. I suggest you start out with this one: http://libvirt.org/format.html#Fully1 and you'll probably have to boot into single user mode on the first boot and check that /etc/fstab is correct. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: Virt-P2V problem
On Sat, Mar 08, 2008 at 12:21:52AM -0800, Kevin Collins wrote: > I then was able to manually mount my /root partition (before taking any > steps in virt-p2v). So, I assumed success and went thru the steps to begin > the migration. It again failed to mount my /root (not - it was not still > mounted). The dmesg showed the same error again... I tried to manually mount > another partition and saw the same error. Maybe virt-p2v is insmod'ing > something before it tries to mount? Yes, I know what this is. The pertinent error is: EXT3-fs: blocksize 1024 too small for device blocksize 4096. The problem is convoluted. In order to avoid modifying the underlying disk, we use a device mapper feature to make a writable snapshot of the partitions that we will change (such as the root partition because we'll change /etc/fstab). The writable snapshot stores changes in a ramdisk so that at next reboot all the changes magically disappear and we haven't modified the original disk. All well and good but the writable snapshot ends up with the same blocksize as the ramdisk (4096 by default). Since your filesystem is from Fedora Core 1, it has a blocksize of 1024, and a limitation of ext3 is that it cannot mount a filesystem with blocksize smaller than the device blocksize. Solution should be the following. When the ramdisk boots, go into grub and add: ramdisk_blocksize=1024 to the kernel command line. (Doc: http://www.mjmwired.net/kernel/Documentation/ramdisk.txt) Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Re: Virt-P2V problem
On Mon, Mar 10, 2008 at 01:14:46PM +, Richard W.M. Jones wrote: > Solution should be the following. When the ramdisk boots, go into Erm, that should be "When the _CD_ boots" :-) Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] GLLUG meeting in London this Saturday - talk about Cobbler
[Forwarded from the Greater London Linux Users Group mailing list] -- There will be a Gllug meeting taking place on the 15th of March, starting at 2pm, in the New Cavendish Street campus of Westminster University. Google map for the location is at http://shorterlink.org/4059 We've got three speakers lined up: Matthew King - A beginner's introduction to Asterisk. An explanation of SIP, IAX, Zap, and how they work in an Asterisk dialplan. He will also be covering common pitfalls in Asterisk installation. Karanbir Singh - Automated systems provisioning with Cobbler and CentOS. A brief intro to cobbler itself and then a live demo on setting up real machines and Xen + VMware virtual machines. Cobbler is a Linux boot server that allows for rapid setup of network installation environments. With a simple series of commands, network installs can be configured for PXE, reinstallations, and virtualized installs using Xen or KVM. Cobbler uses a helper program called 'Koan' (which interacts with Cobbler) for reinstallation and virtualization support. John Hearns - Computing clusters. There may be time at the end of the meeting for a couple of lightning talks. As usual, the meeting will adjourn to a local pub. -- -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: Question about virt-top csv...
On Wed, Mar 19, 2008 at 02:37:21PM -0600, Spencer Parker wrote: > I am looking at the csv file that is spewed out by virt-top. It appears > that it just puts everything onto one line. Is there anyway to have it go > onto a separate lines for each domain. I am just trying to save myself from > having to go to a certain index point and then loop till I can get > everything into the database. Any insight is appreciated...thanks again!!! It writes one line per time period, and the domains are concatenated together on that line with the domain ID first. What are you using to parse/import the CSV file? It should be pretty simple to handle this. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: Virt-P2V Question..
On Wed, Mar 19, 2008 at 09:07:12PM -0400, Don Carter wrote: > Will Virt-P2V create VMWare compatible images if the "Other" option is > selected? If so, is there any additional information you could share > that might be helpful to create the image? It just creates a disk image + an XML configuration file suitable for libvirt. It's relatively simple to convert that to VMWare's format. We (Red Hat) developed a tool to do this but I'm not sure at the moment if I can release it. Most probably VMWare can boot disk images directly. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] ANNOUNCE: virt-p2v 0.9.7
I'm pleased to announce the release of virt-p2v 0.9.7. This is a substantial rewrite mainly to improve the user interface and internally to lay the groundwork for supporting V2P and partition resizing. Source, ISO image and PXE boot image available from: http://et.redhat.com/~rjones/virt-p2v/ http://et.redhat.com/~rjones/virt-p2v/download.html The major changes: - Interface rewritten to use Newt text mode windowing toolkit instead of the dialog-based approach which was very proving to be quite limiting. - Much better support for setting up the network and SSH connection. - Fetch and parse capabilities from remote server, to improve the quality of the generated configuration file. In particular, 32-vs-64-bit issues which plagued the older versions are fixed. - Now uses libvirt to contact remote server. - Remove docs, locales to reduce image size. - More accurate memory estimates. - Support local repositories. - Internally: The way configuration data is stored has been rewritten to be simpler to customize and to support V2P. Now understands that i386 = i686. Won't attempt to configure network from a non-RHEL/Fedora root. The source isn't really buildable at the moment without some help because it needs a few packages which aren't in Fedora yet, so if you are trying to build from source please contact me. I also have a branch which can do V2P & (some) partition resizing so if anyone wants to try this please contact me off-list. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] ANNOUNCE: virt-p2v 0.9.7
On Thu, Mar 20, 2008 at 11:08:19AM +0100, Alexander Todorov wrote: > Richard W.M. Jones wrote: > | > | - Remove docs, locales to reduce image size. > > How much size does this reduce? I'd prefer having the locales in the > image for users who don't speak English unless there's a decision > that this will NOT be localize-able in any case. It's something like 32 MB in the final, compressed ISO, or about 20% of the total image size. The precise files removed and their (uncompressed) size is documented at the end of the kickstart file: rm -rf /usr/share/man;# 20 MB rm -rf /usr/share/doc;# 44 MB rm -rf /usr/share/locale ;# 60 MB Virt-p2v isn't localized yet anyway, so all you get is English. It's on my to-do list though :-) Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v 0.9.7 - temporary failure in name resolution
On Thu, Mar 20, 2008 at 11:30:50AM +, Henry Kemp wrote: > I've just run through the process of getting virt-p2v setup to PXE boot > and that seemed pretty straightforward. During the install though it > didn't set up name resolution correctly - I'm assuming it should try to > do this from either looking at the files from the guest its trying to > virtualise or through DHCP? > > Working throgh the virt-p2v script from the source code and the output > of virt-p2v (below) it looks as though it mounts up /etc from the > original host correctly and /etc/resolv.conf looks ok. > > Then because this client is using DHCP when we run "/etc/init.d/network > start" it tries to move resolv.conf to one side but it can't because the > filesystem has been mounted ro. The script then unmounts /etc and we go > back to the /etc filesystem from the live image which doesn't have > anything setup for resolv.conf. Ah right, thanks for this analysis. I actually had exactly the same problem and couldn't work it out, but assumed it was just a problem with my own test machine ... I'll try and put a fix in the next version. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v 0.9.7 - temporary failure in name resolution
On Thu, Mar 20, 2008 at 11:37:58AM +, Richard W.M. Jones wrote: > Ah right, thanks for this analysis. I actually had exactly the same > problem and couldn't work it out, but assumed it was just a problem > with my own test machine ... I'll try and put a fix in the next > version. As an addendum ... It happens because I rearranged the way that network config happens, so now it happens earlier. Previously: 1. ask the user every question 2. mount root with snapshot 3. set up network Now: i. ask the user just the network question ii. if configuring network from root, then mount root readonly iii. set up nework iv. unmount root, continue with questions ... v. mount root with snapshot The cardinal rule of p2v is that we must absolutely not modify the original machine, which is why root is mounted readonly in step (ii). But in fact what should happen is that step (ii) should mount root with snapshots, and then we leave it mounted and don't ask the user to select the root again in this case. OK, think I understand how to fix it now ;-) Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: Question about virt-top csv...
On Thu, Mar 20, 2008 at 06:58:42AM -0600, Spencer Parker wrote: > I am using Python to parse the file and then dumps the info into a MySQL > database to then be displayed and aggregated for a webpage. O know I just > need to parse every 25 places in the index...then just do the next 28 and so > on. I'm pretty beginner at programming in general...so its nice having > something like this to help teach me Python. [Please CC replies to et-mgmt-list] Attached is an example CSV file from the latest version of virt-top so we have something in common to talk about. Load this into a spreadsheet program like OpenOffice Calc. The basic problem with CSV is that it's a 2D file format, and if you have more dimensions than two in your data, as in this case, you have to squeeze them into two somehow. This is what I'm doing here. The data format is: [common columns] [domain columns] time[dom1] [dom2] [dom3] | | V Looking at the spreadsheet, columns A-Q are the common columns. Column R is the first domain column. Note the title "Domain ID". This title always marks the first domain column. Column Y is the last domain column for the first domain. Note that it is the last column that has a title, and this is how you detect it. Column Z is the first domain column for the second domain. It contains the domain ID of the second domain. The second domain goes through columns Z - AG. If there was a third domain it would start at column AH (which would be its domain ID), and so on. You can work out the width of each domain as Y-R (8 columns in this instance, but you have to calculate it because it might be different in future versions of virt-top, or even in current versions of virt-top if you use the --no-csv-* command line flags). BTW, which Python library are you using to parse CSV? You should always use a library. You can't get away with just splitting at comma characters. If you have the ocaml-csv module installed from Fedora then there's a command-line tool called csvtool included which can also do some manipulations of CSV files correctly. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v Hostname,Time,Arch,Physical CPUs,Count,Running,Blocked,Paused,Shutdown,Shutoff,Crashed,Active,Inactive,%CPU,Total memory (KB),Total guest memory (KB),Total CPU time (ns),Domain ID,Domain name,CPU (ns),%CPU,Block RDRQ,Block WRRQ,Net RXBY,Net TXBY amd.home.annexia.org,13:03:50,x86_64,4,2,2,0,0,0,0,0,2,0,0.0,1024000,1024000,0,1,rhel51x32kvm,0.,0.,2,rhel51x64kvm,0.,0. amd.home.annexia.org,13:03:53,x86_64,4,2,2,0,0,0,0,0,2,0,6.6,1024000,1024000,79000,1,rhel51x32kvm,43000.,3.58034253276,,,104,0,2,rhel51x64kvm,36000.,2.99749607394,,,104,0 amd.home.annexia.org,13:03:56,x86_64,4,2,2,0,0,0,0,0,2,0,6.5,1024000,1024000,78000,1,rhel51x32kvm,44000.,3.66482943344,,,52,342,2,rhel51x64kvm,34000.,2.83191365311,,,394,0 amd.home.annexia.org,13:03:59,x86_64,4,2,2,0,0,0,0,0,2,0,6.5,1024000,1024000,78000,1,rhel51x32kvm,44000.,3.66471706899,,,446,0,2,rhel51x64kvm,34000.,2.83182682603,,,104,342 amd.home.annexia.org,13:04:02,x86_64,4,2,2,0,0,0,0,0,2,0,6.3,1024000,1024000,76000,1,rhel51x32kvm,44000.,3.66482943344,,,52,0,2,rhel51x64kvm,32000.,2.66533049704,,,52,0 amd.home.annexia.org,13:04:05,x86_64,4,2,2,0,0,0,0,0,2,0,6.8,1024000,1024000,82000,1,rhel51x32kvm,44000.,3.66482797789,,,104,0,2,rhel51x64kvm,38000.,3.16507870818,,,104,0 amd.home.annexia.org,13:04:08,x86_64,4,2,2,0,0,0,0,0,2,0,6.2,1024000,1024000,75000,1,rhel51x32kvm,43000.,3.57913635914,,,52,0,2,rhel51x64kvm,32000.,2.66354333703,,,52,0 amd.home.annexia.org,13:04:11,x86_64,4,2,2,0,0,0,0,0,2,0,6.6,1024000,1024000,79000,1,rhel51x32kvm,45000.,3.74807337613,,,446,0,2,rhel51x64kvm,34000.,2.83187766197,,,104,342 amd.home.annexia.org,13:04:14,x86_64,4,2,2,0,0,0,0,0,2,0,6.6,1024000,1024000,79000,1,rhel51x32kvm,44000.,3.6622060958,,,52,342,2,rhel51x64kvm,35000.,2.9131184853,,,394,0 amd.home.annexia.org,13:04:17,x86_64,4,2,2,0,0,0,0,0,2,0,6.6,1024000,1024000,79000,1,rhel51x32kvm,44000.,3.66491473022,,,104,0,2,rhel51x64kvm,35000.,2.91527308086,,,104,0 csvtool - Copyright (C) 2005-2006 Richard W.M. Jones, Merjis Ltd. csvtool is a tool for performing manipulations on CSV files from shell scripts. Summary: csvtool [-options] command [command-args] input.csv [input2.csv [...]] Commands: col Return one or more columns from the CSV file. For , see below. Example: csvtool col 1-3,6 input.csv > output.csv namedcol Assuming the first row of the CSV file is a list of column headings, this returned the column(s) with the named headings. is a comma-sepa
Re: [et-mgmt-tools] Packaging for Conary
On Mon, Mar 24, 2008 at 07:55:07PM +, Lance Haig wrote: > The problem is that if I run it on a machine that has qemu installed and > has a few vm's configured. nothing happens. I'm guessing that you must have got libvirt installed in that case. What is the output of: virsh -c qemu:///system list Is libvirtd running? Definitely concentrate on the libvirt/virsh lowlevel stuff before trying to get virt-manager going. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: 32 and 64 bit redhat to Xen conversions
On Thu, Mar 27, 2008 at 07:12:33AM -0400, John_D'Esposito/[EMAIL PROTECTED] wrote: > I was wondering if you can help me with a few questions. Sorry for the late reply - I was on holiday yesterday. Please send & CC questions to et-mgmt-tools list so that others can share from the answers (and also answer your questions when I'm on holiday :-) http://www.redhat.com/mailman/listinfo/et-mgmt-tools > Does your implementation handle both 32 and 64 bit Red Hat installations? Yes. The live CD itself happens to be an i386 (32-bit) ISO, but that is just so that it can be booted on both i386 & x86-64 processors. The actual P2V migration is pretty much independent of architecture, so you can use this single disk image on all 32 and 64 bit (x86-based) systems. > If I don't have a backup of a source Red Hat server, how risky is this > process? It's pretty robust at the moment. The rule is that the CD does not make any changes to the source system at all. HOWEVER, mistakes are always possible, hence the advice to keep a backup. In reality the worst it is likely to do is to corrupt your /etc/fstab file, and there will be a backup in /etc/fstab.p2vsaved. In the future we'll be doing more modifications during the migration, eg. installing new kernels, kernel drivers, resizing partitions, and at that point the opportunity for failure becomes more drastic. > Does the destination server need to be an active XenServer? > Can/does your implementation create the virtual image on the > destination server? Can the destination server be any server > accessible through ssh that has disk space? No, the destination does not need to be a Xen server. Yes, you can transfer to any staging server reachable by ssh. Currently if you do this you'll get slightly reduced functionality -- you may need to make some edits to the config file by hand because we rely on contacting the Xen server to find out how it is configured (eg. is it 32 or 64 bit -- the configuration file is different under these circumstances). In future if we can contact the final server we will be able to do things like automatically bringing up the virtual server, but we will always have a fallback mode for people like yourself who want to use a staging server. Note that you can also transfer to non-Xen hypervisors like Linux KVM. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Packaging virt-manager for forsightlinux
On Sun, Apr 06, 2008 at 01:16:13PM +0100, Lance Haig wrote: > I am trying to package virt-manager, virtinst and virt-viewer for foresight > linux. (As background, Foresight Linux uses the Conary package manager as written by rPath: http://en.wikipedia.org/wiki/Conary_%28package_manager%29) > I have been able to package virt-manager and virtinst. When I run > virt-manager and try to connect to the local machine with kvm/qemu > installed it gives me a traceback about libvirtd not running. > > I have libvirt installed as I can run kvm/qemu machines without much fuss. Before launching into virt-manager, start with the basics. What do these commands say? virsh list virsh list --all virsh -c qemu:///system list Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] [PATCH][virt-viewer][MAN] typo
On Tue, Apr 08, 2008 at 10:36:11AM +0900, Atsushi SAKAI wrote: > Hi, Dan > > Fix man on virt-viewer. > (--help option) I forwarded that one to the gtk-vnc-devel list where I think virt-viewer patches are supposed to go. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Packaging virt-manager for forsightlinux
On Tue, Apr 08, 2008 at 09:03:24AM -0400, lhaig-haigmail.com wrote: > I sent that a while ago and then found out that virsh does not exist. OK. virsh is part of libvirt. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] [PATCH] comparing MAC address is changed to case insensitive
On Fri, Apr 11, 2008 at 09:22:33AM +0900, Hiroyuki Kaguchi wrote: > MAC address is case sensitive in "countMACaddr" method. > This patch changes from case sensitive to case insensitive. You also have to note that 1:2:3:4:5:6 is the same as 01:02:03:04:05:06. Comparing MAC addresses is hard :-) There's some C code in libvirt (src/utils.c IIRC) which Jim Meyering wrote that does a correct compare on MAC addresses. Should be easier in Python 'coz you can split the string and compare each component numerically. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] VMM using Tango icons!
On Tue, Apr 15, 2008 at 04:23:30PM +1000, Mike MacCana wrote: > I've modified VMM to use icons donated to the Tango project. Where's the > best place to send diffs and icon files? You can post patches / files here. (If the icon files are large & binary then I guess we'd prefer a link rather than an attachment). I have no idea how we deal with themes. I'm assuming by 'Tango project' you mean this: http://tango.freedesktop.org/Tango_Desktop_Project [...] > Are there any plans to create a proper icon for VMM itself? Fedora have a desktop icon for VMM. Can't recall off-hand if it is included in the virt-manager tarball, but it probably ought to be if not. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] ANNOUNCE: virt-df ('df' for guests) now supports LVM
I'm happy to say that virt-df, the command-line 'df'-like tool for looking at disk usage of guests, now supports LVM, making it usable for the majority of situations where your guests are running Linux distributions. You can now run 'virt-df' on the host and display the disk space used/available on all filesystems of all your guests. There is no need to run anything inside the guest. Here is an example with two running domains: # virt-df -c qemu:///system -h Filesystem Size Used Available Type rhel51x32kvm:hda1 96.8 MiB 14.6 MiB 82.2 MiB Linux ext2/3 rhel51x32kvm:VolGroup00/LogVol006.4 GiB3.6 GiB2.8 GiB Linux ext2/3 rhel51x32kvm:VolGroup00/LogVol01 992.0 MiB Linux swap rhel51x64kvm:hda1 96.8 MiB 22.1 MiB 74.7 MiB Linux ext2/3 rhel51x64kvm:VolGroup00/LogVol006.4 GiB3.2 GiB3.2 GiB Linux ext2/3 rhel51x64kvm:VolGroup00/LogVol01 992.0 MiB Linux swap Home page: http://et.redhat.com/~rjones/virt-df/ Source and binaries from: http://et.redhat.com/~rjones/virt-df/files/ Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v - does it support md and lvm
On Thu, Apr 17, 2008 at 04:19:07PM +0100, Robin Bowes wrote: > Does virt-p2v support LVM? The reason I ask is that I recently tried to > migrate a FC4 machine to a guest and it failed. LVM - yes. md (RAID) obviously not, but I'm not quite sure why. It relies on the kernel to reconstruct RAID arrays and such like. Could you send me the output of 'dmesg' and '/tmp/virt-p2v.log' from that machine? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] ANNOUNCE: Augeas - a configuration API
On Fri, Apr 18, 2008 at 12:02:15PM +1000, Mike MacCana wrote: > Using 'widely varying formats' is not 'valuable'. It's an unfortunate > accident that wastes everyone's time with various horrible bandaid > solutions, and occasionally makes destroying user data an 'accepted > limitation' of tools like system-config-named. Different formats suit different uses, and in any case I wouldn't trust the people who would develop this new "super-format" not to do something stupid like using XML. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] [PATCH] comparing MAC address is changed to case insensitive
On Mon, Apr 21, 2008 at 05:02:30PM +0900, Hiroyuki Kaguchi wrote: > diff -r 6462dfd3e606 -r 6ec83c2a5c36 virtinst/util.py > --- a/virtinst/util.pyTue Apr 08 15:35:49 2008 -0400 > +++ b/virtinst/util.pyMon Apr 21 15:44:24 2008 +0900 > @@ -222,3 +222,22 @@ > str = str.replace("<", "<") > str = str.replace(">", ">") > return str > + > +def compareMAC(p, q): > +"""Compare two MAC addresses""" > +pa = p.split(":") > +qa = q.split(":") > + > +if len(pa) != len(qa): > +if p > q: > +return 1 > +else: > +return -1 > + > +for i in xrange(len(pa)): > +n = int(pa[i], 0x10) - int(qa[i], 0x10) > +if n > 0: > +return 1 > +elif n < 0: > +return -1 > +return 0 Looks good to me, although I don't have commit access so someone else should also review this. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] ANNOUNCE: Augeas - a configuration API
On Mon, Apr 21, 2008 at 09:51:47AM +1000, Mike MacCana wrote: > On Sun, 2008-04-20 at 10:04 +0100, Richard W.M. Jones wrote: > > On Fri, Apr 18, 2008 at 12:02:15PM +1000, Mike MacCana wrote: > > > Using 'widely varying formats' is not 'valuable'. It's an unfortunate > > > accident that wastes everyone's time with various horrible bandaid > > > solutions, and occasionally makes destroying user data an 'accepted > > > limitation' of tools like system-config-named. > > > > Different formats suit different uses, and in any case I wouldn't > > trust the people who would develop this new "super-format" not to do > > something stupid like using XML. > > > > Rich. > > > > Admins don't like XML because vi isn't an XML editor. It's the > equivalent of Microsoft Word, treating presentation and content like > they're the same thing. No, it because different formats suit different uses. XML is fine for people who never learned how to use lex & yacc. Two large anti-patterns in this area are XSLT (a programming language) and Ant (a Makefile-type tool). Compare XSLT to CDuce (XSLT done right) and Ant to plain Makefiles. Also, try converting a short example from your favorite programming language into XML to see how parsing is important. programming languages config files specialist DSLs > Config files aren't logically combinations of characters, lines, and > paragraphs, They're item / value pairs, sections, and subsections. > > This is why I mentioned creating an editor earlier. There's no reason > why you need to see XML when you edit it. shouldn't be able to say 'jump > to next subsection, copy this object, paste it three times' in the same > way we do with lines and paragraphs in vi. It's plainly ridiculous to create a whole new editor just for editing a particular form of file. This editor you're going to write is going to be better than vi & emacs? Maybe after thousands of programmers have worked on it for > 20 years. In the meantime admins will need to switch between using your editor for one particular sort of file (a small subset of configuration files on the system) versus all the other files on the system. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] [RFE] virtual networks without DHCP
On Sun, Apr 27, 2008 at 02:57:54PM +0200, Geert Jansen wrote: > I think it would be nice if it were possible to create a virtual network > with virt-manager without DHCP and DNS services. This is useful when you > want to use a host-only network for testing a setup that includes a DHCP > server. > > I am not sure whether this is a limitation in virt-manager or in libvirt. It's a libvirt thing. Replies redirected to libvir-list. My understanding is that if the network doesn't contain a element in the network XML then no DHCP server will be created. http://libvirt.org/formatnetwork.html Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] [ANNOUNCE] virt-df 2.1.0 - a 'df' tool for virtual guests
I'm pleased to announce the most recent release of virt-df (2.1.0). Virt-df is 'df' for virtual guests. Run the program on the host / dom0 to display disk space used and available on all partitions on all guests. You don't need to run any sort of program/agent within the guest. Home page: http://et.redhat.com/~rjones/virt-df/ Source/binaries: http://et.redhat.com/~rjones/virt-df/files/ Developer repository: http://hg.et.redhat.com/virt/applications/virt-df--devel This version supports most common filesystems and partitioning schemes, including: - Linux ext2/3 - DOS FAT32 - Windows NTFS - Linux LVM2 (volume groups and logical volumes) - Primary and extended disk partitions - Linux swap - Linux suspend partition You can run it in your host / dom0 to display guest filesystems: # virt-df -c qemu:///system -h Filesystem Size Used Available Type rhel51x32kvm:hda1 96.8 MiB 14.6 MiB 82.2 MiB Linux ext2/3 rhel51x32kvm:VolGroup00/LogVol006.4 GiB3.6 GiB2.8 GiB Linux ext2/3 rhel51x32kvm:VolGroup00/LogVol01 992.0 MiB Linux swap You can also run it on general disk images, or disk devices: # virt-df -t /dev/sda Filesystem1K-blocks Used Available Type /dev/sda:hda1 2556 11309448 14290552 Windows NTFS /dev/sda:hda2992016 93772 898244 Linux ext2/3 /dev/sda:F9VG/F9Root 233160727818164 15497908 Linux ext2/3 /dev/sda:F9VG/F9Swap1015808 Linux swap /dev/sda:RHEL51VG/RHEL51Root 223821847796640 14585544 Linux ext2/3 /dev/sda:RHEL51VG/RHEL51Swap2031616 Linux swap /dev/sda:VolGroup/FAT32Test 916736 4 914676 DOS/Windows You can write the output to a CSV file (use --csv option) in order to import the data easily into spreadsheets and databases. Included also is an experimental command line tool called 'diskzip' which intelligently compresses disk images by leaving out the bits which aren't actually used in the filesystems / partitions / volume groups contained within. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: [libvirt] [ANNOUNCE] virt-df 2.1.0 - a 'df' tool for virtual guests
On Thu, May 15, 2008 at 02:54:53PM +0100, Daniel P. Berrange wrote: > > This version supports most common filesystems and partitioning > > schemes, including: > > - Linux ext2/3 > > - DOS FAT32 > > - Windows NTFS > > - Linux LVM2 (volume groups and logical volumes) > > - Primary and extended disk partitions > > - Linux swap > > - Linux suspend partition > > I'm assuming this only works for raw file & block devices ? Are you planning > to support the funky QCow / VMDK formats too ? Yes, interesting point. Since I always use flat files or straight partitions for my guests I admit I hadn't given this much thought :-) However support for these formats is just a matter of decoding enough of the structure to enable the same mappings to be made in the 'virt-df' library, same as for LVM2 or indeed MBR partitions now. I'll take a look at it. IIRC there are several different undocumented variations on the QCow format? > The other thing that could be annoying is that Fedora 9 support for > encrypting all volumes - might need to prompt for a decryption key > for that. Yes -- any encrypted volumes aren't going to work at the moment, and couldn't work unless there was a way to access the passphrase. > > Included also is an experimental command line tool called 'diskzip' > > which intelligently compresses disk images by leaving out the bits > > which aren't actually used in the filesystems / partitions / volume > > groups contained within. > > That's pretty neat. Which file systems does that work for ? VMWare have > a funky guest tool which tries to let you get to a similar point. It works > by basically openning a file inside the guest VM and filling it with zeros > until the entire disk is full. THeir backend can then detect and discard > all the sectors with zeros. Understanding the filesystem metdata is a much > nicer way todo this :-) It works with most of the formats supported by virt-df. For MBR & LVM once you've parsed the partition tables / LVM metadata, then the information you need just falls out naturally. For NTFS & DOS FAT (you won't believe it but ...) you need to find the allocation bitmaps/tables in both cases in order to calculate blocks used/free for df anyway. For ext2 it's a little bit more tricky because one needs to additionally parse the group block free bitmaps [this bit doesn't work at the moment, but is in principle very simple to add]. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] How do remote connections through virt-manager work?
On Fri, May 23, 2008 at 12:04:22PM +0200, Alexander Todorov wrote: > Hi all, > I've tried to use the remote connection option in virt-manager but it doesn't > work for me. > > Hypervisor: Xen > Connection: Remote tunnel over SHH > Hostname: the hostname > > I have root access to the host. Versions on host & client are the same (same > OS, > xen, libvirt, etc.) > > The connection is not working, it is asking me if libvirtd is started on the > remote host. Am I doing something wrong or this is a bug? There are a number of reasons why this might not work. Libvirt over SSH requires passwordless logins (eg. using ssh agent). It also needs a netcat ("nc") program available on the remote side and the netcat program has to support UDP sockets -- this isn't true on Debian for example. Take a look at the virt-manager log file (in /root/.virt-manager) for more clues and also tell us what versions and operating systems you're actually running. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: ocaml-libvirt-0.4.0.1: Can't connect to Xen- Host
On Wed, May 28, 2008 at 12:22:53PM +0200, Feichtinger Günter wrote: > > -Ursprüngliche Nachricht- > > Von: Richard W.M. Jones [mailto:[EMAIL PROTECTED] > > Gesendet: Dienstag, 27. Mai 2008 11:45 > > An: Feichtinger Günter > > Cc: et-mgmt-tools@redhat.com > > Betreff: Re: ocaml-libvirt-0.4.0.1: Can't connect to Xen- Host > > > > On Tue, May 27, 2008 at 11:37:10AM +0200, Feichtinger Günter wrote: > > > I intstalled the ocaml-libvirt-0.4.0.1.exe on MS- Vista > > without problems. > > > Also the virt-ctrl.exe starts without problems. > > > But when I try to connect to a Xen-Host I get the messages: > > > libvir: Remote error : Cannot access CA certificate > > > 'C:/msys/1.0/local/etc/pki/C > > > A/cacert.pem': No such file or directory (2) > > > > > > Please be so kind and help. > > > > It's not very clear to me what you are trying to connect to > > what, but you'll probably want to read about remote connections, here: > > > > http://libvirt.org/remote.html > > > > Rich. > > Hello Richard, > thanks for your prompt answer. I see, I have to explain it more excatly. > I have 3 Xen-Hosts (CentOS 5.1) and use virt-managaer local an this hosts. > I'm looking for a possibility to manages xen-hosts from MS-Windows-Clients > like VMWareServerConsole. > So I was looking around and found your port of the virt-manager. > I tried to connect with xen://xen-host/ and get the message above. > Which possibility to I have for remote connections? I think I read that with > your virt-manager port only support TLS, isn't it? > So do I have to work with certificates? In my test-envirment a "low" security > solution is also fine :-) The first thing to say is that this isn't a port of virt-manager. We couldn't get that working on Windows because the Python stuff for Win32 was too complicated. This is a port of virt-ctrl instead (http://et.redhat.com/~rjones/virt-ctrl/) which is a far less powerful virt-manager clone that I wrote in my spare time, just as an experiment. (It's also a rather old version of virt-ctrl. I really must update that package ...) Anyway, you should be able to set up your Xen hosts so that TCP (insecure) connections are possible. Assuming that libvirtd is running, there should be a file /etc/libvirt/libvirtd.conf which you can edit to enable TCP connections: http://libvirt.org/remote.html#Remote_libvirtd_configuration listen_tcp = 1 I believe you also need to edit /etc/sysconfig/libvirtd and uncomment: LIBVIRTD_ARGS="--listen" and of course open firewall port 16509 if necessary. Then you should be able to connect remotely using this URI: xen+tcp://hostname/ TCP connections are totally insecure, so you should only do this on a private network. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 59 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] ANNOUNCE: virt-mem: tools for monitoring virtual machines
I'm pleased to announce this very early pre-alpha release of a further set of tools for monitoring virtual machines. The idea is to provide simple commands which can be run outside the virtual machine to monitor its status. These commands don't require you to log in to the virtual machine, or to install any software, since they work entirely by snooping. So they could be very useful for analyzing guests which are stuck / unresponsive / heavily loaded. Done so far: virt-unamelike uname(1), print guest's system information virt-dmesglike dmesg(1), print guest's kernel messages Coming soon: virt-ps like ps(1), lists processes virt-free like free(1), lists free memory and swap If virt-ps works out, I might do a 'top'-like command, although of course I can't call it virt-top. I'm open to other suggestions too. Home page: http://et.redhat.com/~rjones/virt-mem/ Source:http://hg.et.redhat.com/virt/applications/virt-mem--devel NOTE These require a (forthcoming) patch to libvirt to snoop on virtual machines' memory. At the moment you can run them by using the QEMU memsave command to snapshot kernel memory to a file, and then run the program on the file. The snapshot process is described here: http://felinemenace.org/~andrewg/MikroTik_Router_Security_Analysis_Part2/ Support for Xen is still under investigation, but we believe it should be possible. Example: (qemu) memsave 374048 15728640 snap.mem $ virt-uname -A i386 -T i386 -t ~/snap.mem /home/rjones/snap.mem: Linux localhost.localdomain 2.6.24-0.155.rc7.git6.fc9 #1 SMP Tue Jan 15 17:52:31 EST 2008 i686 (none) Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Question about the reason of disabling create remote guest.
On Thu, Jun 05, 2008 at 05:18:06PM +0900, Atsushi SAKAI wrote: > I have a question about remote guest creation on virt-manager. > > Is there any reason of disabling functionality? > http://hg.et.redhat.com/virt/applications/virt-manager--devel?cs=686a43c1c0e7 > I am looking around the ML archive but I cannot found the reason. It's just because that bit hasn't been written yet. However all the infrastructure is now in place (capabilities, remote, storage API) so it will work. I think Cole was working on it. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 59 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: [Fedora-xen] ANNOUNCE: virt-mem: tools for monitoring virtual machines
On Fri, Jun 06, 2008 at 11:24:12AM -0400, Gastón Keller wrote: > Hello, Richard. Good news that you are working on a tool to monitor > memory usage of the guests. May I ask to which extent Xen provides > tools for the same purpose? Or maybe they are pretty limited... The free Xen tools only show you the total memory being used by the guest -- equivalent to the amount of RAM installed in the (virtual) machine. They don't tell you how much memory is being used by processes, in swap or in disk buffers. That is my eventual aim with virt-free (part of the virt-mem toolset). I have no idea about XenSource's commercial tools. VMWare offer something similar but you have to install an agent inside the guest. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] (no subject)
Please don't post HTML to mailing lists. I couldn't be bothered to read your message - it's just far too difficult if you post HTML. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] [ANNOUNCE] virt-mem tools version 0.2.8 released
I'm pleased to announce the latest release of the virt-mem tools, version 0.2.8. These are tools for system administrators which let you find things like kernel messages, process lists and network information of your guests. For example: virt-uname 'uname' command, shows OS version, architecture, etc. virt-dmesg 'dmesg' command, shows kernel messages virt-ps 'ps' command, shows process list Nothing needs to be installed in the guest for this to work, and the tools are specifically designed to allow easy scripting and integration with databases and monitoring systems. Source is available from the web page here: http://et.redhat.com/~rjones/virt-mem/ The latest version (0.2.8) reworks the internals substantially so that we have direct access to basically any kernel structure, and this will allow us to quickly add the remaining features that people have asked for (memory usage information, lists of network interfaces and so on). As usual, patches, feedback, suggestions etc. are very welcome! Binaries will be available in Fedora 10 (Rawhide) at some point soon. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: [libvirt] RE: [Qemu-devel] [ANNOUNCE] virt-mem tools version 0.2.8 released
On Thu, Aug 07, 2008 at 03:55:49PM +0300, Alexey Eremenko wrote: > The only problem: virt-mem doesn't compiles. It has a huge chain of dependencies actually. Maybe better off starting with our RPMs, either source or binary, from here: https://bugzilla.redhat.com/show_bug.cgi?id=450713 Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Re: [libvirt] RE: [Qemu-devel] [ANNOUNCE] virt-mem tools version 0.2.8 released
On Thu, Aug 07, 2008 at 11:47:39AM +0100, Daniel P. Berrange wrote: > On Thu, Aug 07, 2008 at 07:40:58PM +0900, Jun Koi wrote: > > One of the problem is that these tools work via libvirt, so on a VM is > > not managed by libvirt, these tools no longer work. > > That's not a problem - that's a reason to use libvirt :-) It allows the > same tools to work whether using Xen, QEMU, KVM or any other full machine > virtualization suported by libvirt, rather than being tied to one particular > hypervisor. Not to mention ability to run them remotely, with authentication > and encryption, etc We also support running the tools from memory images which you can capture using the QEMU "memsave" command (see the '-t' option). No libvirt required for that, _but_ to see any interesting stuff you'd need to capture the entire guest memory which could obviously be quite large. You could do 'virt-mem capture' which captures just the bits of memory that contain interesting data, and that reduces the amount of data you need to capture substantially. Unfortunately I broke 'virt-mem capture' in the latest release by accident, and in any case it requires libvirt to do the capturing. I think the message here is, install libvirt & be happy :-) Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] [PATCH 0/5] virt-viewer: browser plugin rewritten as lightweight virt-viewer process launcher
This series of patches (re-)implements the virt-viewer browser plugin as a lightweight, hidden plugin which just launches an external virt-viewer process. The theory behind this is explained in more detail in these two postings: https://www.redhat.com/archives/ovirt-devel/2008-August/msg4.html http://sourceforge.net/mailarchive/forum.php?thread_name=20080808093541.GA31923%40amd.home.annexia.org&forum_name=gtk-vnc-devel Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] [PATCH 2/5] Change --enable-plugin => --enable-oldplugin, and add a new --enable-plugin.
Change --enable-plugin => --enable-oldplugin, and add a new --enable-plugin. - Ignore generated files in the (new) plugin/ directory. - -DPLUGIN=1 => -DOLDPLUGIN=1 in src/main.c. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top # HG changeset patch # User "Richard W.M. Jones <[EMAIL PROTECTED]>" # Date 1218190993 -3600 # Node ID 319f0a7da787989ab8a4304984b0970a3270c5f4 # Parent e268ed66e658bc364dea15f3d3f2541b2e28039e Change --enable-plugin => --enable-oldplugin, and add a new --enable-plugin. - Ignore generated files in the (new) plugin/ directory. - -DPLUGIN=1 => -DOLDPLUGIN=1 in src/main.c. diff -r e268ed66e658 -r 319f0a7da787 .hgignore --- a/.hgignore Fri Aug 08 10:55:13 2008 +0100 +++ b/.hgignore Fri Aug 08 11:23:13 2008 +0100 @@ -27,3 +27,10 @@ ^oldplugin/virt-viewer-plugin\.la$ ^oldplugin/virt-viewer-plugin\.so$ ^oldplugin/virt_viewer_plugin_la-.*\.lo$ +^plugin/\.deps +^plugin/.*\.o +^plugin/Makefile$ +^plugin/\.libs +^plugin/virt-viewer-plugin\.la$ +^plugin/virt-viewer-plugin\.so$ +^plugin/virt_viewer_plugin_la-.*\.lo$ diff -r e268ed66e658 -r 319f0a7da787 Makefile.am --- a/Makefile.am Fri Aug 08 10:55:13 2008 +0100 +++ b/Makefile.am Fri Aug 08 11:23:13 2008 +0100 @@ -1,5 +1,5 @@ -SUBDIRS = src man oldplugin +SUBDIRS = src man oldplugin plugin EXTRA_DIST = @[EMAIL PROTECTED] diff -r e268ed66e658 -r 319f0a7da787 configure.ac --- a/configure.ac Fri Aug 08 10:55:13 2008 +0100 +++ b/configure.ac Fri Aug 08 11:23:13 2008 +0100 @@ -19,14 +19,17 @@ PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.10.0) PKG_CHECK_MODULES(GTKVNC, gtk-vnc-1.0 >= 0.3.5) -dnl --enable-plugin to enable the browser plugin. +dnl --enable-oldplugin and --enable-plugin to enable the browser plugin(s). NSPR_REQUIRED=4.0.0 FIREFOX_PLUGIN_REQUIRED=1.5.0 MOZILLA_PLUGIN_REQUIRED=1.8 +AC_ARG_ENABLE(oldplugin, +[ --enable-oldplugin=[no/yes] enable old browser plugin [default=no]],, +enable_oldplugin=no) AC_ARG_ENABLE(plugin, [ --enable-plugin=[no/yes] enable browser plugin [default=no]],, enable_plugin=no) -if test "x$enable_plugin" = "xyes"; then +if test "x$enable_oldplugin" = "xyes" -o "x$enable_plugin" = "xyes"; then dnl Check for Netscape Portable Runtime development package. PKG_CHECK_MODULES(NSPR, nspr >= $NSPR_REQUIRED) dnl Check for Firefox plugin package (also includes NSPR cflags/libs). @@ -40,10 +43,12 @@ AC_SUBST(FIREFOX_PLUGIN_CFLAGS) AC_SUBST(FIREFOX_PLUGIN_LIBS) fi +AM_CONDITIONAL(ENABLE_OLDPLUGIN, [test "x$enable_oldplugin" = "xyes"]) AM_CONDITIONAL(ENABLE_PLUGIN, [test "x$enable_plugin" = "xyes"]) AC_OUTPUT(Makefile src/Makefile man/Makefile oldplugin/Makefile + plugin/Makefile virt-viewer.spec) diff -r e268ed66e658 -r 319f0a7da787 oldplugin/Makefile.am --- a/oldplugin/Makefile.am Fri Aug 08 10:55:13 2008 +0100 +++ b/oldplugin/Makefile.am Fri Aug 08 11:23:13 2008 +0100 @@ -1,4 +1,4 @@ -if ENABLE_PLUGIN +if ENABLE_OLDPLUGIN plugindir = $(libdir)/mozilla/plugins plugin_LTLIBRARIES = virt-viewer-plugin.la @@ -13,7 +13,7 @@ virt_viewer_plugin_la_LDFLAGS = \ -module -avoid-version virt_viewer_plugin_la_CFLAGS = \ - -DPLUGIN=1 -DENABLE_DEBUG=1 -DDEBUG=1 \ + -DOLDPLUGIN=1 -DENABLE_DEBUG=1 -DDEBUG=1 \ @FIREFOX_PLUGIN_CFLAGS@ \ @GTKVNC_CFLAGS@ @GTK2_CFLAGS@ @LIBXML2_CFLAGS@ @LIBVIRT_CFLAGS@ \ @WARN_CFLAGS@ \ diff -r e268ed66e658 -r 319f0a7da787 plugin/Makefile.am --- /dev/null Thu Jan 01 00:00:00 1970 + +++ b/plugin/Makefile.amFri Aug 08 11:23:13 2008 +0100 @@ -0,0 +1,4 @@ +if ENABLE_PLUGIN + + +endif diff -r e268ed66e658 -r 319f0a7da787 src/main.c --- a/src/main.cFri Aug 08 10:55:13 2008 +0100 +++ b/src/main.cFri Aug 08 11:23:13 2008 +0100 @@ -871,7 +871,7 @@ return 0; } -#ifndef PLUGIN +#ifndef OLDPLUGIN /* Standalone program. */ static GtkWidget *viewer_get_toplevel (void *data G_GNUC_UNUSED) @@ -949,7 +949,7 @@ return 0; } -#endif /* !PLUGIN */ +#endif /* !OLDPLUGIN */ /* * Local variables: ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] [PATCH 3/5] Document --enable-plugin and --enable-oldplugin, and how to use the plugins.
Document --enable-plugin and --enable-oldplugin, and how to use the plugins. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top # HG changeset patch # User "Richard W.M. Jones <[EMAIL PROTECTED]>" # Date 1218191011 -3600 # Node ID b8a8da640ff33ce6771bec489260a8860fd49061 # Parent 319f0a7da787989ab8a4304984b0970a3270c5f4 Document --enable-plugin and --enable-oldplugin, and how to use the plugins. diff -r 319f0a7da787 -r b8a8da640ff3 README --- a/READMEFri Aug 08 11:23:13 2008 +0100 +++ b/READMEFri Aug 08 11:23:31 2008 +0100 @@ -27,4 +27,28 @@ http://virt-manager.org/mailinglist.html +Browser plugin +-- + +There are two browser plugins supplied, called "oldplugin" and +"plugin". They are not built by default, so to build them you have to +enable them during configure: + + ./configure --enable-plugin +or: + ./configure --enable-oldplugin + +"oldplugin" is a full Gtk-VNC widget embedded inside the browser. +Unfortunately this turns out to be a bit unstable (occasionally +crashes the browser). + +"plugin" is much simpler - it just launches an external virt-viewer +program. + +To try out the plugins, drop the 'virt-viewer-plugin.so' file into +your plugins directory (eg. $HOME/.mozilla/plugins or +/usr/lib/mozilla/plugins). Then try browsing to the 'test.html' files +which you will find in the corresponding oldplugin or plugin +subdirectory in the virt-viewer source. + -- End ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] [PATCH 4/5] Add 'test.html' to EXTRA_DIST.
Add 'test.html' to EXTRA_DIST. ('test.html' file isn't being distributed in the tarball at present, which is a bug). -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top # HG changeset patch # User "Richard W.M. Jones <[EMAIL PROTECTED]>" # Date 1218191391 -3600 # Node ID dc12fc3a78696ea36adb442ed0aa3304cbf06596 # Parent b8a8da640ff33ce6771bec489260a8860fd49061 Add 'test.html' to EXTRA_DIST. diff -r b8a8da640ff3 -r dc12fc3a7869 oldplugin/Makefile.am --- a/oldplugin/Makefile.am Fri Aug 08 11:23:31 2008 +0100 +++ b/oldplugin/Makefile.am Fri Aug 08 11:29:51 2008 +0100 @@ -30,4 +30,6 @@ CLEANFILES = virt-viewer-plugin.so +EXTRA_DIST = test.html + endif ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] [PATCH 5/5] "Launch virt-viewer" (new) browser plugin.
"Launch virt-viewer" (new) browser plugin. - Based on npshell from xulrunner 1.9.0. - Includes test page. The file 'npunix.c' is pretty much identical to what is in xulrunner 1.9.0, except that I made a few const-correctness fixes. The file 'npshell.c' is only minimally modified from what is in xulrunner, just changed so that it calls the new plugin entry points. The interesting stuff happens in 'launcher_plugin.c' and 'test.html'. The easiest way to test this is: ./autogen.sh --enable-plugin make cp plugin/virt-viewer-plugin.so ~/.mozilla/plugins/ firefox `pwd`/plugin/test.html Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ # HG changeset patch # User "Richard W.M. Jones <[EMAIL PROTECTED]>" # Date 1218201453 -3600 # Node ID a378a0a13abae0ea86d07d2dacc1384f0ac712a8 # Parent dc12fc3a78696ea36adb442ed0aa3304cbf06596 "Launch virt-viewer" (new) browser plugin. - Based on npshell from xulrunner 1.9.0. - Includes test page. diff -r dc12fc3a7869 -r a378a0a13aba plugin/Makefile.am --- a/plugin/Makefile.amFri Aug 08 11:29:51 2008 +0100 +++ b/plugin/Makefile.amFri Aug 08 14:17:33 2008 +0100 @@ -1,4 +1,29 @@ if ENABLE_PLUGIN +plugindir = $(libdir)/mozilla/plugins +plugin_LTLIBRARIES = virt-viewer-plugin.la + +virt_viewer_plugin_la_SOURCES = \ + npshell.c npunix.c launcher_plugin.c launcher_plugin.h +virt_viewer_plugin_la_LIBADD = @FIREFOX_PLUGIN_LIBS@ +virt_viewer_plugin_la_LDFLAGS = -module -avoid-version +virt_viewer_plugin_la_CFLAGS = \ + -DENABLE_DEBUG=1 -DDEBUG=1 \ + @FIREFOX_PLUGIN_CFLAGS@ \ + @WARN_CFLAGS@ + +all-local: virt-viewer-plugin.so + +virt-viewer-plugin.so: virt-viewer-plugin.la + cp .libs/virt-viewer-plugin.so $@ + +# Only leave the .so file in the plugins directory. +install-data-hook: + rm -f $(plugindir)/virt-viewer-plugin.a \ + $(plugindir)/virt-viewer-plugin.la + +CLEANFILES = virt-viewer-plugin.so + +EXTRA_DIST = test.html endif diff -r dc12fc3a7869 -r a378a0a13aba plugin/launcher_plugin.c --- /dev/null Thu Jan 01 00:00:00 1970 + +++ b/plugin/launcher_plugin.c Fri Aug 08 14:17:33 2008 +0100 @@ -0,0 +1,160 @@ +/* + * Virt Viewer New Browser Plugin + * + * Copyright (C) 2008 Red Hat. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Richard W.M. Jones <[EMAIL PROTECTED]> + */ + +#include + +#include +#include +#include +#include +#include + +#include +#include + +#include "launcher_plugin.h" + +static void startVirtViewerAndExit (PluginInstance *, const char *uri, const char *name, int direct, int waitvnc); + +NPError +launcherRun (PluginInstance *self, +int16 argc, char* argn[], char* argv[]) +{ + int i; + const char *uri = NULL; + const char *name = NULL; + int direct = 0; + int waitvnc = 0; + int pid; + + /* Protect against being called multiple times. */ + if (!self->launched) { +self->launched = TRUE; + +/* Parse the parameters given in . */ +i = argc; +while (i > 0) { + i --; + if (argv[i] != NULL) { +if (!PL_strcasecmp (argn[i], "URI")) + uri = argv[i]; +else if (!PL_strcasecmp (argn[i], "NAME")) + name = argv[i]; + else if (!PL_strcasecmp (argn[i], "DIRECT")) + direct = strcmp (argv[i], "1") == 0; + else if (!PL_strcasecmp (argn[i], "WAITVNC")) + waitvnc = strcmp (argv[i], "1") == 0; + } +} + +/* Create child process. */ +pid = fork (); +if (pid < 0) { + perror ("fork"); + return NPERR_GENERIC_ERROR; +} +if (pid == 0) /* Child. */ + startVirtViewerAndExit (self, uri, name, direct, waitvnc); +else /* Parent. */ + waitpid (pid, NULL, 0); + } + + return NPERR_NO_ERROR; +} + +static void +startVirtViewerAndExit (PluginInstance *self ATTRIBUTE_UNUSED, + const char *uri, const char *name, +
Re: [et-mgmt-tools] virt-mem 0.2.9 build failure against ocaml-libvirt-0.4.4.2
On Thu, Aug 07, 2008 at 01:56:40PM -0500, Charles Duffy wrote: > Trying to build virt-mem 0.2.9 against CentOS 5 + GODI OCaml install, > with ocaml-libvirt 0.4.4.2 and bitstring 1.9.7: > > ocamlfind ocamlc -dtypes -g -syntax bitstring.syntax -package > unix,bigarray,extlib,libvirt,xml-light,bitstring.syntax -c > virt_mem_utsname.ml > File "virt_mem_utsname.ml", line 81, characters 61-65: > This expression has type unit but is here used with type > Virt_mem_types.utsname option > make[1]: *** [virt_mem_utsname.cmo] Error 2 > make[1]: Leaving directory `/root/virt-mem-0.2.9/lib' > make: *** [all] Error 1 Yes, that'll be a bug then (and a rather nasty one at that in the ocaml-gettext package). This patch should fix it: http://hg.et.redhat.com/virt/applications/virt-mem--devel/?cs=80466cc75fbc Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 60 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Re: [libvirt] [ANNOUNCE] virt-mem tools version 0.2.8 released
On Fri, Aug 08, 2008 at 02:12:57PM -0500, Charles Duffy wrote: > One suggestion -- since you're using libvirt, why not leverage > /domain/os/type/@os and @machine to set reasonable defaults for word > size and endianness where possible? Yes, this is a bug, or more accurately, not yet implemented. There's a big 'XXX' comment in the source to implement this (lib/virt_mem.ml). Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 60 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Re: [libvirt] RE: [Qemu-devel] [ANNOUNCE] virt-mem tools version 0.2.8 released
On Sun, Aug 10, 2008 at 02:28:27AM +0100, Jamie Lokier wrote: > Javier Guerra wrote: > > On Thu, Aug 7, 2008 at 8:06 AM, Richard W.M. Jones <[EMAIL PROTECTED]> > > wrote: > > > I think the message here is, install libvirt & be happy :-) > > > > nice as this tool sounds, i would need far more than this to make me > > switch from a simple, easily scriptable command-line to a generic, > > 'lowest common', solution like libvirt. > > > > of course, i hope it keeps getting better. who knows? maybe in a year > > or so it would be comparable to the CLI. > > Regrettably I agree for the moment. > > I ended up writing a Perl management script for my KVM VMs because > libvirt was just too muddled and limited for my needs, and because the > config file format confused me, didn't handle everything I needed, and > I didn't find clear documentation on it. The configuration format is documented here: http://libvirt.org/formatdomain.html You can also print out the configuration from any existing guest using 'virsh dumpxml ' if you need examples. I'm intrigued by what your Perl management script needed that isn't exposed by libvirt. Libvirt deliberately doesn't expose the full feature set of any one hypervisor which it supports, but instead exposes common features. The reason for this is so that you can switch hypervisor technologies later on. Clearly, we all love KVM, but people have different needs from hypervisors and KVM won't fit all of them. For example, lightweight container-based approaches are better for some virtualization problems (particularly where you really need to run 100s or 1000s of guests on a single machine), and people will still be running Xen and VMWare for many years to come. [...] > What would be nicer is a VM management protocol build in to QEMU, KVM > and XEN, which is a bit like the monitor, but supports multiple client > connections and overlapping operations (where reasonable), and is a > bit more structured, so e.g. you can get the state of anything whose > state you can set, you can wait for events, etc. The somewhat > object-based config file work that's been discussed not long ago would > be a good thing to structure it around. This is what libvirt gives you (and lots more, eg. secure remote access to hypervisors, bindings to Perl & many other languages, etc.). Can you be more specfic about what you couldn't do with libvirt? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Re: [libvirt] RE: [Qemu-devel] [ANNOUNCE] virt-mem tools version 0.2.8 released
On Sun, Aug 10, 2008 at 11:07:32AM +0100, Richard W.M. Jones wrote: > Libvirt deliberately doesn't expose the full > feature set of any one hypervisor which it supports, but instead > exposes common features. Judging by one private reply I got, I don't want this to be misinterpreted. Libvirt DOESN'T expose the minimum subset of all hypervisors (because that would be very small and useless). It exposes general virtualization features, even if those features only apply to one or two hypervisors. For example: migration - only works with Xen & KVM, but could be applicable to other hypervisors in the future when we support them and they support migration scheduler tuning - only for Xen, but generally applicable adding/dropping interfaces from live guests - a general feature supported by many but not all of the backends Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 60 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Error compiling virt-mem-2.8
On Mon, Aug 11, 2008 at 11:32:44AM +0530, Niranjan M.R wrote: > File "virt_mem_mmap.ml", line 1, characters 0-1: > Could not find the .cmi file for interface virt_mem_mmap.mli. Sorry, only just seen this email. These errors are always caused because the .depend file hasn't been rebuilt. Just doing 'make depend' should fix it. It's probably a bug in the .depend file we distribute with the tarball ... Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Error compiling virt-mem-2.8
On Thu, Aug 14, 2008 at 04:06:14PM +0530, M.R Niranjan wrote: > You mean, before i run make , i should type "make depend" and then run > "make" and "make install" ? Yes, exactly. You might also want to try out version 0.3.0 which I (quietly) put out yesterday. I'm currently rewriting the parsing code again so it can load all kernel structures automatically -- this turned out to be necessary for virt-ifconfig because things like the network interface addresses are stored in multiple, indirect, linked lists of structures/ sub-structures/ sub-sub-..., and writing code to navigate through those manually was getting very tedious. Should have something to show for this by the weekend. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Error compiling virt-mem-2.8
On Thu, Aug 14, 2008 at 04:45:17PM +0530, M.R Niranjan wrote: > File "virt_mem_types.ml", line 78, characters 6-19: > Unbound value D.memory_peek OK, so now you're getting a different error. This is because you need a newer ocaml-libvirt (try 0.4.4.2). The one you have doesn't support the libvirt virDomainMemoryPeek call, which was only added to libvirt quite recently. I will add a check into the configure file for that, and also a better error message. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Error compiling virt-mem-2.8
On Thu, Aug 14, 2008 at 07:42:33PM +0530, M.R Niranjan wrote: > /usr/bin/ld: cannot find -lvirt > collect2: ld returned 1 exit status > Error during linking You have got libvirt installed, right? If you installed libvirt on some non-standard path then you may need to tell configure where it is. I think you need to do: LIBS="/some/nonstandard/path" ./configure If that doesn't work try LIBRARY_PATH instead of LIBS. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] [PATCH 1/5] Rename plugin/ directory to oldplugin/
On Thu, Aug 14, 2008 at 03:05:29PM +0100, Daniel P. Berrange wrote: > On Fri, Aug 08, 2008 at 02:37:48PM +0100, Richard W.M. Jones wrote: > > > > Rename plugin/ directory to oldplugin/ > > - Also fix .hgignore to ignore generated files in oldplugin directory. > > I don't like this - I don't see why we can't just keep both plugins > available in one directory. Just give them different names. eg call > the new one virt-viewer-command-plugin.so and have the source for > both in the plugins/ directory. In the binary build, we can have > a separate sub-RPM for each plugin, so the user can choose which > they prefer to use. I think I felt we should deprecate the old plugin. Keep it around for a while just in case anyone can make it work, otherwise delete it. What do you think? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] [PATCH 5/5] "Launch virt-viewer" (new) browser plugin.
On Thu, Aug 14, 2008 at 03:15:19PM +0100, Daniel P. Berrange wrote: > Am I understanding this correctly, that it'll launch the virt-viewer > program immediately upon loading the HTML page containing the plugin > snippet ? If so that's a huge security problem - you are > spawning a program which is allowed to connect to any host on the > internet. It is also a denial-of-service - malicous javascript > could write a page containing thousands of snippets which > would spawn thousands of processes. > > I'd rather expect the plugin to have a small embedded area in the > HTML page showing the details of what host will be connected to, > what port, and then a button which has to be explicitly pressed > to launch the external viewer. Yes ... The trouble is if we do this, we end up needing to embed Gtk widgets in the browser, which takes us back to square one. I'll raise this on #virt, see if we can talk through the issues again. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Error compiling virt-mem-2.8
On Thu, Aug 14, 2008 at 11:18:21PM +0530, M.R Niranjan wrote: > Richard W.M. Jones wrote: >> On Thu, Aug 14, 2008 at 07:42:33PM +0530, M.R Niranjan wrote: >> >>> /usr/bin/ld: cannot find -lvirt >>> collect2: ld returned 1 exit status >>> Error during linking >> >> You have got libvirt installed, right? If you installed libvirt on >> some non-standard path then you may need to tell configure where it >> is. I think you need to do: >> > Yes, libvirt is already installed, > > [EMAIL PROTECTED] virt-mem-0.3.0]# rpm -q libvirt > libvirt-0.4.4-3.fc10.x86_64 > libvirt-0.4.4-3.fc10.i386 > > >> LIBS="/some/nonstandard/path" ./configure >> >> If that doesn't work try LIBRARY_PATH instead of LIBS >> > which path should i specify as LIBS or LIBRARY_PATH , as the libvirt rpm > installs libraries of libvirt in /usr/lib64. You should give /usr/lib64 as the path. As for why it doesn't work, though, I'm really very confused. Obviously I don't get the error you're seeing, and I don't understand how something as simple as '-lvirt' can fail if you have libvirt installed. Have you tried using our binaries? Might be easier than trying to build it: https://bugzilla.redhat.com/show_bug.cgi?id=450713 Also, the new version I'm preparing is much less alpha than the one you are trying to build. If you can wait until after this weekend, you may find a much better / more practical version for your needs. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 60 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Installing RHEL 2 (yes, "*2*") inside a F9 KVM VM...
On Thu, Aug 14, 2008 at 05:32:00PM -0400, Michael DeHaan wrote: > I'm finding that RHEL 2 (last dot release) does not seem to have a > virtual NIC of the type that Anaconda can discover. > > Has anyone tested EL2, and if so, should I be sending something extra > down to python virtinst for that? I have tested RHL 6.2 in KVM and found the same problem and a few others: http://marc.info/?l=kvm&m=121483789832440&w=2 Doubt it's worth changing virt-install to fix this though. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Error compiling virt-mem-2.8
On Sat, Aug 16, 2008 at 10:34:06AM +0530, M.R Niranjan wrote: > I will wait for some more time, till you release the updated version, is > it possible to have a binary RPM ? Sure ... I'll be building binaries for 0.3.1 on Tuesday, or whenever the Fedora infrastructure comes back to life. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: [libvirt] Re: virsh/virt-install for dummies
On Wed, Aug 20, 2008 at 10:33:57AM -0400, Cole Robinson wrote: > Hmm, the patch you presented is actually for virt-image, > not virt-install. Oh yes, bit stupid :-( > 1) If no virt type is specified, we default to the first >capabilities entry matching the host's architecture. >For xen this is PV, but for qemu (even w/ xenner >present) this defaults to hvm with qemu hostarch >binary. Yes, that sounds like the right thing to do. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Error compiling virt-mem-2.8
Here's a build of 0.3.1: http://koji.fedoraproject.org/koji/taskinfo?taskID=784664 It failed on ppc64, I think simply because the compiler ran out of memory compiling one of the biggest source files (kernel.ml which corresponds to the kernel database). But it should be OK to use the i686 RPM on 32 bit guests. You should read the FAQ: http://et.redhat.com/~rjones/virt-mem/faq.html Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] ANNOUNCE: virt-what 1.0 - a shell script to detect if you are running in a virtual machine
I'm pleased to announce the first release of 'virt-what', which is a simple shell script that detects if you are running inside a virtual machine, and prints some "facts" about that virtual machine. This is a frequently requested feature. Home page:http://et.redhat.com/~rjones/virt-what/ Source and RPMs: http://et.redhat.com/~rjones/virt-what/files/ So far we can detect: - Xen - QEMU and KVM (but not distinguish between them) - VMware - Microsoft VirtualPC I'm hoping that people who run or develop other virtualization technology will be able to contribute snippets to detect those. It's worth saying (before Dan Berrange says it anyway) that although people often think they need this sort of feature, in most cases using this script is the WRONG THING. If you need a specific virtualization feature, then add code to your application to detect that feature. eg. If you need to make Xen hypervisor calls, your application should try to open /proc/xen/privcmd. As Dan once put it: A shell script just printing out 'native', 'dom0' or 'domU' is too simplistic to be broadly useful to management applications. The concepts are also ill-defined, eg 'native' as a concept can be a baremetal kernel, or a fully-virtualized guest, or both. 'DomU' does not distinguish full or paravirt. The distinction of 'dom0' vs 'native' is irrelevant in non-Xen virtualization systems (eg KVM). Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: [Fedora-xen] ANNOUNCE: virt-what 1.0 - a shell script to detect if you are running in a virtual machine
On Sat, Aug 30, 2008 at 04:21:31PM -0400, Steve Thompson wrote: > On Wed, 27 Aug 2008, Richard W.M. Jones wrote: > >> I'm pleased to announce the first release of 'virt-what', which is a >> simple shell script that detects if you are running inside a virtual >> machine, and prints some "facts" about that virtual machine. This is >> a frequently requested feature. >> [...] > > On dom0 running a xen kernel (CentOS 5.2), I get: > > xen > xen-dom0 > > whether or not xend is started. > On PV guests, I get the same output (they have /proc/xen/privcmd > too). On HVM guests, I get no output. Oh dear, that's a bug. Which version of xen are you running? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v and linux software raid.
On Fri, Sep 19, 2008 at 07:23:22PM -0400, Brandon Perkins wrote: > I was wondering if there is any progress on getting linux software raid > support. I'm not really qualified to help with patches, but I'd be more > than happy to test any patches to get this functionality in. It appears > I have a similar setup where I have three physical drives, three > identical partitions in a software RAID-1 (/boot), three identical > partitions for swap, and three identical partitions in a software RAID-5 > (/). And of course it bails out because it doesn't understand the > software raid type. Sorry I wasn't concentrating very hard on this list for the past couple of weeks. virt-p2v doesn't understand RAID devices at all. There's no real limitation here, it's just that you're the first person who has asked about it. Can you open a bug report, and also send the virt-p2v.log file from your attempted installation. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: [libvirt] input on F10 virtualization release notes
On Tue, Oct 07, 2008 at 09:55:49AM -0700, Dale Bewley wrote: > [1] https://fedoraproject.org/wiki/Docs/Beats/Virtualization > [2] http://poelstra.fedorapeople.org/schedules/f-10/f-10-docs-tasks.html > [3] https://fedoraproject.org/wiki/DaleBewley#Virtualization_Release_Notes Certainly looks good to me -- thanks for taking the time to do this. You might want to mention virt-df in there (see my signature). Although it has been backported to F-9, it is "new" in Fedora 10 because it didn't exist when F-9 started out. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Packages in the path to getting a Windows binary of libvirt, built from Fedora
It seems like we should have the base MinGW (Windows cross-compiler) packages in Fedora 11 by the end of this week. This email is to document the additional packages we need to get approved, in order to get the cross-compiled libvirt and virt tools into (or buildable by) Fedora 11. If you want to help out, please start reviewing by following the Bugzilla links, and looking at the approved packaging guidelines at http://fedoraproject.org/wiki/Packaging/MinGW. ** For libvirt itself: mingw32-libgpg-error https://bugzilla.redhat.com/show_bug.cgi?id=467403 mingw32-libgcrypt https://bugzilla.redhat.com/show_bug.cgi?id=467410 mingw32-gnutls https://bugzilla.redhat.com/show_bug.cgi?id=467414 mingw32-gettext https://bugzilla.redhat.com/show_bug.cgi?id=467398 mingw32-libxml2 https://bugzilla.redhat.com/show_bug.cgi?id=467405 mingw32-portablexdr https://bugzilla.redhat.com/show_bug.cgi?id=467324 mingw32-readline https://bugzilla.redhat.com/show_bug.cgi?id=467399 mingw32-termcap https://bugzilla.redhat.com/show_bug.cgi?id=467329 OR a very brave person can try porting ncurses to Windows. mingw32-iconv https://bugzilla.redhat.com/show_bug.cgi?id=467325 mingw32-zlib https://bugzilla.redhat.com/show_bug.cgi?id=454416 mingw32-libvirt https://bugzilla.redhat.com/show_bug.cgi?id=467418 ** For the C based tools (gtk-vnc, virt-viewer, ovirt-viewer, vinagre): All of the above plus: mingw32-gtk2 https://bugzilla.redhat.com/show_bug.cgi?id=467420 mingw32-glib2 https://bugzilla.redhat.com/show_bug.cgi?id=467402 mingw32-cairo https://bugzilla.redhat.com/show_bug.cgi?id=467416 mingw32-jasper https://bugzilla.redhat.com/show_bug.cgi?id=467408 mingw32-libpng https://bugzilla.redhat.com/show_bug.cgi?id=467397 mingw32-libjpeg https://bugzilla.redhat.com/show_bug.cgi?id=467401 mingw32-libtiff (?) Optional dependency for GTK2, but not yet packaged. mingw32-pango https://bugzilla.redhat.com/show_bug.cgi?id=467419 mingw32-atk https://bugzilla.redhat.com/show_bug.cgi?id=467409 mingw32-pixman https://bugzilla.redhat.com/show_bug.cgi?id=467376 mingw32-freetype https://bugzilla.redhat.com/show_bug.cgi?id=467396 mingw32-fontconfig https://bugzilla.redhat.com/show_bug.cgi?id=467413 mingw32-libidn No Bugzilla Review Request yet, see the mercurial repository. http://hg.et.redhat.com/misc/fedora-mingw--devel mingw32-openssl https://bugzilla.redhat.com/show_bug.cgi?id=467395 mingw32-libssh2 No Bugzilla Review Request yet, see the mercurial repository. http://hg.et.redhat.com/misc/fedora-mingw--devel mingw32-gtk-vnc https://bugzilla.redhat.com/show_bug.cgi?id=467421 mingw32-curl No Bugzilla Review Request yet, see the mercurial repository. http://hg.et.redhat.com/misc/fedora-mingw--devel ** For the Python based tools (virt-install, virt-manager etc), we're hoping to go straight to Python 3 on the basis that it will be easier to contribute patches upstream, and it seems the build system for Python 3 will be a bit saner than for Python 2.x. You can help by making sure that all Python software is "Python 3 clean". If you have python 2.6, then just add the '-3' flag to the command line in order to warn about features which are deprecated and will be removed in Python 3. ** For the OCaml based tools (virt-df, virt-top): mingw32-ocaml mingw32-ocaml-calendar mingw32-ocaml-csv mingw32-ocaml-curses mingw32-ocaml-extlib mingw32-ocaml-findlib mingw32-ocaml-lablgl mingw32-ocaml-lablgtk mingw32-ocaml-libvirt mingw32-ocaml-xml-light (None of these are in Bugzilla yet, and for good reason because I may just do them as subpackages of the OCaml packages already in Fedora). ** I haven't had any particular requests for Ruby tools yet. OVirt itself is a standalone appliance and it doesn't need porting to Windows. ovirt-viewer is a C application and is being written concurrently on Linux and Windows anyway. I'm not sure if there are other standalone bits of ovirt which would make sense being ported to Windows. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: New Fedora virtualization list: fedora-virt
On Fri, Jan 09, 2009 at 02:43:42PM -0500, Michael DeHaan wrote: > fedora-v...@redhat.com -- the new list [...] > et-mgmt-tools@redhat.com -- virt-manager, virt-install, virsh, and > related tools, also appliance build tools (thincrust) that target virt I think we should fold et-mgmt-tools into fedora-virt too. The list has < 10 messages / day, and has a confusing name that superficially has nothing to do with virtualization unless you happen to know the history behind some Red Hat internal department. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v error
On Sat, Dec 13, 2008 at 04:51:26PM -0500, Mark juszczec wrote: > I tried and it failed. Message like: > > shwithstatus: mount -o ro '/dev/sda1' /mnt/root > mount: unknown filesystem type 'ntfs' > partition detection: /dev/sda1 is Unknown > > are all over virt-p2v.log Sorry, I wasn't really paying attention to this list. See this bug: https://bugzilla.redhat.com/show_bug.cgi?id=454493 Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 68 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v doesnt find cciss devices
On Fri, Apr 03, 2009 at 12:30:04PM +0200, Niels Happel wrote: > Hi, > > it looks like virt-p2v is not able to find /dev/cciss/c0d* as devices for > hard- > drives and only looks for devices residing directly at /dev/ - did somebody > else had the same experience while having HP hardware raid controllers ? Yes, this is a bug which I am just looking at today. https://bugzilla.redhat.com/show_bug.cgi?id=451388 Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] guestfish recipes (examples)
I put up a set of examples using libguestfs / guestfish. These are small (< 10 line) shell scripts that show you how to do some interesting stuff to virtual machines: http://et.redhat.com/~rjones/libguestfs/recipes.html Fedora users' own contributions are welcome too! Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] ANNOUNCE: virt-inspector
Hi, I'm pleased to announce the first 'really working' version of virt-inspector. Source is in the libguestfs source repository: http://git.et.redhat.com/?p=libguestfs.git;a=summary Binaries are in Koji for Fedora 11 / Rawhide: http://koji.fedoraproject.org/koji/buildinfo?buildID=102697 (minimum version 1.0.27 required) This is a tool based around libguestfs which can inspect a virtual machine disk image and tell you some interesting things about what's inside it. Some of the things it can tell you: - What operating system(s) are installed, and what distros and versions. It currently covers RHEL releases, Fedora releases, Debian releases, and has limited support for Windows. - How disk partitions are expected to be mounted (eg. /dev/sda1 -> /boot) - What applications are installed. - What kernel(s) are installed. - What kernel modules are installed. It can produce output in plain text (as a report) or in XML (to feed into other programs). It uses libvirt (if available) to get details of inactive domains, or you can run it directly on disk images. Usage is simple: virt-inspector --xml domain > info.xml # xml report virt-inspector /path/to/disk.img | less # plain text report You can also use it as a wrapper for guestfish, so it mounts the guest disks in the correct places, eg: $ virt-inspector --fish /dev/Guests/CentOS5.img guestfish -a /dev/Guests/CentOS5.img -m /dev/VolGroup00/LogVol00:/ -m /dev/sda1:/boot $ eval `virt-inspector --fish /dev/Guests/CentOS5.img` Welcome to guestfish, the libguestfs filesystem interactive shell for editing virtual machine filesystems. Type: 'help' for help with commands 'quit' to quit the shell > mounts /dev/mapper/VolGroup00-LogVol00 /dev/sda1 > ll /boot/ total 12151 drwxr-xr-x 4 root root1024 May 11 18:16 . drwxr-xr-x 22 root root4096 May 19 05:06 .. -rw-r--r-- 1 root root 931546 May 7 11:05 System.map-2.6.18-128.1.10.el5 -rw-r--r-- 1 root root 931457 Jan 21 11:10 System.map-2.6.18-128.el5 -rw-r--r-- 1 root root 67942 May 7 11:05 config-2.6.18-128.1.10.el5 -rw-r--r-- 1 root root 67937 Jan 21 11:10 config-2.6.18-128.el5 [etc] To do: - Lots of testing, particularly with different guests. - Answer higher-level questions, eg. "what network drivers will this guest use?" "does this guest need a Xen hypervisor?" - Generate a libvirt XML config file (partly overlaps the functionality of new 'virsh import|export*' functions: http://www.redhat.com/archives/libvir-list/2009-April/msg00401.html ) Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] ANNOUNCE: libguestfs 1.0.41 released
[This is the only time I'll send this announcement to qemu-devel] I'm pleased to announce the release of a new stable version of libguestfs, the library for accessing and modifying virtual machine disk images. Based on around qemu and Linux kernel code, this can be used as a library or from scripts to make batch configuration changes to guests, view and edit config files inside guests, and much more. http://et.redhat.com/~rjones/libguestfs/ Source: http://et.redhat.com/~rjones/libguestfs/files/libguestfs-1.0.41.tar.gz Fedora 11+ packages: (Available soon in F11 updates-testing or directly from Koji: http://koji.fedoraproject.org/koji/buildinfo?buildID=104824) RHEL/CentOS 5 packages: (Being uploaded to EPEL now, available soon) Debian packages: http://www.annexia.org/tmp/debian/ Since the last announcement, many bugs have been fixed and features added. The main highlights are: - squashfs and cramfs support - better support for read-only access to drives - many problems with string handling in different language bindings have been fixed - internationalization support - ext4 support improved on RHEL 5 - improved support for running commands in the guest - support for skipping tests - lvresize and ext2/3 resize support - pvremove, vgremove, lvremove commands - sleep command - IRC channel #libguestfs on FreeNode Bugs fixed: 501761 - libguestfs requires qemu, not qemu-system-x86 or qemu-system-ppc 501878 - guestfish built-in commands like 'alloc' and 'help' don't autocomplete 501883 - javadoc messed up in libguestfs java documentation 501885 - Doesn't detect missing Java, --with-java-home=no should not be needed 501892 - OptString parameters not handled properly in bindings 502309 - libguestfs build failure - tests occasionally fail with 'ranlib: './libmlguestfs.a': No such file' 502533 - Polish translation of libguestfs 503133 - "mkdir-p" should not throw errors on preexisting directories 503135 - cramfs and squashfs modules should be available in libguestfs appliances 503169 - libguestfs /dev is too sparse for kernel installation/upgrade Thanks to Charles Duffy for a number of patches and suggestions. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] Re: [fedora-virt] RFC: libosinfo: Library for virt OS/distro metadata 3
On Sun, Jun 14, 2009 at 06:50:02PM -0400, Cole Robinson wrote: > The public API looks like: > > /** > * Values stored in the OS dictionary > */ > enum _os_value_type { > OS_VALUE_NAME = 1, /** Human readable family/distro... name */ > OS_VALUE_MEDIA_INSTALL_URL, /** URL to an install tree */ > }; > typedef enum _os_value_type os_value_t; > > int os_init(); > voidos_close(); > > int os_find_families(char ***list); > int os_find_distros (const char *parent_id, char ***list); > int os_find_releases(const char *parent_id, char ***list); > int os_find_updates (const char *parent_id, char ***list); > > int os_lookup_value (os_value_t value_type, > const char *os_id, > char **value); There's a (little) overlap and a possible user in virt-inspector. In virt-inspector we do things the other way around - we look inside the guest for files like /etc/redhat-release and /etc/debian_version, and parse those to determine the OS distro and release (also we parse the registry to do the same for Windows). The code for Linux is here: http://git.et.redhat.com/?p=libguestfs.git;a=blob;f=inspector/virt-inspector.pl;h=1d8a84b424eb73ceafee041f0e1d76d371506aa7;hb=HEAD#l410 It would be nice for virt-inspector to output ID strings which are compatible with osinfo. 'Course we'll need Perl bindings. Did you see this? http://rwmj.wordpress.com/2009/04/20/generating-code/ Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] F12 feature: Host information
I posted this page on the wiki last week, which is a feature we intend to implement for Fedora 12: http://fedoraproject.org/wiki/Features/Hostinfo Any comments? Rich. "Allow a virtual machine to see information and statistics from the host operating system, under narrow and strictly controlled conditions and only at the discretion of the host administrator. Detailed Description Allow a virtual machine to look at host information (such as number of physical, not just virtual CPUs), and statistics like the load on the host. Users have asked for this primarily as a diagnostic tool -- for example, poor performance of a virtual machine might be caused by excessive load on the host. Normally we try to isolate virtual machines from accessing any such details from the host, and there are very good reasons for that too, such as security of the host, commercial confidentiality, and the privacy of other virtual machines running on the host. As a result, at the moment there is no mechanism for accessing host information. We propose to add a feature which allows the host administrator, at their discretion, and only of limited data to limited virtual machines, to export host information and statistics to virtual machines. Administrators will need to: * explicitly enable this feature, * select the virtual machines and/or data they wish to be seen in guests, * select the frequency that guests can ask for data. The mechanism will be a daemon running on the host which collects the statistics (see below for what). The information will be exported to guests over a spare (virtual) serial port or through the qemu/kvm vmchannel feature, whichever is available. Guests will request information by sending a plain text command to the serial port, and will receive information in the form of a simple, plain text message. No special drivers or software are required by the guest. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] New mailing list for libguestfs/guestfish/virt-inspector discussion/development
http://www.redhat.com/mailman/listinfo/libguestfs I'll be updating the website with the new details shortly. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-df compilation under Debian GNU/Linux
On Thu, Jul 09, 2009 at 12:41:20AM +0200, Laurent Léonard wrote: > Hi, > > I tried to compile virt-df under Debian GNU/Linux but I got the following > error message: > [...] > ocamlfind ocamlc -dtypes -g -syntax bitstring.syntax -package > unix,extlib,bitstring.syntax -c diskimage_ext2.mli > ocamlfind ocamlc -dtypes -g -syntax bitstring.syntax -package > unix,extlib,bitstring.syntax -c diskimage_ext2.ml > File "diskimage_ext2.ml", line 228, characters 6-7: > Parse error: ":" expected after [patt] (in [patt_field]) > File "diskimage_ext2.ml", line 1, characters 0-1: > Error: Preprocessor error > [...] > > I tried with Ocaml 3.11.0 (from Squeeze) and 3.11.1 (from Sid), any idea > what's wrong ? Yes, there's a regression in my camlp4 code. There's a new version of virt-df coming shortly, so keep an eye on the website. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-df compilation under Debian GNU/Linux
I just pushed the new version of virt-df to the libguestfs git repository. home page: http://et.redhat.com/~rjones/virt-df/ libguestfs: http://libguestfs.org/ git repo:http://git.et.redhat.com/?p=libguestfs.git;a=summary # virt-df -h FilesystemSize Used Available Use% Ubuntu904x64:/dev/sda19.4G 2.1G 6.8G 27.7% Debian5x64:/dev/debian5x64/home 3.4G 761.9M 2.5G 27.0% Debian5x64:/dev/debian5x64/root 321.5M 111.1M 193.8M 39.7% Debian5x64:/dev/debian5x64/tmp 302.1M 10.0M 276.5M 8.5% Debian5x64:/dev/debian5x64/usr3.4G 1.1G 2.1G 38.3% Debian5x64:/dev/debian5x64/var1.7G 612.6M1001.9M 41.1% Debian5x64:/dev/sda1227.9M 18.6M 197.1M 13.5% F10x32:/dev/VolGroup00/LogVol00 8.8G 3.1G 5.2G 40.3% F10x32:/dev/sda1189.9M 20.2M 159.9M 15.8% CentOS5x32:/dev/VolGroup00/LogVol00 8.6G 3.9G 4.2G 50.6% CentOS5x32:/dev/sda1 98.7M 23.5M 70.1M 29.0% Win2003x32:/dev/sda1 20.0G 2.1G 17.9G 10.4% Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] VMware/qemu-kvm-?? migration
On Tue, Jul 14, 2009 at 05:39:45PM -0400, Gene Czarcinski wrote: > Is this the mailing list to ask about issues/problems migrating VMware guests > to run on qemu-kvm, etc.? > > If not, please point me to an appropriate mailing list? Yes this is good. I've actually been playing with manual migration of guests from VMWare recently. This is what I do: (1) Export the guest in OVF format (File -> Export -> Export OVF Template) (2) Convert the *.vmdk file (disk image) into a raw file: qemu-img convert -f vmdk -O raw *.vmdk image.raw (3) Boot the raw image using libvirt. I create a libvirt configuration by hand, but IIRC there is now a tool which does this automatically. Some problems: VMWare tools should be uninstalled from the original guest. Virtio drivers should be installed in the new guest (this is very complex to do for existing guests, which is why we are writing the virt-v2v tool to automate it). The virt-v2v tool will be ready in a few weeks. You can follow progress on it here: http://libguestfs.org Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 75 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v problems
On Tue, Jul 14, 2009 at 11:19:44AM -0300, Ribeiro Emerson Gomes wrote: > [r...@blpc6]# virsh define p2v-emerson3_br_scania_com-200907131614.conf > libvir: error : configuration file syntax error: expecting a name This error message shouldn't happen. What is in the configuration file? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v problems
On Wed, Jul 15, 2009 at 08:49:23AM -0300, Ribeiro Emerson Gomes wrote: > Here goes the conf file: > > [r...@blpc6]# cat p2v-emerson3_br_scania_com-200907150846.conf > > > > emerson3_br_scania_com > 3ffcff461be5cef1ff45ffe1bb71b17a > 2095104 > 2095104 > 1 > > hvm > /usr/lib/xen/boot/hvmloader > > > > > > > > > > /usr/lib64/xen/bin/qemu-dm > > > > > >file="/stage/blvd11/p2v-emerson3_br_scania_com-200907150846-hda.img"/> > > > > This file looks fine to me, but the "expecting a name" error is still worrying. Unfortunately libvirt doesn't give any context for the error, so the only way to diagnose it will be to remove sections of the XML until it works, thus narrowing it down to some particular place. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 75 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] VMware/qemu-kvm-?? migration
On Wed, Jul 15, 2009 at 08:53:32AM -0400, Gene Czarcinski wrote: > 4. Under qemu-kvm I created a simple Fedora guest definition. I > then copied and used a VMware F9 guest with a vmdk file which is > HWversion=4 and was created under VMware on a SCSI interface disk. > To make matters even worse, this VMware guest uses the "root" (/) > partition on a LVM logical volume. Boot the guest up on qemu-kvm > and it immediately crashes because it cannot find "root" or see the > logical volumes. I'm not really familiar with HWversion in VMWare. We just support whatever qemu / qemu-img supports, so I suggest trying to do a conversion using qemu-img (see my previous posting). Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] Virtio support in Windows
On Wed, Jul 15, 2009 at 12:50:43PM +0200, Emre Erenoglu wrote: > On Wed, Jul 15, 2009 at 3:02 AM, Andrew Cathrow wrote: > > > We can attach a virtual floppy during install containing the virtio block > > driver to be used by the win2k3/xp/2k8/vista installers. > > The user would have to select the driver from a list when they get to the > > storage configuration screen in the installer but this works today. > > > > Are virtio block devices released for Windows? Not yet, but shortly. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] VMware/qemu-kvm-?? migration
On Thu, Jul 16, 2009 at 03:16:45PM +0100, Richard W.M. Jones wrote: > On Wed, Jul 15, 2009 at 08:53:32AM -0400, Gene Czarcinski wrote: > > 4. Under qemu-kvm I created a simple Fedora guest definition. I > > then copied and used a VMware F9 guest with a vmdk file which is > > HWversion=4 and was created under VMware on a SCSI interface disk. > > To make matters even worse, this VMware guest uses the "root" (/) > > partition on a LVM logical volume. Boot the guest up on qemu-kvm > > and it immediately crashes because it cannot find "root" or see the > > logical volumes. > > I'm not really familiar with HWversion in VMWare. We just support > whatever qemu / qemu-img supports, so I suggest trying to do a > conversion using qemu-img (see my previous posting). Another suggestion (from Matt Booth who's not subscribed to this list): Is the right SCSI driver available in the initrd? You should be able to find out what driver(s) are in the guest's initrd using virt-inspector. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools