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




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

本帖最后由 jfx 于 2014-9-21 16:45 编辑
) I4 w# i* `7 j  F# _$ q
* g1 u! i3 }8 t2 H

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.

! Q! Y. s0 I0 h$ P3 E

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

/ m/ K' x7 ^; d' r7 G1 Q

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

  V5 D* H! n4 y

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

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


+ `9 f4 d" ^9 d

7 D( X  N8 z0 g8 p4 j

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

You will see the following screen:


7 Y- B7 ~/ B5 X' O& D5 `% ]) p


2 t! O' ^( b4 k5 k

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:


8 d  h' g% C% E0 _' z/ O' @* u/ m


' V4 S: H  Q3 O: W8 [

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:

; M2 ]/ y" s* ]; c- n


) u( ]4 B. z2 A4 ]

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:


* _! s( F' e: c( l2 b+ _1 [

8 u! `% u5 l8 O

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:

; e8 l" q9 W9 N' l$ k


9 V( h3 J7 y1 `  {5 }5 P8 P' ?. F

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:

* _" b+ `/ H' v* a% {- c3 F


0 O) i) o/ U: f. }

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

' R( S' A3 W; x

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, j( g2 l3 S, }* C: v, M0 O8 q+ C
For the people that do not know how to install Windows just follow the instructions and screenshots below

* ]) F2 C6 H) h. A- ~- J  E3 d


  W! z7 I. L; j+ j0 o  {3 W$ `. c2 q3 O# u

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”., g2 G+ Z! t$ w/ S
Once 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.


) z, A7 ^' i, A$ n

0 \, Y. x0 m( v2 G- b8 y* Y* _

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

- G5 A! G* N4 L2 y1 s. T


. {0 o0 R4 t8 u8 t

Windows will now start installing:


8 T* G7 m: X4 A3 n: [- \8 q3 D( @


/ r8 n3 R; Y9 H9 }+ a! u& A  _" V& k" m4 _  H+ i6 k$ x

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):

. k' R- H$ |+ g' ]* Z. U3 Q

. j) _4 x, }- M; c/ p* a

Click “Next” again, and configure Windows to your liking.
: h8 D) k/ y- B4 x  HOnce that’s all done, you will see your desktop, now follow the following steps.

Go to the Control Panel and disable the Firewall:

; J. Q+ M2 _; G" ]: ?* V# Q


; C3 _* U: y3 R% o+ L8 ^7 F

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:

# Z, Q9 K6 G* F( B- A; b6 g


- k$ C: d* g. z% K$ u9 g$ }

Now click “Apply” and “OK”


/ M* i2 C0 |; \# ?

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”.


$ l$ W( R* M& x2 @. R) q5 b# d& j

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:


1 @  U1 s! `: h3 i6 `9 ^5 i$ U

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”% w1 R/ Z  i6 N6 o8 ?9 ?9 Z
Once 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:


0 Z# H1 a! P. R" `

/ M* T1 }7 F9 q$ H

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.

% t+ l+ u5 A. l8 p

Enjoy

( Q7 o* h* ?! C4 L& I$ Y. e* r

5 l; d- ]5 x% f! u' y' M' ]6 ZRelate 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
互联网安全