$7.49 .com domain with free InstantPage Website Builder$1.99 Web Hosting   捷飞网络官方淘宝店   Godaddy 优惠码
返回列表 发帖
分享到:




[应用&技术] 分享如何为你的kimsufi和online创建Windows系统镜像教程

本帖最后由 jfx 于 2014-9-21 16:45 编辑
  Y: J9 e$ Q3 s# m( i5 B
" Y/ X2 Y! G# g- H" D! M! f

So you are looking to create your own Windows Template for your Kimsufi Server? Well, keep reading because i will be explaining how you can do that yourself using Proxmox. This tutorial will be detailed and with screenshots, so you can’t go wrong, can you?

Do you need help? Send me an email at joodle@joodle.nl

Things you will need:

  • Dedicated server or a KVM VPS with Proxmox installed (VirtualBox will also work though, but I will be using Proxmox with this tutorial).
  • VPS or Server  with at least 5GB of available disk space. (Your Computer or Laptop will also work of course, but a server is usually faster when it comes to network performance)
  • Windows ISO (e.g. Windows Server 2012 R2, Windows 8/8.1).
  • Ubuntu ISO (or any Linux that allows to run from RAM) to create a dump of the Windows disk.
6 t! m" L: U; J4 d1 H

Make sure to have the ISO’s uploaded to the “/var/lib/vz/template/iso” directory on your Proxmox install.


; a8 }; Z7 F9 l5 X; j% D% Z7 O

Let’s go ahead and create a new VM at Proxmox:


1 L/ z. \9 v4 ~9 K: W7 D

At “Name” you can fill in anything you’d like.

Now click the “Next” button and you will see the following screen:


9 B0 b* h) q* D/ |$ r# }6 M$ a


) _* T  `$ c2 @; w8 B

Click on the OS you’d like to install and click “Next” again.

You will see the following screen:


% ~) l* _4 @  x

+ F: K( v/ }4 v$ g) Y5 q

Select the ISO you would like to install. We will be using the Windows 8.1 ISO for this tutorial.

Click “Next” once again, and you will see the following screen:


( v, _/ B1 `. v' t" t

* y! \! S  y, x+ u

Just leave everything by default except the disk size, change that to 20GB which is just enough to cover the Windows install (a small disk size like this will reduce the time of the disk dump later on).

Click “Next” again and you will see the following screen:

8 W/ x) x' o& D& d- m% y" C& e

1 Q; D( ^2 x5 I! H+ @. j& f

Any amount of cores will do, you can leave everything on default. I chose 4 cores, you can set the “type” to “host” if you’d like, but it’s not a requirement.

Click “Next” again and you will see the following screen:

: X) R4 `( z3 }7 [9 m

8 F( y: X6 a  Y; a5 M1 ?: U( }+ Q  G

Set the RAM/Memory allocation to at least 1024 MB, I have set it to 2048 MB just for the sake of it.

Guess what? Click “Next” again

You will see the following screen:

. J9 ~  u  ^  G; Z


  H! T) e% I. Q- M

Select “NAT mode” so we do not have to config the network later on when we’re going to make a dump of the Windows disk with Ubuntu.

Click the “Next” button again and you will see the following screen:


8 i* l/ n- C! @- S* v& g+ }9 r1 c4 d

. P' i5 J; }7 N8 S2 R0 h+ _  S  z# N

Click the “Finish” button now and it will create the VM


1 I, {4 {6 \4 I! |

On the upper right corner you will see a “Start”  button () Click on that to start the VM, now click the “Console” button to get to the console, a new screen will pop-up.

Wait for the Windows install to begin and follow the instructions to install Windows. Almost everyone knows how to install Windows right? It’s not that hard" }+ N* R3 V( P: [7 P
For the people that do not know how to install Windows just follow the instructions and screenshots below


2 G) t* Y2 k" `# j. B

9 F& @2 P. `& j3 h* H  e
+ C+ W( _6 A3 N' }

Click “Next” and you will see a screen with a “Install Windows” button, click that and you get to a screen with License terms, accept it and click “Next”.
  ~& R! p: v+ J) Y( IOnce you’ve clicked Next you will see a screen where you can choose between an upgrade or a custom install (see screenshot), click on the Custom Install.

% V/ H/ {6 J4 q* v7 e4 U


7 H  t* @9 R6 i$ N9 O" e7 y' k

The installer will now ask you where you want to install Windows, just click the “Next” button.


4 R$ G+ l, ]9 F2 Y) K/ w


+ c# h" t* y: R4 |' i7 H

Windows will now start installing:


3 ?" j% s2 F! Z5 I$ `6 S' n" V0 o


+ @  l- J$ D; s. {) P2 o2 P* K3 g0 r9 r. b4 @

Once done the VM will reboot and you will see the following screen (or similar on Windows 7, Windows Server 2008 (R2), Window Server 2012 (R2) etc):

6 c8 Q9 N$ [5 H

% g! y0 q4 _' C' t! X

Click “Next” again, and configure Windows to your liking.
; Y5 U* k/ \7 U- v. cOnce that’s all done, you will see your desktop, now follow the following steps.

Go to the Control Panel and disable the Firewall:

2 O: _4 V, P1 g# }0 J1 F- `* Z

! y2 d7 M. A; D1 N" V

Now, let’s enable Remote Desktop. Go to This PC –> Properties, it will open a new window, click on “Remote Settings” on the left. It will open a new window, enable everything I have enabled:


& N% C4 i* \/ E: ]- Y) J9 o


) s- u& @. c  t" \1 q

Now click “Apply” and “OK”


5 m! m5 e5 _, m  R* P

If you’re using Windows 7 or 8/8.1 you may also want to change some settings at the power options. Make sure that “Turn of the display” is set to “Never”.

% E5 Q9 w. ?. W3 y& N

Now let’s shutdown the VM and mount the Ubuntu ISO (Any linux will do, but we’ll be using Ubuntu for this tutorial).

Go back to Proxmox, select your VM and click on the “Hardware” button. Now double click on “CD/DVD Drive” and select your Ubuntu ISO, after that click the “OK” button. Now click on the “Options” button, double click on “Boot order” and at the pop-up screen change “Boot Device 1″ to CD-ROM, click on “OK” once again.

Now start your VM again, make sure to open the Console by pressing on the “Console” button. Wait till the Ubuntu install screen is loaded and click on the “Try Ubuntu” button.

Once Ubuntu is loaded, open up the Terminal:


6 h8 x% L6 A: S3 S) i

Once the Terminal has opened we will be inserting a few commands there. First one is “sudo -i” without the quotes to make ourself the root user.

Now create a new directory: “mkdir /mnt/temp”. Once that is done install SSHFS using “apt-get install sshfs”. Now, you will need a VPS or Server with at least 5GB disk space available. We will be uploading the template to that server while we are dumping the disk.

Now mount the external storage using the following command: “sudo sshfs root@YOURVPSIP:/home /mnt/temp”
. D$ a1 p0 h% `+ M, QOnce that is done create a DD (dump) of the disk using the following command: “dd if=/dev/sda | gzip -1 | dd of=/mnt/temp/WindowsTemplate.gz”

If you’ve done everything correctly you will see the same things at the terminal as in the screenshot:


& S; v. m' D( {


2 _* D& W" H- t4 Q9 i$ j" R0 {- x

This can take a while, so get a coffee, thea or whatever you like and come back in about 15-20 minutes (this depends on the speed of your server and network, could take longer, but could also take less than 15 minutes).

Once it’s done, the template will be available for use on your Kimsufi server. You can use my tutorial on how-to install Windows on a Kimsufi Server to install your own, freshly created, Windows template. Just replace the link/url of the .gz file with your own link/url.


8 _1 f" m+ T! M

Enjoy

2 R3 `' T  ~- q' ?
, _9 Q! a7 n7 p: e) _5 U
Relate to http://joodle.nl/how-to-create-your-own-windows-template-for-kimsufi/

返回列表
Namecheap
Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting
互联网安全