[Xen-devel] [OSSTEST Nested PATCH v11 5/7] Add new script to customize nested test configuration

2015-05-26 Thread longtao.pang
-off-by: longtao.pang longtaox.p...@intel.com Acked-by: Ian Campbell ian.campb...@citrix.com --- ts-nested-setup | 75 +++ 1 file changed, 75 insertions(+) create mode 100755 ts-nested-setup diff --git a/ts-nested-setup b/ts-nested-setup new file

[Xen-devel] [OSSTEST Nested PATCH v11 7/7] Add test job for nest test case

2015-05-26 Thread longtao.pang
1. This patch adds creation of the nested test job, when job creation procedure is invoked. 2. Set nested L1's vif model, nestedhvm feature, set specific disk size and memory size for nested test by make-flight. Signed-off-by: longtao.pang longtaox.p...@intel.com Acked-by: Ian Campbell ian.campb

[Xen-devel] [OSSTEST Nested PATCH v11 2/7] Parsing grub which has 'submenu' primitive

2015-05-26 Thread longtao.pang
format Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v11: 1. Ian corrects our previous implementation of submenu handling. When selecting submenu's menuentry, it shall be the 2-level format of 'MN', M is the 'submenu' entry number in first level, N is the sub-menuentry

[Xen-devel] [OSSTEST Nested PATCH v11 0/7] Introduction of netsted HVM test job

2015-05-26 Thread longtao.pang
. Ian Campbell (1): grub: remove patch to disable submenu from 20_linux_xen overlay longtao.pang (6): Parsing grub which has 'submenu' primitive Changes to support '/boot' leading paths of kernel, xen, in grub Changes on test step of Debian hvm guest install

[Xen-devel] [OSSTEST Nested PATCH v11 3/7] Changes to support '/boot' leading paths of kernel, xen, in grub

2015-05-26 Thread longtao.pang
Support situations of grub that have vmlinuz and other things starting with path of '/boot' rather than '/'. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Osstest/Debian.pm |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest

[Xen-devel] [OSSTEST Nested PATCH v11 4/7] Changes on test step of Debian hvm guest install

2015-05-26 Thread longtao.pang
) to it; Since it acts as a nested hypervisor anyway. 3. Comment out CDROM entry in sources.list to make HTTP URL entry available for L1 hvm guest. 4. Enable nestedhvm feature in 'ExtraConfig' for nested job. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v11: 1. Since the size

[Xen-devel] [OSSTEST Nested PATCH v11 1/7] grub: remove patch to disable submenu from 20_linux_xen overlay

2015-05-26 Thread longtao.pang
setupboot_grub2 now supports submenus, so we can reduce our delta vs upstream a bit. I started by extracting 20_linux_xen from http://snapshot.debian.org/archive/debian/20130703T094657Z/pool/main/g/grub2/grub-common_1.99-27%2Bdeb7u2_amd64.deb and then applying the patch at

[Xen-devel] [OSSTEST Nested PATCH v10 2/9] Changes to support '/boot' leading paths of kernel, xen, in grub

2015-05-12 Thread longtao.pang
Support situations of grub that have vmlinuz and other things starting with path of '/boot' rather than '/'. Signed-off-by: longtao.pang longtaox.p...@intel.com Acked-by: Ian Campbell ian.campb...@citrix.com --- Osstest/Debian.pm |8 1 file changed, 4 insertions(+), 4 deletions

[Xen-devel] [OSSTEST Nested PATCH v10 9/9] Add test job for nest test case

2015-05-12 Thread longtao.pang
1. This patch adds creation of the nested test job, when job creation procedure is invoked. 2. Set nested L1's vif model, nestedhvm feature, set specific disk size and memory size for nested test by make-flight. Signed-off-by: longtao.pang longtaox.p...@intel.com Acked-by: Ian Campbell ian.campb

[Xen-devel] [OSSTEST Nested PATCH v10 0/9] Introduction of netsted HVM test job

2015-05-12 Thread longtao.pang
. longtao.pang (9): parsing grub which has 'submenu' primitive Changes to support '/boot' leading paths of kernel, xen, in grub Refactor installation of overlays for guest used Edit some APIs in TestSupport.pm for nested test Move the codes about

[Xen-devel] [OSSTEST Nested PATCH v10 4/9] Edit some APIs in TestSupport.pm for nested test

2015-05-12 Thread longtao.pang
1. If vif model is defined for guest, use it in guest's configuration 2. In L2 installation context, its host (L1) shall not have a static IP but stored in runvar in L1 installation before; use this stored runvar IP. Signed-off-by: longtao.pang longtaox.p...@intel.com Acked-by: Ian Campbell

[Xen-devel] [OSSTEST Nested PATCH v10 6/9] Changes on test step of Debian hvm guest install

2015-05-12 Thread longtao.pang
nestedhvm feature in 'ExtraConfig' for nested job. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v10: Based on Ian's v6_patch[04,05,06], use 'preseed_hook_command' to comment out CDROM entry in sources.list to make HTTP URL entry available for hvm guest. --- ts-debian-hvm

[Xen-devel] [OSSTEST Nested PATCH v10 3/9] Refactor installation of overlays

2015-05-12 Thread longtao.pang
and hence are therefore harmless. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Based on Ian Campbell's v6_patch [04,05,06], I create this patch to refactor installation of overlays for guest as well as host used. Link of Ian Campbell's patch: http://lists.xenproject.org/archives/html/xen-devel

[Xen-devel] [OSSTEST Nested PATCH v10 7/9] Add new script to customize nested test configuration

2015-05-12 Thread longtao.pang
-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v10: 1. Since Ian has fixed the bug of 'late_command' in his v6_patch, remove the code for editing 'sources.list' file in hvm guest. 2. Currently, reboot is not required after block attach 'lvdev' to L1; So, remove the related code. 3. Assert

[Xen-devel] [OSSTEST Nested PATCH v10 5/9] Move the code for setting memory size into prep()

2015-05-12 Thread longtao.pang
-by: longtao.pang longtaox.p...@intel.com Acked-by: Ian Campbell ian.campb...@citrix.com --- ts-debian-hvm-install | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index b37f0f9..d3413e1 100755 --- a/ts-debian-hvm

[Xen-devel] [OSSTEST Nested PATCH v10 8/9] Compose the main recipe of nested test job

2015-05-12 Thread longtao.pang
The ident and guestname are same of 'nestedl1' for L1 guest VM. Signed-off-by: longtao.pang longtaox.p...@intel.com Acked-by: Ian Campbell ian.campb...@citrix.com --- sg-run-job | 11 +++ 1 file changed, 11 insertions(+) diff --git a/sg-run-job b/sg-run-job index eae159d..b19f9f9

[Xen-devel] [OSSTEST Nested PATCH v10 1/9] Parsing grub which has 'submenu' primitive

2015-05-12 Thread longtao.pang
From a hvm kernel build from Linux stable Kernel tree, the auto generated grub2 menu will have 'submenu' primitive, upon the 'menuentry' items. Xen boot entries will be grouped into a submenu. This patch adds capability to support such grub formats. Signed-off-by: longtao.pang longtaox.p

[Xen-devel] [OSSTEST Nested PATCH v9 3/9] Refactor installation of overlays for guest used

2015-05-02 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com Based on Ian Campbell's v5_patch [04,05,06], I create this patch to refactor installation of overlays for guest used. Link of Ian Campbell's patch: http://lists.xenproject.org/archives/html/xen-devel/2015-04/msg01452.html http://lists.xenproject.org

[Xen-devel] [OSSTEST Nested PATCH v9 4/9] Edit some APIs in TestSupport.pm for nested test

2015-05-02 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com 1. If vif model is defined for guest, use it in guest's configuration 2. In L2 installation context, its host (L1) shall not have a static IP but stored in runvar in L1 installation before; use this stored runvar IP. Signed-off-by: longtao.pang

[Xen-devel] [OSSTEST Nested PATCH v9 8/9] Compose the main recipe of nested test job

2015-05-02 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com The ident and guestname are same of 'nestedl1' for L1 guest VM. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v9: 1. For L1, identical its ident and guestname as 'nestedl1'; And same for L2, 'nestedl2' is L2's name as well as its

[Xen-devel] [OSSTEST Nested PATCH v9 9/9] Add test job for nest test case

2015-05-02 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com 1. This patch adds creation of the nested test job, when job creation procedure is invoked. 2. Set nested L1's vif model, nestedhvm feature, set specific disk size and memory size for nested test by make-flight. Signed-off-by: longtao.pang longtaox.p

[Xen-devel] [OSSTEST Nested PATCH v9 0/9] Introduction of netsted HVM test job

2015-05-02 Thread longtao.pang
series has been tested on test machines of amd64 arch, Debian-7.2.0-amd64 as guests OS, with hvm domain0 of Linux kernel 3.18.5, in standalone mode. Also, we use linux-stable tree as domain0 kernel source. longtao.pang (9): parsing

[Xen-devel] [OSSTEST Nested PATCH v9 7/9] Add new script to customize nested test configuration

2015-05-02 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com 1. In this script, make some appropriate runvars which selecthost would recognise. 2. Prepare the configurations for installing L2 guest VM. 3. Create a lv disk in L0 and hot-attach it to L1, need to restart L1 to make the block disk to be recognized

[Xen-devel] [OSSTEST Nested PATCH v9 2/9] Changes to support '/boot' leading paths of kernel, xen, in grub

2015-05-02 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com Support situations of grub that have vmlinuz and other things starting with path of '/boot' rather than '/'. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Osstest/Debian.pm |8 1 file changed, 4 insertions(+), 4 deletions

[Xen-devel] [OSSTEST Nested PATCH v9 6/9] Changes on test step of Debian hvm guest install

2015-05-02 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com 1. Increase disk size to accommodate to nested test requirement. 2. Since 'Debain-xxx-.iso' image will be stored in rootfs of L1 guest, therefore needs more disk capacity, increase root partition size to 1. 3. In L1 installation context, assign more

[Xen-devel] [OSSTEST Nested PATCH v9 5/9] Move the codes about memory size setting into prep()

2015-05-02 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com Move the codes about memory size setting from outside into prep(), where these $ram_mb operations are only used; and in next patch, for L2 guest installation, $ram_mb will be override by a runvar value, which needs $gho in scope. Signed-off

[Xen-devel] [OSSTEST Nested PATCH v9 1/9] parsing grub which has 'submenu' primitive

2015-05-02 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com From a hvm kernel build from Linux stable Kernel tree, the auto generated grub2 menu will have 'submenu' primitive, upon the 'menuentry' items. Xen boot entries will be grouped into a submenu. This patch adds capability to support such grub formats

[Xen-devel] [OSSTEST Nested PATCH v8 7/7] Add test job for nest test case

2015-04-13 Thread longtao.pang
1. This patch adds creation of the nested test job, when job creation procedure is invoked. 2. Set nested L1's vif model as e1000 by make-flight. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v8: 1. Use 'nestedl1' and 'nestedl2' as L1 and L2's clearer name in nested test job

[Xen-devel] [OSSTEST Nested PATCH v8 4/7] Changes on test step of Debian hvm guest install

2015-04-13 Thread longtao.pang
as a nested hypervisor anyway. 4. Comment out CDROM entry in sources.list to make HTTP URL entry available for L1 hvm guest. 5. Enable nestedhvm feature in ExtraConfig for nested job. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v8: 1. Update a conventional way to comment out

[Xen-devel] [OSSTEST Nested PATCH v8 3/7] Edit some APIs in TestSupport.pm for nested test

2015-04-13 Thread longtao.pang
1. Designate vif model by make-flight. 2. In L2 installation context, its host (L1) IP address is not queried from DNS, but after running ts-nested-setup + host + nested, L1 IP is stored in runvar. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v8: Remove the unnecessary

[Xen-devel] [OSSTEST Nested PATCH v8 6/7] Compose the main recipe of nested test job

2015-04-13 Thread longtao.pang
Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v8: Change the patch order from 6 to 5. --- sg-run-job | 11 +++ 1 file changed, 11 insertions(+) diff --git a/sg-run-job b/sg-run-job index eae159d..2ca5ebf 100755 --- a/sg-run-job +++ b/sg-run-job @@ -299,6 +299,17

[Xen-devel] [OSSTEST Nested PATCH v8 5/7] Add new script to customize nested test configuration

2015-04-13 Thread longtao.pang
a VG that used for installing L2. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v8: 1. Replace '$nested_host' by '$l1-{Guest}'. --- ts-nested-setup | 52 1 file changed, 52 insertions(+) create mode 100755 ts-nested-setup

[Xen-devel] [OSSTEST Nested PATCH v8 2/7] Changes to support '/boot' leading paths of kernel, xen, in grub

2015-04-13 Thread longtao.pang
Support situations of grub that have vmlinuz and other things starting with path of '/boot' rather than '/'. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Osstest/Debian.pm |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest

[Xen-devel] [OSSTEST Nested PATCH v8 1/7] parsing grub which has 'submenu' primitive

2015-04-13 Thread longtao.pang
From a hvm kernel build from Linux stable Kernel tree, the auto generated grub2 menu will have 'submenu' primitive, upon the 'menuentry' items. Xen boot entries will be grouped into a submenu. This patch adds capability to support such grub formats. Signed-off-by: longtao.pang longtaox.p

[Xen-devel] [OSSTEST Nested PATCH v8 0/7] Introduction of netsted HVM test job

2015-04-13 Thread longtao.pang
-amd64 as guests OS, with hvm domain0 of Linux kernel 3.18.5, in standalone mode. Also, we use linux-stable tree as domain0 kernel source. longtao.pang (7): parsing grub which has 'submenu' primitive Changes to support '/boot

[Xen-devel] [OSSTEST Nested PATCH v7 2/6] Edit some testsupport APIs for nested test

2015-03-27 Thread longtao.pang
1. Designate vif model to 'e1000' by make-flight. 2. In L2 installation context, its host (L1) IP address is not queried from DNS, but after running ts-nested-setup + host + nested, L1 IP is stored in runvar. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v7: 1.set vif model

[Xen-devel] [OSSTEST Nested PATCH v7 1/6] parsing grub which has 'submenu' primitive

2015-03-27 Thread longtao.pang
From a hvm kernel build from Linux stable Kernel tree, the auto generated grub2 menu will have 'submenu' primitive, upon the 'menuentry' items. Xen boot entries will be grouped into a submenu. This patch adds capability to support such grub formats. Signed-off-by: longtao.pang longtaox.p

[Xen-devel] [OSSTEST Nested PATCH v7 0/6] Introduction of netsted HVM test job

2015-03-27 Thread longtao.pang
, debian-7.6.0-amd64 as guests OS, with hvm domain0 of Linux kernel 3.18.5, in standalone mode. Also, we use linux-stable tree as domain0 kernel source. longtao.pang (6): parsing grub which has 'submenu' primitive Edit some

[Xen-devel] [OSSTEST Nested PATCH v7 4/6] Add new script to custmize nested test configuration

2015-03-27 Thread longtao.pang
a VG that used for installing L2. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v7: Add new ts script for nested configuration according maintainer's reply. --- ts-nested-setup | 54 ++ 1 file changed, 54 insertions

[Xen-devel] [OSSTEST Nested PATCH v7 3/6] Changes on test step of debain hvm guest install

2015-03-27 Thread longtao.pang
hypervisor anyway. 4. Comment out CDROM entry in sources.list to make HTTP URL entry available for L1 hvm guest. 5. Enable nestedhvm feature in ExtraConfig. Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v7: 1. Comment out CDROM entry in sources.list to make HTTP URL entry available

[Xen-devel] [OSSTEST Nested PATCH v7 5/6] Add test job for nest test case

2015-03-27 Thread longtao.pang
1. This patch adds creation of the nested test job, when job creation procedure is invoked. 2. 'NESTED_OS_IMAGE' is the name of 'Debian ISO Images', which defined in standalone.config. 3. Set nested L1's vif model as e1000 by make-flight. Signed-off-by: longtao.pang longtaox.p...@intel.com

[Xen-devel] [OSSTEST Nested PATCH v7 6/6] Compose the main recipe of nested test job

2015-03-27 Thread longtao.pang
Signed-off-by: longtao.pang longtaox.p...@intel.com --- Changes in v7: Add 'ts-guest-stop' and 'ts-guest-destroy' scripts to shutdown L2 and L1 after finishing test. --- sg-run-job | 11 +++ 1 file changed, 11 insertions(+) diff --git a/sg-run-job b/sg-run-job index a1ff24b..be55da8

[Xen-devel] [OSSTEST Nested PATCH 6/6] Compose the main recipe of test-nested test job.

2015-03-17 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com --- sg-run-job | 11 +++ 1 file changed, 11 insertions(+) diff --git a/sg-run-job b/sg-run-job index 94d091b..ababebe 100755 --- a/sg-run-job +++ b/sg-run-job @@ -297,6 +297,17 @@ proc run-job/test-pair {} { #run-ts . remus-failover ts

[Xen-devel] [OSSTEST Nested PATCH 5/6] Add test job for nest test case

2015-03-17 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com This patch adds creation of the nested test job, when job creation procedure is invoked. 'NESTED_OS_IMAGE' is the name of 'Debian ISO Images', which defined in standalone.config. --- make-flight | 20 1 file changed, 20

[Xen-devel] [OSSTEST Nested PATCH 4/6] Add new ts-nested-setup script to custmize nested test configuration before the testing.

2015-03-17 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com 1. In this script, make some appropriate runvars which selecthost would recognise. 2. Prepare the configurations for installing L2 guest VM. 3. Create a lv disk in L0 and hot-attach it to L1, need to restart L1 to make the block disk to be recognized

[Xen-devel] [OSSTEST Nested PATCH 2/6] Add and expose some testsupport APIs

2015-03-17 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com 1. Designate vif model to 'e1000', otherwise, with default device model, the L1 eth0 interface disappear, hence xenbridge cannot work. Maybe this limitation can be removed later after some fix it. For now, we have to accomodate to it. 2. Since reboot L1

[Xen-devel] [OSSTEST Nested PATCH 0/6] Introduction of netsted HVM test job

2015-03-17 Thread longtao.pang
, debian-7.6.0-amd64 as guests OS, with hvm domain0 of Linux kernel 3.18.5, in standalone mode. longtao.pang (6): parsing grub which has 'submenu' primitive Add and expose some testsupport APIs Changes on test step

[Xen-devel] [OSSTEST Nested PATCH 3/6] Changes on test step of debain hvm guest install in hvm.

2015-03-17 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com 1. Increase disk size to accomodate to nested test requirment. 2. Since 'Debain-xxx-.iso' image will be stored there, therefore needs more disk capacity, increase root partition size in preseed generation. 3. In L1 installation context, assign more

[Xen-devel] [OSSTEST Nested PATCH 1/6] parsing grub which has 'submenu' primitive

2015-03-17 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com From a hvm kernel build from Linux stable Kernel tree, the auto generated grub2 menu will have 'submenu' primitive, upon the 'menuentry' items. Xen boot entries will be grouped into a submenu. This patch adds capability to support such grub formats

[Xen-devel] [OSSTEST PATCH 0/4] Introduction of the patches.

2014-12-10 Thread longtao.pang
and then boot into xen kernel. Next, begin to install L2 guest VM inside L1. After that, make sure ping L2 is successfully longtao.pang (4): Add nested testcase of preparing and installing L1 guest VM Build XEN and HVM Dom0

[Xen-devel] [OSSTEST PATCH 2/4] Build XEN and HVM Dom0 kernel for L1 guest VM

2014-12-10 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com This patch is used for building XEN and HVM Dom0 kernel for L1 guest VM, and then reboot L1 guest into xen kernel. --- sg-run-job |1 + ts-xen-install | 149 +--- 2 files changed, 111

[Xen-devel] [OSSTEST PATCH 4/4] Insert nested test job name and runvars into

2014-12-10 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com This patch is used for inserting nested test job name and runvars into standalone.db database after execute command './standalone-reset'. --- make-flight | 19 +++ mfi-common |8 2 files changed, 27 insertions(+) diff

[Xen-devel] [OSSTEST PATCH 3/4] Add nested test case of installing L2 guest VM

2014-11-27 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com This patch is used for installing L2 guest VM inside L1 guest VM. --- sg-run-job|2 + ts-debian-install | 166 + 2 files changed, 132 insertions(+), 36 deletions(-) diff --git a/sg-run

[Xen-devel] [OSSTEST PATCH 2/4] Building XEN and HVM Dom0 kernel for L1 guest VM

2014-11-27 Thread longtao.pang
From: longtao.pang longtaox.p...@intel.com This patch is used for building XEN and HVM Dom0 kernel for L1 guest VM, and then reboot L1 guest into xen kernel. --- sg-run-job|1 + ts-nested-L1-debian-install-part2 | 364 + 2 files

[Xen-devel] [OSSTEST PATCH 0/4] Introduction of the patches.

2014-11-27 Thread longtao.pang
We updated these patchs about adding Nested test job into OSSTest. Nested virtualization is the function of running a hypervisor inside a virtual machine. The hypervisor that runs on the real hardware is called a level 0 or L0; The hypervisor that runs as a guest inside L0 is called level 1 or