From: Ian Campbell <Ian.Campbell@citrix.com>
To: robert.hu@intel.com
Cc: "Ian.Jackson@eu.citrix.com" <Ian.Jackson@eu.citrix.com>,
"Pang, LongtaoX" <longtaox.pang@intel.com>,
Wei Liu <wei.liu2@citrix.com>, "Zheng, Di" <di.zheng@intel.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [OSSTEST PATCH 3/4] Add nested testcase of installing L2 guest VM
Date: Thu, 8 Jan 2015 11:26:12 +0000 [thread overview]
Message-ID: <1420716372.19787.25.camel@citrix.com> (raw)
In-Reply-To: <1420716121.11494.15.camel@localhost>
On Thu, 2015-01-08 at 19:22 +0800, Robert Hu wrote:
> On Thu, 2015-01-08 at 10:48 +0000, Wei Liu wrote:
> > On Thu, Jan 08, 2015 at 07:34:39AM +0000, Pang, LongtaoX wrote:
> > [...]
> > > > > ts-debian-install installs a L2 PV guest, which should work even
> > > > > without nested HVM enabled for your L1 HVM guest. You're testing
> > > > > nested HVM I think it makes more sense to install a L2 HVM guest.
> > > > >
> > > > [Pang, LongtaoX] Thanks Wei, I will try to re-use the script of
> > > > ts-debian-hvm-install as L2, maybe it will make this script become complicated.
> > > > If it works, there will not be necessary to modify and use ts-debian-install
> > > > anymore.
> > > [Pang, LongtaoX] Hi Wei, for script of ts-debian-hvm-install, as too many parameters, functions, structure and variables are not suit for L2 installing ,
> > > if I re-use and modify as L2, it will make the script become more convoluted and hard to maintain in later days.
> > > So, I plant to write a new script similar to ts-debian-hvm-install, called ts-debian-hvm-install-L2 for L2 guest installing.
> > > If you have any concern or other opinions, please tell me, thanks.
> >
> > Some foreseeable variables I can think of are bios, disk size and ram
> > size, which can be easily grouped together. Though you may also need
> > things like checking whether L2 guest is up and reachable etc.
> ts-debian-hvm-install has already been reused/modified to accommodate
> nested L1 installation.
I think this might be where the complication has come from.
ts-debian-hvm-install (and ts-debian-install) should be about installing
a basic guest with parameters (disk, memory, vcpus) and the basic OS
install, not about tailoring that guest for a particular use. Any
tailoring should be done by a separate step.
Take the L0 case, where we have ts-host-install to install the machine
with a basic OS and then ts-xen-install or ts-xen-build-prep depending
on what it is to be used for.
The L1 hypervisor should be handled similarly, install a basic OS with
ts-debian-hvm-install and then tailor, ideally with a ts-xen-install
which is enhanced to work for both L0 and L1.
In effect after ts-debian-hvm-install we should be treat the resulting
VM as if it were a host which was installed with ts-host-install.
Given that ts-debian-hvm-install is now only about installing a basic
guest OS, it now remains suitable for use as the L2 guest installer as
well.
I suppose there might be some differences in the result of
ts-debian-hvm-install and ts-host-install, which we should resolve by
making the results more similar by modifying one or both to use more
common/helper code.
Ian.
next prev parent reply other threads:[~2015-01-08 11:26 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-10 8:07 [OSSTEST PATCH 0/4] Introduction of the patches longtao.pang
2014-12-10 8:07 ` [OSSTEST PATCH 1/4] Add nested testcase of preparing and installing L1 guest VM longtao.pang
2014-12-11 11:06 ` Wei Liu
2014-12-26 5:13 ` Robert Hu
2015-01-02 9:51 ` Dario Faggioli
2014-12-10 8:07 ` [OSSTEST PATCH 2/4] Build XEN and HVM Dom0 kernel for " longtao.pang
2014-12-11 11:25 ` Wei Liu
2015-01-27 8:33 ` Hu, Robert
2015-01-27 11:01 ` Ian Campbell
2015-01-29 6:05 ` Hu, Robert
2014-12-10 8:07 ` [OSSTEST PATCH 3/4] Add nested testcase of installing L2 " longtao.pang
2014-12-11 11:43 ` Wei Liu
2015-01-06 3:28 ` Pang, LongtaoX
2015-01-06 16:52 ` Wei Liu
2015-01-07 3:52 ` Pang, LongtaoX
2015-01-08 7:34 ` Pang, LongtaoX
2015-01-08 10:48 ` Wei Liu
2015-01-08 11:12 ` Ian Campbell
2015-01-08 11:16 ` Ian Jackson
2015-01-08 11:22 ` Robert Hu
2015-01-08 11:26 ` Ian Campbell [this message]
2015-01-08 17:20 ` Dario Faggioli
2015-01-08 17:25 ` Ian Campbell
2015-01-09 2:46 ` Pang, LongtaoX
2014-12-10 8:07 ` [OSSTEST PATCH 4/4] Insert nested test job name and runvars into longtao.pang
2014-12-11 11:46 ` Wei Liu
2015-01-06 3:31 ` Pang, LongtaoX
2015-01-29 9:57 ` Hu, Robert
2015-01-29 10:42 ` Wei Liu
2015-01-29 10:52 ` Ian Campbell
2015-01-29 10:55 ` Ian Campbell
2014-12-11 10:38 ` [OSSTEST PATCH 0/4] Introduction of the patches Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1420716372.19787.25.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=di.zheng@intel.com \
--cc=longtaox.pang@intel.com \
--cc=robert.hu@intel.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.