[one-users] Add Volatile disk
Michael Curran
michael.curran at connectsolutions.com
Mon Aug 12 07:45:51 PDT 2013
I need to add a raw disk to be used with a windows VM - and this is the error message I get in the logs for the VM
Mon Aug 12 07:09:53 2013 [VMM][E]: mkimage: Command "export PATH=/usr/sbin:/sbin:$PATH
Mon Aug 12 07:09:53 2013 [VMM][I]:
Mon Aug 12 07:09:53 2013 [VMM][I]: if [ ! -d /vmfs/volumes/102/2/disk.2 ]; then
Mon Aug 12 07:09:53 2013 [VMM][I]: mkdir -p /vmfs/volumes/102/2/disk.2
Mon Aug 12 07:09:53 2013 [VMM][I]: fi
Mon Aug 12 07:09:53 2013 [VMM][I]:
Mon Aug 12 07:09:53 2013 [VMM][I]: mkfs -t NTFS /vmfs/volumes/102/2/disk.2" failed: sh: mkfs: not found
Mon Aug 12 07:09:53 2013 [VMM][E]: Could not create image /vmfs/volumes/102/2/disk.2
Mon Aug 12 07:09:53 2013 [VMM][I]: ExitCode: 127
Mon Aug 12 07:09:53 2013 [VMM][I]: Failed to execute transfer manager driver operation: tm_attach.
Mon Aug 12 07:09:53 2013 [VMM][E]: Error attaching new VM Disk: Could not create image /vmfs/volumes/102/2/disk.2
This is trying to use mkfs to create a NTFS volume, when you cannot do anything with VMware except attach a raw disk, there are no mkfs tools that will build and attach it as a NTFS volume
When I look up how to add a disk via ESXi command-line this is what I find ---- which is a completely different command than shown
It says add a disk to VM 16 that is 10g in size as SCSI device 0:2 using datastore1
vim-cmd vmsvc/device.diskadd 16 10000 scsi0 2 datastore1
The unique thing is though, that I cannot run that as oneadmin, because it fails - which means I cannot add a disk to the VM
# vim-cmd vmsvc/device.diskadd 20 15000 scsi 0 1 102
Reconfigure failed
And if I try to add the disk via vSphere , it cannot really add it because the disk currently in use is technically SCSI0:0 , but vSphere is still expecting SCSI0:0 as the next disk.
Does this sound like a bug, if so I can create a bug report on this instead.
Michael Curran | connectsolutions | Lead Network Architect
Phone 614.568.2285 | Mobile 614.403.6320 | www.connectsolutions.com<http://www.connectsolutions.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130812/557a21c4/attachment.htm>
More information about the Users
mailing list