Commit e8778da

Repositorybojemoi
Branchmain
AuthorBetty
Hashe8778da95365c0e582aa011e7b12243abd6cf380

Description

Problem: alpine-meta XenServer template has no disk (CD-only); VMs halted immediately. IP was never detected because XenTools had nothing to run on.

Changes:

  • cloud-init alpine/minimal,webserver,database: add xe-guest-utilities to packages, rc-update add + rc-service start in runcmd so XenStore gets the guest IP after first boot
  • xenserver_client_real.py create_vm: after VM.provision(), check if any disk VBD exists. If not and boot_vdi_uuid is provided, copy the source VDI into the same SR, resize to requested disk size, and attach as primary bootable disk (userdevice=0, type=Disk, bootable=True). Removed the old step-4 pre-provision resize loop (now handled post-provision).
  • config.py: add ALPINE_BOOT_VDI_UUID (df288d22-…, “alpine root” VDI)
  • main.py: pass boot_vdi_uuid=settings.ALPINE_BOOT_VDI_UUID for alpine deploys; poll for guest IP after VM creation; register real IP in host_debug (fallback to UUID if XenTools not ready within timeout)
  • schemas.py: add ip_poll_timeout to VMDeployRequest (default 120s, 0=skip); add ip_address to DeploymentResponse

Tested: test-alpine-01 deployed, IP=192.168.1.247, host_debug id=5.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Files Changed

MMMMMMMppppppprrrrrrrooooooovvvvvvviiiiiiisssssssiiiiiiiooooooonnnnnnniiiiiiinnnnnnnggggggg////cccolllrrrroooccccuuuhhhhdddeeee---ssssiiittttnnnrrrriiiaaaattttttt///ooooaaarrrrlll////pppaaaaiiippppnnnppppeee/////cmmsdmwoaoeaienidrtnbfnevaisi.libmegpscaar.y/eslvpsse.eyc/.yrhxya.eeamymnmlaaslmsel.rpvyer_client_real.py

Diff Summary

pppppp7rrrrrroooooofvvvvvv/iiiiiiialsssssspeiiiiiipsoooooo/nnnnnnsciiiiiiehnnnnnnraggggggn////igcccocelllrrredooocccs,uuuhhh/dddeeex1---ssse0iiitttn9nnnrrrsiiiaaaeittttttrn///ooovsaaarrreelll///rrpppaaa_tiiipppcinnnppploeee//in//cmmesdmwoaon(aienidt+tnbfne_)aisi.lr,bmegpseaar.y/a2slvpsl0e.eyc..yrhpdya.eyeamymlmlaaelmstl.ipoyns(-)374443275+