adamant-kite-43734
06/21/2024, 12:33 PMambitious-daybreak-95996
06/24/2024, 2:36 AMambitious-daybreak-95996
06/24/2024, 2:40 AMacoustic-country-10006
06/24/2024, 6:51 AMambitious-daybreak-95996
06/24/2024, 6:53 AMambitious-daybreak-95996
06/24/2024, 6:56 AMacoustic-country-10006
06/24/2024, 8:05 AMbland-article-62755
06/24/2024, 3:49 PMbland-article-62755
06/24/2024, 3:50 PMambitious-daybreak-95996
06/25/2024, 4:20 AMambitious-daybreak-95996
06/25/2024, 4:21 AMambitious-daybreak-95996
06/25/2024, 4:24 AMmany-tiger-3407
06/25/2024, 9:58 AMmany-tiger-3407
06/25/2024, 10:03 AM"${System Data/Runtime/Hostname}"
(see https://deploy-preview-349--elemental-docs-staging.netlify.app/hostname#keep-the-hostname-assigned-from-dhcp)many-tiger-3407
06/25/2024, 10:03 AMacoustic-country-10006
06/25/2024, 10:04 AMacoustic-country-10006
06/25/2024, 10:05 AMacoustic-country-10006
06/25/2024, 10:06 AMmany-tiger-3407
06/25/2024, 10:06 AMacoustic-country-10006
06/25/2024, 10:07 AMmany-tiger-3407
06/25/2024, 10:09 AMacoustic-country-10006
06/25/2024, 10:10 AMhundreds-hospital-60917
06/25/2024, 10:34 AMkvm
flavor of the Micro-Elemental images ? Only this has qemu-guest-agent
installed which might be needed to transfer the hostname from Harvester š¤acoustic-country-10006
06/25/2024, 10:36 AMacoustic-country-10006
06/25/2024, 10:43 AMelemental-1:~ # dmidecode
# dmidecode 3.4
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
10 structures occupying 403 bytes.
Table at 0x7F908000.
Handle 0x0100, DMI type 1, 27 bytes
System Information
Manufacturer: KubeVirt
Product Name: None
Version: pc-q35-7.1
Serial Number: Not Specified
UUID: b146b974-251d-5687-989f-07725f25e035
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: KubeVirt
Handle 0x0300, DMI type 3, 22 bytes
Chassis Information
Manufacturer: QEMU
Type: Other
Lock: Not Present
Version: pc-q35-7.1
Serial Number: Not Specified
Asset Tag: Not Specified
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: Unknown
OEM Information: 0x00000000
Height: Unspecified
Number Of Power Cords: Unspecified
Contained Elements: 0
SKU Number: Not Specified
Handle 0x0400, DMI type 4, 42 bytes
Processor Information
Socket Designation: CPU 0
Type: Central Processor
Family: Other
Manufacturer: QEMU
ID: C1 06 03 00 FF FB 8B 0F
Version: pc-q35-7.1
Voltage: Unknown
External Clock: Unknown
Max Speed: 2000 MHz
Current Speed: 2000 MHz
Status: Populated, Enabled
Upgrade: Other
L1 Cache Handle: Not Provided
L2 Cache Handle: Not Provided
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Core Count: 2
Core Enabled: 2
Thread Count: 1
Characteristics: None
Handle 0x1000, DMI type 16, 23 bytes
Physical Memory Array
Location: Other
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 3996 MB
Error Information Handle: Not Provided
Number Of Devices: 1
Handle 0x1100, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: 3996 MB
Form Factor: DIMM
Set: None
Locator: DIMM 0
Bank Locator: Not Specified
Type: RAM
Type Detail: Other
Speed: Unknown
Manufacturer: QEMU
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: Unknown
Configured Memory Speed: Unknown
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: Unknown
Handle 0x1300, DMI type 19, 31 bytes
Memory Array Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x0007FFFFFFF
Range Size: 2 GB
Physical Array Handle: 0x1000
Partition Width: 1
Handle 0x1301, DMI type 19, 31 bytes
Memory Array Mapped Address
Starting Address: 0x00100000000
Ending Address: 0x00179BFFFFF
Range Size: 1948 MB
Physical Array Handle: 0x1000
Partition Width: 1
Handle 0x2000, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected
Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
Vendor: EFI Development Kit II / OVMF
Version: 0.0.0
Release Date: 02/06/2015
Address: 0xE8000
Runtime Size: 96 kB
ROM Size: 64 kB
Characteristics:
BIOS characteristics not supported
Targeted content distribution is supported
UEFI is supported
System is a virtual machine
BIOS Revision: 0.0
Handle 0xFEFF, DMI type 127, 4 bytes
End Of Table
Hereās the output of dmidecode on one of my VMs. The machine name in Harvester is elemental-1 and in this case Iāve set the hostname through cloud-config. There doesnāt seem to be anything in here that looks like the Harvester machine nameacoustic-country-10006
06/25/2024, 10:44 AMacoustic-country-10006
06/25/2024, 12:39 PMapiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
annotations:
...
labels:
harvesterhci.io/creator: harvester
harvesterhci.io/os: SLEs
managedFields:
...
name: elemental-1
namespace: default
resourceVersion: '5618605'
uid: bfca8492-6ddb-4fd3-bd65-93594ae06baa
spec:
runStrategy: RerunOnFailure
template:
metadata:
annotations:
harvesterhci.io/sshNames: '["default/robert-claphamroad-rwbl-online"]'
creationTimestamp: null
labels:
harvesterhci.io/vmName: elemental-1
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: network.harvesterhci.io/mgmt
operator: In
values:
- 'true'
architecture: amd64
domain:
cpu:
cores: 2
sockets: 1
threads: 1
devices:
disks:
...
tpm: {}
features:
acpi:
enabled: true
firmware:
bootloader:
efi:
secureBoot: false
machine:
type: q35
memory:
guest: 3996Mi
resources:
limits:
cpu: '2'
memory: 4Gi
requests:
cpu: 125m
memory: 2730Mi
evictionStrategy: LiveMigrateIfPossible
hostname: elemental-1
networks:
- multus:
networkName: default/virtual
name: default
terminationGracePeriodSeconds: 120
volumes:
...
status:
...
I suspect itās more to do with how the guest OS consumes this š¤ . If the Elemental generated images have some logic in the boot stages that generate the unique rancher-xxx hostname unless oneās specified via DHCP or cloud init, perhaps this may just be circumventing whatever is provided by kubevirtacoustic-country-10006
06/25/2024, 12:48 PM/etc/hostname
by this point, Iām not sure why though!hundreds-hospital-60917
06/25/2024, 1:05 PM03_hostname.yaml
šacoustic-country-10006
06/25/2024, 1:07 PMacoustic-country-10006
06/25/2024, 1:09 PMetc/hostname
, Iām wondering if what kubevirt provides will only set the transient hostname and that doesnāt make it into here or somethingacoustic-country-10006
06/25/2024, 1:09 PMmany-tiger-3407
06/25/2024, 2:05 PMmachineName: "${System Data/Runtime/Hostname}"
in the MachineRegistration, otherwise a random m-$UUID
will be generated and used as the name of the tracking MachineInventory, and that same name will be applied as a static hostname on the machine when provisioning RKE2 or K3s, replacing whatever hostname the machine may have.acoustic-country-10006
06/25/2024, 2:29 PMacoustic-country-10006
06/25/2024, 2:30 PM/etc/hostname
doesnāt exist.acoustic-country-10006
06/25/2024, 2:32 PMacoustic-country-10006
06/25/2024, 2:34 PMacoustic-country-10006
06/25/2024, 2:44 PMacoustic-country-10006
06/25/2024, 3:27 PMacoustic-country-10006
06/25/2024, 3:28 PMacoustic-country-10006
06/25/2024, 3:48 PMset_hostname
cloud-init
module https://cloudinit.readthedocs.io/en/latest/reference/modules.html#set-hostname to do thisacoustic-country-10006
06/25/2024, 3:51 PMacoustic-country-10006
06/25/2024, 4:37 PMacoustic-country-10006
06/25/2024, 4:38 PMacoustic-country-10006
06/25/2024, 6:20 PMuser-data
& config
. So I can point it at the cloud-init drive (this actually happens automatically), but not the correct file within that drive. I think at this point Iāll continue this thread in #C028DVCAYLD since this definitely isnāt a Harvester issue. Many thanks for all your help.ambitious-daybreak-95996
06/26/2024, 4:06 AMacoustic-country-10006
06/26/2024, 6:25 AM