<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Cloud - Tag - Xiaopeng Xu</title><link>https://xu-xp.com/tags/cloud/</link><description>Cloud - Tag - Xiaopeng Xu</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>xiaopeng.xu@kaust.edu.sa (Xiaopeng Xu)</managingEditor><webMaster>xiaopeng.xu@kaust.edu.sa (Xiaopeng Xu)</webMaster><lastBuildDate>Thu, 08 Feb 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://xu-xp.com/tags/cloud/" rel="self" type="application/rss+xml"/><item><title>Cloud 常用命令</title><link>https://xu-xp.com/posts/cloud_commons/</link><pubDate>Thu, 08 Feb 2024 00:00:00 +0000</pubDate><author>xiaopeng.xu@kaust.edu.sa (Xiaopeng Xu)</author><guid>https://xu-xp.com/posts/cloud_commons/</guid><description><![CDATA[<h2 id="google-cloud-操作">Google cloud 操作</h2>
<h3 id="增加-ssh-key">增加 ssh key</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-PowerShell">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-PowerShell" data-lang="PowerShell"><span class="line"><span class="cl"><span class="nb">ssh-keygen</span> <span class="c"># -t rsa -b 4096 -C account_name</span>
</span></span><span class="line"><span class="cl"><span class="c"># copy the content in *.pub to google cloud user keys.</span></span></span></code></pre></div></div>
<h3 id="vm-相关">VM 相关</h3>
<h4 id="创建和删除-vm">创建和删除 VM</h4>
<p>在 web 界面中按步骤操作即可。</p>
<p>注意：</p>
<ol>
<li>在高级选项中的 availability policies，课选择 spot。可大幅减少计算成本。
使用 Admin 创建的 image，可以使用 NFS，已有 environment。</li>
</ol>
<h4 id="登录-vm">登录 VM</h4>
<p>使用 gcloud 登录较为方便，命令如下</p>]]></description></item></channel></rss>