You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a Nomad 1.0.3/ Consul 1.9.3/ Centos 7 Running within VirtualBox VMs.
Running Nomad & Consul as root
It appears as if the networking/port configuration is not working correctly for the Qemu Driver. I have tried all the port configurations and none are exposing the VM port (8080) I have. I have verified through several methods that the VM is not the issue and port 8080 is exposed on all clients.
HCL Config
job "javaVM" {
datacenters = ["dc1"]
group "vms" {
network {
// I have also tried dynamic here to no avail
port "http" {
static = 8080
}
}
ephemeral_disk {
size = 1024
}
task "petclinicvm" {
# The "driver" parameter specifies the task driver that should be used to
# run the task.
driver = "qemu"
config {
image_path = "local/java-petclinic.qcow2"
port_map {
http = 8080
}
// I have also tried directly setting it but this causes the task to fail
// args = [
// "-net user,hostfwd=tcp::8080-:8080",
// "-net nic"
// ]
}
artifact {
source = "http://10.0.0.200:8000/JavaVM/java-petclinic.qcow2"
destination = "local"
}
resources {
cpu = 1000
memory = 2048
}
}
}
}
Job Status
ID = bd012930-556f-10ad-dbab-fc242223d4fb
Eval ID = 7abdd977
Name = javaVM.vms[0]
Node ID = 62049756
Node Name = client2
Job ID = javaVM
Job Version = 0
Client Status = running
Client Description = Tasks are running
Desired Status = run
Desired Description = <none>
Created = 38s ago
Modified = 20s ago
Deployment ID = b561a57c
Deployment Health = healthy
Allocation Addresses
Label Dynamic Address
*http yes 10.0.0.76:8080
Task "petclinicvm" is "running"
Task Resources
CPU Memory Disk Addresses
4168/1000 MHz 826 MiB/2.0 GiB 1.0 GiB
Task Events:
Started At = 2021-02-16T14:49:59Z
Finished At = N/A
Total Restarts = 0
Last Restart = N/A
Recent Events:
Time Type Description
2021-02-16T09:49:59-05:00 Started Task started by client
2021-02-16T09:49:52-05:00 Downloading Artifacts Client is downloading artifacts
2021-02-16T09:49:52-05:00 Task Setup Building Task Directory
2021-02-16T09:49:52-05:00 Received Task received by client
I found this in the Interweb Ethers so Im not sure if this truly means much but it appears no ports configs are being passed to the Qemu command when run
The last anecdote I would like to add is that when I setup qemu the command for the binary is 'qemu-kvm' and I just created a link within the path named 'qemu-system-x86_64'. As far as I can tell it seems to be the same thing but renamed.
Am I missing something?
The text was updated successfully, but these errors were encountered:
Hi @tschmi5! You're not missing anything... we got network isolation working for QEMU recently #9860 but we still need to get the port mapping fixed. We have a draft PR open at #10035 but we need to get that re-assigned to finish it up.
Nomad Version 1.0.3
I am using a Nomad 1.0.3/ Consul 1.9.3/ Centos 7 Running within VirtualBox VMs.
Running Nomad & Consul as root
It appears as if the networking/port configuration is not working correctly for the Qemu Driver. I have tried all the port configurations and none are exposing the VM port (8080) I have. I have verified through several methods that the VM is not the issue and port 8080 is exposed on all clients.
HCL Config
Job Status
Ports on host where VM is running
I found this in the Interweb Ethers so Im not sure if this truly means much but it appears no ports configs are being passed to the Qemu command when run
The last anecdote I would like to add is that when I setup qemu the command for the binary is 'qemu-kvm' and I just created a link within the path named 'qemu-system-x86_64'. As far as I can tell it seems to be the same thing but renamed.
Am I missing something?
The text was updated successfully, but these errors were encountered: