Virtualbox下使用virt-p2v
来源:互联网 发布:java qq好友列表 编辑:程序博客网 时间:2024/05/01 04:59
1 虚拟机迁移
参考:http://www.ibm.com/developerworks/cn/linux/l-cn-mgrtvm1/index.html
2 物理机到虚拟机的迁移
virt-p2v redhat官方文档:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/V2V_Guide/chap-V2V_Guide-P2V_Migration_Converting_Physical_Machines_to_Virtual_Machines.html
参考:
http://blog.csdn.net/tantexian/article/details/42877487
http://guwenwu285.iteye.com/blog/1633748
https://www.m690.com/archives/610
重点参考:http://blog.csdn.net/lbwlh/article/details/51003595
3 使用virtualbox虚拟物理机到虚拟机的迁移
3.1 准备conversion server
1 用virtualbox安装centos7
2 将/etc/ssh/sshd_config的AllowTcpForwarding设置为yes;PermitRootLogin设置为 yes并保证允许root可登陆ssh; service sshd restart重启sshd服务;
3 安装服务端: yum install virt-v2v
3.2 下载virt-p2v-1.32.7-2.el7.iso
去官网下载
3.3 准备虚拟physical machines
1 用virtualbox安装redhat6.6
2 安装完成后,关机,再添加虚拟光驱
3 启动redhat6.6
4 选择“Start Virt P2V”进入配置界面
Conversion server:配置安装virt-v2v服务端IP
User name: 服务端登陆用户名
Password:服务端登陆密码
SSH Identity URL:秘钥连接时使用
Configure network:配置网络,如果局域网内没有dhcp服务器就需要手动配置网络。
配置好以后单击“Test connection”,连通后才能下一步。
5 进入虚拟机配置页面
注意:这里所有的output选项和路径都是conversion server上的:
output to 选择local,
output storage 选择服务端存放镜像的目录,目录空间要大于待转服务的硬盘空间。
output format 是输出格式(qcow2 和 raw)
其它默认
勾选物理机上的所有硬盘,注意:如果使用U盘启动,不要勾选转化U盘;
点击start conversion,开始转化;
3.4 服务器端日志
查看转化日志
登陆服务端 tailf /tmp/virt-p2v-20170111-…
文件位置
转化完成后,镜像存在 output storage设置的目录
4 其它
4.1 存储空间
保证conversion server的空间足够大,以存放转化好的物理机
4.2 添加安装包
yum install libguestfs-tools-c libguestfs-xfs
yum -y install avahi
- Virtualbox下使用virt-p2v
- p2v之 virt-p2v
- Centos7下通过virt-p2v虚拟化Centos7服务器
- Centos 6下通过virt-p2v进行虚拟化转化(For Linux Server)
- Centos7下通过virt-p2v虚拟化windows Server 2008R2
- 使用virt-p2v工具将物理机迁移到Openstack虚拟机中
- 使用virt-p2v工具将物理机迁移到Openstack虚拟机中
- CentOS7使用virt-p2v将RHEL6.7的物理机转化为kvm虚拟机
- centos 6.5 p2v virt-p2v过程详解之一
- 关于Virt-P2V那点事
- Ubuntu下使用virt-manager创建虚拟机
- p2v
- Ubuntu下使用VirtualBox
- ubuntu下使用VirtualBox
- virtualbox 下使用USB
- centos6.7环境下kvm虚拟机之virt-install和virsh及virt-manager工具的使用
- Centos 6.4下VirtualBox使用
- 使用qemu和virt-manager
- java学习-基础(4)
- 【Git 教程(2)】 git工作流程
- 关于闹钟系统中,intent数据传递出错的问题修复
- Eclipse 4.6 Neon, could not create the java virtual machine
- BigDecimal精度运算、精度保存
- Virtualbox下使用virt-p2v
- Java异步调用模式
- SSH的使用和概要
- 树莓派 Qt5.7交叉编译
- 噢噢
- Context 内存泄漏
- 命令模式
- 【《代码整洁之道》精读与演绎】之三 整洁代码的函数书写准则
- 婆婆