Captured DevTest Labs is not working - azure-devtest-labs

I have pressed the capture button on a VM in dev test labs. Now it looks like I have a generalized VM that looks useless to me. For example, I can not start the VM anymore. It just displays the following error message.
Failed to start virtual machine 'vmname'. Error: Operation 'start' is not allowed on VM 'vmname' since the VM is generalized.
I need to access this VM what can I do ?
** Should I have run sysprep before I hit the capture???
As I can not start another VM it give this error. Provisioning failed.
OS Provisioning for VM 'IntegrationTest' did not finish in the
allotted time. However, the VM guest agent was detected running. This
suggests the guest OS has not been properly prepared to be used as a
VM image (with CreateOption=FromImage). To resolve this issue, either
use the VHD as is with CreateOption=Attach or prepare it properly for
use as an image: * Instructions for Windows:

Don't use this button without SYSPREP.
Use regular backup.
IMHO the capture process is not as easy as AWS EC2... This error* caused us a day.
*It was my fault to hit the button where I thought it would just work. I should have tested it.

Related

Remote Desktop Application - Start multiple sessions on my client PC

I have a windows 2016 server running RDS. It is configured to run a single application when a user accesses it from a .rdp shortcut. The user just sees the application as though it is running on their local machine, not a whole remote desktop.
If from a client PC, if I launch the application and log in then I can see a new connection in the RD Gateway manager.
However if I launch the application from the same client PC multiple times I am only asked to login the first time, and whilst I see many instances of the application I only see one connection in the RD gateway manager.
I would like a new connection each time I launch the application, so that I can simulate multiple users running the app concurrently in their own sessions.
I have tried adding "prompt for credentials on client:i:1" to the .rdp shortcut and this has no effect.
Thanks you your help.
I don't think it's possible. Let me try to explain:
Whenever you launch the RDP file, you connect to a session on the RDSH. Now, if you want separate connections, that means that there should be multiple sessions (probably for the same user since the credentials don't change) which is not allowed by the RDSH by default.
Assuming you get passed multiple sessions for same user, MSTSC actually recognizes that for the given RDP file, there is already an open connection, so it will try to reuse that.
Last but not least, there is the problem of licensing - you are "working around" the system: both per-device and per-user licensing would report 1, therefore it would probably be a violation of ToS.
It would be much more useful if you could tell us what you are trying to achieve and then maybe we can help you more.
P.S.: This question has nothing to do with programming, so it probably belongs to https://superuser.com
Hi I figured out a solution to this, so I will share in case it is useful for anyone else.
Modify the hosts file to include different names for the target machine ip address:
eg:
51.xxx.159.233 test1.xxx.uk-user1
51.xxx.159.233 test1.xxx.uk-user2
51.xxx.159.233 test1.xxx.uk-user3
51.xxx.159.233 test1.xxx.uk-user4
Then in each rdp launch shortcut, reference a different alias.
eg:
Shortcut1:
full address:s:test1.xxx.uk-user4
Shortcut2:
full address:s:test1.xxx.uk-user3
Then when the RDP is launched it will ask you to log in even if you already have an active connection and server will have a new user logged into it.
Hope this helps somone in the future.

Credentails Manager service is stopped

Hi,
I am getting the below error when trying to update my view . Also, creds manager service is stopped and not getting started.
As long as the credmanager.exe is not started, none of the view (snapshot or dynamic) will work. So you need to debug that first.
Typically, you would check the ClearCase logs, and the Windows event, to see what the issue is. See "how to fix or investigate 'Operation “view_ws_is_ws_view” failed'?", using cleartool getlog.
That kind of error ("This application has failed to start becauselibatriaks.dllwas not found. Re-installing the application may fix this problem") was seen with rather old versions of ClearCase (7.0.1).
See for instance this thread.
If the DLL is present and the directory is in your path you should never
get this error.
Check to see how far ...\rational\clearcase\bin is down your SYSTEM path, and make sure the DLL's are in there.
ccgzip.exe will be called (by the client process) when checking in any files that fall back to the "compressed_file" element type. It may be called by the view server during file opens and checkouts to construct cleartext if needed. The former uses your user path, the latter will normally use the SYSTEM path.
We've seen odd behavior on Windows when the path gets >500 characters
long, though there seems to be no "official" limit to the length this environment variable (%PATH%) can grow to.
The error message you see is likely a path issue. Whether that's related to the other issue is unknown...
Is the albd server process running? The credential manager service is flagged to depend on this service. If that service fails to start, or terminates, the credential manager service will also fail.
A service startup failure should be in the Application or System Event logs. and from there the "Troubleshooting albd startup failures" technote on ibm.com would likely be a good place to start.

Inaccessible virtual machine

My linux instances of virtual machines without apparent reason cease to be accessible and require their reset to login again. The machine from the management console looks normal. Does anyone could give me any idea that might be? Or how can see more details of errors VMs who are causing this problem ?, Thank you.
What you need is to check the VM logs, from the Developers Console and the kernel itself.
From Developers Console, navigate to Compute > Compute engine > VN instances > click on your VM > scroll down to View Output
On the system side, depending on your Linux flavor you will need to check the system logs. Have a look at this website for more information.

Process memory increasing after switching user

I've developed an app that runs on windows. It uses a 5 mintes timer to initiate a connection to an Web service and checks for any updates in a DataTable.
If there are any changes - it pops a WPF window on the client and shows a message.
The program runs in our domain using a Logon Script, and runs with the users account.
Lately we've noticed a problem, and found out that the process of the app was using over 2GB of ram on them, and increasing...
After looking it up, we figured out the problem:
The app runs on windows xp and windows 7 pcs. In windows 7, if a user uses the "Switch User" option, the process of the first user keeps on running, and the 5 minutes timer is still running. The memory leak strarts when there's a change, and a message should be displayed.
When we stopped the timer, and then used "Switch User" - There was no problem and the process stayed on a normal memory usage.
What can we do? Any suggestions?
Thanks!!
I use the following method to enumerate current users.
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT UserName FROM Win32_ComputerSystem");
ManagementObjectCollection collection = searcher.Get();
foreach (var user in collection.Cast<ManagementBaseObject>())
{
Console.WriteLine(user["UserName"]);
}
It might work in your app if you use this and compare with:
System.Security.Principal.WindowsIdentity.GetCurrent().Name
If not a match - pause the instance.
If you have a memory leak, it would suggest a missing dispose in your method too. I'd be surprised if you ended up with enough instances to merit 2GB memory allocation.
P.S - requires you add reference to System.Management

Execution of QTP scripts on remote machines

I am posting this question regarding the execution of QTP scripts on remote machine. When i log in to my remote machine via "mstsc", and execute the script without closing the remote desktop connection, it works fine. But once i close/minimize the remote desktop window, it starts throwing error ( like Object not visible" error.
One of the places where it generally throws error is while clicking on the file menu in IE, as shown below :-
Browser(" page name -").WinToolbar("ToolbarWindow32").Press "&File"
Are there any workarounds to resolve the same??
Most of the QTP scripts take lot of time to execute, and if the prerequisite is to keep the screen active without even locking, isnt it one of the key disadvantages?
Thanks in advance!!!
Steve
QTP replays some steps by manipulating the mouse and keyboard devices. When an RDP session is minimized windows knows that there is nobody at the controls and therefore doesn't respond to the mouse and keyboard events which causes QTP to fail.
A workaround to this is to connect to the machine via another application rather than mstsc (for example VNC) which doesn't communicate to windows that it has been minimized. Either that or leave the RDP window open.
If you want to run QuickTest in a minimized RDP session, and you are using an RDP >= 6.0 client, you can enable it by setting a registry value on the local computer:
Navigate to one of the following registry paths on the local computer:
Current User: HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client
or
All Users: HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client
Create a DWORD value named RemoteDesktop_SuppressWhenMinimized and set it to 2.
Note that this does not work when the computer is locked or logged off.
one more simple way
just maximize RDP session , then scripts will run don't minimize
you remove the lock of the machine.

Resources