strong-orange-21773
04/25/2023, 11:47 AMrefined-analyst-8898
04/25/2023, 11:49 AMstrong-orange-21773
04/25/2023, 11:50 AMrefined-analyst-8898
04/25/2023, 11:53 AMstrong-orange-21773
04/25/2023, 12:09 PMwitty-jelly-95845
04/25/2023, 12:09 PMstrong-orange-21773
04/25/2023, 12:12 PMbored-farmer-36655
04/25/2023, 12:14 PMrefined-analyst-8898
04/25/2023, 12:17 PMstrong-orange-21773
04/25/2023, 12:21 PMrefined-analyst-8898
04/25/2023, 12:38 PM--clean
, if I remember correctly.strong-orange-21773
04/25/2023, 12:41 PM#cloud-config
network:
version: 2
ethernets:
eth0:
dhcp4: false
addresses:
- 10.1.0.0/16
gateway4: 10.1.0.1
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
vlans:
vlan1002:
id: 1002
link: eth0
{"component":"virt-launcher","level":"info","msg":"Driver cache mode for /var/run/kubevirt-ephemeral-disks/cloud-init-data/default/ubuntu/noCloud.iso set to none","pos":"converter.go:447","timestamp":"2023-04-25T12:41:15.645943Z"}
{"component":"virt-launcher","level":"info","msg":"generated nocloud iso file /var/run/kubevirt-ephemeral-disks/cloud-init-data/default/ubuntu/noCloud.iso","pos":"cloud-init.go:655","timestamp":"2023-04-25T12:41:16.370144Z"}
=6,id=pci.6,bus=pcie.0,addr=0x2.0x5 \\-device pcie-root-port,port=22,chassis=7,id=pci.7,bus=pcie.0,addr=0x2.0x6 \\-device pcie-root-port,port=23,chassis=8,id=pci.8,bus=pcie.0,addr=0x2.0x7 \\-device qemu-xhci,id=usb,bus=pci.2,addr=0x0 \\-device virtio-scsi-pci-non-transitional,id=scsi0,bus=pci.3,addr=0x0 \\-device virtio-serial-pci-non-transitional,id=virtio-serial0,bus=pci.4,addr=0x0 \\-blockdev '{\"driver\":\"host_device\",\"filename\":\"/dev/disk-0\",\"aio\":\"native\",\"node-name\":\"libvirt-2-storage\",\"cache\":{\"direct\":true,\"no-flush\":false},\"auto-read-only\":true,\"discard\":\"unmap\"}' \\-blockdev '{\"node-name\":\"libvirt-2-format\",\"read-only\":false,\"discard\":\"unmap\",\"cache\":{\"direct\":true,\"no-flush\":false},\"driver\":\"raw\",\"file\":\"libvirt-2-storage\"}' \\-device virtio-blk-pci-non-transitional,bus=pci.5,addr=0x0,drive=libvirt-2-format,id=ua-disk-0,bootindex=1,write-cache=on,werror=stop,rerror=stop \\-blockdev '{\"driver\":\"file\",\"filename\":\"/var/run/kubevirt-ephemeral-disks/cloud-init-data/default/ubuntu/noCloud.iso\",\"node-name\":\"libvirt-1-storage\",\"cache\":{\"direct\":true,\"no-flush\":false},\"auto-read-only\":true,\"discard\":\"unmap\"}' \\-blockdev '{\"node-name\":\"libvirt-1-format\",\"read-only\":false,\"discard\":\"unmap\",\"cache\":{\"direct\":true,\"no-flush\":false},\"driver\":\"raw\",\"file\":\"libvirt-1-storage\"}' \\-device virtio-blk-pci-non-transitional,bus=pci.6,addr=0x0,drive=libvirt-1-format,id=ua-cloudinitdisk,write-cache=on,werror=stop,rerror=stop \\-netdev tap,fd=29,id=hostua-default,vhost=on,vhostfd=31 \\-device virtio-net-pci-non-transitional,host_mtu=1500,netdev=hostua-default,id=ua-default,mac=46:92:1c:82:7d:20,bus=pci.1,addr=0x0,romfile= \\-chardev socket,id=charserial0,fd=25,server=on,wait=off \\-device isa-serial,chardev=charserial0,id=serial0 \\-chardev socket,id=charchannel0,fd=27,server=on,wait=off \\-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 \\-device usb-tablet,id=ua-tab
refined-analyst-8898
04/25/2023, 12:52 PM10.1.0.0/16
which is the network address, not the host address. You need something like 10.1.0.100/16
for eth0
.strong-orange-21773
04/25/2023, 1:04 PMrefined-analyst-8898
04/25/2023, 1:11 PMstrong-orange-21773
04/25/2023, 1:13 PMrefined-analyst-8898
04/25/2023, 1:15 PMethN
or enpNsN
, or something else. Perhaps the simplest way to discover it is to log in the console and say ip link sh
.strong-orange-21773
04/25/2023, 1:15 PMrefined-analyst-8898
04/25/2023, 1:43 PMaddresses
part is missing in network-data, and the adapter name needs to be eth0
if that is the name used by your cloud image.