Can't start virtual machine in Hyper-v in windows server 2019 - windows

Recently i got a problem when I wanna start a vm using hyper-v in windows server 2019 launched in AWS EC2, I was following the link to do so (https://learn.microsoft.com/zh-tw/windows-server/virtualization/hyper-v/get-started/create-a-virtual-machine-in-hyper-v).
But when I click start on the new vm, it show an error as below,
error message
Does anyone know how I can solve this problem or where the further i can check for debugging ??
Thanks,

The short answer to your question is that if you truly want to use Hyper-V on Windows on an EC2 instance, you must use a bare-metal instance type such as m5d.metal. These are the only instance types that support what's called nested virtualization. What you are trying to do is to run a VM inside a VM.
You probably don't want to do this. A better approach is likely to instead simply launch another EC2 instance. Perhaps if you share some details on what you are trying to accomplish we can better help you

Related

EC2 instance reboots automatically

I have couple of t2.large instances which are running on windows server 2008 32bit, the instance reboots automatically every 10minutes. how do i troubleshoot this issue, please guide me
Well sometimes its hard to find the solution for the problem like this as it can be a complete hardware problem that you don't have a control over it.
You can either move your instances to a new one or contact AWS support for detailed troubleshooting with your instances. They might able to solve this or be able to tell you the cause for it.

I want to open a software GUI on ubuntu SERVER.

I would like to know open a GUI of a software called datacenter datastax which is a UI for Cassandra where we can manipulate the data.
Firstly, I want to install datacenter on my office server where multiple VMs are setup. Out of one of those VMs, I have created a fresh 'ubuntu server' VM and install the datacenter within. Since ubuntu server is only based on CLI but the data center is all GUI. How come I achieve this? I mean I want to access the GUI of this software while it's installed within a ubuntu server.
Reason for me doing this is because every person within the office can access the GUI of the datacenter when I share them the ip or whatever.
Please help me with this. Ill highly appreciate it.
You need to export the console from the server to the machine you want to access GUI from.
Something similar like this export DISPLAY=":0.0" where you replace ip_address with the ip address of the machine that you want to send GUI to, if the machine is some *nix machine. Then run the command to start the GUI. After this, the GUI should be redirected to the machine having the
If it is a Windows machine, you will need to run xming on it.
Also, please note that this is not a Cassandra related question, even if you want to start a Cassandra related GUI.

How should I select a Windows Server AMI image for use with the AWS free tier as a WAMP stack?

I recently realized that Amazon's AWS free tier allows you to use both a micro Linux and a micro Windows server free for one year. I've only been running Linux instances so far, but I'm curious to give the Windows server a try since it's free.
Ubuntu has a sweet cloud portal which shows you what AMI images they have available for use with EC2, but I haven't found anything like that for Windows.
I realize that the launch instance wizard gives you a few options:
But I dont' see any pre-built WAMP stacks. Also, bitnami has a WAMP stack but I can't seem to find an AMI image for it.
Is launching a Windows instance similar to Linux? I'm assuming I can find a reputable WAMP AMI somewhere where, put the AMI number into the launch console, and then RDP to the box. So, if that's the case, how can I find a reputable WAMP stack AMI to use?
First of all, yes. Launching a Windows AMI is exactly like launching a Linux one. Except for the fact that you RDP, and not SSH to the instance, and you have to wait a couple of minutes to connect to your instance, in order for the Admin password to be generated.
For your second question, I would recommend you to start at the Bitnami site, but I saw that they are only providing LAMP instances as of today. I don't know what is your concept of reputable, but I found out two public AMIs (from Bitnami as well, but a little older, as it seems) that might help you. Just launch (on your EC2 Management Console) the Classic Wizard, Community AMIs, and search for WAMP and you will find them out.
Hope it helps.

Trying to create dev with SPEasySetUp and VMWare

I am trying to create a dev box for SharePoint 2010 Server utilizing the following:
http://blogs.msdn.com/b/cjohnson/archive/2010/10/28/announcing-sharepoint-easy-setup-for-developers.aspx
So first of all this is new to me. I understand that these are instructions are for dual boot in Windows Native, but I am more interested in using a VHD/image of the OS to run on VMWare.
I have tried creating an image of a running virtual machine with sysprep tool, but hit a dead end with capturing the image to a file that I can reference within the running machine to run the scripts against.
I took a look at Diskpart on TechNet, but as I am new to this, I am not sure this is what I want to do?
I tried installing to the local host (virtual machine that is running) and am getting an error there also; fails at Windows Identity Framework.
It is a clean install of Windows 7 (literally nothing else), and the UAC has been disabled.
Is there any insite, help, or advice anyone can provide me regarding this? I would really appreciate it as I have to get working on the development aspects of SP (workflows, web parts,etc), and need a dev env, and I can't seem to get anywhere with this.
Thanks
Justin

Creating a virtual machine image as a continuous integration artifact?

I'm currently working on a server-side product which is a bit complex to deploy on a new server, which makes it an ideal candidate for testing out in a VM. We are already using Hudson as our CI system, and I would really like to be able to deploy a virtual machine image with the latest and greatest software as a build artifact.
So, how does one go about doing this exactly? What VM software is recommended for this purpose? How much scripting needs to be done to accomplish this? Are there any issues in particular when using Windows 2003 Server as the OS here?
Sorry to deny anyone an accepted answer here, but based on further research (thanks to your answers!), I've found a better solution and wanted to summarize what I've found.
First, both VirtualBox and VMWare Server are great products, and since both are free, each is worth evaluating. We've decided to go with VMWare Server, since it is a more established product and we can get support for it should we need. This is especially important since we are also considering distributing our software to clients as a VM instead of a special server installation, assuming that the overhead from the VMWare Player is not too high. Also, there is a VMWare scripting interface called VIX which one can use to directly install files to the VM without needing to install SSH or SFTP, which is a big advantage.
So our solution is basically as follows... first we create a "vanilla" VM image with OS, nothing else, and check it into the repository. Then, we write a script which acts as our installer, putting the artifacts created by Hudson on the VM. This script should have interfaces to copy files directly, over SFTP, and through VIX. This will allow us to continue distributing software directly on the target machine, or through a VM of our choice. This resulting image is then compressed and distributed as an artifact of the CI server.
Regardless of the VM software (I can recommend VirtualBox, too) I think you are looking at the following scenario:
Build is done
CI launches virtual machine (or it is always running)
CI uses scp/sftp to upload build into VM over the network
CI uses the ssh (if available on target OS running in VM) or other remote command execution facility to trigger installation in the VM environment
VMWare Server is free and a very stable product. It also gives you the ability to create snapshots of the VM slice and rollback to previous version of your virtual machine when needed. It will run fine on Win 2003.
In terms of provisioning new VM slices for your builds, you can simply copy and past the folder that contains the VMWare files, change the SID and IP of the new VM and you have a new machine. Takes 15 minutes depending on the size of your VM slice. No scripting required.
If you use VirtualBox, you'll want to look into running it headless, since it'll be on your server. Normally, VirtualBox runs as a desktop app, but it's possible to start VMs from the commandline and access the virtual machine over RDP.
VBoxManage startvm "Windows 2003 Server" -type vrdp
We are using Jenkins + Vagrant + Chef for this scenario.
So you can do the following process:
Version control your VM environment using vagrant provisioning scripts (Chef or Puppet)
Build your system using Jenkins/Hudson
Run your Vagrant script to fetch the last stable release from CI output
Save the VM state to reuse in future.
Reference:
vagrantup.com
I'd recommend VirtualBox. It is free and has a well-defined programming interface, although I haven't personally used it in automated build situations.
Choosing VMWare is currently NOT a bad choice.
However,
Just like VMWare gives support for VMWare server, SUN gives support for VirtualBOX.
You can also accomplish this task using VMWare Studio, which is also free.
The basic workflow is this:
1. Create an XML file that describes your virtual machine
2. Use studio to create the shell.
3. Use VMWare server to provision the virtual machine.

Resources