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 solve the problem of virt-p2v

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

Share

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

This article mainly explains "how to solve the problem of virt-p2v". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the problem of virt-p2v.

The process of virt-p2v:

1. Make a virt-p2v boot flash drive

2. Find a machine as the transfer machine of p2v and use it in the third step to convert the data transmitted by the physical machine (this conversion machine starts the virt-p2v-server service).

3. Insert the above boot USB disk into the machine that will perform p2v (refers to the physical machine)

4. Start the physical machine that is inserted into the boot U disk, boot, select the U disk to start, and transfer the data from the physical machine to the virt-p2v-server service in the second step through the network.

5. The virt-p2v-server service receives the data and converts it to the corresponding virtual machine file according to the configuration

Note: in the use of virt-p2v, the general physical machine hard disk is relatively large, but the libvirt configuration option of virt-p2v can only be fully copied, so in many cases it is not very practical.

Attached below are the documents I found in the experimental virt-p2v, as well as some solutions to some problems.

Vim / etc/ssh/sshd_config

/ etc/init.d/sshd restart

Physical machine:

Generate a test-p2v file on the physical machine:

Before inserting the flash drive:

After inserting the flash drive:

Hang on the flash drive and format:

Mkfs.ext4 / dev/sdb

Yum install virt-p2v virt-v2v

Virt-p2v-server

Sudo mount-o loop / usr/share/virt-p2v/virt-p2v-0.9.1-2.20130730.1.el6.centos.iso / mnt/

Cd / mnt/LiveOS/

. / livecd-iso-to-disk / usr/share/virt-p2v/virt-p2v-0.9.1-2.20130730.1.el6.centos.iso / dev/sdb

Yum install isomd5sum*

Format u disk:

Mkfs.ext3 / dev/sdb

Yum install syslinux

Yum install syslinux-extlinux

Mkdir / home/p2v_dir

Virsh pool-create-as kvm-storage-pool dir-target=/home/p2v_dir

At this point, the production of p2vU disk is complete.

Server closed connection unexpertedly: EOF on channel in channel_read "

At this point, I believe you have a deeper understanding of "how to solve the virt-p2v problem". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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