[PR #259] [CLOSED] fix: add parser of efidisk in qemu config #349

Closed
opened 2026-02-28 00:41:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/259
Author: @ManassehZhou
Created: 5/5/2023
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 7870e16 fix: add parser of efidisk in qemu config

📊 Changes

1 file changed (+31 additions, -0 deletions)

View changed files

📝 proxmox/config_qemu.go (+31 -0)

📄 Description

fixes issue #253

go run main.go getConfig 100
2023/05/06 00:09:49 {
  "name": "OMV",
  "description": "OpenMediaVault",
  "bios": "ovmf",
  "efidisk": {
    "efitype": "4m",
    "file": "100/vm-100-disk-1.raw",
    "format": "raw",
    "pre-enrolled-keys": 1,
    "size": "528K",
    "storage": "VMStorage",
    "volume": "VMStorage:100/vm-100-disk-1.raw"
  },
  "onboot": true,
  "tablet": true,
  "memory": 8192,
  "ostype": "l26",
  "cores": 2,
  "sockets": 1,
  "cpu": "host",
  "numa": true,
  "kvm": true,
  "hotplug": "network,disk,usb",
  "iso": "local:iso/openmediavault_6.0.24-amd64.iso",
  "boot": "order=ide2;virtio0;net0",
  "scsihw": "virtio-scsi-single",
  "disk": {
    "0": {
      "file": "100/vm-100-disk-0.qcow2",
      "format": "qcow2",
      "iothread": 1,
      "size": "30G",
      "slot": 0,
      "storage": "VMStorage",
      "storage_type": "btrfs",
      "type": "virtio",
      "volume": "VMStorage:100/vm-100-disk-0.qcow2"
    },
    "2": {
      "file": "iso/openmediavault_6.0.24-amd64.iso",
      "format": "iso",
      "media": "cdrom",
      "size": "828M",
      "slot": 2,
      "storage": "local",
      "storage_type": "dir",
      "type": "ide",
      "volume": "local:iso/openmediavault_6.0.24-amd64.iso"
    }
  },
  "network": {
    "0": {
      "bridge": "vmbr0",
      "id": 0,
      "macaddr": "72:F7:CC:03:50:A3",
      "model": "virtio"
    }
  },
  "smbios1": "uuid=4537be6a-014b-4fde-a44d-0d6cc2ebfd35"
}

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Telmate/proxmox-api-go/pull/259 **Author:** [@ManassehZhou](https://github.com/ManassehZhou) **Created:** 5/5/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`7870e16`](https://github.com/Telmate/proxmox-api-go/commit/7870e162b117e380fa5d54d40f4b00b9ad528126) fix: add parser of efidisk in qemu config ### 📊 Changes **1 file changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `proxmox/config_qemu.go` (+31 -0) </details> ### 📄 Description fixes issue #253 ``` go run main.go getConfig 100 2023/05/06 00:09:49 { "name": "OMV", "description": "OpenMediaVault", "bios": "ovmf", "efidisk": { "efitype": "4m", "file": "100/vm-100-disk-1.raw", "format": "raw", "pre-enrolled-keys": 1, "size": "528K", "storage": "VMStorage", "volume": "VMStorage:100/vm-100-disk-1.raw" }, "onboot": true, "tablet": true, "memory": 8192, "ostype": "l26", "cores": 2, "sockets": 1, "cpu": "host", "numa": true, "kvm": true, "hotplug": "network,disk,usb", "iso": "local:iso/openmediavault_6.0.24-amd64.iso", "boot": "order=ide2;virtio0;net0", "scsihw": "virtio-scsi-single", "disk": { "0": { "file": "100/vm-100-disk-0.qcow2", "format": "qcow2", "iothread": 1, "size": "30G", "slot": 0, "storage": "VMStorage", "storage_type": "btrfs", "type": "virtio", "volume": "VMStorage:100/vm-100-disk-0.qcow2" }, "2": { "file": "iso/openmediavault_6.0.24-amd64.iso", "format": "iso", "media": "cdrom", "size": "828M", "slot": 2, "storage": "local", "storage_type": "dir", "type": "ide", "volume": "local:iso/openmediavault_6.0.24-amd64.iso" } }, "network": { "0": { "bridge": "vmbr0", "id": 0, "macaddr": "72:F7:CC:03:50:A3", "model": "virtio" } }, "smbios1": "uuid=4537be6a-014b-4fde-a44d-0d6cc2ebfd35" } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:41:51 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#349
No description provided.