<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux &#8211; NhanVPH&#039;s Blog</title>
	<atom:link href="https://blntech.io.vn/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://blntech.io.vn</link>
	<description></description>
	<lastBuildDate>Fri, 29 May 2026 08:14:37 +0000</lastBuildDate>
	<language>vi</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://blntech.io.vn/wp-content/uploads/2026/04/cropped-cropped-Logo-BLN-32x32.jpg</url>
	<title>Linux &#8211; NhanVPH&#039;s Blog</title>
	<link>https://blntech.io.vn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Cài Đặt Arch Linux Trên Máy Ảo Hyper-V</title>
		<link>https://blntech.io.vn/cai-dat-arch-linux-tren-may-ao-hyper-v/</link>
		
		<dc:creator><![CDATA[nhanvph]]></dc:creator>
		<pubDate>Fri, 29 May 2026 08:14:37 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Arch-Linux]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<guid isPermaLink="false">https://blntech.io.vn/?p=1932</guid>

					<description><![CDATA[Bài viết này mình chia sẻ lại toàn bộ các bước cài đặt Arch Linux lên máy ảo Hyper-V Hướng [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Bài viết này mình chia sẻ lại toàn bộ các bước cài đặt Arch Linux lên máy ảo Hyper-V</p>



<p class="wp-block-paragraph">Hướng dẫn này mình sử dụng máy ảo Hyper-V, nhưng bạn hoàn toàn có thể áp dụng các bước dưới đây để cài đặt Arch Linux lên máy ảo VirtualBox, ESXi, Promox hay cài trực tiếp lên Desktop / Laptop.</p>



<p class="wp-block-paragraph">***Lưu ý: Nếu bạn mới tìm hiểu Linux, tốt nhất nên dùng Ubuntu hoặc Mint. Đụng vô anh Arch Linux này sẽ cực kỳ thử thách cho những người chưa quen comand-line.</p>



<h2 class="wp-block-heading">1. Tạo máy ảo mới</h2>



<p class="wp-block-paragraph">Việc tạo máy ảo mới trên Hyper-V mình đã chia sẻ trong bài viết trước. Bạn có thể tham khảo bên dưới.</p>



<p class="wp-block-paragraph"><strong>Tạo máy ảo bằng Hyper-V trong Windows 10</strong></p>



<p class="wp-block-paragraph">Chú ý: Nhớ chọn máy ảo Generation 2 và kết nối vào External Switch hoặc Default Switch để có thể kết nối Internet trong khi cài đặt.</p>



<h2 class="wp-block-heading">2. Tải Arch Linux ISO</h2>



<p class="wp-block-paragraph">Bạn cần tải file iso cài đặt Arch Linux từ trang&nbsp;<a href="https://archlinux.org/download/" target="_blank" rel="noreferrer noopener">Download</a>. Hoặc truy cập thằng vào Mirror nằm trên server Việt Nam của Bizflycloud để tải cho nhanh:&nbsp;<a href="http://mirror.bizflycloud.vn/archlinux/iso/latest/" target="_blank" rel="noreferrer noopener"></a><a href="http://mirror.bizflycloud.vn/archlinux/iso/latest/" target="_blank" rel="noreferrer noopener">http://mirror.bizflycloud.vn/archlinux/iso/latest/</a></p>



<h2 class="wp-block-heading">3. Sửa lỗi không thể boot từ file ISO</h2>



<p class="wp-block-paragraph">Phiên bản ISO Arch Linux 202108 (archlinux-2021.08.01-x86_64.iso) gặp lỗi khi cài đặt trên Hyper-V như sau:</p>



<pre class="wp-block-preformatted"><code>ERROR: '/dev/disk/by-label/ARCH_202108' device did not show up after 30 seconds...</code></pre>



<figure class="wp-block-image aligncenter size-full"><img fetchpriority="high" decoding="async" width="1024" height="768" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-565.png" alt="" class="wp-image-6442" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-565.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-565-300x225.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-565-768x576.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Lý do vì Hyper-V tự động nhả ổ đĩa sau khi khởi động, khiến tiến trình cài đặt gặp lỗi (<a href="https://bugs.archlinux.org/task/71934" target="_blank" rel="noreferrer noopener">FS#71934 : archlinux-2021.08.01-x86_64.iso fails to boot on hyper-v</a>) Để sửa lỗi này, mình bấm vào mục Media -&gt; DVD Drive -&gt; Insert Disk để chọn lại file ISO cài đặt.</p>



<figure class="wp-block-image aligncenter size-large"><img decoding="async" width="1024" height="870" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-566-1024x870.png" alt="" class="wp-image-6443" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-566-1024x870.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-566-300x255.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-566-768x653.png 768w, https://blntech.io.vn/wp-content/uploads/2025/07/image-566.png 1026w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau đó quay lại console gõ lệnh</p>



<pre class="wp-block-preformatted"><code>udevadm trigger<br>exit</code></pre>



<figure class="wp-block-image aligncenter size-full"><img decoding="async" width="1024" height="768" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-567.png" alt="" class="wp-image-6444" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-567.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-567-300x225.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-567-768x576.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Quá trình cài đặt sẽ chạy tiếp tục</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="1024" height="768" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-568.png" alt="" class="wp-image-6445" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-568.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-568-300x225.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-568-768x576.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Hiện tại file iso bản mới archlinux-2021.09.01-x86_64.iso khắc phục lỗi này. Mình chia sẻ lại lỗi ở đây, biết đâu trong tương lai có bản nào bị lỗi tiếp còn nhớ cách sửa.</p>



<h2 class="wp-block-heading">3. Thiết lập hệ thống trước khi cài đặt</h2>



<h3 class="wp-block-heading">Kiểm tra kết nối mạng</h3>



<p class="wp-block-paragraph">Arch Linux cần phải kết nối Internet để tải các package trong quá trình cài đặt. Kiểm tra máy ảo có kết nối Internet chưa bằng lệnh ping</p>



<pre class="wp-block-preformatted"><code>ping gooogle.com</code></pre>



<p class="wp-block-paragraph">Nếu thấy nhận được tín hiệu phản hồi nghĩa là máy ảo đang kết nối Internet OK.</p>



<p class="wp-block-paragraph">Tiếp theo kiểm tra địa chỉ IP hiện tại của máy ảo. Bạn cần ghi nhớ lại IP này để kết nối SSH vào máy ảo ở bước sau</p>



<pre class="wp-block-preformatted"><code>ip a</code></pre>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="1024" height="768" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-569.png" alt="" class="wp-image-6446" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-569.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-569-300x225.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-569-768x576.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">IP của máy ảo: <code><strong>192.168.0.166</strong></code></p>



<h3 class="wp-block-heading">Thiết lập SSH, Root Password</h3>



<p class="wp-block-paragraph">Việc thao tác trực tiếp trên giao diện của Hyper-V không tiện lợi cho việc cài đặt vì nó không cho phép copy / paste dòng lệnh. Do đó, bạn nên thiết lập SSH Server để dùng Terminal / Putty kết nối vào sẽ dễ sử dụng hơn.</p>



<p class="wp-block-paragraph">Thiết lập mật khẩu cho tài khoản root</p>



<pre class="wp-block-code"><code>passwd</code></pre>



<p class="wp-block-paragraph">Kích hoạt SSH Service</p>



<pre class="wp-block-preformatted"><code>systemctl start sshd</code></pre>



<h3 class="wp-block-heading">Kết nối SSH vào máy ảo</h3>



<p class="wp-block-paragraph">Sử dụng Putty (Windows) hoặc Terminal (MacOS / Linux) để kết nối SSH vào máy ảo theo địa chỉ IP với tài khoản root và password đã thiết lập.</p>



<pre class="wp-block-preformatted"><code>ssh root@192.168.0.166</code></pre>



<pre class="wp-block-preformatted"><code>login as:root<br>Keyboard-interactive authentication prompts from server:<br>| Password:<br>End of keyboard-interactive prompts from server<br>To install Arch Linux follow the installation guide:<br>https://wiki.archlinux.org/title/Installation_guide<br><br>For Wi-Fi, authenticate to the wireless network using the iwctl utility.<br>For mobile broadband (WWAN) modems, connect with the mmcli utility.<br>Ethernet, WLAN and WWAN interfaces using DHCP should work automatically.<br><br>After connecting to the internet, the installation guide can be accessed<br>via the convenience script Installation_guide.<br><br>Last login: Thu Sep  2 08:56:22 2021<br>root@archiso ~ #</code></pre>



<h3 class="wp-block-heading">Thiết lập layout bàn phím</h3>



<p class="wp-block-paragraph">Mặc định Arch Linux đã kích hoạt layout bàn phím US – là loại đang sử dụng phổ biến ở Việt Nam. Nên bước này không cần làm gì thêm. Nếu bạn dùng layout bàn phím kiểu khác thì tham khảo hướng dẫn ở đây:&nbsp;<a href="https://wiki.archlinux.org/title/Installation_guide#Set_the_keyboard_layout" target="_blank" rel="noreferrer noopener"></a><a href="https://wiki.archlinux.org/title/Installation_guide#Set_the_keyboard_layout" target="_blank" rel="noreferrer noopener">https://wiki.archlinux.org/title/Installation_guide#Set_the_keyboard_layout</a></p>



<h3 class="wp-block-heading">Cập nhật thời gian cho hệ thống</h3>



<pre class="wp-block-preformatted"><code>timedatectl set-ntp true</code></pre>



<p class="wp-block-paragraph">Kiểm tra lại bằng lệnh</p>



<pre class="wp-block-preformatted"><code>timedatectl statu</code>s</pre>



<pre class="wp-block-preformatted"><code>root@archiso ~ </code># timedatectl status<code><br>               Local time: Thu 2021-09-02 09:11:39 UTC<br>           Universal time: Thu 2021-09-02 09:11:39 UTC<br>                 RTC time: Thu 2021-09-02 09:11:39<br>                Time zone: UTC (UTC, +0000)<br>System clock synchronized: yes<br>              NTP service: active<br>          RTC in local TZ: no</code></pre>



<h3 class="wp-block-heading">Thiết lập mirrorlist</h3>



<p class="wp-block-paragraph">Mirror List là danh sách repo mà Arch Linux sử dụng để tải các package cài đặt. Để tối ưu tốc độ tải, mình sử dụng các mirror từ Việt Nam và Hongkong.</p>



<pre class="wp-block-preformatted">##<br>## Arch Linux repository mirrorlist<br>## Generated on 2021-09-02<br>##<br><br>## Vietnam<code><br>Server = </code>&lt;http://mirror.bizflycloud.vn/archlinux/$repo/os/$arch><code><br><br></code>## Hong Kong<code><br></code>Server = &lt;https://asia.mirror.pkgbuild.com/$repo/os/$arch><br>Server = &lt;http://mirror-hk.koddos.net/archlinux/$repo/os/$arch><br>Server = &lt;https://mirror-hk.koddos.net/archlinux/$repo/os/$arch><br>Server = &lt;http://hkg.mirror.rackspace.com/archlinux/$repo/os/$arch><br>Server = &lt;https://hkg.mirror.rackspace.com/archlinux/$repo/os/$arch><br>Server = &lt;https://arch-mirror.wtako.net/$repo/os/$arch><br>Server = &lt;http://mirror.xtom.com.hk/archlinux/$repo/os/$arch><br>Server = &lt;https://mirror.xtom.com.hk/archlinux/$repo/os/$arch></pre>



<p class="wp-block-paragraph">Bạn có thể truy cập vào&nbsp;<a href="https://archlinux.org/mirrorlist/" target="_blank" rel="noreferrer noopener"></a><a href="https://archlinux.org/mirrorlist/" target="_blank" rel="noreferrer noopener">https://archlinux.org/mirrorlist/</a>&nbsp;để tạo danh sách mirror.</p>



<p class="wp-block-paragraph">Lưu lại mirrorlist mặc định</p>



<pre class="wp-block-preformatted"><code>mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bk</code></pre>



<p class="wp-block-paragraph">Tạo lại danh sách mới <code><strong>/etc/pacman.d/mirrorlist</strong></code></p>



<pre class="wp-block-preformatted"><code>sudo nano /etc/pacman.d/mirrorlist</code></pre>



<p class="wp-block-paragraph">Thêm vào mirrorlist ở trên, lưu lại và thoát ra (Ctrl+O, Ctrl + X)</p>



<pre class="wp-block-preformatted">##<br>## Arch Linux repository mirrorlist<br>## Generated on 2021-09-02<br>##<br><br>## Vietnam<br>Server = &lt;http://mirror.bizflycloud.vn/archlinux/$repo/os/$arch><br><br>## Hong Kong<br>Server = &lt;https://asia.mirror.pkgbuild.com/$repo/os/$arch><br>Server = &lt;http://mirror-hk.koddos.net/archlinux/$repo/os/$arch><br>Server = &lt;https://mirror-hk.koddos.net/archlinux/$repo/os/$arch><br>Server = &lt;http://hkg.mirror.rackspace.com/archlinux/$repo/os/$arch><br>Server = &lt;https://hkg.mirror.rackspace.com/archlinux/$repo/os/$arch><br>Server = &lt;https://arch-mirror.wtako.net/$repo/os/$arch><br>Server = &lt;http://mirror.xtom.com.hk/archlinux/$repo/os/$arch><br>Server = &lt;https://mirror.xtom.com.hk/archlinux/$repo/os/$arch></pre>



<h3 class="wp-block-heading">Phân vùng ổ cứng</h3>



<p class="wp-block-paragraph">Kiểm tra ổ đĩa bằng lệnh&nbsp;<code>lsblk</code></p>



<pre class="wp-block-preformatted"><code>root@archiso ~ </code># lsblk<code><br>NAME  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS<br>loop0   7:0    0 662.7M  1 loop /run/archiso/airootfs<br>sda     8:0    0    30G  0 disk <br>sr0    11:0    1 832.3M  0 rom  /run/archiso/bootmnt</code></pre>



<p class="wp-block-paragraph">Sử dụng <code><strong>gdisk</strong></code> để thiết lập phân vùng cho ổ đĩa <code><strong>/dev/sda</strong></code></p>



<pre class="wp-block-preformatted"><code>gdisk /dev/sda</code></pre>



<pre class="wp-block-preformatted"><code>root@archiso ~ </code># gdisk /dev/sda<code><br>GPT fdisk (gdisk) version 1.0.8<br><br>Partition table scan:<br>  MBR: not present<br>  BSD: not present<br>  APM: not present<br>  GPT: not present<br><br>Creating new GPT entries in memory.<br><br>Command (? for help):</code></pre>



<p class="wp-block-paragraph">Nếu ổ cứng có sẵn dữ liệu và bạn muốn xoá sạch sẽ để cài mới hoàn toàn, sử dụng command&nbsp;<code>o</code></p>



<pre class="wp-block-preformatted"><code>Command (? for help): o<br>This option deletes all partitions and creates a new protective MBR.<br>Proceed? (Y/N): Y</code></pre>



<p class="wp-block-paragraph">Tạo phân vùng EFI bằng command <code><strong>n</strong></code>, dung lượng 512MB</p>



<pre class="wp-block-preformatted"><code>Command (? for help): n<br>Partition number (1-128, default 1): 1<br>First sector (34-62914526, default = 2048) or {+-}size{KMGTP}: <br>Last sector (2048-62914526, default = 62914526) or {+-}size{KMGTP}: +512M<br>Current type is 8300 (Linux filesystem)<br>Hex code or GUID (L to show codes, Enter = 8300): EF00<br>Changed type of partition to 'EFI system partition'</code></pre>



<p class="wp-block-paragraph">Tạo tiếp phân vùng root sử dụng toàn bộ dung lượng còn lại của ổ cứng</p>



<pre class="wp-block-preformatted"><code>Command (? for help): n<br>Partition number (2-128, default 2): n<br>First sector (34-62914526, default = 1050624) or {+-}size{KMGTP}: <br>Last sector (1050624-62914526, default = 62914526) or {+-}size{KMGTP}: <br>Current type is 8300 (Linux filesystem)<br>Hex code or GUID (L to show codes, Enter = 8300): <br>Changed type of partition to 'Linux filesystem'</code></pre>



<p class="wp-block-paragraph">Mình không tạo phân vùng swap như hướng dẫn của Arch Linux Wiki. Swap có thể tạo bằng file trên phân vùng root, không cần phải dùng phân vùng riêng.</p>



<p class="wp-block-paragraph">Kiểm tra lại thông tin trước khi xác nhận thiết lập phân vùng bằng lệnh <code><strong>p</strong></code></p>



<pre class="wp-block-preformatted"><code>Command (? for help): p<br>Disk /dev/sda: 62914560 sectors, 30.0 GiB<br>Model: Virtual Disk    <br>Sector size (logical/physical): 512/4096 bytes<br>Disk identifier (GUID): 18CFC37F-8E65-4FFE-B997-8C48BBE241E5<br>Partition table holds up to 128 entries<br>Main partition table begins at sector 2 and ends at sector 33<br>First usable sector is 34, last usable sector is 62914526<br>Partitions will be aligned on 2048-sector boundaries<br>Total free space is 2014 sectors (1007.0 KiB)<br><br>Number  Start (sector)    End (sector)  Size       Code  Name<br>   1            2048         1050623   512.0 MiB   EF00  EFI system partition<br>   2         1050624        62914526   29.5 GiB    8300  Linux filesystem</code></pre>



<p class="wp-block-paragraph">Lưu lại thiết lập phân vùng lên ổ cứng bằng lệnh <code><strong>w</strong></code></p>



<pre class="wp-block-preformatted"><code>Command (? for help): w<br><br>Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING<br>PARTITIONS!!<br><br>Do you want to proceed? (Y/N): Y<br>OK; writing new GUID partition table (GPT) to /dev/sda.<br>The operation has completed successfully.</code></pre>



<h3 class="wp-block-heading">Format phân vùng</h3>



<p class="wp-block-paragraph">Kiểm tra lại hệ thống phân vùng bằng lệnh <code><strong>lsblk</strong></code></p>



<pre class="wp-block-preformatted"><code>root@archiso ~ </code># lsblk<code><br>NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS<br>loop0    7:0    0 662.7M  1 loop /run/archiso/airootfs<br>sda      8:0    0    30G  0 disk <br>├─sda1   8:1    0   512M  0 part <br>└─sda2   8:2    0  29.5G  0 part <br>sr0     11:0    1 832.3M  0 rom  /run/archiso/bootmnt</code></pre>



<p class="wp-block-paragraph">Format phân vùng EFI</p>



<pre class="wp-block-code"><code>mkfs.fat -F32 /dev/sda1</code></pre>



<p class="wp-block-paragraph">Format phân vùng root</p>



<pre class="wp-block-code"><code>mkfs.ext4 /dev/sda2</code></pre>



<p class="wp-block-paragraph">Mount phân vùng vào hệ thống</p>



<pre class="wp-block-preformatted"><code>mount /dev/sda2 /mnt<br>mkdir /mnt/boot<br>mount /dev/sda1 /mnt/boot</code></pre>



<h2 class="wp-block-heading">4. Cài đặt hệ thống</h2>



<h3 class="wp-block-heading">Cài đặt base system</h3>



<p class="wp-block-paragraph">Sử dụng&nbsp;<code>pacstrap</code>&nbsp;để cài đặt base system</p>



<pre class="wp-block-preformatted"><code>pacstrap /mnt base linux linux-firmware base-devel</code></pre>



<h3 class="wp-block-heading">Tạo fstab file</h3>



<pre class="wp-block-preformatted"><code>genfstab -U /mnt >> /mnt/etc/fstab</code></pre>



<h3 class="wp-block-heading">Chroot</h3>



<p class="wp-block-paragraph">Truy cập vào hệ thống qua tài khoản root</p>



<pre class="wp-block-code"><code>arch-chroot /mnt</code></pre>



<h3 class="wp-block-heading">Cài đặt thêm các package cần thiết</h3>



<pre class="wp-block-preformatted"><code>pacman -S openssh nano intel-ucode networkmanager</code></pre>



<p class="wp-block-paragraph">Nếu máy sử dụng CPU AMD, bạn nhớ đổi <code><strong>intel-ucode</strong></code> thành <code><strong>amd-ucode</strong></code></p>



<h3 class="wp-block-heading">Cài đặt boot loader</h3>



<pre class="wp-block-preformatted"><code>bootctl install</code></pre>



<p class="wp-block-paragraph">Kết quả</p>



<pre class="wp-block-preformatted"><code>[root@archiso /]</code># bootctl install<code><br>Created "/boot/EFI".<br>Created "/boot/EFI/systemd".<br>Created "/boot/EFI/BOOT".<br>Created "/boot/loader".<br>Created "/boot/loader/entries".<br>Created "/boot/EFI/Linux".<br>Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/systemd/systemd-bootx64.efi".<br>Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/BOOT/BOOTX64.EFI".<br>Created "/boot/d28ebfbb52b245528e50eff03fdd37e7".<br>Random seed file /boot/loader/random-seed successfully written (512 bytes).<br>Not installing system token, since we are running in a virtualized environment.<br>Created EFI boot entry "Linux Boot Manager".</code></pre>



<h3 class="wp-block-heading">Cấu hình boot loader</h3>



<pre class="wp-block-preformatted"><code>nano /boot/loader/loader.conf</code></pre>



<pre class="wp-block-preformatted"><code>default arch<br>timeout 3<br>editor 0</code></pre>



<p class="wp-block-paragraph">Cập nhật bootloader</p>



<pre class="wp-block-preformatted"><code>bootctl update</code></pre>



<h3 class="wp-block-heading">Tạo swap</h3>



<p class="wp-block-paragraph">Tạo file swap có kích thước tương đương với dung lượng RAM của máy.</p>



<pre class="wp-block-preformatted"><code>fallocate -l 2GiB /swapfile<br>chmod 600 /swapfile<br>mkswap /swapfile</code></pre>



<p class="wp-block-paragraph">Kích hoạt swap</p>



<pre class="wp-block-preformatted"><code>swapon /swapfile</code></pre>



<p class="wp-block-paragraph">Chỉnh sửa file <code><strong>fstab</strong></code> để bổ sung thông tin swap</p>



<pre class="wp-block-preformatted"><code>nano /etc/fstab</code></pre>



<p class="wp-block-paragraph">Thêm dòng này vào dưới cùng</p>



<pre class="wp-block-preformatted"><code>/swapfile none swap defaults 0 0</code></pre>



<h3 class="wp-block-heading">Cấu hình múi giờ</h3>



<p class="wp-block-paragraph">Chỉnh hệ thống về múi giờ Việt Nam</p>



<pre class="wp-block-preformatted"><code>ln -sf /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime<br>hwclock — systohc</code></pre>



<h3 class="wp-block-heading">Cấu hình ngôn ngữ</h3>



<p class="wp-block-paragraph">Chỉnh ngôn ngữ hệ thống thành <strong>en_US.UTF-8 UTF-8</strong></p>



<pre class="wp-block-preformatted"><code>echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen<br>locale-gen</code></pre>



<p class="wp-block-paragraph">Chỉnh thông số LANG trong file <code><strong>/etc/locale.conf</strong></code></p>



<pre class="wp-block-preformatted"><code>echo 'LANG=en_US.UTF-8' > /etc/locale.conf</code></pre>



<h3 class="wp-block-heading">Thay đổi hostname</h3>



<p class="wp-block-paragraph">Sử dụng lệnh sau để đặt tên máy (hostname) thành ‘thuanbui-arch’</p>



<pre class="wp-block-preformatted"><code>echo 'thuanbui-arch' > /etc/hostname</code></pre>



<h3 class="wp-block-heading">Thay đổi mật khẩu root</h3>



<pre class="wp-block-preformatted"><code>passwd</code></pre>



<h3 class="wp-block-heading">Tạo tài khoản mới</h3>



<p class="wp-block-paragraph">Mình tạo tài khoản <code><strong>thuanbui</strong></code> mới dùng để quản lý hệ thống</p>



<pre class="wp-block-preformatted"><code>useradd -m -G wheel -s /bin/bash -c "Thuan Bui" thuanbui</code></pre>



<p class="wp-block-paragraph">Đặt mật khẩu cho tài khoản mới</p>



<pre class="wp-block-preformatted"><code>passwd thuanbui</code></pre>



<p class="wp-block-paragraph">Thiết lập quyền sudo cho tài khoản mới</p>



<pre class="wp-block-code"><code>EDITOR=nano visudo</code></pre>



<p class="wp-block-paragraph">Bỏ comment # ở phía trước đoạn <code><strong>%wheel ALL=(ALL) ALL</strong></code> để đưa quyền sudo cho thành viên thuộc group <code><strong>group</strong></code></p>



<h3 class="wp-block-heading">Kích hoạt network services</h3>



<pre class="wp-block-preformatted"><code>systemctl enable NetworkManager</code></pre>



<h3 class="wp-block-heading">Kích hoạt SSH Service</h3>



<pre class="wp-block-preformatted"><code>systemctl enable sshd</code></pre>



<h3 class="wp-block-heading">Khởi động lại hệ thống</h3>



<p class="wp-block-paragraph">Thoát ra khỏi môi trường chroot</p>



<pre class="wp-block-preformatted"><code>exit</code></pre>



<p class="wp-block-paragraph">Khởi động lại máy</p>



<pre class="wp-block-code"><code>reboot</code></pre>



<h2 class="wp-block-heading">5. Cài đặt giao diện GUI</h2>



<p class="wp-block-paragraph">Nếu không có gì bất thường, máy ảo sẽ khởi động lại rất nhanh vào tty console. Bạn có thể đăng nhập bằng tài khoản đã tạo trước đó.</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="1024" height="768" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-570.png" alt="" class="wp-image-6447" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-570.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-570-300x225.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-570-768x576.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúc mừng bạn đã vượt qua được giai đoạn khó khăn nhất trong công cuộc cài đặt Arch Linux!</p>



<p class="wp-block-paragraph">Arch Linux đã hoạt động ngon lành ở chế độ cli. Tuy nhiên, nếu muốn sử dụng giao diện GUI như Windows hay MacOS, cần phải cài đặt thêm các package quản lý&nbsp;<a href="https://wiki.archlinux.org/title/Desktop_environment" target="_blank" rel="noreferrer noopener">Desktop Environment</a>&nbsp;như&nbsp;<a href="https://wiki.archlinux.org/title/GNOME" target="_blank" rel="noreferrer noopener">GNOME</a>,&nbsp;<a href="https://wiki.archlinux.org/title/KDE" target="_blank" rel="noreferrer noopener">KDE</a>,&nbsp;<a href="https://wiki.archlinux.org/title/LXDE" target="_blank" rel="noreferrer noopener">LXDE</a>,&nbsp;<a href="https://wiki.archlinux.org/title/I3" target="_blank" rel="noreferrer noopener">i3</a>,…</p>



<h3 class="wp-block-heading">Cài đặt GNOME</h3>



<p class="wp-block-paragraph">Mình chọn cài đặt GNOME cho đơn giản</p>



<pre class="wp-block-preformatted"><code>sudo pacman -S gnome<br>sudo systemctl enable --now gdm</code></pre>



<h3 class="wp-block-heading">Cài đặt video driver</h3>



<p class="wp-block-paragraph">Do mình đang dùng Hyper-V nên cần cài đặt thêm package <code><strong>xf86-video-fbdev</strong></code> để XORG hoạt động trơn tru.</p>



<pre class="wp-block-preformatted"><code>sudo pacman -S xf86-video-fbdev</code></pre>



<h3 class="wp-block-heading">Điều chỉnh độ phân giải</h3>



<p class="wp-block-paragraph">Độ phân giải của máy ảo sẽ cố định sau khi khởi động. Để điều chỉnh độ phân giải, cần phải thêm thông số <code><strong>video=hyperv_fb:1600x900</strong></code> vào boot kernel.</p>



<pre class="wp-block-preformatted"><code>sudo nano /boot/loader/entries/arch.conf</code></pre>



<pre class="wp-block-preformatted"><code>title   Arch Linux<br>linux   /vmlinuz-linux<br>initrd  /intel-ucode.img<br>initrd  /initramfs-linux.img<br>options video=hyperv_fb:1600x900 root=/dev/sda2 rw</code></pre>



<p class="wp-block-paragraph">Bạn có thể thay đổi <code><strong>1600x900</strong></code> thành độ phân giải mong muốn. Độ phân giải cho phép tối đa là <code><strong>1920x1080</strong></code></p>



<h3 class="wp-block-heading">Tận hưởng thành quả</h3>



<pre class="wp-block-preformatted"><code>sudo reboot</code></pre>



<p class="wp-block-paragraph">Tada! GNOME đã hiện ra!</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="1024" height="768" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-571.png" alt="" class="wp-image-6448" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-571.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-571-300x225.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-571-768x576.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Vậy là xong. Arch Linux đã được cài đặt thành công trên máy ảo Hyper-V để chờ bạn nghiên cứu.</p>



<p class="wp-block-paragraph">Arch Linux Wiki có thêm một số hướng dẫn tối ưu cho Hyper-V ở đây:&nbsp;<a href="https://wiki.archlinux.org/title/Hyper-V" target="_blank" rel="noreferrer noopener">Hyper-V – ArchWiki (archlinux.org)</a>. Bạn nào quan tâm có thể tham khảo thêm.</p>



<p class="wp-block-paragraph">Chúc bạn cài đặt êm xuôi!</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">Nguồn: thuanbui</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Proxmox &#8211; Cài Đặt Máy Ảo KVM Linux</title>
		<link>https://blntech.io.vn/proxmox-cai-dat-may-ao-kvm-linux/</link>
		
		<dc:creator><![CDATA[nhanvph]]></dc:creator>
		<pubDate>Wed, 06 May 2026 03:42:42 +0000</pubDate>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Proxmox]]></category>
		<guid isPermaLink="false">https://blntech.io.vn/?p=1809</guid>

					<description><![CDATA[Tiếp tục với loạt bài về Proxmox, bài viết lần này sẽ hướng dẫn bạn cách cài đặt máy ảo KVM [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Tiếp tục với loạt bài về <a href="https://blntech.io.vn/tag/proxmox/" data-type="link" data-id="https://blntech.io.vn/tag/proxmox/" target="_blank" rel="noreferrer noopener">Proxmox</a>, bài viết lần này sẽ hướng dẫn bạn cách cài đặt máy ảo KVM chạy Linux trên Proxmox VE.</p>



<p class="wp-block-paragraph">Mình sẽ cài đặt hệ điều hành Debian 11. Bạn có thể áp dụng tương tự để cài đặt các phiên bản Linux khác: Ubuntu, Arch, Fedora,…</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="Hướng dẫn tạo máy ảo Linux trên Proxmox" width="1200" height="675" src="https://www.youtube.com/embed/SrA6UGug9Iw?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading">I. Upload ISO lên Proxmox</h2>



<p class="wp-block-paragraph">Trước khi thiết lập máy ảo, bạn cần phải tải file ISO cài đặt Debian 11 lên Proxmox.</p>



<p class="wp-block-paragraph">Truy cập vào <a href="https://blntech.io.vn/proxmox-phan-2-lam-quen-voi-giao-dien-quan-ly-web-ui/" data-type="post" data-id="1812" target="_blank" rel="noreferrer noopener">giao diện web của Proxmox</a>, bấm chọn local bên mục Resource Tree, chọn tiếp ISO Images, sau đó bấm nút Upload hoặc Download from URL</p>



<ul class="wp-block-list">
<li>Upload: tải ISO từ máy tính của bạn</li>



<li>Download from URL: tải file ISO trực tiếp từ Internet.</li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="868" height="516" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-464.png" alt="" class="wp-image-5822" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-464.png 868w, https://blntech.io.vn/wp-content/uploads/2025/07/image-464-300x178.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-464-768x457.png 768w" sizes="auto, (max-width: 868px) 100vw, 868px" /></figure>



<p class="wp-block-paragraph">Sau khi tải xong, file ISO cài đặt Debian sẽ có mặt trong mục ISO Images</p>



<figure class="wp-block-image aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="268" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-465-1024x268.png" alt="" class="wp-image-5823" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-465-1024x268.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-465-300x79.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-465-768x201.png 768w, https://blntech.io.vn/wp-content/uploads/2025/07/image-465.png 1130w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">II. Tạo máy ảo KVM cho Debian 11</h2>



<p class="wp-block-paragraph">Bấm vào nút Create VM trên Header của Proxmox để bắt đầu quy trình tạo máy ảo.</p>



<figure class="wp-block-image aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="668" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-466-1024x668.png" alt="" class="wp-image-5824" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-466-1024x668.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-466-300x196.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-466-768x501.png 768w, https://blntech.io.vn/wp-content/uploads/2025/07/image-466.png 1460w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">1. General – Thông tin chung</h3>



<ul class="wp-block-list">
<li>Node: chọn host Proxmox bạn muốn cài đặt máy ảo</li>



<li>VM ID: giữ nguyên mặc định hay thay đổi tuỳ thích</li>



<li>Name: debian-11</li>
</ul>



<p class="wp-block-paragraph">Bấm Next để tiếp tục</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="743" height="533" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-467.png" alt="" class="wp-image-5825" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-467.png 743w, https://blntech.io.vn/wp-content/uploads/2025/07/image-467-300x215.png 300w" sizes="auto, (max-width: 743px) 100vw, 743px" /></figure>



<h3 class="wp-block-heading">2. OS – Hệ điều hành</h3>



<ul class="wp-block-list">
<li>Bấm chọn Use CD/DVD disc image file (iso)
<ul class="wp-block-list">
<li>Storage: chọn local</li>



<li>ISO Images: chọn file ISO debian đã tải ở bước trước đó</li>
</ul>
</li>



<li>Guest OS:
<ul class="wp-block-list">
<li>Type: Linux</li>



<li>Version: 5.x – 2.6 Kernel</li>
</ul>
</li>
</ul>



<p class="wp-block-paragraph">Bấm Next</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="740" height="529" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-468.png" alt="" class="wp-image-5826" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-468.png 740w, https://blntech.io.vn/wp-content/uploads/2025/07/image-468-300x214.png 300w" sizes="auto, (max-width: 740px) 100vw, 740px" /></figure>



<h3 class="wp-block-heading">3. System – Hệ thống</h3>



<ul class="wp-block-list">
<li>Graphic card: Default</li>



<li>Machine: Default (i440fx)</li>



<li>BIOS: Default (SeaBIOS)</li>



<li>SCSI: chọn VirtIO SCSI</li>
</ul>



<p class="wp-block-paragraph">Bấm Next</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="752" height="538" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-469.png" alt="" class="wp-image-5827" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-469.png 752w, https://blntech.io.vn/wp-content/uploads/2025/07/image-469-300x215.png 300w" sizes="auto, (max-width: 752px) 100vw, 752px" /></figure>



<h3 class="wp-block-heading">4. Hard Disk – Ổ đĩa cứng</h3>



<ul class="wp-block-list">
<li>Bus/Device: chọn SCSI</li>



<li>Cache: Default (No cache)</li>



<li>Storage: chọn local-lvm</li>



<li>Disk size (GB): 20GB hoặc lớn hơn</li>



<li>Discard: tick chọn</li>
</ul>



<p class="wp-block-paragraph">Bấm Next để tiếp tục</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="747" height="530" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-470.png" alt="" class="wp-image-5828" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-470.png 747w, https://blntech.io.vn/wp-content/uploads/2025/07/image-470-300x213.png 300w" sizes="auto, (max-width: 747px) 100vw, 747px" /></figure>



<h3 class="wp-block-heading">5. CPU</h3>



<p class="wp-block-paragraph">Tuỳ theo nhu cầu sử dụng mà bạn chọn vCPU cho phù hợp, mình chọn 1 Core.</p>



<ul class="wp-block-list">
<li>Sockets: 1</li>



<li>Cores: 1</li>



<li>Type: Default (kvm64)</li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="747" height="532" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-471.png" alt="" class="wp-image-5829" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-471.png 747w, https://blntech.io.vn/wp-content/uploads/2025/07/image-471-300x214.png 300w" sizes="auto, (max-width: 747px) 100vw, 747px" /></figure>



<h3 class="wp-block-heading">6. Memory – Bộ nhớ</h3>



<p class="wp-block-paragraph">Chọn ít nhất 1 GB (1024 MB). Mình chọn 2 GB (2048)</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="747" height="532" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-472.png" alt="" class="wp-image-5830" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-472.png 747w, https://blntech.io.vn/wp-content/uploads/2025/07/image-472-300x214.png 300w" sizes="auto, (max-width: 747px) 100vw, 747px" /></figure>



<h3 class="wp-block-heading">7. Network – Mạng</h3>



<ul class="wp-block-list">
<li>Model: chọn VirtIO (paravirtualized)</li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="746" height="529" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-473.png" alt="" class="wp-image-5831" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-473.png 746w, https://blntech.io.vn/wp-content/uploads/2025/07/image-473-300x213.png 300w" sizes="auto, (max-width: 746px) 100vw, 746px" /></figure>



<h3 class="wp-block-heading">8. Confim – Xác nhận</h3>



<p class="wp-block-paragraph">Kiểm tra lại thông tin lần cuối, bấm chọn Start after created và bấm Finish để tạo máy ảo mới.</p>



<p class="wp-block-paragraph">Máy ảo sẽ tự động kích hoạt sau khi tạo xong.</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="752" height="537" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-474.png" alt="" class="wp-image-5832" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-474.png 752w, https://blntech.io.vn/wp-content/uploads/2025/07/image-474-300x214.png 300w" sizes="auto, (max-width: 752px) 100vw, 752px" /></figure>



<h2 class="wp-block-heading">III. Cài đặt hệ điều hành</h2>



<p class="wp-block-paragraph">Truy cập vào mục Console của máy ảo Linux vừa tạo để tiến hành các bước cài đặt hệ điều hành.</p>



<figure class="wp-block-image aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="607" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-475-1024x607.png" alt="" class="wp-image-5833" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-475-1024x607.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-475-300x178.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-475-768x455.png 768w, https://blntech.io.vn/wp-content/uploads/2025/07/image-475.png 1459w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">IV. Cài đặt và kích hoạt QEMU Guest Agent</h2>



<p class="wp-block-paragraph">Sau khi cài đặt xong Linux trên máy ảo, bạn cần cài đặt thêm Guest Agent</p>



<pre class="wp-block-preformatted"><code>apt-get install qemu-guest-agent</code></pre>



<p class="wp-block-paragraph">Nếu bạn cài đặt CentOS / Rocky Linux hay các bản Linux trên nền Redhat, sử dụng lệnh sau</p>



<pre class="wp-block-preformatted"><code>yum install qemu-guest-agent</code></pre>



<p class="wp-block-paragraph">Sau đó tắt máy ảo và truy cập vào mục Options để kích hoạt tính năng QEMU Guest Agent.</p>



<p class="wp-block-paragraph">Double click vào mục QEMU Guest</p>



<figure class="wp-block-image aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="486" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-476-1024x486.png" alt="" class="wp-image-5834" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-476-1024x486.png 1024w, https://blntech.io.vn/wp-content/uploads/2025/07/image-476-300x143.png 300w, https://blntech.io.vn/wp-content/uploads/2025/07/image-476-768x365.png 768w, https://blntech.io.vn/wp-content/uploads/2025/07/image-476.png 1244w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Bấm chọn Use QEMU Guest Agent và bấm OK để xác nhận.</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="371" height="199" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-477.png" alt="" class="wp-image-5835" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-477.png 371w, https://blntech.io.vn/wp-content/uploads/2025/07/image-477-300x161.png 300w" sizes="auto, (max-width: 371px) 100vw, 371px" /></figure>



<p class="wp-block-paragraph">Sau khi kích hoạt QEMU Guest Agent, bạn khởi động lại máy ảo. Thông tin CPU Usage, Memory Usage, IPs của máy ảo sẽ hiển thị trong mục Summary của Proxmox.</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="684" height="411" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-478.png" alt="" class="wp-image-5836" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-478.png 684w, https://blntech.io.vn/wp-content/uploads/2025/07/image-478-300x180.png 300w" sizes="auto, (max-width: 684px) 100vw, 684px" /></figure>



<p class="wp-block-paragraph">Vậy là xong. Bạn đã có trong tay 1 máy ảo Linux trên Proxmox để thoải mái nghiên cứu</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">Nguồn: thuanbui</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SnipeIT &#8211; Phần Mềm Quản Lý Tài Sản Trên Ubuntu</title>
		<link>https://blntech.io.vn/snipeit-phan-mem-quan-ly-tai-san-tren-ubuntu/</link>
		
		<dc:creator><![CDATA[nhanvph]]></dc:creator>
		<pubDate>Fri, 10 Apr 2026 06:45:30 +0000</pubDate>
				<category><![CDATA[Audit]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SnipeIT]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://blntech.io.vn/?p=3071</guid>

					<description><![CDATA[Giới Thiệu Trong mỗi công ty, doanh nghiệp có rất nhiều tài sản khác nhau: laptop, máy tính, màn hình, [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h4 class="wp-block-heading"><strong>Giới Thiệu</strong></h4>



<p class="wp-block-paragraph">Trong mỗi công ty, doanh nghiệp có rất nhiều tài sản khác nhau: laptop, máy tính, màn hình, tivi, camera, license, điện thoại, …</p>



<p class="wp-block-paragraph">Việc quản lý những tài sản này là một vấn đề khá đau đầu, đặc biệt với các công ty có nhiều nhân viên thường xuyên ra vào nghỉ việc.</p>



<p class="wp-block-paragraph">Làm sao kiểm tra được ngay: hiện tại đang có bao nhiêu laptop, những ai đang sử dụng và lịch sử người dùng nó trước kia, các thông số kỹ thuật, hạn bảo hành, nhà cung cấp, giá tiền, lịch sử sữa chữa hư hỏng…</p>



<p class="wp-block-paragraph"><strong>Snipe IT</strong> là 1 phần mềm open source miễn phí sẽ giúp bạn xử lý các vấn đề trên</p>



<h4 class="wp-block-heading"><strong>Các Bước Cài Đặt</strong></h4>



<h5 class="wp-block-heading">Cài đặt Apache2 HTTP</h5>



<ul class="wp-block-list">
<li>Apache2 HTTP Server: là máy chủ web phổ biến, để cài đặt Apache2 HTTP trên máy chủ Ubuntu, các bạn hãy chạy các lệnh bên dưới đây</li>
</ul>



<pre class="wp-block-code"><code>sudo apt update

sudo apt install apache2</code></pre>



<ul class="wp-block-list">
<li>Bật tính năng khởi động dịch vụ Apache2 HTTP chạy cùng máy chủ Ubuntu mỗi khi khởi động lên</li>
</ul>



<pre class="wp-block-code"><code>sudo systemctl stop apache2.service

sudo systemctl start apache2.service

sudo systemctl enable apache2.service</code></pre>



<h5 class="wp-block-heading">Cài đặt máy chủ MariaDB Database</h5>



<ul class="wp-block-list">
<li>MariaDB Database: là ứng dụng quản lý lưu trữ dữ liệu cho SnipeIT, để cài đặt MariaDB, các bạn hãy chạy các lệnh bên dưới đây:</li>
</ul>



<pre class="wp-block-code"><code>sudo apt install mariadb-server mariadb-client</code></pre>



<ul class="wp-block-list">
<li>Bật tính năng khởi động dịch vụ MariaDB Database chạy cùng máy chủ Ubuntu mỗi khi khởi động lên</li>
</ul>



<pre class="wp-block-code"><code>sudo systemctl stop mariadb.service

sudo systemctl start mariadb.service

sudo systemctl enable mariadb.service</code></pre>



<ul class="wp-block-list">
<li>Để bảo mật máy chủ MariaDB, hãy tạo mật khẩu root và không cho phép truy cập root từ xa.</li>
</ul>



<pre class="wp-block-code"><code>sudo mysql_secure_installation</code></pre>



<ul class="wp-block-list">
<li>Sau đó làm theo như dưới:</li>
</ul>



<pre class="wp-block-code"><code>Enter current password for root (enter for none):  <strong>nhấn Enter</strong>

Set root password? &#91;Y/n]: <strong>Y</strong>

New password: <strong>nhập password mới</strong> bạn muốn đặt vào

Re-enter new password: <strong>nhập lại password</strong> vừa tạo ở trên

Remove anonymous users? &#91;Y/n]: <strong>Y</strong>

Disallow root login remotely? &#91;Y/n]: <strong>Y</strong>

Remove test database and access to it? &#91;Y/n]: <strong>Y</strong>

Reload privilege tables now? &#91;Y/n]: <strong>Y</strong></code></pre>



<ul class="wp-block-list">
<li>Để kiểm tra xem MariaDB đã được cài đặt chưa, gõ lệnh</li>
</ul>



<pre class="wp-block-code"><code>sudo mysql -u root -p</code></pre>



<ul class="wp-block-list">
<li>Sau đó, nhập mật khẩu root bạn đã tạo ở trên để đăng nhập… nếu thành công, bạn sẽ thấy thông báo chào mừng MariaDB</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="635" height="183" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-299.png" alt="" class="wp-image-5449" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-299.png 635w, https://blntech.io.vn/wp-content/uploads/2025/07/image-299-300x86.png 300w" sizes="auto, (max-width: 635px) 100vw, 635px" /></figure>



<ul class="wp-block-list">
<li>Nhấn Ctrl C để trở về root</li>
</ul>



<h5 class="wp-block-heading">Cài đặt PHP và các Modules liên quan</h5>



<ul class="wp-block-list">
<li>PHP 7.2 có thể không có sẵn trong kho lưu trữ mặc định của Ubunt. Nên để cài đặt nó, bạn sẽ phải lấy từ kho của bên thứ ba, chạy lệnh sau:</li>
</ul>



<pre class="wp-block-code"><code>sudo apt-get install software-properties-common

sudo add-apt-repository ppa:ondrej/php

sudo apt update</code></pre>



<ul class="wp-block-list">
<li>Cài đặt các PHP module liên quan cần thiết để chạy được SnipeIT</li>
</ul>



<pre class="wp-block-code"><code>sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-mysql php7.2-gd php7.2-xml php7.2-cli php7.2-zip php7.2-sqlite php7.2-ldap</code></pre>



<ul class="wp-block-list">
<li>Sau khi cài đặt PHP 7.2, hãy chạy các lệnh bên dưới để mở tệp cấu hình mặc định PHP cho Apache2… Lưu ý cần cài đặt Nano Text Editor trước bằng lệnh</li>
</ul>



<pre class="wp-block-code"><code>sudo apt-get install nano

sudo nano /etc/php/7.2/apache2/php.ini</code></pre>



<ul class="wp-block-list">
<li>Thay đổi các thông số cấu hình cho phù hợp. Để làm nhanh, trên terminal Linix, các bạn nhấn Ctrl W, copy từng dòng text ở dưới, dán vào Terminal (Click chuột phải để dán), để tìm kiếm nhanh đến nơi cần chỉnh sửa</li>
</ul>



<pre class="wp-block-code"><code>file_uploads = On

allow_url_fopen = On

short_open_tag = On

memory_limit = 256M

upload_max_filesize = 100M

max_execution_time = 360

max_input_vars = 1500

date.timezone = Ho Chi Minh</code></pre>



<ul class="wp-block-list">
<li>Nhấn Ctrl O, Enter, để lưu lại. Nhấn Ctrl X để thoát ra</li>



<li>Để kiểm tra cài đặt PHP 7.2 với Apache2, hãy tạo tệp phpinfo.php trong thư mục gốc Apache2 bằng cách chạy các lệnh bên dưới</li>
</ul>



<pre class="wp-block-code"><code>sudo nano /var/www/html/phpinfo.php</code></pre>



<ul class="wp-block-list">
<li>Copy đoạn text dưới, dán vào, và lưu lại bằng cách CTRL O, Enter, CTRL X để thoát ra</li>
</ul>



<h5 class="wp-block-heading">Tạo database cho SnipeIT</h5>



<ul class="wp-block-list">
<li>Chạy các lệnh bên dưới để đăng nhập vào MariaDB. Khi được nhắc nhập mật khẩu, hãy nhập mật khẩu root bạn đã tạo ở trên.</li>
</ul>



<pre class="wp-block-code"><code>sudo mysql -u root -p</code></pre>



<ul class="wp-block-list">
<li>Tạo database tên snipeit</li>
</ul>



<pre class="wp-block-code"><code>CREATE DATABASE snipeit;</code></pre>



<ul class="wp-block-list">
<li>Tạo user truy cập vào database SnipeIT với mật khẩu mới</li>
</ul>



<pre class="wp-block-code"><code>CREATE USER '<strong>snipeituser</strong>'@'<strong>localhost</strong>' IDENTIFIED BY '<strong>nhập mật khẩu mới ở đây</strong>';</code></pre>



<ul class="wp-block-list">
<li>Cấp cho user toàn quyền truy cập vào SnipeIT database</li>
</ul>



<pre class="wp-block-code"><code>GRANT ALL ON snipeit.* TO 'snipeituser'@'localhost' WITH GRANT OPTION;</code></pre>



<ul class="wp-block-list">
<li>Lưu lại và thoát ra</li>
</ul>



<pre class="wp-block-code"><code>FLUSH PRIVILEGES;

EXIT;</code></pre>



<h5 class="wp-block-heading">Tải về SnipeIT bản mới nhất</h5>



<ul class="wp-block-list">
<li>Bạn sẽ dowload bản SnipeIT mới nhất từ kho lưu trữ Github. Bạn cần cài đặt trước Composer và Curl</li>
</ul>



<pre class="wp-block-code"><code>sudo apt install curl git

sudo apt install composer

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=compose</code></pre>



<p class="wp-block-paragraph">Dowload SnipeIT</p>



<pre class="wp-block-preformatted">cd /var/www/<br><br>sudo git clone https://github.com/snipe/snipe-it snipeit<br><br>sudo cp /var/www/snipeit/.env.example /var/www/snipeit/.env</pre>



<ul class="wp-block-list">
<li>Chỉnh sửa file .env vừa tạo trên để thiết lập cấu hình cho SnipeIT</li>
</ul>



<pre class="wp-block-code"><code>sudo nano /var/www/snipeit/.env</code></pre>



<ul class="wp-block-list">
<li>Copy đoạn code dưới, dán vào file .env. Chỉnh sửa lại APP_URL, DB_DATABASE, DB_USERNAME, DB_PASSWORD.</li>



<li>Tại mục APP_URL bạn có thể gán địa chỉ IP WAN public ( truy cập để xem IP WAN: https://www.canyouseeme.org/), hoặc tên miền của bạn (tên miền cần mua)</li>
</ul>



<pre class="wp-block-code"><code># --------------------------------------------

# REQUIRED: BASIC APP SETTINGS

# --------------------------------------------

APP_ENV=production

APP_DEBUG=false

APP_KEY=ChangeMe

APP_URL=example.com

APP_TIMEZONE='UTC'

APP_LOCALE=en

MAX_RESULTS=500

# --------------------------------------------

# REQUIRED: DATABASE SETTINGS

# --------------------------------------------

DB_CONNECTION=mysql

DB_HOST=127.0.0.1

DB_DATABASE=snipeit

DB_USERNAME=snipeituser

DB_PASSWORD=type_password_here

DB_PREFIX=null

DB_DUMP_PATH='/usr/bin'

DB_CHARSET=utf8mb4

DB_COLLATION=utf8mb4_unicode_ci

# --------------------------------------------

# OPTIONAL: SSL DATABASE SETTINGS</code></pre>



<ul class="wp-block-list">
<li>Nhấn tổ hợp phím Ctrl O, nhấn Enter để lưu lại. Nhấn Ctrl X để thoát ra</li>



<li>Gõ lệnh cd để quay về màn hình chủ root. Sau đó cập nhật tất cả các gói dữ liệu bằng Composer</li>
</ul>



<pre class="wp-block-code"><code>cd /var/www/snipeit

sudo composer install --no-dev --prefer-source</code></pre>



<ul class="wp-block-list">
<li>Chờ đợi 1 lúc, sau đó chạy lệnh dưới, nhấn yes</li>
</ul>



<pre class="wp-block-code"><code>sudo php artisan key:generate</code></pre>



<ul class="wp-block-list">
<li>Hiện thị ra một dãy mã</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="758" height="262" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-300.png" alt="" class="wp-image-5450" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-300.png 758w, https://blntech.io.vn/wp-content/uploads/2025/07/image-300-300x104.png 300w" sizes="auto, (max-width: 758px) 100vw, 758px" /></figure>



<ul class="wp-block-list">
<li>Vì bạn vừa chạy máy chủ web dưới dạng root, bạn nên đảm bảo mọi tệp mới được tạo đều thuộc sở hữu của người dùng và nhóm www-data.</li>
</ul>



<pre class="wp-block-code"><code>cd

sudo chown -R www-data:www-data /var/www/snipeit/

sudo chmod -R 755 /var/www/snipeit/</code></pre>



<h5 class="wp-block-heading">Cấu hình Apache2</h5>



<ul class="wp-block-list">
<li>Tạo 1 file cấu hình truy cập SnipeIT trong Apache2</li>
</ul>



<pre class="wp-block-code"><code>sudo nano /etc/apache2/sites-available/snipeit.conf</code></pre>



<ul class="wp-block-list">
<li>Sau đó copy và dán những lệnh dưới vào.</li>



<li>Tại mục ServerName bạn có thể gán địa chỉ IP WAN public ( truy cập để xem IP WAN: https://www.canyouseeme.org/), hoặc tên miền của bạn (tên miền cần mua)</li>
</ul>



<pre class="wp-block-preformatted">&lt;VirtualHost *:80><br><br>ServerAdmin [admin@example.com]<br><br>DocumentRoot /var/www/snipeit/public<br><br>ServerName example.com<br><br>ServerAlias www.example.com<br><br>&lt;Directory /var/www/snipeit/public/><br><br>Options +FollowSymlinks<br><br>AllowOverride All<br><br>Require all granted<br><br>&lt;/Directory><br><br>ErrorLog ${APACHE_LOG_DIR}/error.log<br><br>CustomLog ${APACHE_LOG_DIR}/access.log combined<br><br>&lt;/VirtualHost></pre>



<ul class="wp-block-list">
<li>Lưu lại bằng cách Ctrl O, Enter, Ctrl X để thoát ra</li>
</ul>



<h5 class="wp-block-heading">Khởi động SnipeIT lên</h5>



<ul class="wp-block-list">
<li>Chạy các lệnh sau, khởi động lại dịch vụ apache2</li>
</ul>



<pre class="wp-block-code"><code>sudo a2ensite snipeit.conf

sudo a2enmod rewrite

sudo systemctl restart apache2.service</code></pre>



<ul class="wp-block-list">
<li>Mở trình duyệt web, nhập địa IP hoặc tên miền, trùng với tên ServerName và ServerAlias mà bạn đã cấu hình trong file <strong>/etc/apache2/sites-available/snipeit.conf</strong> mà bạn đã nhập ở bước trên. Hiện lên giao diện như hình</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="659" height="542" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-301.png" alt="" class="wp-image-5451" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-301.png 659w, https://blntech.io.vn/wp-content/uploads/2025/07/image-301-300x247.png 300w" sizes="auto, (max-width: 659px) 100vw, 659px" /></figure>



<ul class="wp-block-list">
<li>Tạo tài khoản admin để quản lý và đăng nhập vào SnipeIT</li>



<li>Đặt tên cho Site của bạn.</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="662" height="454" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-302.png" alt="" class="wp-image-5452" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-302.png 662w, https://blntech.io.vn/wp-content/uploads/2025/07/image-302-300x206.png 300w" sizes="auto, (max-width: 662px) 100vw, 662px" /></figure>



<ul class="wp-block-list">
<li>Thành quả của bạn sẽ như hình. Vậy là các bạn đã cài xong phần mềm mở SnipeIT dùng để quản lý thiết bị hiệu quả.</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="750" height="428" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-303.png" alt="" class="wp-image-5453" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-303.png 750w, https://blntech.io.vn/wp-content/uploads/2025/07/image-303-300x171.png 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">Nguồn bài viết: ITForVN<br>Nguồn tham khảo: https://websiteforstudents.com/install-snipe-it-on-ubuntu-18-04-18-04-with-apache2/</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Giới Thiệu Về OMD – Checkmk</title>
		<link>https://blntech.io.vn/gioi-thieu-ve-omd-checkmk/</link>
		
		<dc:creator><![CDATA[nhanvph]]></dc:creator>
		<pubDate>Fri, 03 Apr 2026 09:47:32 +0000</pubDate>
				<category><![CDATA[Monitor]]></category>
		<category><![CDATA[check_mk]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://blntech.io.vn/?p=2079</guid>

					<description><![CDATA[Các bạn đang phân vân về phần mềm giám sát và muốn tìm kiểm một phần mềm giám sát hiệu [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><em>Các bạn đang phân vân về phần mềm giám sát và muốn tìm kiểm một phần mềm giám sát hiệu quả và dễ dàng sử dụng. Tôi sẽ giới thiệu với bạn về OMD – Check_mk</em></p>



<h4 class="wp-block-heading" id="lich-su">Lịch sử về check_mk</h4>



<p class="wp-block-paragraph">Năm 2008 check_mk được ra mắt như là một plugins hỗ trợ và bổ sung thêm cho lõi nagios. Để có thể giúp cho giải pháp nagios hoàn thiện hơn các nhược điểm mà nagios còn mắc phải</p>



<p class="wp-block-paragraph">Năm 2010 dự án OMD (Open Monitoring Distribution) được khởi động bởi Mathias Kettner. Đã kết hợp nhiều sản phẩm để có thể tạo ra sự linh hoạt trong giám sát hơn. Lúc đó có 2 phiên bản distro của OMD là OMD-LABS và CHECK_MK RAW ( OMD thường) . OMD sử dụng nhân là nagios kết hợp thêm nhiều sản phẩm mã nguồn mở để tạo ra một sản phẩm tối ưu cho nhu cầu giám sát, cảnh báo và hiển thị</p>



<p class="wp-block-paragraph">Năm 2015 phiên bản đơn giản của OMD đã được ra mắt gọi là&nbsp;<strong>CHECK_MK</strong>&nbsp;vào lúc đó có 2 phiên bản của là:&nbsp;<strong>CHECK_MK RAW EDITION</strong>(CRE) và&nbsp;<strong>CHECK_MK ENTERPRISE EDITION</strong>(CEE). Hiện nay có thêm một phiên bản mới phiên bản này dựa trên phiên bản CEE được gọi là&nbsp;<strong>Checkmk Managed Services Edition</strong></p>



<h4 class="wp-block-heading" id="OMB-LABS">OMD-LABS Và OMD (check_mk)</h4>



<ul class="wp-block-list">
<li>OMD là một phiên bản nhỏ của OMD-LABS nó tập chung chủ yếu vào việc phát triển check_mk.</li>



<li>OMD-LABS là phiên bản nâng cấp của OMD nên nó có thêm một số sản phẩm mã nguồn mở khác được tích hợp ví dụ như : Naemon; Icinga2; Grafana/Influxdb …</li>



<li>Trang web mặc định của OMD-LABS là Thruk</li>



<li>Từ phiên bản OMD-LABS 3.0 trở đi đã remove một số phần mềm là: Nagios3; Icinga 2, Check_mk, Nagvis</li>
</ul>



<h4 class="wp-block-heading" id="khai-niem">Khái niệm về CHECK_MK</h4>



<ul class="wp-block-list">
<li>Là một giải pháp giám sát dựa trên mã nguồn mở. Có lõi là nagios core.</li>



<li>Check_mk được tạo ra với mục đích giải bài toán hiệu năng cho nagios. Giúp cho việc mở rộng hệ thống giám sát dễ dàng hơn</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="426" height="301" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-291.png" alt="" class="wp-image-5417" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-291.png 426w, https://blntech.io.vn/wp-content/uploads/2025/07/image-291-300x212.png 300w" sizes="auto, (max-width: 426px) 100vw, 426px" /></figure>



<p class="wp-block-paragraph">Với tính năng được tích hợp với nhiều sản phẩm thì check_mk được cấu hình đơn giản hơn nhiều so với lõi nagios trước kia. Check_mk bổ sung thêm một số chức năng</p>



<ul class="wp-block-list">
<li>Thời gian check tiêu chuẩn được giảm từ 5 phút xuống 1 phút</li>



<li>Có thể cấu hình bằng giao diện WEB</li>



<li>Có chức năng giám sát phân tán</li>



<li>Có bảng điều khiển</li>



<li>Có bảng thống kê số liệu</li>



<li>Có biểu đồ hiển thị</li>



<li>etc…</li>
</ul>



<h4 class="wp-block-heading" id="phien-ban">Các phiên bản của Check_mk</h4>



<p class="wp-block-paragraph">Đến thời điểm hiện tại thì nagios có 3 phiên bản chính và có sẵn</p>



<ul class="wp-block-list">
<li>Check_MK Raw Edition (CRE)</li>



<li>Check_MK Enterprise Edition (CEE)</li>



<li>Checkmk Managed Services Edition (CME)</li>
</ul>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td>Tính năng</td><td>CRE</td><td>CEE</td><td>CME</td></tr><tr><td>Có sẵn hơn 1700 plugins tích hợp</td><td>Có</td><td>Có</td><td>Có</td></tr><tr><td>Event console và hệ thống syslog</td><td>Có</td><td>Có</td><td>Có</td></tr><tr><td>Chuyển dữ liệu sang dạng đô thị</td><td>Có</td><td>Có</td><td>Có</td></tr><tr><td>Báo cáo được chuyển sang dạng PDF</td><td>Không</td><td>Có</td><td>Có</td></tr><tr><td>Thời gian kiểm tra tiêu chuẩn</td><td>60s</td><td>1s</td><td>1s</td></tr><tr><td>hệ thống giám sát phân tán</td><td>Không</td><td>có</td><td>có</td></tr><tr><td>Tự động update agent</td><td>Không</td><td>Có</td><td>Có</td></tr><tr><td>Giao diện GUI bằng tiếng đức</td><td>Không</td><td>Có</td><td>Có</td></tr><tr><td>Quản lý và phân chia dữ liệu một cách nghiêm ngặt</td><td>Không</td><td>Không</td><td>Có</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">Phiên bản Check_MK Raw Edition (CRE) là phiên bản mã nguồn mở và hoàn toàn miễn phí còn 2 phiên bản còn lại chúng ta sẽ phải trả tiền nếu muốn sử dụng nó.</p>



<p class="wp-block-paragraph">Chúng ta sẽ đi tìm hiểu và làm việc với phiên bản miễn phí là CRE. Và phiên bản stable là phiên bản 1.5 và phiên bản beta là phiên bản 1.6. Chu kỳ phát triển của check_mk là 6 tháng sẽ có một bản stable.</p>



<h4 class="wp-block-heading">Các khái niệm trong check_mk</h4>



<h5 class="wp-block-heading">Livestatus</h5>



<ul class="wp-block-list">
<li>Là một phần quan trọng trong check_mk. Nó giúp cho check_mk truy xuất dữ liệu một cách nhanh chóng</li>



<li>Livestatus sẽ sử dụng socket để lấy dữ liệu để trả lời truy vấn dó đó tốc độ truy vấn của nó không còn phụ thuộc vào tốc độ I/O như là lưu dữ liệu trong file</li>



<li>Khi truy xuất dữ liệu bằng command line thì livestatus sẽ phân biệt chữ hoa và chữ thường</li>



<li>Livestatus sẽ sử dụng socket để check dữ liệu do đó công việc được phân đều cho các CPU</li>
</ul>



<h5 class="wp-block-heading">Multisite – Giao diện web</h5>



<ul class="wp-block-list">
<li>Multisite là một giao diện web được check_mk áp dụng để thay thế cho nagios web.</li>



<li>Nó được sử dụng để xem thông tin và kiểm soát hệ thống giám sát.</li>



<li>Kết hợp WATO để có thể hỗ trợ việc cấu hình bằng website</li>



<li>WATO là tập hợp nhiều modules được sử dụng để cấu hình cho check_mk server</li>



<li>Mỗi khi có thay đổi cần chọn cập nhật thay đổi</li>



<li>Có sẵn các agent giám sát được lưu trữ và hiển thị sẵn trên web</li>



<li>Nó có phiên bản tối ưu hóa cho điện thoại</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="582" height="278" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-292.png" alt="" class="wp-image-5418" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-292.png 582w, https://blntech.io.vn/wp-content/uploads/2025/07/image-292-300x143.png 300w" sizes="auto, (max-width: 582px) 100vw, 582px" /></figure>



<h5 class="wp-block-heading">EVENT CONSOLE</h5>



<ul class="wp-block-list">
<li>Ngoài việc giám sát theo khoảng thời gian check bình thường còn có một loại giám sát theo sự kiện</li>



<li>Event console là hệ thống tích hợp theo dõi sự kiên từ các nguồn như syslog; SNMP traps; Windows event logs …</li>



<li>Những sự kiện xảy ra không được xử lý bằng lõi của check_mk mà được xử lý bằng một dịch vụ riêng biệt</li>
</ul>



<h4 class="wp-block-heading">Round Robin Database(RRD)</h4>



<ul class="wp-block-list">
<li>Đây là dạng DB mặc định mà check_mk dùng để lưu trữ thông tin</li>



<li>Thông tin của DB được lưu trữ dưới dạng bảng và cột để lưu trữ dữ liệu</li>



<li>Có thể hợp nhất được dữ liệu của một khoảng thời gian lại vào làm một</li>



<li>Có thể truy vấn được dữ liệu trong RRD bằng live status language</li>



<li>Lưu ý ngôn ngữ truy vấn này phân biệt chữ hoa và chữ thường</li>



<li>Có thể sử dụng các <code>headers</code> để lọc thông tin hiển thị từ các truy vấn được sử dụng</li>



<li>Khi muốn truy vấn thống kê thì có các giá trị và các toán tử được định nghĩa sẵn để sử dụng</li>



<li>Khi dữ liệu được lưu đầy thì nó sẽ ghi đè lên dữ liệu cũ</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="676" height="288" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-293.png" alt="" class="wp-image-5419" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-293.png 676w, https://blntech.io.vn/wp-content/uploads/2025/07/image-293-300x128.png 300w" sizes="auto, (max-width: 676px) 100vw, 676px" /></figure>



<h4 class="wp-block-heading">Site</h4>



<ul class="wp-block-list">
<li>Để có thể thực hiện việc giám sát thì cần tạo ra một site để có thể sử dụng</li>



<li>Một server có thể tạo ra được nhiều site</li>



<li>Để đăng nhập được vào site thì cần có user để đăng nhập và user được phân thành 3 loại user: Administrator; Guest; Normal monitoring</li>



<li>Có 2 user mặc định có quyền Administrator là omdadmin và cmkadmin</li>



<li>Site là cách gọi của sản phẩm được tạo ra từ Multisite</li>
</ul>



<h3 class="wp-block-heading" id="cau-truc">6. Cấu trúc của check_mk</h3>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="768" height="429" src="https://blntech.io.vn/wp-content/uploads/2025/07/image-294.png" alt="" class="wp-image-5420" srcset="https://blntech.io.vn/wp-content/uploads/2025/07/image-294.png 768w, https://blntech.io.vn/wp-content/uploads/2025/07/image-294-300x168.png 300w" sizes="auto, (max-width: 768px) 100vw, 768px" /></figure>



<ul class="wp-block-list">
<li>Các lõi sẽ gọi xuống check_mk để thực hiện chức năng kiểm tra của nó</li>



<li>sau khi check thì livestatus sẽ hiển thị thông tin của mk lên website</li>



<li>PNP4nagios: được sử dụng để xử lý dữ liệu để chuyển sang dạng biểu đồ</li>



<li>Nagvis : được sử dụng để vẽ lại mô hình giám sát giúp người dùng có thể nhìn một cách dễ dàng hiểu hơn</li>



<li>Dữ liệu sẽ được lưu vào trong RRD</li>
</ul>


]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
