]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
src/xenconfig: wrap common formatting code
authorKiarie Kahurani <davidkiarie4@gmail.com>
Mon, 11 Aug 2014 21:21:35 +0000 (00:21 +0300)
committerJim Fehlig <jfehlig@suse.com>
Tue, 19 Aug 2014 02:37:07 +0000 (20:37 -0600)
Wrap formatting code common to xm and xl in xenFormatConfigCommon
and export it.

Signed-off-by: Kiarie Kahurani <davidkiarie4@gmail.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
35 files changed:
src/xenconfig/xen_xm.c
src/xenconfig/xen_xm.h
tests/xmconfigdata/test-escape-paths.cfg
tests/xmconfigdata/test-fullvirt-force-hpet.cfg
tests/xmconfigdata/test-fullvirt-force-nohpet.cfg
tests/xmconfigdata/test-fullvirt-localtime.cfg
tests/xmconfigdata/test-fullvirt-net-ioemu.cfg
tests/xmconfigdata/test-fullvirt-net-netfront.cfg
tests/xmconfigdata/test-fullvirt-new-cdrom.cfg
tests/xmconfigdata/test-fullvirt-old-cdrom.cfg
tests/xmconfigdata/test-fullvirt-parallel-tcp.cfg
tests/xmconfigdata/test-fullvirt-serial-dev-2-ports.cfg
tests/xmconfigdata/test-fullvirt-serial-dev-2nd-port.cfg
tests/xmconfigdata/test-fullvirt-serial-file.cfg
tests/xmconfigdata/test-fullvirt-serial-null.cfg
tests/xmconfigdata/test-fullvirt-serial-pipe.cfg
tests/xmconfigdata/test-fullvirt-serial-pty.cfg
tests/xmconfigdata/test-fullvirt-serial-stdio.cfg
tests/xmconfigdata/test-fullvirt-serial-tcp-telnet.cfg
tests/xmconfigdata/test-fullvirt-serial-tcp.cfg
tests/xmconfigdata/test-fullvirt-serial-udp.cfg
tests/xmconfigdata/test-fullvirt-serial-unix.cfg
tests/xmconfigdata/test-fullvirt-sound.cfg
tests/xmconfigdata/test-fullvirt-usbmouse.cfg
tests/xmconfigdata/test-fullvirt-usbtablet.cfg
tests/xmconfigdata/test-fullvirt-utc.cfg
tests/xmconfigdata/test-no-source-cdrom.cfg
tests/xmconfigdata/test-paravirt-net-e1000.cfg
tests/xmconfigdata/test-paravirt-net-vifname.cfg
tests/xmconfigdata/test-paravirt-new-pvfb-vncdisplay.cfg
tests/xmconfigdata/test-paravirt-new-pvfb.cfg
tests/xmconfigdata/test-paravirt-old-pvfb-vncdisplay.cfg
tests/xmconfigdata/test-paravirt-old-pvfb.cfg
tests/xmconfigdata/test-paravirt-vcpu.cfg
tests/xmconfigdata/test-pci-devs.cfg

index e15b77a34423f7b6d3f3ad475fa8fcffff9653fa..0402213c1f8bb62c99b2e5b5acbb3b0c8bff0fa1 100644 (file)
@@ -2359,66 +2359,79 @@ xenFormatXMVif(virConfPtr conf,
 }
 
 
-/* Computing the vcpu_avail bitmask works because MAX_VIRT_CPUS is
-   either 32, or 64 on a platform where long is big enough.  */
-verify(MAX_VIRT_CPUS <= sizeof(1UL) * CHAR_BIT);
-
-virConfPtr
-xenFormatXM(virConnectPtr conn,
-            virDomainDefPtr def,
-            int xendConfigVersion)
+int
+xenFormatConfigCommon(virConfPtr conf,
+                      virDomainDefPtr def,
+                      virConnectPtr conn,
+                      int xendConfigVersion)
 {
-    virConfPtr conf = NULL;
-
-    if (!(conf = virConfNew()))
-        goto cleanup;
-
     if (xenFormatXMGeneralMeta(conf, def) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMMem(conf, def) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMCPUAllocation(conf, def) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMOS(conf, def) < 0)
-         goto cleanup;
+        return -1;
 
     if (xenFormatXMCPUFeatures(conf, def, xendConfigVersion) < 0)
-        goto cleanup;
+        return -1;;
 
     if (xenFormatXMCDROM(conf, def, xendConfigVersion) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMTimeOffset(conf, def, xendConfigVersion) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMEventActions(conf, def) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMEmulator(conf, def) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMInputDevs(conf, def) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMVfb(conf, def, xendConfigVersion) < 0)
-        goto cleanup;
-
-    if (xenFormatXMDisks(conf, def, xendConfigVersion) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMVif(conf, conn, def, xendConfigVersion) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMPCI(conf, def) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMCharDev(conf, def) < 0)
-        goto cleanup;
+        return -1;
 
     if (xenFormatXMSound(conf, def) < 0)
+        return -1;
+
+    return 0;
+}
+
+
+/* Computing the vcpu_avail bitmask works because MAX_VIRT_CPUS is
+   either 32, or 64 on a platform where long is big enough.  */
+verify(MAX_VIRT_CPUS <= sizeof(1UL) * CHAR_BIT);
+
+virConfPtr
+xenFormatXM(virConnectPtr conn,
+            virDomainDefPtr def,
+            int xendConfigVersion)
+{
+    virConfPtr conf = NULL;
+
+    if (!(conf = virConfNew()))
+        goto cleanup;
+
+    if (xenFormatConfigCommon(conf, def, conn, xendConfigVersion) < 0)
+        goto cleanup;
+
+    if (xenFormatXMDisks(conf, def, xendConfigVersion) < 0)
         goto cleanup;
 
     return conf;
index 29617fc681e095226180e4103cdbbda5641660fd..9f822e436809876da5e045263532bd1ebcdb91a5 100644 (file)
@@ -41,4 +41,9 @@ int xenParseConfigCommon(virConfPtr conf,
                          virCapsPtr caps,
                          int xendConfigVersion);
 
+int xenFormatConfigCommon(virConfPtr conf,
+                          virDomainDefPtr def,
+                          virConnectPtr conn,
+                          int xendConfigVersion);
+
 #endif /* __VIR_XEN_XM_H__ */
index 13be2a0e26d62f01453a6a9bf7e11e3440a28b63..101750c24aa2b4feb7b6c5c9430c446bdc548286 100644 (file)
@@ -19,8 +19,8 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", """phy:/dev/HostVG/XenGuest'",hdb,w""", "file:/root/boot.iso&test,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
 soundhw = "sb16,es1370"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", """phy:/dev/HostVG/XenGuest'",hdb,w""", "file:/root/boot.iso&test,hdc:cdrom,r" ]
index 178aecd90574bcc92c52fb6304267b4a33437718..97a98278f9366d9232591b399bb332e0c6e64c7d 100644 (file)
@@ -20,7 +20,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 44f5ac793a59bada7b503bc3c1042a377e6e9976..bcd396a44864ae0d9d9bdedfc8882052cc33c0a3 100644 (file)
@@ -20,7 +20,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index d4eb4a94b692d6b954743c6f6e718259d170a985..561c7c63f0880adef6f8025060aa437277a41602 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 922450b95abaf9cc5a157e91dd4cfda18d14190f..bd7ab8f3378b0c0b7cbdaf9818d4d1dff0689a74 100644 (file)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index d15f1f5ac0ab0fa4195a65d26ab01abc297c8294..aa81ce766ad5a2e87ce75bf9cbc5dbafd404cba7 100644 (file)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,type=netfront" ]
 parallel = "none"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 922450b95abaf9cc5a157e91dd4cfda18d14190f..bd7ab8f3378b0c0b7cbdaf9818d4d1dff0689a74 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 5d2ab815f0b7a74715a37bd292648ea002f232d5..1e7db00ca482af1b21071dc40fe630ff72c12463 100755 (executable)
@@ -20,7 +20,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,ioemu:hda,w" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr0,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,ioemu:hda,w" ]
index 4588f1fa97f0f637fa9335be1ec59db0ea458186..7c6ffc9cefd6aea2ff1fb76160b6bffdd4904e01 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "tcp:127.0.0.1:7777"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 86e7998809552982a20100553e576a7be150c0fb..13a368b7e984f78ec13d34cd810a79a1def545c7 100644 (file)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = [ "/dev/ttyS0", "/dev/ttyS1" ]
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 287e08a3d32e3479066ae0c9e4e2edbecb684c68..dcd5bd6ca8ff34b048a75c2664a50ab7a3641e80 100644 (file)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = [ "none", "/dev/ttyS1" ]
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 08accf6a8705d6842b264654417fc378e86b9ad0..db60bb9555adb766b79c50e89421d91b5e1a72bc 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "file:/tmp/serial.log"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index f16c9c23802f08d43d3b6d352f54425c510a2e4e..b3e7c6f71726f0ac1ebf2c69cc5c25e58ba4483e 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "null"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 1e1fa54806cd0735823eaec64cde69919c7ab6f4..fbc48bc61c73f573e4613d93b559ce8955fc26f6 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "pipe:/tmp/serial.pipe"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index ea4d4a58da7262d0309b21963c5e4d72f50c5b52..b9e87a178a78cf1b6075206da51a48a2d35dfc8f 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "pty"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index a4e30c5801e42ac1809e1f88c805d0fbeede97a1..6a6442cd0cd1b2d1074dafb24d0ae13448f9fa00 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "stdio"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 2164738f60c744626c4ad3b1ef06f99fd6f38cd3..b94a1c546b16503c46d9ed1e8b5d3d2bba844648 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "telnet:127.0.0.1:9999,server,nowait"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 7f17781a7ec6a299e2c2cebe20388274759f15db..d73839d23d61403dcd8322cba28cb1506c88902c 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "tcp:127.0.0.1:7777"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 1af3c7b3140f4591ba1e1414b59c57e891d8a8f5..55d0034f191e00dbda254191f21610660bb819e8 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "udp:127.0.0.1:9999@0.0.0.0:99998"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 309c89eb70ef7c7c8cf6abfd34efa5aa11bf93f0..d6eeb0cf3e21075f4572ea954b65a08757fe9dc1 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "unix:/tmp/serial.sock,server,nowait"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index c4f54fef858aacad11e05df6151edec53a545d40..cd7cb1e448891c59a073d340e6ecfa44f69dccea 100644 (file)
@@ -19,8 +19,8 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
 soundhw = "sb16,es1370"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 8a66035ac0c6fa025e81ea90627e02c9299ceded..b24d7a4e3383507eacf48b984e3cde9da30d7e22 100755 (executable)
@@ -21,7 +21,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 24c159e80df69d6577ab46b1192999c7bde5a010..189cd157d010ffaf1fa1e73d36c088e6b7deb338 100755 (executable)
@@ -21,7 +21,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 922450b95abaf9cc5a157e91dd4cfda18d14190f..bd7ab8f3378b0c0b7cbdaf9818d4d1dff0689a74 100755 (executable)
@@ -19,7 +19,7 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:66:92:9c,bridge=xenbr1,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "none"
+disk = [ "phy:/dev/HostVG/XenGuest2,hda,w", "file:/root/boot.iso,hdc:cdrom,r" ]
index 7b258e50e0c3b085d862a5a80d15807488fca504..c77801592e435edaa576c5d18cbe88f167b74400 100644 (file)
@@ -17,7 +17,7 @@ device_model = "/usr/lib/xen/bin/qemu-dm"
 sdl = 0
 vnc = 1
 vncunused = 1
-disk = [ "phy:/dev/sda8,hda,w", ",hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:0a:7b:39,bridge=xenbr0,script=vif-bridge,model=e1000,type=ioemu" ]
 parallel = "none"
 serial = "pty"
+disk = [ "phy:/dev/sda8,hda,w", ",hdc:cdrom,r" ]
index bcc16fb3ff3dfa36f80319aee2bfcf95cc0c7e4a..ac43507fe50bc43dd3593659812a29df0ba23e0b 100755 (executable)
@@ -9,5 +9,5 @@ on_poweroff = "destroy"
 on_reboot = "restart"
 on_crash = "restart"
 vfb = [ "type=vnc,vncunused=1,vnclisten=127.0.0.1,vncpasswd=123poi" ]
-disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
 vif = [ "mac=00:16:3e:66:94:9c,bridge=br0,script=vif-bridge,model=e1000" ]
+disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
index 98ce75be288117756dd510952e5af4b6b9343bdd..c66721cf1930cb403291b56f2724b7dc2c5ee25f 100644 (file)
@@ -9,5 +9,5 @@ on_poweroff = "destroy"
 on_reboot = "restart"
 on_crash = "restart"
 vfb = [ "type=vnc,vncunused=1,vnclisten=127.0.0.1,vncpasswd=123poi" ]
-disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
 vif = [ "mac=00:16:3e:66:94:9c,bridge=br0,script=vif-bridge,model=e1000,vifname=net0" ]
+disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
index 633552c8b1dbc1da110ebc678eb8f39ab60c80c8..de1c912ed2fec78119b3b968bf67cd52461a2762 100644 (file)
@@ -9,5 +9,5 @@ on_poweroff = "destroy"
 on_reboot = "restart"
 on_crash = "restart"
 vfb = [ "type=vnc,vncunused=0,vncdisplay=25,vnclisten=127.0.0.1,vncpasswd=123poi" ]
-disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
 vif = [ "mac=00:16:3e:66:94:9c,bridge=br0,script=vif-bridge" ]
+disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
index 8b56e19e42b4fe73996a8ec2573ad106bac9eace..df91e89b7261eed332bada17dc18f5e7a3b42bb3 100755 (executable)
@@ -9,5 +9,5 @@ on_poweroff = "destroy"
 on_reboot = "restart"
 on_crash = "restart"
 vfb = [ "type=vnc,vncunused=1,vnclisten=127.0.0.1,vncpasswd=123poi" ]
-disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
 vif = [ "mac=00:16:3e:66:94:9c,bridge=br0,script=vif-bridge" ]
+disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
index eea3365f18adf8e21cada893413e0305485111ac..6f9a1aa9a3128e6b05a46920ab8c13e4529745c3 100644 (file)
@@ -14,5 +14,5 @@ vncunused = 0
 vncdisplay = 25
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
 vif = [ "mac=00:16:3e:66:94:9c,bridge=br0,script=vif-bridge" ]
+disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
index ed9c771efc2559938d6a4f3425f0f91c33e150a3..7daad8c67febc5105ed61cc5f0d037fa3b0c4e49 100755 (executable)
@@ -13,5 +13,5 @@ vnc = 1
 vncunused = 1
 vnclisten = "127.0.0.1"
 vncpasswd = "123poi"
-disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
 vif = [ "mac=00:16:3e:66:94:9c,bridge=br0,script=vif-bridge" ]
+disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
index 2ac0f797617600c7bf01eebbd4f494b44f843bb1..fb89bf976f579160ea068ad239c1d23a42677749 100644 (file)
@@ -9,5 +9,5 @@ localtime = 0
 on_poweroff = "destroy"
 on_reboot = "restart"
 on_crash = "restart"
-disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
 vif = [ "mac=00:16:3e:66:94:9c,bridge=br0,script=vif-bridge" ]
+disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
index 9f9b2f40a1521d0e5d091f71916deee5510b7901..d70066f5e46e0c69e44c526047ca91c20f0ad6a4 100644 (file)
@@ -17,8 +17,8 @@ device_model = "/usr/lib/xen/bin/qemu-dm"
 sdl = 0
 vnc = 1
 vncunused = 1
-disk = [ "phy:/dev/sda8,hda,w", ",hdc:cdrom,r" ]
 vif = [ "mac=00:16:3e:0a:7b:39,bridge=xenbr0,script=vif-bridge,model=e1000,type=ioemu" ]
 pci = [ "0001:0c:1b.2", "0000:01:13.0" ]
 parallel = "none"
 serial = "pty"
+disk = [ "phy:/dev/sda8,hda,w", ",hdc:cdrom,r" ]