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

QEMU driver does not support "bridge" network mode. #9860

Closed
angrycub opened this issue Jan 20, 2021 · 2 comments
Closed

QEMU driver does not support "bridge" network mode. #9860

angrycub opened this issue Jan 20, 2021 · 2 comments

Comments

@angrycub
Copy link
Contributor

Issue

The QEMU driver does not support "bridge" network mode.

Nomad version

Nomad 1.0.2

Reproduction steps

  • Create a QEMU job and set networking mode to bridge. You can use the sample attached jobfile.
  • Run job; check alloc status
  • Observe error:
Client Description  = Unable to add allocation due to error: failed to configure network manager: task freedos does not support "bridge" networking mode

Job file (if appropriate)

job "freedos" {
  datacenters = ["dc1"]

  group "g1" {
    network {
      mode = "bridge"
      port "webvnc" {}
    }

    service {
      name = "freedos"
      tags = ["sample"]
      port = "webvnc"

      check {
        type     = "tcp"
        port     = "webvnc"
        interval = "10s"
        timeout  = "2s"
      }
    }

    task "novnc" {
      driver = "docker"

      env {
        NOVNC_PORT      = "${NOMAD_PORT_webvnc}"
        VNC_SERVER_IP   = "127.0.0.1"
        VNC_SERVER_PORT = "5901"
      }

      config {
        image = "voiselle/novnc"
        ports = ["webvnc"]
      }
    }

    task "freedos" {

      artifact {
        source      = "https://github.com/angrycub/nomad_example_jobs/raw/master/applications/vms/freedos/freedos.img.tgz"
        destination = "local"
        options {
          checksum  = "sha256:8d2817126bf46ba2b4fca0b0c49eed2cc208c6f6448651e82c6d973fcba36569"
        }
      }

      driver = "qemu"

      config {
        image_path  = "local/freedos.img"
        accelerator = "kvm"
        args = [
          "-vnc", "127.0.0.1:1"
        ]
      }
    }
  }
}
@tgross
Copy link
Member

tgross commented Jan 26, 2021

Closed by #9861. We'll ship this with the next normal patch release!

@tgross tgross closed this as completed Jan 26, 2021
@tgross tgross added this to the 1.0.3 milestone Jan 26, 2021
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants