<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[packer template Vdisk issue]]></title><description><![CDATA[<p dir="auto">hi, im am trying to use terraform and packer with xcp-ng</p>
<p dir="auto">i am running into an issue with the disk only containing 2mb instead of 20gb<br />
[15:12]<br />
i am using the packer template as per blog post<br />
<a href="https://xcp-ng.org/blog/2024/02/22/using-packer-with-xcp-ng/" target="_blank" rel="noopener noreferrer nofollow ugc">https://xcp-ng.org/blog/2024/02/22/using-packer-with-xcp-ng/</a><br />
XCP-ng Blog<br />
Using Packer with XCP-ng<br />
Discover how to keep your VM templates always up-to-date and ready to go!</p>
]]></description><link>https://xcp-ng.org/forum/topic/10680/packer-template-vdisk-issue</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 18:58:32 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/10680.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Mar 2025 19:03:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to packer template Vdisk issue on Thu, 17 Apr 2025 17:40:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ataxyanetwork" aria-label="Profile: AtaxyaNetwork">@<bdi>AtaxyaNetwork</bdi></a><br />
Glad i can help and give back to the community</p>
]]></description><link>https://xcp-ng.org/forum/post/92014</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92014</guid><dc:creator><![CDATA[wezke]]></dc:creator><pubDate>Thu, 17 Apr 2025 17:40:23 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Mon, 14 Apr 2025 08:39:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/wezke" aria-label="Profile: wezke">@<bdi>wezke</bdi></a> Thank you very much ! It'll be helpful for me and the community <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=041a08e19dc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/91912</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91912</guid><dc:creator><![CDATA[AtaxyaNetwork]]></dc:creator><pubDate>Mon, 14 Apr 2025 08:39:34 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Sun, 13 Apr 2025 10:29:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ataxyanetwork" aria-label="Profile: AtaxyaNetwork">@<bdi>AtaxyaNetwork</bdi></a></p>
<p dir="auto">Finaly got a Windows Server 2022 packer template to work with xen server guest tools.</p>
<p dir="auto">autounattend.xml in the root dir of the iso along with the guest tool .msi</p>
<p dir="auto"><a href="https://www.xenserver.com/downloads" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.xenserver.com/downloads</a></p>
<p dir="auto"><a href="/forum/assets/uploads/files/1744538847939-autounattend-2.txt">autounattend .txt</a></p>
<p dir="auto"><a href="/forum/assets/uploads/files/1744538859671-windows-server.txt">windows server.txt</a></p>
]]></description><link>https://xcp-ng.org/forum/post/91893</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91893</guid><dc:creator><![CDATA[wezke]]></dc:creator><pubDate>Sun, 13 Apr 2025 10:29:58 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Wed, 02 Apr 2025 20:24:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/wezke" aria-label="Profile: wezke">@<bdi>wezke</bdi></a> That would be great ! Thank you !</p>
]]></description><link>https://xcp-ng.org/forum/post/91529</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91529</guid><dc:creator><![CDATA[AtaxyaNetwork]]></dc:creator><pubDate>Wed, 02 Apr 2025 20:24:18 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Wed, 02 Apr 2025 17:24:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ataxyanetwork" aria-label="Profile: AtaxyaNetwork">@<bdi>AtaxyaNetwork</bdi></a><br />
Do you mean the actual packer  pkr.hcl fiel or the unattented.xml?</p>
<p dir="auto">I still need to figure the actual packer file out, hoping it wil be quite similar.</p>
<p dir="auto">i do have an windows server unattended.xml that works with proxmox, just will have to slightly adjust.</p>
<p dir="auto">however i can share both when im done with it</p>
]]></description><link>https://xcp-ng.org/forum/post/91523</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91523</guid><dc:creator><![CDATA[wezke]]></dc:creator><pubDate>Wed, 02 Apr 2025 17:24:39 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Wed, 02 Apr 2025 15:38:10 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f37e.png?v=041a08e19dc" class="not-responsive emoji emoji-android emoji--champagne" style="height:1.4em;width:auto;vertical-align:middle" title=":champagne:" alt="🍾" /></p>
]]></description><link>https://xcp-ng.org/forum/post/91498</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91498</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 02 Apr 2025 15:38:10 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Wed, 02 Apr 2025 07:36:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/wezke" aria-label="Profile: wezke">@<bdi>wezke</bdi></a> Great news !</p>
<p dir="auto">Also, If you'd like to share the packer configuration for windows, I'm interested! I'm curious to see the difference between Linux and Windows boot config</p>
]]></description><link>https://xcp-ng.org/forum/post/91470</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91470</guid><dc:creator><![CDATA[AtaxyaNetwork]]></dc:creator><pubDate>Wed, 02 Apr 2025 07:36:24 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Tue, 01 Apr 2025 19:20:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ataxyanetwork" aria-label="Profile: AtaxyaNetwork">@<bdi>AtaxyaNetwork</bdi></a></p>
<p dir="auto">That did solve the problem, guess the 386 is the 32bit version, doh!</p>
<p dir="auto">succeeded making debian template with packer, now on to the windows server 2022 template</p>
]]></description><link>https://xcp-ng.org/forum/post/91462</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91462</guid><dc:creator><![CDATA[wezke]]></dc:creator><pubDate>Tue, 01 Apr 2025 19:20:31 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Tue, 01 Apr 2025 10:53:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ataxyanetwork" aria-label="Profile: AtaxyaNetwork">@<bdi>AtaxyaNetwork</bdi></a> Again, thank you for youre time</p>
<p dir="auto">i will test the amd64 builder, thats a good suggestion, hopefully that wil solve the issue.</p>
<p dir="auto">I also have an issue with the memory config, it will only take 1gb memory.</p>
<p dir="auto">perhaps there is an limitation or problem with the windows 386 version</p>
<p dir="auto">i will let you know the outcome</p>
]]></description><link>https://xcp-ng.org/forum/post/91449</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91449</guid><dc:creator><![CDATA[wezke]]></dc:creator><pubDate>Tue, 01 Apr 2025 10:53:26 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Tue, 01 Apr 2025 08:50:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/wezke" aria-label="Profile: wezke">@<bdi>wezke</bdi></a> I see no obvious line to explain why you have an issue with the disk size. The only difference between my build and yours is that you are using the windows 386 version of the builder, and I'm running on Debian.<br />
Can you try the amd64 version ?</p>
]]></description><link>https://xcp-ng.org/forum/post/91437</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91437</guid><dc:creator><![CDATA[AtaxyaNetwork]]></dc:creator><pubDate>Tue, 01 Apr 2025 08:50:41 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Mon, 31 Mar 2025 18:16:54 GMT]]></title><description><![CDATA[<p dir="auto"><a href="/forum/assets/uploads/files/1743444976647-packer_log.txt">packer_log.txt</a></p>
<p dir="auto">Hi, i have added a log file.</p>
<p dir="auto">would it matter if i run this on an ssd or not?</p>
]]></description><link>https://xcp-ng.org/forum/post/91385</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91385</guid><dc:creator><![CDATA[wezke]]></dc:creator><pubDate>Mon, 31 Mar 2025 18:16:54 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Mon, 31 Mar 2025 10:08:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ataxyanetwork" aria-label="Profile: AtaxyaNetwork">@<bdi>AtaxyaNetwork</bdi></a></p>
<p dir="auto">Thank you for testing</p>
<p dir="auto">i will (after working hours) deploy again and show the trace.</p>
<p dir="auto">i have been testing with different disk size values and on my side anything higher than 2000mb fails back to 2mib.</p>
<p dir="auto">at least i know its not the template but something else causing this. i wonder what..<br />
i do have enough diskspace left so thats not the issue.</p>
]]></description><link>https://xcp-ng.org/forum/post/91367</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91367</guid><dc:creator><![CDATA[wezke]]></dc:creator><pubDate>Mon, 31 Mar 2025 10:08:57 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Mon, 31 Mar 2025 09:33:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ataxyanetwork" aria-label="Profile: AtaxyaNetwork">@<bdi>AtaxyaNetwork</bdi></a> I just tested a build with your configuration, i have 20Gb on my disk<br />
<img src="/forum/assets/uploads/files/1743413598668-84c58f15-2be6-4dac-9a2b-3977352b004c-image.png" alt="84c58f15-2be6-4dac-9a2b-3977352b004c-image.png" class="img-markdown  img-fluid" /></p>
]]></description><link>https://xcp-ng.org/forum/post/91364</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91364</guid><dc:creator><![CDATA[AtaxyaNetwork]]></dc:creator><pubDate>Mon, 31 Mar 2025 09:33:22 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Mon, 31 Mar 2025 08:38:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/wezke" aria-label="Profile: wezke">@<bdi>wezke</bdi></a> Do you still have the trace when packer is running ? Maybe i can found what's wrong.<br />
(I'll try to test on my side today, but I can promise anything)</p>
]]></description><link>https://xcp-ng.org/forum/post/91362</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91362</guid><dc:creator><![CDATA[AtaxyaNetwork]]></dc:creator><pubDate>Mon, 31 Mar 2025 08:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to packer template Vdisk issue on Sun, 30 Mar 2025 20:05:03 GMT]]></title><description><![CDATA[<pre><code>packer {
  required_plugins {
    xenserver = {
      version = "= v0.7.3"
      source  = "github.com/ddelnano/xenserver"
    }
  }
}
variable "remote_host" {
  type        = string
  description = "The ip or fqdn of your XCP-ng. It must be the master"
  sensitive   = true
  default     = "ip"
}

variable "remote_username" {
  type        = string
  description = "The username used to interact with your XCP-ng"
  sensitive   = true
  default     = "name"
}

variable "remote_password" {
  type        = string
  description = "The password used to interact with your XCP-ng"
  sensitive   = true
  default     = "pwd"
}

variable "sr_iso_name" {
  type        = string
  description = "The ISO-SR to packer will use"
  default     = "ISO"
}

variable "sr_name" {
  type        = string
  description = "The name of the SR to packer will use"
  default     = "Local storage"
}


source "xenserver-iso" "debian12" {
  iso_checksum = "ee8d8579128977d7dc39d48f43aec5ab06b7f09e1f40a9d98f2a9d149221704a"
  iso_url      = "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.10.0-amd64-netinst.iso"

  sr_iso_name    = var.sr_iso_name
  sr_name        = var.sr_name
  tools_iso_name = ""

  remote_host     = var.remote_host
  remote_password = var.remote_password
  remote_username = var.remote_username

  http_directory = "http"
  ip_getter      = "tools"

  boot_command = [
    "&lt;wait&gt;&lt;wait&gt;&lt;wait&gt;&lt;esc&gt;&lt;wait&gt;&lt;wait&gt;&lt;wait&gt;",
    "/install.amd/vmlinuz ",
    "initrd=/install.amd/initrd.gz ",
    "auto=true ",
    "domain= ",
    "url=http://{{.HTTPIP}}:{{.HTTPPort}}/preseed.cfg ",
    "hostname=debian ",
    "interface=auto ",
    "vga=788 noprompt quiet--- &lt;enter&gt;"
  ]

  # Change this to match the ISO of debian you are using in the iso_url variable
  clone_template  = "Debian Bookworm 12"
  vm_name         = "Debian 12 template"
  vm_description  = "My first template with packer"
  vcpus_max       = 2
  vcpus_atstartup = 2
  vm_memory       = 1024 #MB
  network_names   = ["eth0"]
  disk_size       = 20480 #MB
  disk_name       = "debian disk"
  vm_tags         = ["Generated by Packer"]

  ssh_username           = "debian"
  ssh_password           = "debian"
  ssh_wait_timeout       = "60000s"
  ssh_handshake_attempts = 10000

  output_directory = "packer-debian-12"
  keep_vm          = "never"
  format           = "xva_compressed"
}

build {
  sources = ["xenserver-iso.debian12"]
}
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/91350</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91350</guid><dc:creator><![CDATA[wezke]]></dc:creator><pubDate>Sun, 30 Mar 2025 20:05:03 GMT</pubDate></item></channel></rss>