cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrija Panic <andrija.pa...@gmail.com>
Subject Re: Windows Template & Multiple SCSI Controllers
Date Fri, 31 Jul 2020 11:11:52 GMT
Mike, you can set the HW controller on the template (template properties)
and the VM from that template will be created with that controller (4 of
them) - make sure to choose the same as the one used in your original
templates.

Next, to further see if 4 controllers are the issue (would not be by all
means, if your template has disk on the first controller) - you can crate a
VM from a template via API and defined startvm=false (if I recall correctly
the parameter) - i.e. VM will be created on vSphere, but not started (OS
not yet messed up,since it never booted) - now go and remove those 3
additional controllers and try to start the VM.

I'm not sure if ACS will reconfigure the VM again on VM start actions, or
if it will only do that during creating VM (I believe that is the case)

You are now in the "cloudstack world" so you have to "play" by cloudstack
rules - i.e. to make sure to understand the limitations and options
available in ACS - ACS doesn't just take the VM and clone it (new VM from a
template), but also reconfigures VM to be able to "play" with CloudStack
properly.

For the record, if you use the "osdefault" controller,, CLoudStack will ask
vSPhere (via SDK) for the "recommended controller" for that specific OS of
your VM - so that might be IDE, or some LSI models, etc - depending on the
OS type.


Best,

On Thu, 30 Jul 2020 at 21:47, Corey, Mike <mike.corey@sap.com> wrote:

> Thanks Marcus, your process is helpful to me and I may test it out for my
> build.  In theory, shouldn't I be able to use a "template" that I've
> created and used in VMware and not have to build it out through CloudStack
> with ISO, etc.?
>
> In your test steps, I don't understand why you have to add a 60GB root
> volume when creating the VM Instance - won't it just use the volume
> size/layout of the template VM?
>
> What I'm really trying to figure out is why CloudStack is injecting the VM
> instance with 3 extra SCSI controllers and if this could be causing my VMs
> from failing to boot as expected.
>
> My "production" template, that we use in a non-CloudStack VMware
> environment is not working.  Its built on VMware hardware 13 and LSILogic
> controller.  No matter what I set the template diskcontroller type to use
> (osdefault, lsilogic, lsisas1068) - the VM Instance doesn't find the system
> volume and only attempts to boot to the network.  What logs or entries in
> ACS can I look at to help isolate the issue?
>
> Any thoughts?
>
> Mike
>
>
>
>
>
> -----Original Message-----
> From: Marc-Andre Jutras <marcus@marcuspocus.com>
> Sent: Thursday, July 30, 2020 12:06 PM
> To: users@cloudstack.apache.org
> Subject: Re: Windows Template & Multiple SCSI Controllers
>
> Hey Mike,
>
>
> disk OSdefaut: it will use IDE if i'm right...
>
> 2 nics: are your seeing these 2 nic in cloudstack too ?
>
>
> Template: I've build up my Windows 10 template directly in cloudstack...
>
> My steps:
>
>   - upload a Win10 ISO on Cloudstack
>
>   - create a new VM with your ISO ( 1 gb ram, 1 nic, 1 vcpu, 30gb disk )
>
>   - install the latest vmware-tools and cloudbase-init (
> https://cloudbase-init.readthedocs.io/en/latest/intro.html#download )
>
>   - do a sysprep... shutdown your vm...
>
>   - create a snapshot / template of your disk in cloudstack
>
>   - when done, in cloudstack, modify your template settings and add:
>
>    - - keyboard : us
>
>    - - nicAdapter : Vmxnet3
>
>    - - rootDiskController : lsisas1068
>
>
> Then, Test !! try to start a vm from your template, set the root disk to
> 60 Gb and 2 vcpu, 4 gb ram... keep us updated with your results ;)
>
>
> Recommended global settings:
>
>   - Vmware.create.full.clone : true
>
>   - Vmware.create.base.shapshot : true
>
>   - vmware.root.disk.controller: lsisas1068
>
>   - vmware.systemvm.nic.device.type: vmxnet3
>
>
> Marcus
>
> On 2020-07-29 1:53 PM, Corey, Mike wrote:
> > Thanks Marc & Thomas for your responses.
> >
> > Setting from "lsilogic" to "osdefault" got my one Windows10 Template to
> load to OS as expected - it literally is just a vanilla installation of
> Windows 10 with sysprep.  However, it now has two NICs configured for it.
> (Again, is this normal behavior?)
> >
> > Its still not clear as to why the additional SCSI adapters are added to
> the deployed instance.  Now I'm having the second NIC added.
> >
> > Marc - for your Windows Templates/Images - did you use any imaging
> preparation tools like MDT or other that customizes
> settings/preferences/apps as the OS starts for the first time?  If so, any
> issues with the system partition loading as expecting during your initial
> experience?
> >
> > Thanks!
> >
> > Mike
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: Thomas Joseph <thomas.job07@gmail.com>
> > Sent: Tuesday, July 28, 2020 9:56 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: Windows Template & Multiple SCSI Controllers
> >
> > To add few more troubleshooting tips:
> > 1. In template/VM settings tab, add entries for  Vnic (vmxnet3) and root
> &
> > data disk controllers (osdefault) from the dropdown menu.
> > 2. You would need to have vmtools in the template.
> >
> > Regards
> > Thomas
> >
> > On Wed, 29 Jul 2020, 6:50 am Marc-Andre Jutras, <marcus@marcuspocus.com>
> > wrote:
> >
> >> Hey Mike,
> >>
> >> On 2020-07-28 3:37 PM, Corey, Mike wrote:
> >>> I could use some advice on this.  I completely recreated my Window10
> >> VM/Template and imported it into ACS.  Deploying an instance runs;
> however
> >> a couple things are out of the normal and I could use some guidance on
> >> troubleshooting.
> >>> 1 - The ASC template that ASC deploys does not include the network
> >> adapter that my imported OVA has.  Is this expected behavior of the
> >> template?
> >>
> >>
> >> Yes, It's expected, vNIC will be added to your VM only when you will
> >> start your VM...
> >>
> >>
> >>> 2 - Booting the deployed Instance VM to UEFI can't see the system
> volume
> >> (device 0:0) and fails to boot up Windows.
> >> make sure you boot up your vm from cloudstack and not from vmware...
> >>> 3 - Booting the deployed Instance VM to BIOS gets a Windows
> >> unrecoverable error - fails to boot up Windows correctly.
> >> same... make sure you boot up your vm from cloudstack and not from
> >> vmware...
> >>> Cloning a VM from the ASC Deployed Template VM (adding a vnic after)
> >> works and the VM loads as expected.
> >>
> >> whoa, party on dude ;)
> >>
> >> to use vmxnet3 driver or any others specific settings in your template,
> >> on acs, select your template and under settings, add :
> >>
> >> nicAdapter = Vmxnet3
> >> and define any others settings there... ( keyboard, root scsi driver,
> >> etc... )
> >>
> >>> So my question to the greater forum is what is ASC doing under the
> >> covers to the VM hardware that could prevent the OS / System Volume /
> >> primary partition from loading in the ASC deployed VM Instance?
> >> ACS drives vmware through API calls, ACS will push configuration to your
> >> vm only when needed : always manage your VM via Cloudstack and don't do
> >> anything directly on vmware ;)
> >>>
> >>> Anyone with a VMware & CloudStack deployment running out here that can
> >> shed some light?
> >> yup, me ;)  6 ACS regions with vmware 5.5, 6.0 and 6.7 ( upgrade to 6.7
> >> on all regions on hold for now // covid... )
> >>> Thanks!
> >>>
> >>> Mike
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> -----Original Message-----
> >>> From: Corey, Mike <mike.corey@sap.com>
> >>> Sent: Monday, July 27, 2020 11:48 AM
> >>> To: users@cloudstack.apache.org
> >>> Subject: [CAUTION] RE: Windows Template & Multiple SCSI Controllers
> >>>
> >>> Why would you hardcode the addition of unrequired/unnecessary
> "hardware"
> >> to the VM instance?  This wasn't the case for the CentOS deployment so
> why
> >> do it with Windows OS?
> >>> I can't say for certain, but the VM instance that ACS creates doesn't
> >> start the OS (blue screen recovery console).  However, cloning from the
> >> template ACS creates in vCenter through the tradition vCenter method,
> the
> >> VM loads as normal.
> >>> Can this be changed via a global setting or other config file edit?
> >>>
> >>>
> >>>
> >>> -----Original Message-----
> >>> From: Andrija Panic <andrija.panic@gmail.com>
> >>> Sent: Saturday, July 25, 2020 2:44 PM
> >>> To: users <users@cloudstack.apache.org>
> >>> Subject: Re: Windows Template & Multiple SCSI Controllers
> >>>
> >>> Hardcoded behavior of having 4 identical controllers, with all the
> >> volumes
> >>> attached to the first one.
> >>>
> >>> Why is this a problem for you?
> >>>
> >>> Best,
> >>>
> >>> On Fri, 24 Jul 2020, 19:55 Corey, Mike, <mike.corey@sap.com> wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>>
> >>>>
> >>>> As I progress with my ACS & VMware setup I seem to hit a bump at
every
> >>>> turn.  I’ve gotten to the point where I’m now able to upload a Windows
> >> 10
> >>>> template that we use in production (VMware) into ACS.  However, when
I
> >>>> create a new instance through the GUI it is deployed with a total of
4
> >> SCSI
> >>>> controllers when it should only have ONE.
> >>>>
> >>>>
> >>>>
> >>>> What is strange is that the clone of the template that ACS copies into
> >>>> vCenter only has a single SCSI controller (as expected).  In fact,
> when
> >> I
> >>>> clone a VM (traditional vCenter method) from the ACS template that was
> >>>> create – that VM only has the single controller and boots to the OS
> >> fine.
> >>>>
> >>>>
> >>>> Any ideas are welcome as to why this behavior is occurring.
> >>>>
> >>>>
> >>>>
> >>>> Thanks!
> >>>>
> >>>> Mike
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> *Mike Corey*
> >>>>
> >>>>
> >>>> Technology Senior Consultant, IT CS CTW Operation & Virtualization
> >> Service
> >>>> US
> >>>>
> >>>>
> >>>> *SAP AMERICA, INC.* 3999 West Chester Pike, Newtown Square, 19073
> United
> >>>> States
> >>>>
> >>>>
> >>>> T +1 610 661 0905, M +1 484 274 2658, E mike.corey@sap.com
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
>


-- 

Andrija Panić

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message