Join us for a virtual Nutanix User Group meeting with Jarian Gibson as he covers Nutanix Cloud Clusters (NC2) on Azure and AWS with Citrix. <\/span><\/p>

Jarian will take a deep dive into NC2 on Azure architecture and Citrix on NC2 on Azure\u00a0that helps you strengthen your business continuity and disaster recovery position. He\u2019ll also provide the latest updates for NC2 on AWS.<\/span><\/p>

Plus, we're\u00a0giving away a Nutanix suitcase to one lucky winner!\u00a0Opt-in when you register\u00a0to be entered to win.\u00a0<\/p>","author":{"id":113632,"url":"\/members\/karlie-beil-113632","name":"Karlie Beil","avatar":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/icon\/200x200\/1581aab3-bcf6-49f4-b2fb-3d11e8c010dc.png","userTitle":"Community Manager","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"name":"Community Manager","color":"#0873ba"},"userLevel":4},"type":"Webinar","url":"https:\/\/next.nutanix.com\/events\/global-nug-nc2-on-azure-and-aws-with-citrix-151","image":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/attachment\/f9693b5b-436b-427a-9b98-531b4040ff24_thumb.png","location":"","startsAt":1678298400,"endsAt":1678302000,"contentType":"event","attendees":[],"attendeeCount":0,"isLoggedInUserAttendee":false,"createdAt":"1675974969"},"phrases":{"Forum":{"{n} year|{n} years":"{n} year|{n} years","{n} month|{n} months":"{n} month|{n} months","{n} day|{n} days":"{n} day|{n} days","{n} hour|{n} hours":"{n} hour|{n} hours","{n} minute|{n} minutes":"{n} minute|{n} minutes","just":"just now","{plural} ago":"{plural} ago"}}}">

'Custom Script') pass variables - define hostname"}]}">
解决了

云 - init(创建VM>'自定义脚本')传递变量 - 定义主机名


大家好,

有谁知道在通过Prism元素中创建AHV时,是否可以将变量传递到“自定义脚本” /云 - 输入部分?

Ideally, I’d like to use the REST API to create (clone) a VM from a template, and pass a ‘Custom Script’ perhaps from an ADSF path, that is able to configure the guest’s Hostname / FQDN based off the VM’s name specified in the REST API call.

IPAM和一些基本的Cloud-Init配置正在工作,只是试图确定设置主机名的最佳方法!


该主题已关闭以供评论

5个答复

UserLevel 6
徽章 +5

嗨,Justinl123,

你看过吗?这个帖子?它有用还是您想要的不是您想要的?

嘿,Alona,

有点儿。我想编程创建带有名称xyz的VM,还将该名称xyz放在主机名:自定义脚本的字段(即云端)。这样,我们可以调用脚本,例如10次并递增主机名,即XYZ01,XYZ02,XYZ03,…,VM将适当地命名,以及来宾主机名。

这样,我们可以通过在主机名前缀中运行一个通过一个脚本来一次淘汰n个数量的VM。

更符合我想做的事情,但没有冷静的整合。当我有机会时,我将查看还构建的REST API调用脚本,Base64用匹配的主机名编码Cloud-Init“用户数据”部分。

UserLevel 6
徽章 +5

我懂了!还有这个KBAHV:Ubuntu云图像VM创建选项2通过使用卷发通过Prism Central通过REST API调用创建和配置VM。

啊,yep,恰好使用包装器脚本围绕它自动化步骤,从而接受主机名的参数!

非常感谢!

UserLevel 6
徽章 +5

伟大的!很高兴这很有帮助:)

Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu