XEN:: How to reset root password in guest vm
Posted by blackonsole on October 20th, 2012 03:18 PM | No Comment
:: How to reset root password in guest vm
+ Find info for guest disk file
xm list
cat /etc/xen/guest_name.conf
# you will see like this
disk =
+ mounting disk file and reset the root password
mount -o loop /dev/xen_vol1/vs1001 /mnt
chroot /mnt
mount -o remount,rw /
passwd
mount ...
XenServer:: View Physical Memory and CPU Core
Posted by blackonsole on July 15th, 2012 03:06 AM | No Comment
:: How to view physical memory on xen server
run this command:
xentop
so you will see like these:
xentop - 19:41:11 Xen 3.4.2
1 domains: 1 running, 0 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown
Mem: 16776044k total, 832024k used, 15944020k ...
:: sudo: no tty present
Posted by blackonsole on October 20th, 2011 07:25 AM | No Comment
:: Error
sudo: no tty present and no askpass program specified
:: How to fix sudo error
:: How to fsck xen images
Posted by blackonsole on July 12th, 2011 01:41 AM | No Comment
:: Error
If you get corrupted xen images so need to fsck it.
:: How to fsck xvda xen images
# xm shutdown domainname
# losetup /dev/loop9 -o $((63 * 512)) /path/to/xvda
# e2fsck -f -y /dev/loop9
# losetup -d /dev/loop9
# xm start domainname
:: Links
+ Google
+ ...