changeset 18:12c32e47724d

change fedora 19 xml
author taiki
date Mon, 09 Dec 2013 00:31:41 -1000
parents fb9f3738a8e6
children 7b4cdb0c9a99
files TODO ie-virsh.c
diffstat 2 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/TODO	Tue Nov 19 00:59:48 2013 -1000
+++ b/TODO	Mon Dec 09 00:31:41 2013 -1000
@@ -7,3 +7,5 @@
 
 *list box for user understand users box 
 *add box for user understand users box 
+
+should find that can't connect machine to ssh
--- a/ie-virsh.c	Tue Nov 19 00:59:48 2013 -1000
+++ b/ie-virsh.c	Mon Dec 09 00:31:41 2013 -1000
@@ -24,16 +24,16 @@
  
  /* Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License */
 
-#define command "/usr/bin/virsh"
-#define list_command "/usr/bin/virsh list --all"
+/* #define command "/usr/bin/virsh" */
+#define command "/usr/local/bin/virsh" 
+/* #define list_command "/usr/bin/virsh list --all" */
+#define list_command "/usr/local/bin/virsh list --all"
 #define start_command "start"
 #define stop_command "destroy"
 #define define_command "define"
 #define undefine_command "undefine"
 #define dumpxml_command "dumpxml"
 
-#define vagrant_start_cmd "vagrant start"
-
 static char bad_name[] = "Bad vmname. Try students/e11/e115711/01 or teachers/kono/02\n";
 
 #define VMNAME_MAX (512)
@@ -154,7 +154,8 @@
            exit(0);
         }
         char exec[1024];
-        strncpy(exec, "/usr/local/bin/newvm.py -c /etc/libvirt/qemu/fedora16.xml -n ",900);
+        // strncpy(exec, "/usr/local/bin/newvm.py -c /etc/libvirt/qemu/fedora16.xml -n ",900);
+        strncpy(exec, "/usr/local/bin/newvm.py -c /etc/libvirt/qemu/fedora19.xml -n ",900);
         strncat(exec, argv[2],1000);
         fprintf(stdout, "excuting %s\n",exec );
         system(exec);