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

Unable to Set volatile.vsock_id for LXD VM #11739

Closed
Gio2241 opened this issue May 29, 2023 · 4 comments
Closed

Unable to Set volatile.vsock_id for LXD VM #11739

Gio2241 opened this issue May 29, 2023 · 4 comments

Comments

@Gio2241
Copy link

Gio2241 commented May 29, 2023

LXD Version - 5.14
System: Ubuntu 22.04.2 LTS

I'm not able to set vsock_id for a VM.

Reproduce:

  1. lxc init images:ubuntu/jammy machine --vm
  2. lxc config set machine volatile.vsock_id=50
  3. lxc config show machine --expanded
architecture: x86_64
config:
  image.architecture: amd64
  image.description: Ubuntu jammy amd64 (20230529_07:43)
  image.os: Ubuntu
  image.release: jammy
  image.serial: "20230529_07:43"
  image.type: disk-kvm.img
  image.variant: default
  volatile.apply_template: create
  volatile.base_image: d4443a83a55fbdfb4a87acc5a921fb999876a4a618fc46195f41f6bdaeb75aa2
  volatile.cloud-init.instance-id: 4c73fe89-28e9-496e-b4ef-4c5ee99bb52d
  volatile.eth0.hwaddr: 00:16:3e:5f:9c:0e
  volatile.uuid: cf0eba4d-3294-46a7-8df9-f55807eb4553
  volatile.uuid.generation: cf0eba4d-3294-46a7-8df9-f55807eb4553
  volatile.vsock_id: "50" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  1. lxc start machine
  2. lxc config show machine --expanded
architecture: x86_64
config:
  image.architecture: amd64
  image.description: Ubuntu jammy amd64 (20230529_07:43)
  image.os: Ubuntu
  image.release: jammy
  image.serial: "20230529_07:43"
  image.type: disk-kvm.img
  image.variant: default
  volatile.base_image: d4443a83a55fbdfb4a87acc5a921fb999876a4a618fc46195f41f6bdaeb75aa2
  volatile.cloud-init.instance-id: 4c73fe89-28e9-496e-b4ef-4c5ee99bb52d
  volatile.eth0.host_name: tap7f4041e0
  volatile.eth0.hwaddr: 00:16:3e:5f:9c:0e
  volatile.last_state.power: RUNNING
  volatile.uuid: cf0eba4d-3294-46a7-8df9-f55807eb4553
  volatile.uuid.generation: cf0eba4d-3294-46a7-8df9-f55807eb4553
  volatile.vsock_id: "22" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Here 22 is just the next id, if we try it again it well be 23, etc. but not 50.

Am I doing something wrong?

@stgraber
Copy link
Contributor

volatile keys aren't meant for end users to modify. In this case, it's always computed and stored on VM startup.

@stgraber
Copy link
Contributor

Note that we have #11508 to handle what may be the source of your issue.

@Gio2241
Copy link
Author

Gio2241 commented May 29, 2023

Note that we have #11508 to handle what may be the source of your issue.

So, there is no way to set it manually?
At least before you fix the issue?

@stgraber
Copy link
Contributor

Correct, it's assigned by LXD at startup time and is only stored in a volatile config key for LXD's own use while the VM is running.

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

2 participants