On 10/19/2020 6:03 PM, Michal Prívozník wrote:
On 10/19/20 5:59 PM, john doe wrote:
> On 3/27/2020 5:13 PM, Michal Prívozník wrote:
>> On 27. 3. 2020 16:48, Michal Prívozník wrote:
>>> On 27. 3. 2020 14:57, john doe wrote:
>>>> Hi,
>>>>
>>>> I would like to set the hostname when installing a guest, with the
>>>> below
>>>> command the hostname is not set to 'try06' in the guest:
>>>>
>>>> virt-install --name=try06 --graphic none --pxe --network bridge=virbr0
>>>
>>> This is the name of the guest registered in libvirt. I don't think that
>>> virt-install has wired up setting hostname, but it looks like it can do
>>> it. I mean, use --name for both libvirt name and guest hostname.
>>
>> On the other hand, users might want to set it to something else. So we
>> really should have a separate argument for that. Anyway, I've reported
>> it to virt-install developers:
>>
>>
https://github.com/virt-manager/virt-manager/issues/94
>>
>
> Hi,
>
> This bug is now RFI, is there anything that I can do to move it along?
>
Sadly, I don't speak python.
I install my guests using pxe, the guest are connected to a bridge on
the host.
Everytime I install a new guest, I first need to access the dhcp server
to set the hostname with the corresponding mac address.
In the meantime, is there an other approach that would let me install
and set the guest's hostname on the same machine?
In other words, how can I set the hostname when using a bridge on the
host where virt-install is used.
I believe that virt-manager developers are swamped with some other work,
so writing up patches looks like your best bet.
>
> Will this option be of any help if installing a VM using PXE?
>
Yeah, I don't think that installation method gets in the way.
I'm looking forward to be able to take advantage of this option to set
the hostname while using pxe.
--
John Doe