8/30/2025

Proxmox : Import .vmdk จาก VMware โดยการ ใช้ไฟล์ .vmdk ไม่ผ่าน Import ของ PVE

 Proxmox : Import .vmdk จาก VMware โดยการ ใช้ไฟล์ .vmdk ไม่ผ่าน Import ของ PVE


Download ไฟล์ vmdk จะได้ไฟล์ คู่กัน 2 อัน เช่น จากเครื่อง Axapta-DB-2014
1. scp ทั้ง 2 ไฟล์ ไป PVE
scp Axapta-DB-2014-flat.vmdk root@192.168.2.44:/tmp/
scp Axapta-DB-2014.vmdk root@192.168.2.44:/tmp/

2. ที่เครื่อง PVE
-rw-r--r-- 1 root root 10737418240 Aug 30 11:19 Axapta-DB-2014-flat.vmdk
-rw-r--r-- 1 root root 505 Aug 30 11:57 Axapta-DB-2014.vmdk

3. สร้าง VM ที่เครื่อง PVE เพื่อ importdisk เข้า ID VM แล้วใช้คำสั่ง
qm importdisk XXX /tmp/Axapta-DB-2014.vmdk LLL --format qcow2

XXX = ID ของ VM
LLL = Location ของ Disk ที่ต้องการใช้งาน
เช่น
qm importdisk 157 /tmp/Axapta-DB-2014.vmdk DATA1 --format qcow2

4. เข้าไป Add disk ที่ Import เข้ามา และ แก้ Boot

8/25/2025

วิธีแก้ปัญหา Windows 10/11 เข้า Samba Alias Name ไม่ได้ ขึ้นให้ใส่ User Password

 วิธีแก้ปัญหา Windows 10/11 เข้า Samba Alias Name ไม่ได้ ขึ้นให้ใส่ User Password แต่ไม่สามารถเข้าได้แต่ Windows7 เข้าได้ตามปกติ
1. ติดตั้ง SUPTOOLS.MSI
อยู่ในแผ่น Windows Server 2003 CD → โฟลเดอร์ SUPPORT\TOOLS

2. ใช้ CMD run ด้วยสิทธิ์ Admin เข้าไปที่ C:\Program Files\Support Tools\
"C:\Program Files\Support Tools\"

**** ที่เครื่อง DC03 มีปัญหาใช้คำสั่งแล้วไม่ได้ผลเหมือน DC04 *****

3. Run คำสั่ง
setspn -A HOST/datacenter3 department
setspn -A HOST/datacenter4 e-document


4. ตรวจสอบผลที่ได้
setspn -L department
setspn -L e-document


5. แก้ไฟล์ smb.conf แล้ว Restart smb, winbind
เพิ่ม
netbios aliases = cname

ให้ใช้ AD ทั้ง 2 เครื่อง เพิ่ม
password server = dc03.sci.com, dc04.sci.com
wins server = xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx

8/19/2025

ติดตั้ง Theme, Icon, เมาส์ Style สำหรับ Linux, Ubuntu, Debain

 

ติดตั้ง Theme, Icon, เมาส์ Style สำหรับ Linux, Ubuntu, Debain
1. ติดตั้ง Program
apt install nala

2. Theme ARC
nala install arc-theme

3. เมาส์ Style
nala install oxygencursors

4. Icon mint และอื่น ๆ
nala install mint-y-icons
nala install papirus-icon-theme

เข้าเครื่อง Container ผ่าน เครื่องหลัก PVE โดยใช้คำสั่ง

 เข้าเครื่อง Container ผ่าน เครื่องหลัก PVE โดยใช้คำสั่ง
XX = Id เครื่อง
XX = โปรแกรมที่ต้องการเรียกใช้งาน

pct exec XX -- XXX
เช่น
pct exec 134 -- bash

แต่ของ VM ไม่ได้ทำได้แค่ Run คำสั่งที่ต้องการและได้ผลลัพธ์เลยไม่ค้างหน้า Terminal

Upgrade Debian 12 To Debian 13

 Upgrade Debian 12 To Debian 13 

ทุกคำสั่งทำใน root
1. ปรับปรุงระบบ Debian 12 ให้สมบูรณ์

apt update
apt upgrade
apt full-upgrade

2. กำจัดแพ็กเกจที่ไม่จำเป็น
apt --purge autoremove
apt autoclean

3. ตรวจสอบว่าแพ็กเกจใดมาจากแหล่งภายนอก (เช่น Chrome, Docker)
sudo apt list '?narrow(?installed, ?not(?origin(Debian)))'


4. เปลี่ยน sources.list ไปใช้ "trixie" และ สำรองไฟล์ repo
mkdir ~/apt-backup
cp /etc/apt/sources.list ~/apt-backup/
cp -r /etc/apt/sources.list.d/ ~/apt-backup/

แก้ไข sources ให้เปลี่ยน bookworm → trixie
sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/*

ดูใน sources.list จะต้องมี
deb http://deb.debian.org/debian/ trixie main contrib non-free
deb http://security.debian.org/debian-security trixie-security main contrib non-free
deb http://deb.debian.org/debian/ trixie-updates main contrib non-free

5. อัปเดตเป็น Trixie: ขั้นตอนแบบแบ่งเป็นสองส่วน
5.1. Minimal Upgrade ช่วยลดความเสี่ยงจากการติดตั้งแพ็กเกจใหม่ที่ไม่จำเป็นทันที
apt update
apt upgrade --without-new-pkgs
หรือ
5.2. Full Upgrade ยืนยัน (Yes) เมื่อมี prompt ให้รีสตาร์ท Service และเลือกเก็บคอนฟิกเดิมเมื่อถูกถาม
sudo apt full-upgrade --autoremove -y

6. Reboot เครื่อง
7. ตรวจสอบว่ามีการติดตั้ง linux-image-xxx-metapackage หรือไม่
dpkg -l 'linux-image*' | grep ^ii | grep -i meta

ถ้าไม่มี ให้ติดตั้ง linux-image-amd64
apt install linux-image-amd64

8. ทำความสะอาดหลังอัปเกรด
apt autoremove
apt autoclean

9. ตรวจสอบว่าอัปเกรดสำเร็จ
lsb_release -a
หรือ
cat /etc/debian_version


ควรเห็นว่าเป็น Debian 13 (Trixie) หรือดูในโปรแกรม System Info