On Thu, May 29, 2014 at 12:09 AM, Alexander Kellett <
lyp...@live.com> wrote:
> VHDX is not used by Azure and is difficult to generate from anything other
> than Windows IIRC. VHD is an “open” format and well supported by the VBox
> tooling for generation from Linux.
Recent versions of qemu-img support writing VHDX but sounds like VHD
is the better default.
>
> I’m going to give up on the Azure hosting side of this and stick to Hyper-V
> and then GCE for the actual deploys. Mostly because of my limits in upload
> bandwidth destroying any ability I have to actually test this..
>
> Here is some more information I found that might be of help when creating
> VHDs:
>
>
http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-create-upload-vhd/
>
> My current progress was:
>
> I tried creating a VHD with a exFAT filesystem with label config-2 but no
> luck, apparently the CoreOS image I’m using only has support for ext*,
> btrfs, and iso9660. I guess raw writing the iso9660 to the partition might
> work but I’ve no clue how to dd on Windows.
exFAT is not well supported on Linux but any of the normal FAT
variants work well. The config drive spec from OpenStack actually
dictates that the filesystem should be FAT or iso9660.
>
> In case it helps, the Powershell to create init partition format and mount
> as a drive letter is:
>
> New-VHD -Path test2.vhdx -SizeBytes 500MB | Mount-VHD -Passthru |
> Initialize-Disk -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize
> | Format-Volume -FileSystem FAT32 -Confirm:$false -Force
>
> I’d guessing that if CoreOS had a FAT driver it would have worked. Could
> also be that Initialize-Disk needs to be called with -PartitionStyle MBR as
> the default is GPT.
Either GPT or MBR is fine. The disk image can actually be a plain
filesystem image without a partition table too which makes it easy to
use plain .iso files as disk images.