Install Windows on DebianEtch

Source: Internet
Author: User
Install the Windows-Linux Release Technology-Debian information on DebianEtch. For more information, see. To install Windows on Linux, in addition to VMWare's full-virtual software, xen can also be used to implement hardware-supported virtualization. Now, xen is built in all major releases. I was planning to try it on Redhat Enterprise 5, but hardware configuration is too troublesome. It is too troublesome to compile the source code. It is best to use the installation package once, and finally decide to use Debian Etch. Several apt-get statements will be done, which is very convenient.

Prerequisites for installing Windows:

The CPU must support Intel VT or amd pt virtualization technology. To check whether the CPU is supported, run the following command:

Grep vmx/proc/cpuinfo

Grep svm/proc/cpuinfo is used for amd cpu.

My hardware configuration: Intel Core2 Duo T7200 2 GHz, 2G RAM

Install Debian Etch and Gnome Desktop first. The first step is to install the kernel supported by xen. Note that the version must be consistent with the current Linux kernel. Install with apt-get:

Xen-linux-system-2.6.18-5-xen-686
Xen-tools
Libc6-xen
Xen-ioemu-3.0.3-1
Xen-hypervisor-3.0.3-1-i386-pae
Bridge-utils

After the installation is complete, restart the system, in GRUB you can see the kernel with xen, after the boot found that the wireless network card does not work, you need to install a ipw3945-modules-2.6.18-5-686, after restarting the network card works normally.

Step 2 is installation preparation. First, create a 4G file as the Windows virtual hard disk:

Dd if =/dev/zero of =/home/xuefeng/xen/winxp. img bs = 1 M count = 4096

Prepare the ISO file for Windows XP. Put it in/home/xuefeng/xen/winxp. iso.

Compile the configuration file/home/xuefeng/xen/winxp. cfg. The following is my configuration file:

Name = 'winxp'
Kernel = '/usr/lib/xen-3.0.3-1/boot/hvmloader'
Device_model = '/usr/lib/xen-3.0.3-1/bin/qemu-dm'
Builder = 'hvm'

# Memory size:
Memory = 1024
Pae = 1
# Configure a hard disk and a CD:
Disk = ['file:/home/xuefeng/xen/winxp. img, ioemu: hda, W', 'file:/home/xuefeng/xen/winxp. iso, hdc: cdrom, R']

# Failed to start the network. Temporarily comment out:
# Vif = ['Type = ioemu, bridge = xenbr0']
# First set to start from d. After installation is complete, change to c to start directly from hard disk:

Boot = 'D'
Vcpus = 2
# Set VNC:
Vnc = 1
Vnclisten = '2017. 0.0.1'
Vncviewer = 1
On_poweroff = 'deststroy'
On_reboot = 'restart'

Run the following command to start the VM:

Sudo xm create/home/xuefeng/xen/winxp. cfg

After the VM is started, you can view all the VMS in the xm list. The last step is to connect to the winxp virtual machine through the VNC client. If xvncviewer is not installed first, start it after installation:

Xvncviewer 127.0.0.1

You can see the installation interface.
Related Article

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.