A magical journey to install Ubuntu under Hyper-V

Source: Internet
Author: User
Tags get ip


As a rookie who wants to develop WindowsPhone, Decisive use of the Win8.1 Professional version, installed VS2013 and WP8 and other SDK, then, I found that now a lot of Daniel are using Linux, so also want to pack B, install a Ubnutu virtual machine (Linux is really too high-end). So the question is, which of the virtual machines is good? VMware, and then installed VMware, the result is tragic, unexpectedly prompted me to conflict with Hyper-V. This is obviously a blatant provocation ah, you do not have me, I do not have you ah. Here to say, WindowsPhone's simulator is based on Hyper-V, what Hyper-V is, simply speaking, is Microsoft's virtualization platform. I got tangled up here. What should we do? Thus, the Internet to find some, the final result is, in the Windows Add and remove function to remove Hyper-V can, do not ah, I also have to play my cute windowsphone simulator every time, do not have to open the closed open close. Although my computer has 120G SSD and 8G of RAM, that can not be so capricious ah. Suddenly, an epiphany, hyper-V was said by Microsoft so good, why I can not install Ubuntu in Hyper-V, perhaps better than VMware ... So, a magical journey began.

First, install Ubuntu

First open our Hyper-V manager, which looks like this:


You can see that there are many different versions of the virtual machine installed in the WindowsPhone. Our task is to install Ubuntu, forgive me Ubuntu has been installed ..., and then re-install one. But before we do, we'll start by creating a new network switch:

Click on the right "virtual Machine Manager" to appear


After clicking Create, click OK to appear.


Click "New", "Virtual machine"


Because the operation is simple, I have direct ...


Name yourself one, the default is to save the virtual machine in the C drive, tick "store the virtual machine in another location", select the location you want to store.

Select the first generation ...


Allocating memory


Next, select the virtual switch you just created


Next, set the hard disk size.


Next, select the ISO file to install the system.


Next, the final configuration information, configuration is correct then click Finish.


I just waited for 3 seconds .... It's over. But it hasn't been installed yet.

Back to Main Page


Click Connect ...

Click to start the installation start ...


The installation process, I will not repeat ... Next n times:

Here is the Ubuntu that is already installed:

After installation, the mouse movement within the virtual machine is always slow, and the interface cannot be fullscreen. The Pit Daddy Ah ... No, VMware is cool. However, since all have been installed, since the intention to use Ubuntu (Zhuang) Learning (BI), why not further ... I can completely use Ubuntu as a remote virtual host, with the operator interface is not big on AH. I'm going to use Xshell remote control. Ha ha. and Hyper-V supports automatic running of virtual machines on boot, which is quite in line with the taste.

Just do what you say.

Step one: Ubuntu open ssh

For convenience, switch Ubuntu Admin account

1. Open Terminal (ctrl+alt+t)

2. Input sudo passwdroot

3. Enter the current password

4. Enter the root password

5. re-enter the root password

6, switch to root ,suroot

7. Enter the root password

Step Two: Install SSH

Input command:apt-getinstall openssh-server install ssh

When the installation is complete, turn on the service

/etc/init.d/ssh start

Then use the following command to see if it starts correctly

Ps–e | grep ssh

appear as, sshd and the ssh-agent It 's just starting to succeed .


Step three: Turn off the firewall

UFW Disable

View firewall status

UFW status

If it's closed, it's inactive.

Fourth step: Set up a static IP

Because the Ubnutu default is to use the dynamic get IP, if you use the router, then get the IP should be 192.168.1.XX

In the online search to set the static IP method, but also to change the configuration file or something, a variety of try not to work, so the most primitive method:



After filling, save.

Fifth step: Download and install Xshell, connect Ubuntu

It's not available here, and there's a search.

Set link parameters in Xshell, primarily IP and user names and passwords



Link

The connection was successful.

Then, in Ubuntu settings, the default startup for command line startup,

sudo gedit/etc/default/grub
Settings: grub_cmdline_linux= "Text"
Then sudo update-grub,

Command line mode is required to return to graphical mode, Input command: StartX in turn, return command line mode in graphical mode, press CTRL+ALT+F1 in terminal

This is even more of a force lattice.

Next, just try to toss it.

A magical journey to install Ubuntu under Hyper-V

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.