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

How to migrate windows and linux to OpenStack offline by P2V

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

Share

Shulou(Shulou.com)05/31 Report--

How to migrate P2V from windows and linux to OpenStack offline? for this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

P2V cold migration of windows to openstack will encounter some problems, mainly hard disk, network card driver problems. Here are the solutions. There is no detailed description of the specific steps for the use of clonezilla.

Clonezilla system cloning tool

It can be said to absorb the advantages of Norton Ghost and Partition Image. Supports the cloning of a single partition and the entire hard disk for flexible application.

The function of Clonezilla

The file systems supported on the GNU/Linux side include: ext2, ext3, reiserfs, xfs and jfs;. At the same time, Clonezilla also supports FAT and NTFS file systems on Windows. This means that Linux and Windows systems can be cloned using Clonezilla.

Clonezilla supports the use of PXEBoot for Multicast cloning. This is extremely useful for users who need to clone a large number of systems.

CloneZilla includes a Live version that allows you to clone the system without installing it.

Download Clonezilla

Download Clonezilla

After downloading the ISO, make it into a CD and use it to start the physical server that needs to be migrated.

The special features of Windows

Before backing up windows, you need to download MergeIDE.zip and extract it, double-click to run the MergeIDE.bat file, and restart windows. The reason for doing this is to get windows to support IDE devices.

Cloning system with Clonezilla

Relatively simple, select the hard disk to the img file, you can save the backup to the removable hard disk or network storage. Follow the hint and the next step is basically no problem.

Refer to here

Restore cloned system

Create a new virtual machine manually on the openstack computing node, start the virtual machine with Clonezilla ISO or CD, and restore the system to the virtual machine.

The specific steps are similar to backup, and you need to select the image file to restore to the hard disk. Turn off the computer after the restore.

Install the driver for windows

If you are migrating the windows system, you need to install the hard disk and network card driver. The virtio driver is used in KVM to improve the IO performance of the virtual machine.

Download: hard disk drive, network card driver, put on the computing node.

Now the virtual machine uses an IDE disk device, which is converted into a virtio interface. Conversion steps:

1. Stop the virtual machine, add a new hard disk and mount it as the second hard disk of the virtual machine with virtio interface, mount the virtio-win-0.1-30.iso drive image as the CDROM device of the virtual machine, add a floppy disk device, and mount virtio-win-1.1.16.vfd2. Start the virtual machine, enter the system, open the device manager to install the virtio driver, refer to http://www.2cto.com/os/201212/175627.html3. Shut down the virtual machine, remove the newly added second disk and floppy disk, and change the interface of the original disk from IDE to virtio Starting the virtual machine completes the interface conversion of win and linux virtual machine image format # qemu-img convert-f raw-O qcow2 win2003.img win2003-server.img# qemu-img info win2003-server.imgimage: win2003-server.imgfile format: qcow2virtual size: 500G (536870912000 bytes) disk size: 17Gcluster_size: 65536 add image to OpenStack # glance add name=win-2003-server is_public=true container_format=ovf disk_format=qcow2 < / opt/win2003-server.img

You can now create a virtual machine with a template on dashboard to check that the instance is working properly.

This is the answer to the question about how P2V can migrate windows and linux to OpenStack offline. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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