Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of win2003 virtio openstack Image making on centos7

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you a sample analysis of the production of win2003 virtio openstack images on centos7. I hope you will get something after reading this article. Let's discuss it together.

The kvm version is:

1. There are many ways to make a mirror image

Using virt-install

Using qemu-kvm (Or qemu-system_x86)

Using the virt-manage graphical interface

>.

Please refer to other blogs for virt-install installation.

As long as we explain how to use qemu-kvm to create an image, there are two ways for qemu-kvm to create an image:

> > first, mount win2003.iso directly in-cdrom mode, mount virtio-win-1.1.16.vfd in-fda mode and start it.

This article will not be explained in detail. For more details, please refer to the blog: http://www.linux-kvm.org/page/WindowsGuestDrivers/viostor/installation

/ usr/libexec/qemu-kvm-m 2048-boot d-drive file=win2003virtiottx.qcow2,if=virtio-drive file=cn_win_srv_2003_r2_enterprise_with_sp2_vl_cd1_X13-46432. Isowriting mediahorse cdrom-drive file=virtio-win-0.1.109_x86_.vfd,if=floppy-net nic,model=virtio-usb-usbdevice tablet-vnc: 10

About the download address of virtio-win-0.1.109_x86_.vfd file: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/

> > second, the first step is to mount win2003.iso in-cdrom mode and start the installation in a non-virtio way. The second step is to start the image of the first step in virtio-win-0.1-74.iso in-cdrom mode, and then update the installation driver in win2003.

Note: virtio-win-0.1-74.iso download address: http://pan.baidu.com/s/1c0bNDXu (https://fedorapeople.org/groups/virt/virtio-win/deprecated-isos/archives/)

The following is the official start to create an image:

1. Download the iso image of win2003 (with address:)

Download virtio-win-0.1-74.iso (address: http://pan.baidu.com/s/1c0bNDXu)

3. Create a win2003 installation file (if qemu is not available, please install it yourself):

Qemu-img create-f qcow2 win2003virtiottx.qcow2 15000m

4. Start with qemu-kvm to create an image:

/ usr/libexec/qemu-kvm-m 2048-boot d-cdrom cn_win_srv_2003_r2_enterprise_with_sp2_vl_cd1_X13-46432.iso-drive file=win2003virtiottx.qcow2,if=virtio-net nic,model=virtio-usb-usbdevice tablet-vnc: 10

Next, explain the command in detail:

-boot d: indicates booting from CD. For more information, please refer to / usr/libexec/qemu-kvm-- help below:

-cdrom: Mount a CD disk

-drive file=: represents a disk file, and this time represents a blank disk (followed by if=virtio indicates that the bus communication mode of the disk file is virtio)

-net nic,model=virtio: indicates that the network card communicates with virtio driver

-usb-usbdevice tablet: add this parameter to make the mouse overlap (if not added, moving the mouse in the vnc will cause an offset)

-vnc: 10: indicates that the vnc address is ip:10 (where ip is the ip address of centos7)

For more information on qemu-kvm command parameters, please see http://linux.die.net/man/1/qemu-kvm

Note: many of the above parameters include virtio so that the system can automatically find the missing driver after the subsequent system installation.

If the initial image uses a non-virtio type of communication, then if you need to change it to virtio, you need to construct a virtio type.

For example, if you have been using an ide communication system disk, then if you directly change it to if=virtio, then you will not be able to identify the system because the driver has not been installed. So we can pass through

Mount another blank temporary disk, but the original system disk still uses ide, while the blank disk uses if=virtio. When booting into the system, install the virtio driver. Shutdown after installation.

Then, you don't need a blank disk, and directly modify the system disk to boot in if=virtio mode, and you can start normally (because the virtio driver has been installed in the system, you can recognize the boot system disk)

5. Use vncviewer to connect: (vncviewer download address: http://pan.baidu.com/s/1i3GUZAH)

Https://pve.proxmox.com/wiki/Windows_VirtIO_Drivers

Http://www.linux-kvm.org/page/WindowsGuestDrivers/viostor/installation

Next, install the network card driver, which is not so easy to install. According to the official statement, the driver of windows 2003 should use the driver in the WNET directory in the virtio-win-0.1-30.iso file, but not in practice. Instead, use the drivers in the AMD64 directory under the XP directory. The installed ones are as follows.

Https://pve.proxmox.com/wiki/Windows_VirtIO_Drivers/Changelog

Download address of win-virtio driver:

Https://fedorapeople.org/groups/virt/virtio-win/deprecated-isos/archives/

Http://alt.fedoraproject.org/pub/alt/virtio-win/

This location, and the isos that were hosted here, are now deprecated.virtio-win builds are now distributed in a new location with a new iso filelayout. A yum repo is also provided. More info here: https://fedoraproject.org/wiki/Windows_Virtio_DriversLinks to the _ new_ equivalent of the old stable/ and latest/ directories arelisted here: https://fedoraproject.org/wiki/Windows_Virtio_Drivers#Direct_downloadIf you need access to the old isos that were hosted here, there's a mirror at: https://fedorapeople.org/groups/virt/virtio-win/deprecated-isos/Only use them if you need to maintain backwards compatability. No new isoswill be added here.

Http://blog.chinaunix.net/uid-20776139-id-3481065.html

Restart the computer and win2003.qcow,if=virti0

Select wnet/x86

/ usr/libexec/qemu-kvm-m 2048-cdrom virtio-win-0.1-74.iso-drive file=/home/win2003.qcow.bak,if=virtio-drive file=kongbai.qcow,if=virtio-net nic,model=virtio-usb-usbdevice tablet-vnc: 10

After reading this article, I believe you have some understanding of "sample Analysis of win2003 virtio openstack Image production on centos7". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report