Rabu, 05 Maret 2014

Virtio Driver W2003 On Proxmox

Install Virtio Disk On Proxmox VMS:Window 2003
  1. Upload Virtio.vfd ke Iso Folder (/var/lib/vz/template/iso/virtio.vfd)
  2. Start VMS 2003 (Tapi jangan dilakukan Installasi)
  3. Jalankan ssh (putty) kemudian Login ke Promox
  4. Cari Proses KVM ps ax --width 3800 | grep kvm
  5. Hasil Proses copykan ke Notepad mulai dari /usr/bin/kvm
  6. Tambahkan Baris Terakhir -fda /var/lib/vz/template/iso/virtio.vfd (Untuk Menambahkan Flopy Disk Virtual)
  7. Matikan VMS
  8. Start Kembali VMS lewat ssh (putty) dengan Command yang sudah anda copy tadi (termasuk tambahan baris terakhirnya)
contohnya :
/usr/bin/kvm -monitor unix:/var/run/qemu-server/1086.mon,server,nowait -vnc unix:/var/run/qemu-server/1086.vnc,password -pidfile /var/run/qemu-server/1086.pid -daemonize -usbdevice tablet -name Win2K3_Base -smp sockets=1,cores=1 -nodefaults -boot menu=on -vga cirrus -tdf -localtime -rtc-td-hack -k en-us -drive file=/mnt/pve/ISO/WIN_2K3_SP2.iso,if=ide,index=2,media=cdrom -drive file=/var/lib/vz/images/1086/vm-1086-disk-1.qcow2,if=virtio,index=0,boot=on -m 512 -netdev type=tap,id=vlan0d0,ifname=vmtab1086i0d0,script=/var/lib/qemu-server/bridge-vlan -device virtio-net-pci,mac=2A:D2:74:78:2E:E1,netdev=vlan0d0
     -fda /mnt/pve/ISO/virtio-win-1.1.16.vfd
Silahkan Anda Install VMS W2003 seperti Biasa, Jangan lupa F6 untuk memilih Driver Virtio yang sesuai

Install NIC Virtio (driver ada di flopy disk virtual)
Cara Install Virtio bisa juga dilihat di http://www-01.ibm.com/support/docview.wss?uid=swg21587905

Sesuaikan Register Window anda

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters]
"DefaultSendWindow"=dword:00100000
"DefaultReceiveWindow"=dword:00100000
"FastSendDatagramThreshold"=dword:00004000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"Tcp1323Opts"=dword:00000001
"TcpWindowSize"=dword:00100000

Cek Petunjuknya di http://technet.microsoft.com/en-us/library/cc781532%28WS.10%29.aspx

Senin, 03 Maret 2014

Menambahkan Hard Disk Baru di Proxmox

Cek Apakah HD Baru terpasang dengan baik.
dmesg | grep "] Attached SCSI disk" atau
dmesg | grep "[h,s]d[a,b]" | grep " logical blocks: "

sda sudah digunakan oleh proxmox yang ingin kita tambahkan sdb

Mempersiapkan HD Baru
fdisk /dev/sdb
command (m for help): p (menampilkan partisi yang sudah ada)
command (m for help): n (kemudian pilih p=primary)
ikuti semua default
command(m for help): L (pilih 8e=Linux LVM)
command(m for help): w (menyimpan)

Cek Status Disk yang sudah ditambahkan
cat /etc/mtab
cat /etc/fstab
mount
df -k
pvdisplay
vgdisplay
lvdisplay
Create the Physical Extents 
pvcreate /dev/sdb1 setelah itu cek kembali pvdisplay
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Extend the Volume Group 
vgextend "pve" /dev/sdb1 setelah itu cek lagi vgdisplay

























Resize the Logical Volume
1. Cek Aktual Free size 

lvdisplay /dev/mapper/pve-data 

 
 pvdisplay /dev/sdb1
 

Free PE = 59618 + Current LE 39523 = 99141
Resize PE: lvresize -l  99141  /dev/mapper/pve-data

nah sekarang Curren LE sudah bertambah jadi 99141 dan LV Size sudah jadi 387.27 GB


Selanjutnya Update File System Proxmox:  
Tampilkan File System sekarang: df -k


Update File System
resize2fs /dev/mapper/pve-data
 
 
Tampilkan File System sekarang: df -k


Sekarang /dev/mapper/pve-data sudah jadi 382 GB dari 159 GB

Generic Notes on lvresize

  • lvresize command can be used to resize the Logical Volumes
  • lvresize command can be used to increase (expand) or decrease (shrink) the size of the filesystem.
  • Always it is better to unmount the file system before resizeing.
  • Decreasing (shrinking) the logical volume size without unmounting is not supported.
  • Filesystems can be expanded online, without unmounting them:
  • LVM and ext3 support resizing filesystems after they’ve been created:
lvresize -L+10G /dev/sys/scratch
resize2fs /dev/sys/scratch
  • When shrinking a filesystem, it’s safest to copy its data elsewhere before unmounting and recreating it:
rsync -avr /scratch /data/.
umount /scratch
lvresize -L-10G /dev/sys/scratch
mkfs.ext3 /dev/sys/scratch
 
Selengkapnya lihat http://circuitbox.net/misc/homeserver/addingdrive.php




Install Proxmox

Cara Installasi Proxmox

1. Install Proxmox 3.1 Seperti biasa
2. Remove Subscription nag Dialog
2.1. Backup pvemamagerlib.js
     cp /usr/share/pve-manager/ext4/pvemanagerlib.js /usr/share/pve-manager/ext4/pvemanagerlib.js_BKP
2.2. Buka File pvemanagerlib.js dengan editor nano
     Cari Perintah if (data.status !-- 'Active') Ganti dengan if (false)
3. Update Proxmox 3.1
3.1. nano /etc/apt/sources.list
deb http://ftp.debian.org/debian wheezy main contrib
# PVE pve-no-subscription repository provided by proxmox.com, NOT recommended for production use
deb http://download.proxmox.com/debian wheezy pve-no-subscription
# security updates
deb http://security.debian.org/ wheezy/updates main contrib
 3.2. nano /etc/apt/sources.list.d/pve-enterprise.list
# deb https://enterprise.proxmox.com/debian wheezy pve-enterprise
4. Update Proxmox: apt-get update
5. Upgrade Proxmox: apt-get upgrade
6. Reboot
7. Upgrade Kembali