Welcome To The Machine: Nesting Virtual Environments

Part 10: Getting A Bit Hyper-V

Now that Xen & LVM are set up and the config file has been created, it’s time to spin things up and install Hyper-V Server. The following image shows Remmina Remote access with VNC and RDP connections configured and ready on the right, and the terminal showing the Xen domain list ready with only dom0 showing in the list, on the left.


Terminal showing Dom0 (left) and Remmina Remote Access (right)

Note: Prior to v4.5 the default toolstack for Xen was Xend. Xen now uses the XL toolstack as default (see here for details)

As part of preperation, a VNC connection should be created and saved. I’m using Remmina Remote Access. The connection format should be ipaddress:port. The IP address to connect to is the same IP address as the host machine (in this case, my machine IP and the port is 5900 (the port number is incremented by 1 for each VM running) giving a connection address of There is no need to add username or password at this point.

RDP connections can be created as and when needed once a static IP address has been assigned to the server.

To start the VM, the following command is issued from the command prompt:

root@ripley:/home/canderson/vm# xl create hyperv-vm.cfg

Providing there are no errors in the cfg file Xen will show:

Parsing config from hyperv-vm.cfg


Running ‘xl list’ will list the currently running domains:vmdomainlist

Domain listing details domain ID, assigned memory, vCPU’s, current state and time active

Installing Hyper-V Server:

Once the ‘create’ command has completed then a VNC session needs to be started. If there is no previous installation of Hyper-V Server then setup will start automatically. If there is an existing installation to be over-written then the following screen will be shown and a key must be pressed to initiate the setup program otherwise the existing installation will be started.


Press any key to start the installation (Remmina automatically captures the keyboard on gaining focus).


File loading bar at start of installation.

From this point on, the installation of Hyper-V Server is identical to what it would be if it was being installed on standard hardware.





Installing files as part of setup. Once this has finished the server will reboot.

Server Configuration:

After the server reboots, re-establish the VNC session and change the admin password.



This is all that there is to the Hyper-V Server 2012 Configuration Screen.

Network Configuration:


1. Select the NIC to be configured (there is only one NIC in this instance).


2. Select the ‘Set Network Adapter Address’ option.


3. Set the IP address, subnet mask and default gateway.



4. Set the preferred and alternate DNS servers. Then select option 4 to return to the main menu.




5. Enable Remote Desktop Protocol (RDP) with NLA (Network Level Authentication)



6. Finally, the name needs to be changed (this is done last as it requires a reboot). Once the name has been changed then select ‘Yes’ to reboot. The VNC session will need to be restarted once the server restarts.



If all has gone well this is the screen that should be displayed once the VNC session has been re-established. The Hyper-V server is now configured at a basic level and is running, ready to have updates, join a domain and have a virtual machine set up and installed on it. You can now log in and, from the configuration menu, choose option 13 to shut the server down.


Join me for Part 11 where we’ll install Windows Server 2012 R2 and manage Hyper-V server with the built-in tools.

And for the non binary speakers who are still hanging around, Part 11 is Part 3 in binary #geekhumour




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s