ovftool
来源:互联网 发布:网络政治参与缺陷 编辑:程序博客网 时间:2024/06/07 08:14
OVFTOOL
convert local vmx to vsphere:
$ ovftool -ds=ntnx1 -n=vm1 -nw="VM Network" CentOS.vmx vi://root:vmware@192.168.0.200/Datacenter/host/Cluster/Opening VMX source: CentOS.vmxOpening VI target: vi://root@192.168.0.200:443/Datacenter/host/Cluster/Deploying to VI: vi://root@192.168.0.200:443/Datacenter/host/Cluster/Transfer Completed Completed successfully
$ ovftool -tt=vmx xvm1.ova .
$ ovftool vi://root:vmware@192.168.0.200/Datacenter/host/Cluster/Resources/vms/gw .
refer:
http://fosshelp.blogspot.com/2013/06/how-to-use-ovftool-command-line-utility.html
How to use ovftool command line utility
1)
To see all VMs in the ESXi Server 192.168.1.26
2)
To get the ovf of VM demovm1
3)
To get the ovf of VM vcenter2, poweroff VM before taking ovf
4)
To get the ovf of VM using moref "238"
5)
Download ovf file with progress tracking (Working)
6)
Convert an OVF to a VMX
7)
Create a new VM "p1" on ESXI node 192.168.1.26 using *.vmx file
-n --> Name of new VM
8)
Create a new VM "k1" on ESXI node 192.168.1.126 using *.ovf file
9)
Convert a VMX to an OVF
10)
Convert a VMX to an OVA
1)
To see all VMs in the ESXi Server 192.168.1.26
#ovftool vi://192.168.1.26
2)
To get the ovf of VM demovm1
#ovftool vi://192.168.1.26/demovm1 ~/Desktop/ovfs/
#ovftool vi://root:xxxxxx@192.168.1.26/demovm1 ~/Desktop/ovfs/
3)
To get the ovf of VM vcenter2, poweroff VM before taking ovf
#ovftool --powerOffSource vi://root:xxxxxx@192.168.1.26/vcenter2 ~/Desktop/ovfs/
4)
To get the ovf of VM using moref "238"
#ovftool vi://root:xxxxxx@192.168.1.26?moref=vim.VirtualMachine:238 ~/Desktop/ovfs/
5)
Download ovf file with progress tracking (Working)
#ovftool --machineOutput vi://root:xxxxxx@192.168.1.26?moref=vim.VirtualMachine:238 ~/Desktop/ovfs/
6)
Convert an OVF to a VMX
#ovftool -tt=vmx a2.ovf ~/Desktop/
#ovftool vm1.ovf ~/Desktop/vm2.vmx
7)
Create a new VM "p1" on ESXI node 192.168.1.26 using *.vmx file
#ovftool -ds=datastore2 -n=p1 demovm2.vmx vi://root:xxxxxx@192.168.1.26/
-ds --> Datastore-n --> Name of new VM
8)
Create a new VM "k1" on ESXI node 192.168.1.126 using *.ovf file
#ovftool -ds=datastore2 -n=p2 demovm2.ovf vi://root:xxxxxx@192.168.1.26/
9)
Convert a VMX to an OVF
#ovftool -tt=ovf a2.vmx ~/Desktop/
#ovftool -tt=ovf demovm2.vmx .
10)
Convert a VMX to an OVA
#ovftool -tt=ova a2.vmx ~/Desktop/
#ovftool -tt=ova demovm2.vmx .
a)
ova to ovf
#ovftool -tt=ovf xvm1.ova .
b)
ova to vmx
#ovftool -tt=vmx xvm1.ova .
11)
How to convert ova to ovf to vmxa)
ova to ovf
#ovftool -tt=ovf xvm1.ova .
b)
ova to vmx
#ovftool -tt=vmx xvm1.ova .
0 0
- ovftool
- 安装Bundle格式文件(ovftool)
- Linux下安装ovftool
- OVFTool 4.1 vmdk格式换成OVF格式
- win7 利用ovftool将.ova转化为.vmx
- ovftool生成的ovf文件在ESX4.1.0上的兼容问题
- Hadoop pig进阶语法
- 测试udp 端口是否开放
- ios多线程的几种创建方式
- 卡萨布的结果把手机的胳膊上的冠军巴萨夺冠
- 开始学习PHP之创建数据库和表
- ovftool
- 元件使用教程——交互热区类元件
- python中字符串方法
- 条件转移指令表格经典收藏(汇编)
- 我是这么利用数据——肥肉吃多了会腻
- python中range函数
- $_FILES文件类型
- 数据存储之sharePreference
- 感悟人生