?
First, ???? Create a virtual machine on the Vsan box???? 1
Second, ???? install the Linux system???? 6
Third, ???? Reset the root password:???? 8
Four, ???? start the SSH service???? 8
Five, ???? Create a shared folder???? 9
?
?
Excerpted from the following Web page content:
How to install a Linux system on Virtual box: Http://jingyan.baidu.com/album/2009576197fd24cb0721b409.html?picindex=1
Linux Endpoints get root privileges: http://blog.sina.com.cn/s/blog_53d02d550101jyrp.html
SECURECRT connecting a Linux system in a virtual machine (Ubuntu): http://www.cnblogs.com/xuliangxing/p/4462929.html
?
?
First, create a virtual machine on the Vsan box
Click New on the menu;
Set a name that is set to Linux, version Ubuntu (+) or Ubuntu (+-bit);
?
set memory size , recommended to 512, click Next
Create a virtual hard disk
Click Next
Click Next
set HDD, recommended 8G, click Create
Once created, click on the "Settings" button and set "Pae/nx" and "Network Connection"
Select the "Enable PAE/NX" option
Set up the network connection as "bridge mode" so that the extranet can be connected directly in the virtual machine. Updates can be downloaded when the system is installed.
?
Second, install the Linux system
Download the latest Ubuntu system on Ubuntu website: Http://www.ubuntu.org.cn/index_kylin
Start a new virtual machine
Load the latest version of the Ubuntu image file that you just downloaded
Click Start to install;
?
Recommended check:
1. Download the update in the installation;
2. Install this third-party software; (This may not be optional)
Set the login password (the " Automatic login " option is optional)
Click Restart Now after installation
?
Third, reset the root password:
$sudo passwd Root #按照提示输入两次新的密码 and confirm it.
?
Iv. Start the SSH service
Installing Ssh-server
sudo apt-get install Openssh-server
Then restart the virtual machine
?
Confirm that the Sshserver is installed.
Ps-e | grep ssh
16224? 00:00:00 sshd
If you see sshd that means Ssh-server has been activated.
?
You can use the following command to see if a process is listening on port 22, that is, whether it is started:
Netstat-nat | grep 22
?
Extended configuration (not attempted)
configuration file for SSH location:/etc/ssh/sshd_config
Set Allow root login:
Note This line: Permitrootlogin Without-password
Remember to save and restart the SSH service when you have finished modifying the configuration:
Sudo/etc/init.d/ssh Restart or service ssh restart
?
?
V. Create a shared folder
Install the enhanced function, reboot after installation;
Install enhancements? addtional, turn off the computer after the installation is complete
After you add a shared folder to the virtual machine, restart the computer
Enter in the shell: Gpasswd–a fuke-ubuntu vboxsf
After you add the current user to the VBOXSF group, restart the computer
Now you can access the shared folder/media/sf_d_drive?, the effect is as follows:
?
SecureCRT Connect Ubuntu
Open the SECURECRT software and configure it. Protocol mode is selected as Ssh2,port for 22,hostname for 192.168.172.168 (which is our Ubuntu IP address), username for our Ubuntu login account.
Password for our Ubuntu login password
And then it's time to witness the miracle.
We randomly enter common commands: LS
Install the Linux system on Virtual box and start the SSH service