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

Cannot install DAppNode into KVM through libvirt (using terraform) #641

Open
Teebor-Choka opened this issue Oct 6, 2024 · 0 comments
Open

Comments

@Teebor-Choka
Copy link

Teebor-Choka commented Oct 6, 2024

The installation using the provided release *.iso images fails for KVM qemu deployed through libvirt and terraform.

Describe the bug
The installation step always fails in loading the data from the image.

To Reproduce

  1. Deploy the KVM instance with the provider terraform deployment
  2. The installation fails

Expected behavior

The installation succeeds.

Screenshots
image

DAppNode version:

All recent images, including the unattended ones, e.g. 0.2.94

Additional context

Configuration of the setup in terraform, the deployment works OK, only the attached virt-manager shows the failures:

➜   cat main.tf
terraform {
  required_providers {
    libvirt = {
      source = "dmacvicar/libvirt"
      version = "0.8.0"
    }
  }
}

provider "libvirt" {
  uri = "qemu+ssh://myself:[email protected]/system?sshauth=ssh-password"
}

resource "libvirt_pool" "dappnode" {
  name = "dappnode"
  type = "dir"
  path = "/data/qemu/dappnode"
}

resource "libvirt_volume" "dappnode-storage" {
  name   = "dappnode_storage"
  pool   = libvirt_pool.dappnode.name
  size   = 400000000000
}

resource "libvirt_network" "dappnode" {
  name = "dappnode"
  mode = "bridge"
  bridge = "virbr0"
}

resource "libvirt_domain" "domain-dappnode" {
  name   = "dappnode"
  memory = "4024"
  vcpu   = 4

  autostart = true

  console {
    type        = "pty"
    target_port = "0"
    target_type = "serial"
  }

  console {
    type        = "pty"
    target_type = "virtio"
    target_port = "1"
  }

  disk {
    # url = "https://github.com/dappnode/DAppNode/releases/download/v0.2.93/DAppNode-v0.2.93-debian-bookworm-amd64-unattended.iso"
    url = "https://github.com/dappnode/DAppNode/releases/download/v0.2.94/DAppNode-v0.2.94-debian-bookworm-amd64.iso"
  }

  disk {
    volume_id = libvirt_volume.dappnode-storage.id
  }

  network_interface {
    network_id     = libvirt_network.dappnode.id
    hostname       = "dappnode"
    bridge         = "eth0"
    # wait_for_lease = true
  }

  boot_device {
    dev = [ "cdrom", "hd", "network"]
  }
}
@Teebor-Choka Teebor-Choka changed the title Cannot install DAppNode into KVM through libvirt Cannot install DAppNode into KVM through libvirt (using terraform) Oct 6, 2024
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

No branches or pull requests

1 participant