Vmware: Difference between revisions
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
VirtualApp: false | VirtualApp: false | ||
Name: test | Name: test | ||
Annotation: Test image. | Annotation: Test image. | ||
Line 24: | Line 24: | ||
HD: 50G [ Optimal Performance = Thick Provision Eager | HD: 50G [ Optimal Performance = Thick Provision Eager | ||
Zeroed ] | Zeroed ] | ||
Download Size: 1.69 GB | Download Size: 1.69 GB | ||
Line 49: | Line 49: | ||
Capacity: 50.00 GB | Capacity: 50.00 GB | ||
Disk Types: SCSI-VirtualSCSI | Disk Types: SCSI-VirtualSCSI | ||
NICs: | NICs: | ||
Adapter Type: VmxNet3 | Adapter Type: VmxNet3 | ||
Line 55: | Line 55: | ||
Setup machine from image. | Setup machine from image. | ||
/vmfs/volumes/datastore1/vmware-ovftool/ovftool -dm=thick -ds=datastore1 "--net:vmware=VM Network" '/vmfs/volumes/datastore1/ipmon_images/ | /vmfs/volumes/datastore1/vmware-ovftool/ovftool -dm=thick -ds=datastore1 "--net:vmware=VM Network" '/vmfs/volumes/datastore1/ipmon_images/Test_image.ova' 'vi://root:password@localhost' | ||
Opening OVA source: /vmfs/volumes/datastore1/Test_image.ova | |||
Opening OVA source: /vmfs/volumes/datastore1/ | Opening VI target: vi://root@10.151.105.131:443/ | ||
Deploying to VI: vi://root@10.151.105.131:443/ | |||
Transfer Completed | |||
The manifest validates | |||
Warning: | |||
Opening VI target: vi://root@10.151.105.131:443/ | - No manifest entry found for: 'IPsoft-SL-6.6-NovAPP-05092015-disk1.vmdk'. | ||
Deploying to VI: vi://root@10.151.105.131:443/ | Completed successfully | ||
Transfer Completed | |||
The manifest validates | |||
Warning: | |||
Completed successfully |
Revision as of 12:05, 23 October 2015
Reload vmx file
vim-cmd vmsvc/reload Vmid
To power on a virtual machine from the command line:
- List the inventory ID of the virtual machine with the command:
vim-cmd vmsvc/getallvms
- Check the power state of the virtual machine with the command:
vim-cmd vmsvc/power.getstate <vmid>
- Power-on the virtual machine with the command:
vim-cmd vmsvc/power.on <vmid>
deploy vmware machine on cli
Look at image.
/vmfs/volumes/datastore1/ipmon_images/vmware-ovftool/ovftool /vmfs/volumes/datastore1/Test_image.ova OVF version: 1.0 VirtualApp: false Name: test Annotation: Test image. Virtual Machine Version: 8 CPU: 4vCPU Memory: 8G HD: 50G [ Optimal Performance = Thick Provision Eager Zeroed ] Download Size: 1.69 GB Deployment Sizes: Flat disks: 50.00 GB Sparse disks: 3.86 GB Networks: Name: vmware Description: vmware description Virtual Machines: Name: Test-SL-6.6-NovAPP Operating System: rhel6_64 Virtual Hardware: Families: vmx-08 Number of CPUs: 4 Cores per socket: 1 Memory: 8.00 GB
Disks: Index: 0 Instance ID: 9 Capacity: 50.00 GB Disk Types: SCSI-VirtualSCSI NICs: Adapter Type: VmxNet3 Connection: dvpg-VM Linux-820
Setup machine from image.
/vmfs/volumes/datastore1/vmware-ovftool/ovftool -dm=thick -ds=datastore1 "--net:vmware=VM Network" '/vmfs/volumes/datastore1/ipmon_images/Test_image.ova' 'vi://root:password@localhost' Opening OVA source: /vmfs/volumes/datastore1/Test_image.ova Opening VI target: vi://root@10.151.105.131:443/ Deploying to VI: vi://root@10.151.105.131:443/ Transfer Completed The manifest validates Warning: - No manifest entry found for: 'IPsoft-SL-6.6-NovAPP-05092015-disk1.vmdk'. Completed successfully