Curious about how Hyper-V handles its guests virtual CPUs (vCPU)? This post takes a deep look at the related subjects. Support site offering resources for Citrix Presentation Server, VDI, VMWare, Xen, Microsoft Terminal Services, SoftGrid and others. If you would like to read the next part in this article series please go to Configuring the Windows Server 2008 Terminal Services Gateway (Part 2). ![]() HyperTerminal (also known as HyperTerm) is a potentially handy if limited-function communications and terminal emulation program that comes with the Windows operating. Free Real-time CPU Optimization and Automation Software for Windows. Proven, demonstrable, and safe improvements to PC responsiveness during high CPU loads. How to run Linux on Hyper- V with Ubuntu Linux Server as a Guest. Jul 2. 01. 5 by Eric Siron 2. Hyper- V Articles. Linux on Hyper- V is becoming more and more popular as Microsoft continues to increase their support for it. ![]() One of the nicest parts about it is the “It Just Works” aspect. For distributions that are less than a few years old, the Hyper- V Integration Components are built right in. There isn’t any time wasted fiddling with scouring the Internet to look for instructions on compiling or even scripting them in. Oh, and if you’re curious if you need to purchase anything from Microsoft in order to run Ubuntu under Hyper- V, the answer is: no. There are paid services from Canonical that you might be interested in, but Microsoft isn’t asking for anything. No edition of Linux consumes a virtualization right from Microsoft. Last updated September 9th, 2. ![]() Xenial Xerus tools. Why Ubuntu? I’m not a Linux expert by any stretch of the imagination. I’ve been using it off and on ever since I learned about it, but not enough to reach true proficiency. Traditionally, I’ve been a Red Hat person, but things got strange when Red Hat splintered out into RHEL, Cent. OS, and Fedora, and I started looking at my options. Over the last few years, I’ve switched over to Ubuntu. While I think that Red Hat still wins in the “polish” department, I found that Canonical had really nailed a lot of things in the ease- of- use and approachability departments with Ubuntu Desktop. So, why Ubuntu specifically? Well, I wanted a major distribution backed by a commercial operation. That way, presumably, if you get really backed into a corner, you can get some paid assistance. Since I’ve never called or paid any of these companies, I guess I just took a leap of faith on the one that I chose (that would be Canonical). Welcome to the Citrix Community page where you can connect with experts and join the conversation about Citrix technologies. Remote Desktop Services (RDS), known as Terminal Services in Windows Server 2008 and earlier, is one of the components of Microsoft Windows that allows a user to take. As to the exact distribution, I went through a few of them before settling on Ubuntu. Its installation still isn’t the best; I thought that Cent. OS pretty much crushed Ubuntu on that. However, once the server was up and running, I had an easier time getting things to work on Ubuntu without a lot of hard stops to go look things up on the Internet. There was guessing, and tinkering, and redoing, but really not much. ![]() Why Ubuntu Server Instead of Desktop? As I said, I was really impressed with Ubuntu Desktop. However, version 1. Ubuntu major versions are just the last two digits of the release year; minor versions are the month). The GUI requires 3. D acceleration now. ![]() ![]() ![]() For hardware systems, that’s not a big deal. Even budget video chips have been doing basic 3. D acceleration for a long time. Servers, though, not so much, and nearly nothing for standard Hyper- V guests. There are ways to make it better, but you just can’t get back to the interface speeds of 1. In Hyper- V, that’s a deal- breaker for most people in my situation. ![]() There’s no way I’m setting up a Remote. FX system just to run Ubuntu Desktop when all I really need is server capabilities. But, with Server, all you’ve got is the plain- text command- line. For a busy non- expert like me, that can seem daunting. But, let me put you at ease: if you have done as we’ve been begging you and gotten on board with Power. Shell, even a little bit, or even if you’ve got some DOS in you, Linux is a whole lot easier than you think it is. You see, in Linux, pretty much everything is a file. In contrast, think about a Windows program. You have to install it, which creates two dozen files in eight directories and sixty to a hundred registry entries in every branch. Then you have to run one of its exe files. Or maybe a com file. Perhaps a cmd file that calls a com file. Hopefully there’s an lnk that calls at least one of them. There might an exe that attaches to six or thirty- six dll files, some of which might be in Win. Sx. S, or maybe in System. It might read some of those registry entries to get going. It might read app. It might read an inf. It might have My. Settings. It’s probably got stuff in %APPDATA%, but maybe in %USERPROFILE%. Hopefully, its programmers learned to keep changeable things out of %PROGRAMFILES% or you’re going to have problems with User Account Control. It might have a developer that thought all of those things were stupid and went off grid doing something no one can predict. All this is if you’re lucky and don’t have to be concerned with whether or not it’s %PROGRAMFILES% because you’re on a 3. PROGRAMFILES(X8. 6)% because you’re on a 6. SYSTEM3. 2 now because someone still thinks that 1. Got all that? Now, back to that Linux program. It may have multiple executables, and that can be annoying. But, once you hit the right one, it will read a configuration file (which is almost always in plain text), and then it will start based on whatever it found. That, right there, describes about 9. Linux. The hardest part is figuring out what to put into the configuration file. Any Internet search engine can get you through most of those. On top of that, as I look over my Nagios post, most of what we were doing involved typing in the terminal anyway. So, going with Server (which pretty just much means no GUI) is just not a big deal. So, let’s get started. Downloading Ubuntu Server. Acquiring Ubuntu is the easy part. Go to http: //www. Click on Server in the top menu bar. Today, that takes you to http: //www. Click the Download button. Pick a distribution and get it. The current version is 1. Xenial Xerus”, which is marked as “LTS”. That stands for “Long Term Support”. In Ubuntu’s case, that means that Canonical will provide direct support for this release for five years. By contrast, non- LTS releases are supported for a few months. Upgrades are generally painless in my experience so I don’t personally worry very much about it, but if your organization has tighter requirements, consider only using LTS releases. You can read about the differences on Canonical’s LTS wiki page. With server, there is no longer a 3. If you are choosing an older or different distribution that still offers 3. Hyper- V integration components only work on 6. Linux guests. The file that you download is an ISO. Put that in a place where your Hyper- V host can find it. How to Build the Linux Hyper- V Virtual Machine. There’s no GUI and Ubuntu Server is a tiny little OS, so don’t create a large virtual machine. These are my guidelines: 2 v. CPUs, no reservation. Utilization is going to be really minimal, but all modern operating systems work noticeably better when they can schedule two threads as opposed to one. If you’re strapped, you could limit these. Dynamic Memory on; 5. MB startup memory, 2. MB minimum memory, 1. GB maximum memory. Ubuntu Server seems to have a sweet spot somewhere around 1. GB. Of course, you can always adjust Dynamic Memory’s maximum upward, even when the VM is active. Start low. 4. 0GB disk is probably much more than you’ll ever need. I use a dynamically expanding VHDX because there’s no reason not to. The published best practice is to create this with a forced 1 megabyte block size, which must be done in Power. Shell. I didn’t do this on my first several Linux VMs and noticed that they do use several gigabytes more space, although still well under 1. I leave the choice to you. In my personal experience, Generation 1 just works better. I’ve noticed this for all virtual machines, but it’s especially true for Linux. The biggest issue with Gen 2 is that it has momentary network hiccups, which is not good for the things I envision using Linux for. Not everyone experiences these problems — your mileage may vary. If you choose to use Generation 2, remember to turn off Secure Boot because that’s not going to work for Linux until Hyper- V Server 2. The following is a sample script that you can modify to create a Linux virtual machine in Hyper- V. VMName = 'svlinux'. VHDName = '. If you choose right now to name your VM and VHDX accordingly, you’ll have that much less work to do later. From there, a simple Start- VM will get us going. Rev it up and get connected to the console using the method of your choice. Most of the rest of this portion will be the screenshots of what you’ll see. Choose your language. Language Selection. Press Enter on Install Ubuntu Server. Install Selection. Some text will roll by as it starts up the installer processes and then you get to pick the language again because reasons (I told you Cent. OS had a smoother installer). The wizard works well enough in my limited testing but most uni- lingual keyboards can be pretty easily selected by going the route of the list. Only the initial option is shown. Keyboard Selection. Some components will load. This isn’t terribly long. Don’t go away because there’s more to enter. Initial Component Load. Next is the computer name. If you’re going to template this VM, you can put in a generic name. Linux doesn’t have all the issues around computer renaming that Windows machines do, so I don’t invest a lot of effort here. As far as I know, you can enter a full domain name, but I never do. I haven’t ever seen this show up again after entering it. I’m sure it’s in there somewhere. This is the one that you’ll have to type, so curb your creativity. It will have root powers, so you should choose something really hard to guess, like “password” (my lawyer would like me to remind you that any dumb things you do based on my advice are your fault). There will be another screen immediately after (not shown) asking you to confirm the password, so you should probably choose a password that you can remember. I never do this because the only thing I store there are scripts and such that I’m probably going to publish online anyway. Do whatever you think is best. I didn’t check to see what happens if there’s no access or if it can’t figure out whatever it wants to figure out, but I assume it would have you pick your time zone from the list that it’s offering here. It correctly guessed mine so I didn’t have to do that. Here’s my screen. Choose Your Time Zone. Now, we move on to disk configuration. Welcome to the Citrix Community. Citrix User Group Community (CUGC)Join this new online community of technology professionals dedicated to helping members and their businesses excel through education, knowledge- sharing, networking and influence.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |