Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure build #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Azure build #28

wants to merge 2 commits into from

Conversation

OnGle
Copy link
Member

@OnGle OnGle commented Dec 20, 2016

Microsoft Azure

It's probably worth noting the bt-vhd and vhd-bundle scripts are copied from
the vm counterparts so there is most likely unnecessary code left over.

Microsoft Azure only supports fixed vhds (vpc) aligned to 1MB. Using
"qemu-img info" and "qemu-img resize" this is trivial. First resize the image
to the next largest 1MB and then convert the raw image to a vpc fixed sized
image and pass "force_size" to assure the image is not padded during
conversion.

"qemu-img convert -o subformat=fixed,force_size ..."

Note a bug in qemu preventing it from maintaining image size between vhd
conversions has been fixed in qemu 2.6. Qemu will need to be updated to convert
raw to azure compatible vhds.

Waagent was running correctly previously however since my most recent commit it
isn't polluting the root console of the vm nor is the vm saying the agent is
running. While I'm not 100% sure I suspect this is because I was previously
(accidently) running the azure patch twice, once directly from the bt-vhd
script and one from within bin/vhd-bundle, during cleaning up I removed the
call from bt-vhd.

Other notes

  • Waagent seems to handle ssh/user accounts on Azure, although I'm unsure of
    how it works as I was never able to login to any of my test machines on
    Azure.

  • A few grub options are added to GRUB_DEFAULT, I was unsure of their effect
    and not knowing possible implications either way decided to follow MS's
    advice.

  • Azure doesn't support LVM, so LVM is not present azure build code

  • Waagent pollutes the TKLDev's root console as well as changes it's hostname,
    nothing destructive that I've noticed though.

  • The ethernet interfaces should probably be hotpluggable by default

  • The azure cli appears to either auto-update or retrieve avaliable commands
    from microsoft, as I've noticed command names change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant