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
{{ message }}
Repository navigation
User data is applied to a virtual machine on a specific host. #11206
Hello. I have a Ubuntu 22.04 cloud image, user data and several hosts connected.
When I create a VM and assign UserData to it on host A, it creates fine and I can log into it.
UserData:
VM-1
VNC:
But when I create a virtual machine on host B, specify the same image and the same UserData, it does not apply it and does not even change the name of the virtual machine inside (it remains ubuntu)
VM-2
VNC VM-2:
### Could you please advise what needs to be done to make UserData work on other hosts?
Hi, I decided to check your proposal and saw that the virtual machine has no Internet access. And also in ip a I did not see the IP address that should have been assigned to the VM. in /etc/netplan there is dhcp4: true.
Updated: Noticed some interesting behavior. Created another guest network and launched it on another host. Launched 2 virtual machines: one on the same host as the virtual router, and the second on another host. Result: The network appeared only on the virtual machine that is on the same host as the virtual router.
And how can I make it so that VMs running on different hosts can use the router and access the network?
@shwstppr Unfortunately, your solution did not help me. Maybe I am doing something wrong. Can you give me more specific advice on where to start analyzing this problem?
@shwstppr Unfortunately, your solution did not help me. Maybe I am doing something wrong. Can you give me more specific advice on where to start analyzing this problem?
If you use vlan, may check if switch ports are configured to trunk mode
Activity
shwstppr commentedon Jul 16, 2025
Are VMs on host B able to access network?
miloserdoff commentedon Jul 16, 2025
@shwstppr
Hi, I decided to check your proposal and saw that the virtual machine has no Internet access. And also in ip a I did not see the IP address that should have been assigned to the VM. in /etc/netplan there is dhcp4: true.
miloserdoff commentedon Jul 16, 2025
@shwstppr
Updated: Noticed some interesting behavior. Created another guest network and launched it on another host. Launched 2 virtual machines: one on the same host as the virtual router, and the second on another host. Result: The network appeared only on the virtual machine that is on the same host as the virtual router.
And how can I make it so that VMs running on different hosts can use the router and access the network?
shwstppr commentedon Jul 16, 2025
@miloserdoff seems like some host configuration issue. You may check the past issues like this,
#9027
miloserdoff commentedon Jul 16, 2025
@shwstppr Unfortunately, your solution did not help me. Maybe I am doing something wrong. Can you give me more specific advice on where to start analyzing this problem?
weizhouapache commentedon Jul 17, 2025
If you use vlan, may check if switch ports are configured to trunk mode
miloserdoff commentedon Jul 17, 2025
@weizhouapache Do I understand correctly that I need to check the ports of the physical switch to which the physical server is connected?