Files
doc-exports/docs/bms/image-creation-guide/en-us_topic_0081116643.html
guoyanyan fe8c0cf45c BMS Image Creation Guide 1109
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2022-11-16 08:53:42 +00:00

35 lines
5.5 KiB
HTML

<a name="EN-US_TOPIC_0081116643"></a><a name="EN-US_TOPIC_0081116643"></a>
<h1 class="topictitle1">Preparing the Environment</h1>
<div id="body59554028"><ul id="EN-US_TOPIC_0081116643__ul7171952204952"><li id="EN-US_TOPIC_0081116643__li9316935204952">Prepare a Linux physical server or VM as the host and install Linux on the host.<p id="EN-US_TOPIC_0081116643__p42348428205010"><a name="EN-US_TOPIC_0081116643__li9316935204952"></a><a name="li9316935204952"></a>For example, if you are installing CentOS 7.3 64bit on the host, you must select the GUI and virtualization environment.</p>
<p id="EN-US_TOPIC_0081116643__p158911339164219">Select <strong id="EN-US_TOPIC_0081116643__b1370174210362">Server with GUI</strong> and then select <strong id="EN-US_TOPIC_0081116643__b20376114219363">FTP Server</strong>, <strong id="EN-US_TOPIC_0081116643__b1437613423366">Virtualization Client</strong>, <strong id="EN-US_TOPIC_0081116643__b16376142103610">Virtualization Hypervisor</strong>, and <strong id="EN-US_TOPIC_0081116643__b1237710428365">Virtualization Tools</strong>.</p>
<p id="EN-US_TOPIC_0081116643__p172216262574"><span><img id="EN-US_TOPIC_0081116643__image139513189920" src="en-us_image_0110958236.png" title="Click to enlarge" class="imgResize"></span></p>
<p id="EN-US_TOPIC_0081116643__p12856154014562">For example, if you are creating an Arm64 image and installing Ubuntu 16.04 Server-ARM64 on the host. Select the option containing the HWE kernel.</p>
<p id="EN-US_TOPIC_0081116643__p172982434561"><span><img id="EN-US_TOPIC_0081116643__image540684911615" src="en-us_image_0110958238.png" title="Click to enlarge" class="imgResize"></span></p>
<p id="EN-US_TOPIC_0081116643__p714157165718">After the OS is installed on the host, run the following commands to install the Ubuntu desktop and virtualization software and then restart the host.</p>
<p id="EN-US_TOPIC_0081116643__p68401830195710"><strong id="EN-US_TOPIC_0081116643__b16605193685711">sudo apt-get update</strong></p>
<p id="EN-US_TOPIC_0081116643__p2840163055713"><strong id="EN-US_TOPIC_0081116643__b1606193616576">sudo apt-get dist-upgrade</strong></p>
<p id="EN-US_TOPIC_0081116643__p168407306574"><strong id="EN-US_TOPIC_0081116643__b960783635714">sudo apt-get install ubuntu-desktop</strong></p>
<p id="EN-US_TOPIC_0081116643__p984073075710"><strong id="EN-US_TOPIC_0081116643__b11607183695716">sudo apt-get install qemu</strong></p>
<p id="EN-US_TOPIC_0081116643__p8840103019571"><strong id="EN-US_TOPIC_0081116643__b16081936155714">sudo apt-get install qemu-kvm</strong></p>
<p id="EN-US_TOPIC_0081116643__p984073075718"><strong id="EN-US_TOPIC_0081116643__b360943695713">sudo apt-get install libvirt0</strong></p>
<p id="EN-US_TOPIC_0081116643__p684063013578"><strong id="EN-US_TOPIC_0081116643__b186092366571">sudo apt-get install virt-manager</strong></p>
<p id="EN-US_TOPIC_0081116643__p8840530155716"><strong id="EN-US_TOPIC_0081116643__b136104368575">sudo apt-get install qemu-efi</strong></p>
</li><li id="EN-US_TOPIC_0081116643__li721165320508">Configure the host network and remote connection to the host.<ol id="EN-US_TOPIC_0081116643__ol5920992721115"><li id="EN-US_TOPIC_0081116643__li4604728521115">Connect the host to the Internet so that you can install software on VMs online through the host.</li><li id="EN-US_TOPIC_0081116643__li2461174921441">Remotely connect to the host. If you are connecting from a Windows local server, additional configurations are needed.</li></ol>
</li><li id="EN-US_TOPIC_0081116643__li913330320507">Enable the vsftpd, SSHD, and VNC services and configure them.<p id="EN-US_TOPIC_0081116643__p537664021734"><a name="EN-US_TOPIC_0081116643__li913330320507"></a><a name="li913330320507"></a>These services allow you to remotely transmit software packages, ISO files, and scripts to the host, and remotely log in to the host. For details, see <a href="en-us_topic_0081116836.html">Configuring the SSH Service</a>, <a href="en-us_topic_0081116793.html">Configuring the vsftpd Service</a>, and <a href="en-us_topic_0081116782.html">Configuring the VNC Service</a>.</p>
</li><li id="EN-US_TOPIC_0081116643__li1623546020504">For CentOS 7.<em id="EN-US_TOPIC_0081116643__i19718104823818">x</em>, disable the firewall so that you can log in to the host using VNC Viewer. Run the following commands to disable the firewall:<p id="EN-US_TOPIC_0081116643__p3626541211017"><strong id="EN-US_TOPIC_0081116643__b61820168211035">systemctl disable firewalld.service</strong></p>
<p id="EN-US_TOPIC_0081116643__p17774462211028"><strong id="EN-US_TOPIC_0081116643__b3516909211039">systemctl stop firewalld.service</strong></p>
</li><li id="EN-US_TOPIC_0081116643__li6706085821950">Transmit required files to the host.<p id="EN-US_TOPIC_0081116643__p325510311510"><a name="EN-US_TOPIC_0081116643__li6706085821950"></a><a name="li6706085821950"></a>After the host configuration is complete, use vsftpd to upload the required files to the host. After the preceding operations are performed, the host environment configuration is complete.</p>
<p id="EN-US_TOPIC_0081116643__p1174416453505">If you use Xftp to upload the files, click the icon shown in the red box in the following figure after you log in to the host through Xshell using SSH.</p>
<p id="EN-US_TOPIC_0081116643__p1225283614719"><span><img id="EN-US_TOPIC_0081116643__image19731516172118" src="en-us_image_0110292972.png" title="Click to enlarge" class="imgResize"></span></p>
</li></ul>
</div>
<div></div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>